]> code.delx.au - gnu-emacs/blob - configure
* net/xesam.el (xesam-from): Remove defvar.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.60'
576 PACKAGE_STRING='emacs 23.0.60'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_config_libobj_dir=src
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 ns_appdir
738 ns_appbindir
739 ns_appresdir
740 ns_appsrc
741 GNUSTEP_MAKEFILES
742 LTLIBOBJS'
743 ac_subst_files=''
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CC
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 CPP
753 XMKMF'
754
755
756 # Initialize some variables set by options.
757 ac_init_help=
758 ac_init_version=false
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
761 cache_file=/dev/null
762 exec_prefix=NONE
763 no_create=
764 no_recursion=
765 prefix=NONE
766 program_prefix=NONE
767 program_suffix=NONE
768 program_transform_name=s,x,x,
769 silent=
770 site=
771 srcdir=
772 verbose=
773 x_includes=NONE
774 x_libraries=NONE
775
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir='${exec_prefix}/bin'
783 sbindir='${exec_prefix}/sbin'
784 libexecdir='${exec_prefix}/libexec'
785 datarootdir='${prefix}/share'
786 datadir='${datarootdir}'
787 sysconfdir='${prefix}/etc'
788 sharedstatedir='${prefix}/com'
789 localstatedir='${prefix}/var'
790 includedir='${prefix}/include'
791 oldincludedir='/usr/include'
792 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793 infodir='${datarootdir}/info'
794 htmldir='${docdir}'
795 dvidir='${docdir}'
796 pdfdir='${docdir}'
797 psdir='${docdir}'
798 libdir='${exec_prefix}/lib'
799 localedir='${datarootdir}/locale'
800 mandir='${datarootdir}/man'
801
802 ac_prev=
803 ac_dashdash=
804 for ac_option
805 do
806 # If the previous option needs an argument, assign it.
807 if test -n "$ac_prev"; then
808 eval $ac_prev=\$ac_option
809 ac_prev=
810 continue
811 fi
812
813 case $ac_option in
814 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 *) ac_optarg=yes ;;
816 esac
817
818 # Accept the important Cygnus configure options, so we can diagnose typos.
819
820 case $ac_dashdash$ac_option in
821 --)
822 ac_dashdash=yes ;;
823
824 -bindir | --bindir | --bindi | --bind | --bin | --bi)
825 ac_prev=bindir ;;
826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827 bindir=$ac_optarg ;;
828
829 -build | --build | --buil | --bui | --bu)
830 ac_prev=build_alias ;;
831 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832 build_alias=$ac_optarg ;;
833
834 -cache-file | --cache-file | --cache-fil | --cache-fi \
835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836 ac_prev=cache_file ;;
837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839 cache_file=$ac_optarg ;;
840
841 --config-cache | -C)
842 cache_file=config.cache ;;
843
844 -datadir | --datadir | --datadi | --datad)
845 ac_prev=datadir ;;
846 -datadir=* | --datadir=* | --datadi=* | --datad=*)
847 datadir=$ac_optarg ;;
848
849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850 | --dataroo | --dataro | --datar)
851 ac_prev=datarootdir ;;
852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854 datarootdir=$ac_optarg ;;
855
856 -disable-* | --disable-*)
857 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861 { (exit 1); exit 1; }; }
862 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
863 eval enable_$ac_feature=no ;;
864
865 -docdir | --docdir | --docdi | --doc | --do)
866 ac_prev=docdir ;;
867 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
868 docdir=$ac_optarg ;;
869
870 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871 ac_prev=dvidir ;;
872 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
873 dvidir=$ac_optarg ;;
874
875 -enable-* | --enable-*)
876 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
879 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
880 { (exit 1); exit 1; }; }
881 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
882 eval enable_$ac_feature=\$ac_optarg ;;
883
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev=exec_prefix ;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
891 exec_prefix=$ac_optarg ;;
892
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
895 with_gas=yes ;;
896
897 -help | --help | --hel | --he | -h)
898 ac_init_help=long ;;
899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900 ac_init_help=recursive ;;
901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902 ac_init_help=short ;;
903
904 -host | --host | --hos | --ho)
905 ac_prev=host_alias ;;
906 -host=* | --host=* | --hos=* | --ho=*)
907 host_alias=$ac_optarg ;;
908
909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910 ac_prev=htmldir ;;
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912 | --ht=*)
913 htmldir=$ac_optarg ;;
914
915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev=includedir ;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
920 includedir=$ac_optarg ;;
921
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
923 ac_prev=infodir ;;
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
925 infodir=$ac_optarg ;;
926
927 -libdir | --libdir | --libdi | --libd)
928 ac_prev=libdir ;;
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
930 libdir=$ac_optarg ;;
931
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev=libexecdir ;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
937 libexecdir=$ac_optarg ;;
938
939 -localedir | --localedir | --localedi | --localed | --locale)
940 ac_prev=localedir ;;
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
943
944 -localstatedir | --localstatedir | --localstatedi | --localstated \
945 | --localstate | --localstat | --localsta | --localst | --locals)
946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
949 localstatedir=$ac_optarg ;;
950
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952 ac_prev=mandir ;;
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
954 mandir=$ac_optarg ;;
955
956 -nfp | --nfp | --nf)
957 # Obsolete; use --without-fp.
958 with_fp=no ;;
959
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
961 | --no-cr | --no-c | -n)
962 no_create=yes ;;
963
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
966 no_recursion=yes ;;
967
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev=oldincludedir ;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
975 oldincludedir=$ac_optarg ;;
976
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978 ac_prev=prefix ;;
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
980 prefix=$ac_optarg ;;
981
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev=program_prefix ;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
987 program_prefix=$ac_optarg ;;
988
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev=program_suffix ;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
994 program_suffix=$ac_optarg ;;
995
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev=program_transform_name ;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
1011 program_transform_name=$ac_optarg ;;
1012
1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014 ac_prev=pdfdir ;;
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir=$ac_optarg ;;
1017
1018 -psdir | --psdir | --psdi | --psd | --ps)
1019 ac_prev=psdir ;;
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1021 psdir=$ac_optarg ;;
1022
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1025 silent=yes ;;
1026
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 ac_prev=sbindir ;;
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 | --sbi=* | --sb=*)
1031 sbindir=$ac_optarg ;;
1032
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1036 | --sha | --sh)
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 | --sha=* | --sh=*)
1042 sharedstatedir=$ac_optarg ;;
1043
1044 -site | --site | --sit)
1045 ac_prev=site ;;
1046 -site=* | --site=* | --sit=*)
1047 site=$ac_optarg ;;
1048
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 ac_prev=srcdir ;;
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052 srcdir=$ac_optarg ;;
1053
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059 sysconfdir=$ac_optarg ;;
1060
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
1062 ac_prev=target_alias ;;
1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064 target_alias=$ac_optarg ;;
1065
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067 verbose=yes ;;
1068
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
1071
1072 -with-* | --with-*)
1073 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_$ac_package=\$ac_optarg ;;
1080
1081 -without-* | --without-*)
1082 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085 { echo "$as_me: error: invalid package name: $ac_package" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1088 eval with_$ac_package=no ;;
1089
1090 --x)
1091 # Obsolete; use --with-x.
1092 with_x=yes ;;
1093
1094 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095 | --x-incl | --x-inc | --x-in | --x-i)
1096 ac_prev=x_includes ;;
1097 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099 x_includes=$ac_optarg ;;
1100
1101 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1102 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103 ac_prev=x_libraries ;;
1104 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106 x_libraries=$ac_optarg ;;
1107
1108 -*) { echo "$as_me: error: unrecognized option: $ac_option
1109 Try \`$0 --help' for more information." >&2
1110 { (exit 1); exit 1; }; }
1111 ;;
1112
1113 *=*)
1114 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1117 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1118 { (exit 1); exit 1; }; }
1119 eval $ac_envvar=\$ac_optarg
1120 export $ac_envvar ;;
1121
1122 *)
1123 # FIXME: should be removed in autoconf 3.0.
1124 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1125 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1127 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 ;;
1129
1130 esac
1131 done
1132
1133 if test -n "$ac_prev"; then
1134 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1135 { echo "$as_me: error: missing argument to $ac_option" >&2
1136 { (exit 1); exit 1; }; }
1137 fi
1138
1139 # Be sure to have absolute directory names.
1140 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1144 do
1145 eval ac_val=\$$ac_var
1146 case $ac_val in
1147 [\\/$]* | ?:[\\/]* ) continue;;
1148 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1149 esac
1150 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1151 { (exit 1); exit 1; }; }
1152 done
1153
1154 # There might be people who depend on the old broken behavior: `$host'
1155 # used to hold the argument of --host etc.
1156 # FIXME: To remove some day.
1157 build=$build_alias
1158 host=$host_alias
1159 target=$target_alias
1160
1161 # FIXME: To remove some day.
1162 if test "x$host_alias" != x; then
1163 if test "x$build_alias" = x; then
1164 cross_compiling=maybe
1165 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1166 If a cross compiler is detected then cross compile mode will be used." >&2
1167 elif test "x$build_alias" != "x$host_alias"; then
1168 cross_compiling=yes
1169 fi
1170 fi
1171
1172 ac_tool_prefix=
1173 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174
1175 test "$silent" = yes && exec 6>/dev/null
1176
1177
1178 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1179 ac_ls_di=`ls -di .` &&
1180 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1181 { echo "$as_me: error: Working directory cannot be determined" >&2
1182 { (exit 1); exit 1; }; }
1183 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1184 { echo "$as_me: error: pwd does not report name of working directory" >&2
1185 { (exit 1); exit 1; }; }
1186
1187
1188 # Find the source files, if location was not specified.
1189 if test -z "$srcdir"; then
1190 ac_srcdir_defaulted=yes
1191 # Try the directory containing this script, then the parent directory.
1192 ac_confdir=`$as_dirname -- "$0" ||
1193 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1194 X"$0" : 'X\(//\)[^/]' \| \
1195 X"$0" : 'X\(//\)$' \| \
1196 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1197 echo X"$0" |
1198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1199 s//\1/
1200 q
1201 }
1202 /^X\(\/\/\)[^/].*/{
1203 s//\1/
1204 q
1205 }
1206 /^X\(\/\/\)$/{
1207 s//\1/
1208 q
1209 }
1210 /^X\(\/\).*/{
1211 s//\1/
1212 q
1213 }
1214 s/.*/./; q'`
1215 srcdir=$ac_confdir
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 srcdir=..
1218 fi
1219 else
1220 ac_srcdir_defaulted=no
1221 fi
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1223 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1224 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1225 { (exit 1); exit 1; }; }
1226 fi
1227 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1228 ac_abs_confdir=`(
1229 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1230 { (exit 1); exit 1; }; }
1231 pwd)`
1232 # When building in place, set srcdir=.
1233 if test "$ac_abs_confdir" = "$ac_pwd"; then
1234 srcdir=.
1235 fi
1236 # Remove unnecessary trailing slashes from srcdir.
1237 # Double slashes in file names in object file debugging info
1238 # mess up M-x gdb in Emacs.
1239 case $srcdir in
1240 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1241 esac
1242 for ac_var in $ac_precious_vars; do
1243 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_env_${ac_var}_value=\$${ac_var}
1245 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1247 done
1248
1249 #
1250 # Report the --help message.
1251 #
1252 if test "$ac_init_help" = "long"; then
1253 # Omit some internal or obsolete options to make the list less imposing.
1254 # This message is too long to be a string in the A/UX 3.1 sh.
1255 cat <<_ACEOF
1256 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1257
1258 Usage: $0 [OPTION]... [VAR=VALUE]...
1259
1260 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1261 VAR=VALUE. See below for descriptions of some of the useful variables.
1262
1263 Defaults for the options are specified in brackets.
1264
1265 Configuration:
1266 -h, --help display this help and exit
1267 --help=short display options specific to this package
1268 --help=recursive display the short help of all the included packages
1269 -V, --version display version information and exit
1270 -q, --quiet, --silent do not print \`checking...' messages
1271 --cache-file=FILE cache test results in FILE [disabled]
1272 -C, --config-cache alias for \`--cache-file=config.cache'
1273 -n, --no-create do not create output files
1274 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275
1276 Installation directories:
1277 --prefix=PREFIX install architecture-independent files in PREFIX
1278 [$ac_default_prefix]
1279 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1280 [PREFIX]
1281
1282 By default, \`make install' will install all the files in
1283 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1284 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1285 for instance \`--prefix=\$HOME'.
1286
1287 For better control, use the options below.
1288
1289 Fine tuning of the installation directories:
1290 --bindir=DIR user executables [EPREFIX/bin]
1291 --sbindir=DIR system admin executables [EPREFIX/sbin]
1292 --libexecdir=DIR program executables [EPREFIX/libexec]
1293 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1294 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1295 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1296 --libdir=DIR object code libraries [EPREFIX/lib]
1297 --includedir=DIR C header files [PREFIX/include]
1298 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1299 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1300 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1301 --infodir=DIR info documentation [DATAROOTDIR/info]
1302 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1303 --mandir=DIR man documentation [DATAROOTDIR/man]
1304 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1305 --htmldir=DIR html documentation [DOCDIR]
1306 --dvidir=DIR dvi documentation [DOCDIR]
1307 --pdfdir=DIR pdf documentation [DOCDIR]
1308 --psdir=DIR ps documentation [DOCDIR]
1309 _ACEOF
1310
1311 cat <<\_ACEOF
1312
1313 Program names:
1314 --program-prefix=PREFIX prepend PREFIX to installed program names
1315 --program-suffix=SUFFIX append SUFFIX to installed program names
1316 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1317
1318 X features:
1319 --x-includes=DIR X include files are in DIR
1320 --x-libraries=DIR X library files are in DIR
1321
1322 System types:
1323 --build=BUILD configure for building on BUILD [guessed]
1324 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1325 _ACEOF
1326 fi
1327
1328 if test -n "$ac_init_help"; then
1329 case $ac_init_help in
1330 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1331 esac
1332 cat <<\_ACEOF
1333
1334 Optional Features:
1335 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1336 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1337 --enable-carbon-app[=DIR]
1338 specify install directory for Emacs.app on Mac OS X
1339 [DIR=/Application]
1340 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition
1341 --disable-ns-self-contained disable self contained build under NS
1342 --enable-asserts compile code with asserts enabled
1343 --enable-maintainer-mode
1344 enable make rules and dependencies not useful (and
1345 sometimes confusing) to the casual installer
1346 --enable-locallisppath=PATH
1347 directories Emacs should search for lisp files
1348 specific to this site
1349 --disable-largefile omit support for large files
1350
1351 Optional Packages:
1352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1354 --without-pop don't support POP mail retrieval with movemail
1355 --with-kerberos support Kerberos-authenticated POP
1356 --with-kerberos5 support Kerberos version 5 authenticated POP
1357 --with-hesiod support Hesiod to get the POP server host
1358 --without-sound don't compile with sound support
1359 --without-sync-input Process async input synchronously
1360 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1361 motif, gtk, no)
1362 --without-xpm don't compile with XPM image support
1363 --without-jpeg don't compile with JPEG image support
1364 --without-tiff don't compile with TIFF image support
1365 --without-gif don't compile with GIF image support
1366 --without-png don't compile with PNG image support
1367 --without-rsvg don't compile with SVG image support
1368 --without-freetype don't use Freetype for local font support
1369 --without-xft don't use XFT for anti aliased fonts
1370 --without-libotf don't use libotf for OpenType font support
1371 --without-m17n-flt don't use m17n-flt for text shaping
1372 --without-toolkit-scroll-bars
1373 don't use Motif or Xaw3d scroll bars
1374 --without-xaw3d don't use Xaw3d
1375 --without-xim don't use X11 XIM
1376 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1377 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1378 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1379 console
1380 --without-dbus don't compile with D-Bus support
1381 --without-makeinfo don't require makeinfo for building manuals
1382
1383 --with-pkg-config-prog=PATH
1384 Path to pkg-config for finding GTK and librsvg
1385 --with-x use the X Window System
1386
1387 Some influential environment variables:
1388 CC C compiler command
1389 CFLAGS C compiler flags
1390 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1391 nonstandard directory <lib dir>
1392 LIBS libraries to pass to the linker, e.g. -l<library>
1393 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1394 you have headers in a nonstandard directory <include dir>
1395 CPP C preprocessor
1396 XMKMF Path to xmkmf, Makefile generator for X Window System
1397
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1400
1401 _ACEOF
1402 ac_status=$?
1403 fi
1404
1405 if test "$ac_init_help" = "recursive"; then
1406 # If there are subdirs, report their specific --help.
1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 test -d "$ac_dir" || continue
1409 ac_builddir=.
1410
1411 case "$ac_dir" in
1412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *)
1414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1415 # A ".." for each directory in $ac_dir_suffix.
1416 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420 esac ;;
1421 esac
1422 ac_abs_top_builddir=$ac_pwd
1423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424 # for backward compatibility:
1425 ac_top_builddir=$ac_top_build_prefix
1426
1427 case $srcdir in
1428 .) # We are building in place.
1429 ac_srcdir=.
1430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
1433 ac_srcdir=$srcdir$ac_dir_suffix;
1434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1436 *) # Relative name.
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 esac
1441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442
1443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for guested configure.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1451 else
1452 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453 fi || ac_status=$?
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1455 done
1456 fi
1457
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1460 cat <<\_ACEOF
1461 emacs configure 23.0.60
1462 generated by GNU Autoconf 2.61
1463
1464 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1465 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1466 This configure script is free software; the Free Software Foundation
1467 gives unlimited permission to copy, distribute and modify it.
1468 _ACEOF
1469 exit
1470 fi
1471 cat >config.log <<_ACEOF
1472 This file contains any messages produced by compilers while
1473 running configure, to aid debugging if configure makes a mistake.
1474
1475 It was created by emacs $as_me 23.0.60, which was
1476 generated by GNU Autoconf 2.61. Invocation command line was
1477
1478 $ $0 $@
1479
1480 _ACEOF
1481 exec 5>>config.log
1482 {
1483 cat <<_ASUNAME
1484 ## --------- ##
1485 ## Platform. ##
1486 ## --------- ##
1487
1488 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1489 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1490 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1491 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1492 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1493
1494 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1495 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1496
1497 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1498 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1499 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1500 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1501 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1502 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1503 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1504
1505 _ASUNAME
1506
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1509 do
1510 IFS=$as_save_IFS
1511 test -z "$as_dir" && as_dir=.
1512 echo "PATH: $as_dir"
1513 done
1514 IFS=$as_save_IFS
1515
1516 } >&5
1517
1518 cat >&5 <<_ACEOF
1519
1520
1521 ## ----------- ##
1522 ## Core tests. ##
1523 ## ----------- ##
1524
1525 _ACEOF
1526
1527
1528 # Keep a trace of the command line.
1529 # Strip out --no-create and --no-recursion so they do not pile up.
1530 # Strip out --silent because we don't want to record it for future runs.
1531 # Also quote any args containing shell meta-characters.
1532 # Make two passes to allow for proper duplicate-argument suppression.
1533 ac_configure_args=
1534 ac_configure_args0=
1535 ac_configure_args1=
1536 ac_must_keep_next=false
1537 for ac_pass in 1 2
1538 do
1539 for ac_arg
1540 do
1541 case $ac_arg in
1542 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1544 | -silent | --silent | --silen | --sile | --sil)
1545 continue ;;
1546 *\'*)
1547 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1548 esac
1549 case $ac_pass in
1550 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1551 2)
1552 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1553 if test $ac_must_keep_next = true; then
1554 ac_must_keep_next=false # Got value, back to normal.
1555 else
1556 case $ac_arg in
1557 *=* | --config-cache | -C | -disable-* | --disable-* \
1558 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1559 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1560 | -with-* | --with-* | -without-* | --without-* | --x)
1561 case "$ac_configure_args0 " in
1562 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1563 esac
1564 ;;
1565 -* ) ac_must_keep_next=true ;;
1566 esac
1567 fi
1568 ac_configure_args="$ac_configure_args '$ac_arg'"
1569 ;;
1570 esac
1571 done
1572 done
1573 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1574 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1575
1576 # When interrupted or exit'd, cleanup temporary files, and complete
1577 # config.log. We remove comments because anyway the quotes in there
1578 # would cause problems or look ugly.
1579 # WARNING: Use '\'' to represent an apostrophe within the trap.
1580 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1581 trap 'exit_status=$?
1582 # Save into config.log some information that might help in debugging.
1583 {
1584 echo
1585
1586 cat <<\_ASBOX
1587 ## ---------------- ##
1588 ## Cache variables. ##
1589 ## ---------------- ##
1590 _ASBOX
1591 echo
1592 # The following way of writing the cache mishandles newlines in values,
1593 (
1594 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1595 eval ac_val=\$$ac_var
1596 case $ac_val in #(
1597 *${as_nl}*)
1598 case $ac_var in #(
1599 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1600 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1601 esac
1602 case $ac_var in #(
1603 _ | IFS | as_nl) ;; #(
1604 *) $as_unset $ac_var ;;
1605 esac ;;
1606 esac
1607 done
1608 (set) 2>&1 |
1609 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1610 *${as_nl}ac_space=\ *)
1611 sed -n \
1612 "s/'\''/'\''\\\\'\'''\''/g;
1613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1614 ;; #(
1615 *)
1616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1617 ;;
1618 esac |
1619 sort
1620 )
1621 echo
1622
1623 cat <<\_ASBOX
1624 ## ----------------- ##
1625 ## Output variables. ##
1626 ## ----------------- ##
1627 _ASBOX
1628 echo
1629 for ac_var in $ac_subst_vars
1630 do
1631 eval ac_val=\$$ac_var
1632 case $ac_val in
1633 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 esac
1635 echo "$ac_var='\''$ac_val'\''"
1636 done | sort
1637 echo
1638
1639 if test -n "$ac_subst_files"; then
1640 cat <<\_ASBOX
1641 ## ------------------- ##
1642 ## File substitutions. ##
1643 ## ------------------- ##
1644 _ASBOX
1645 echo
1646 for ac_var in $ac_subst_files
1647 do
1648 eval ac_val=\$$ac_var
1649 case $ac_val in
1650 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1651 esac
1652 echo "$ac_var='\''$ac_val'\''"
1653 done | sort
1654 echo
1655 fi
1656
1657 if test -s confdefs.h; then
1658 cat <<\_ASBOX
1659 ## ----------- ##
1660 ## confdefs.h. ##
1661 ## ----------- ##
1662 _ASBOX
1663 echo
1664 cat confdefs.h
1665 echo
1666 fi
1667 test "$ac_signal" != 0 &&
1668 echo "$as_me: caught signal $ac_signal"
1669 echo "$as_me: exit $exit_status"
1670 } >&5
1671 rm -f core *.core core.conftest.* &&
1672 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1673 exit $exit_status
1674 ' 0
1675 for ac_signal in 1 2 13 15; do
1676 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1677 done
1678 ac_signal=0
1679
1680 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1681 rm -f -r conftest* confdefs.h
1682
1683 # Predefined preprocessor variables.
1684
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_NAME "$PACKAGE_NAME"
1687 _ACEOF
1688
1689
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1692 _ACEOF
1693
1694
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1697 _ACEOF
1698
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_STRING "$PACKAGE_STRING"
1702 _ACEOF
1703
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1707 _ACEOF
1708
1709
1710 # Let the site file select an alternate cache file if it wants to.
1711 # Prefer explicitly selected file to automatically selected ones.
1712 if test -n "$CONFIG_SITE"; then
1713 set x "$CONFIG_SITE"
1714 elif test "x$prefix" != xNONE; then
1715 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1716 else
1717 set x "$ac_default_prefix/share/config.site" \
1718 "$ac_default_prefix/etc/config.site"
1719 fi
1720 shift
1721 for ac_site_file
1722 do
1723 if test -r "$ac_site_file"; then
1724 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1725 echo "$as_me: loading site script $ac_site_file" >&6;}
1726 sed 's/^/| /' "$ac_site_file" >&5
1727 . "$ac_site_file"
1728 fi
1729 done
1730
1731 if test -r "$cache_file"; then
1732 # Some versions of bash will fail to source /dev/null (special
1733 # files actually), so we avoid doing that.
1734 if test -f "$cache_file"; then
1735 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1736 echo "$as_me: loading cache $cache_file" >&6;}
1737 case $cache_file in
1738 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1739 *) . "./$cache_file";;
1740 esac
1741 fi
1742 else
1743 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1744 echo "$as_me: creating cache $cache_file" >&6;}
1745 >$cache_file
1746 fi
1747
1748 ac_header_list="$ac_header_list sys/time.h"
1749 ac_header_list="$ac_header_list unistd.h"
1750 ac_func_list="$ac_func_list alarm"
1751 # Check that the precious variables saved in the cache have kept the same
1752 # value.
1753 ac_cache_corrupted=false
1754 for ac_var in $ac_precious_vars; do
1755 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1756 eval ac_new_set=\$ac_env_${ac_var}_set
1757 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1758 eval ac_new_val=\$ac_env_${ac_var}_value
1759 case $ac_old_set,$ac_new_set in
1760 set,)
1761 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1762 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1763 ac_cache_corrupted=: ;;
1764 ,set)
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1766 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1768 ,);;
1769 *)
1770 if test "x$ac_old_val" != "x$ac_new_val"; then
1771 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1772 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1773 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1774 echo "$as_me: former value: $ac_old_val" >&2;}
1775 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1776 echo "$as_me: current value: $ac_new_val" >&2;}
1777 ac_cache_corrupted=:
1778 fi;;
1779 esac
1780 # Pass precious variables to config.status.
1781 if test "$ac_new_set" = set; then
1782 case $ac_new_val in
1783 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1784 *) ac_arg=$ac_var=$ac_new_val ;;
1785 esac
1786 case " $ac_configure_args " in
1787 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1788 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1789 esac
1790 fi
1791 done
1792 if $ac_cache_corrupted; then
1793 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1794 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1795 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1796 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1797 { (exit 1); exit 1; }; }
1798 fi
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824 ac_ext=c
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829
1830
1831 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1832
1833
1834
1835 test "$program_prefix" != NONE &&
1836 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1837 # Use a double $ so make ignores it.
1838 test "$program_suffix" != NONE &&
1839 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1840 # Double any \ or $. echo might interpret backslashes.
1841 # By default was `s,x,x', remove it if useless.
1842 cat <<\_ACEOF >conftest.sed
1843 s/[\\$]/&&/g;s/;s,x,x,$//
1844 _ACEOF
1845 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1846 rm -f conftest.sed
1847
1848
1849 lispdir='${datadir}/emacs/${version}/lisp'
1850 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1851 '${datadir}/emacs/site-lisp'
1852 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1853 etcdir='${datadir}/emacs/${version}/etc'
1854 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1855 docdir='${datadir}/emacs/${version}/etc'
1856 gamedir='${localstatedir}/games/emacs'
1857
1858 gameuser=games
1859
1860
1861
1862
1863 # Check whether --with-pop was given.
1864 if test "${with_pop+set}" = set; then
1865 withval=$with_pop;
1866 else
1867 with_pop=yes
1868 fi
1869
1870 if test "$with_pop" = yes; then
1871 cat >>confdefs.h <<\_ACEOF
1872 #define MAIL_USE_POP 1
1873 _ACEOF
1874
1875 fi
1876
1877
1878
1879 # Check whether --with-kerberos was given.
1880 if test "${with_kerberos+set}" = set; then
1881 withval=$with_kerberos;
1882 else
1883 with_kerberos=no
1884 fi
1885
1886 if test "$with_kerberos" != no; then
1887 cat >>confdefs.h <<\_ACEOF
1888 #define KERBEROS 1
1889 _ACEOF
1890
1891 fi
1892
1893
1894
1895 # Check whether --with-kerberos5 was given.
1896 if test "${with_kerberos5+set}" = set; then
1897 withval=$with_kerberos5;
1898 else
1899 with_kerberos5=no
1900 fi
1901
1902 if test "${with_kerberos5}" != no; then
1903 if test "${with_kerberos}" = no; then
1904 with_kerberos=yes
1905 cat >>confdefs.h <<\_ACEOF
1906 #define KERBEROS 1
1907 _ACEOF
1908
1909 fi
1910
1911 cat >>confdefs.h <<\_ACEOF
1912 #define KERBEROS5 1
1913 _ACEOF
1914
1915 fi
1916
1917
1918 # Check whether --with-hesiod was given.
1919 if test "${with_hesiod+set}" = set; then
1920 withval=$with_hesiod;
1921 else
1922 with_hesiod=no
1923 fi
1924
1925 if test "$with_hesiod" != no; then
1926
1927 cat >>confdefs.h <<\_ACEOF
1928 #define HESIOD 1
1929 _ACEOF
1930
1931 fi
1932
1933
1934 # Check whether --with-sound was given.
1935 if test "${with_sound+set}" = set; then
1936 withval=$with_sound;
1937 else
1938 with_sound=yes
1939 fi
1940
1941
1942
1943 # Check whether --with-sync-input was given.
1944 if test "${with_sync_input+set}" = set; then
1945 withval=$with_sync_input;
1946 else
1947 with_sync_input=yes
1948 fi
1949
1950 if test "$with_sync_input" = yes; then
1951
1952 cat >>confdefs.h <<\_ACEOF
1953 #define SYNC_INPUT 1
1954 _ACEOF
1955
1956 fi
1957
1958
1959 # Check whether --with-x-toolkit was given.
1960 if test "${with_x_toolkit+set}" = set; then
1961 withval=$with_x_toolkit; case "${withval}" in
1962 y | ye | yes ) val=gtk ;;
1963 n | no ) val=no ;;
1964 l | lu | luc | luci | lucid ) val=lucid ;;
1965 a | at | ath | athe | athen | athena ) val=athena ;;
1966 m | mo | mot | moti | motif ) val=motif ;;
1967 g | gt | gtk ) val=gtk ;;
1968 * )
1969 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1970 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1971 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1972 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1973 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1974 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1975 { (exit 1); exit 1; }; }
1976 ;;
1977 esac
1978 with_x_toolkit=$val
1979
1980 fi
1981
1982
1983
1984 # Check whether --with-xpm was given.
1985 if test "${with_xpm+set}" = set; then
1986 withval=$with_xpm;
1987 else
1988 with_xpm=yes
1989 fi
1990
1991
1992 # Check whether --with-jpeg was given.
1993 if test "${with_jpeg+set}" = set; then
1994 withval=$with_jpeg;
1995 else
1996 with_jpeg=yes
1997 fi
1998
1999
2000 # Check whether --with-tiff was given.
2001 if test "${with_tiff+set}" = set; then
2002 withval=$with_tiff;
2003 else
2004 with_tiff=yes
2005 fi
2006
2007
2008 # Check whether --with-gif was given.
2009 if test "${with_gif+set}" = set; then
2010 withval=$with_gif;
2011 else
2012 with_gif=yes
2013 fi
2014
2015
2016 # Check whether --with-png was given.
2017 if test "${with_png+set}" = set; then
2018 withval=$with_png;
2019 else
2020 with_png=yes
2021 fi
2022
2023
2024 # Check whether --with-rsvg was given.
2025 if test "${with_rsvg+set}" = set; then
2026 withval=$with_rsvg;
2027 else
2028 with_rsvg=yes
2029 fi
2030
2031
2032
2033 # Check whether --with-freetype was given.
2034 if test "${with_freetype+set}" = set; then
2035 withval=$with_freetype;
2036 else
2037 with_freetype=yes
2038 fi
2039
2040
2041 # Check whether --with-xft was given.
2042 if test "${with_xft+set}" = set; then
2043 withval=$with_xft;
2044 else
2045 with_xft=yes
2046 fi
2047
2048
2049 # Check whether --with-libotf was given.
2050 if test "${with_libotf+set}" = set; then
2051 withval=$with_libotf;
2052 else
2053 with_libotf=yes
2054 fi
2055
2056
2057 # Check whether --with-m17n-flt was given.
2058 if test "${with_m17n_flt+set}" = set; then
2059 withval=$with_m17n_flt;
2060 else
2061 with_m17n_flt=yes
2062 fi
2063
2064
2065
2066 # Check whether --with-toolkit-scroll-bars was given.
2067 if test "${with_toolkit_scroll_bars+set}" = set; then
2068 withval=$with_toolkit_scroll_bars;
2069 else
2070 with_toolkit_scroll_bars=yes
2071 fi
2072
2073
2074 # Check whether --with-xaw3d was given.
2075 if test "${with_xaw3d+set}" = set; then
2076 withval=$with_xaw3d;
2077 else
2078 with_xaw3d=yes
2079 fi
2080
2081
2082 # Check whether --with-xim was given.
2083 if test "${with_xim+set}" = set; then
2084 withval=$with_xim;
2085 else
2086 with_xim=yes
2087 fi
2088
2089
2090 # Check whether --with-carbon was given.
2091 if test "${with_carbon+set}" = set; then
2092 withval=$with_carbon;
2093 else
2094 with_carbon=no
2095 fi
2096
2097
2098 # Check whether --with-ns was given.
2099 if test "${with_ns+set}" = set; then
2100 withval=$with_ns;
2101 else
2102 with_ns=no
2103 fi
2104
2105
2106
2107 # Check whether --with-gpm was given.
2108 if test "${with_gpm+set}" = set; then
2109 withval=$with_gpm;
2110 else
2111 with_gpm=yes
2112 fi
2113
2114
2115 # Check whether --with-dbus was given.
2116 if test "${with_dbus+set}" = set; then
2117 withval=$with_dbus;
2118 else
2119 with_dbus=yes
2120 fi
2121
2122
2123 ## For the times when you want to build Emacs but don't have
2124 ## a suitable makeinfo, and can live without the manuals.
2125
2126 # Check whether --with-makeinfo was given.
2127 if test "${with_makeinfo+set}" = set; then
2128 withval=$with_makeinfo;
2129 else
2130 with_makeinfo=yes
2131 fi
2132
2133
2134
2135 # Check whether --with-gtk was given.
2136 if test "${with_gtk+set}" = set; then
2137 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2138 specify a toolkit." >&5
2139 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2140 specify a toolkit." >&2;}
2141 { (exit 1); exit 1; }; }
2142 fi
2143
2144
2145
2146 # Check whether --with-gcc was given.
2147 if test "${with_gcc+set}" = set; then
2148 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2149 variable to specify a compiler." >&5
2150 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2151 variable to specify a compiler." >&2;}
2152 { (exit 1); exit 1; }; }
2153 fi
2154
2155
2156
2157 # Check whether --with-pkg-config-prog was given.
2158 if test "${with_pkg_config_prog+set}" = set; then
2159 withval=$with_pkg_config_prog;
2160 fi
2161
2162 if test "X${with_pkg_config_prog}" != X; then
2163 if test "${with_pkg_config_prog}" != yes; then
2164 PKG_CONFIG="${with_pkg_config_prog}"
2165 fi
2166 fi
2167
2168 # Check whether --enable-carbon-app was given.
2169 if test "${enable_carbon_app+set}" = set; then
2170 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2171 fi
2172
2173
2174 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2175 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2176 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=yes
2177 else
2178 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2179 fi
2180
2181
2182 # Check whether --enable-ns-self-contained was given.
2183 if test "${enable_ns_self_contained+set}" = set; then
2184 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=no
2185 else
2186 EN_NS_SELF_CONTAINED=yes
2187 fi
2188
2189
2190 # Check whether --enable-asserts was given.
2191 if test "${enable_asserts+set}" = set; then
2192 enableval=$enable_asserts; USE_XASSERTS=$enableval
2193 else
2194 USE_XASSERTS=no
2195 fi
2196
2197
2198 # Check whether --enable-maintainer-mode was given.
2199 if test "${enable_maintainer_mode+set}" = set; then
2200 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2201 else
2202 USE_MAINTAINER_MODE=no
2203 fi
2204
2205 if test $USE_MAINTAINER_MODE = yes; then
2206 MAINT=
2207 else
2208 MAINT=#
2209 fi
2210
2211
2212 # Check whether --enable-locallisppath was given.
2213 if test "${enable_locallisppath+set}" = set; then
2214 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2215 locallisppath=
2216 elif test "${enableval}" != "yes"; then
2217 locallisppath=${enableval}
2218 fi
2219 fi
2220
2221
2222 #### Make srcdir absolute, if it isn't already. It's important to
2223 #### avoid running the path through pwd unnecessarily, since pwd can
2224 #### give you automounter prefixes, which can go away. We do all this
2225 #### so Emacs can find its files when run uninstalled.
2226 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2227 unset CDPATH
2228 case "${srcdir}" in
2229 /* ) ;;
2230 . )
2231 ## We may be able to use the $PWD environment variable to make this
2232 ## absolute. But sometimes PWD is inaccurate.
2233 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2234 ## but that tested only for a well-formed and valid PWD,
2235 ## it did not object when PWD was well-formed and valid but just wrong.
2236 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2237 then
2238 srcdir="$PWD"
2239 else
2240 srcdir="`(cd ${srcdir}; pwd)`"
2241 fi
2242 ;;
2243 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2244 esac
2245
2246 #### Check if the source directory already has a configured system in it.
2247 if test `pwd` != `(cd ${srcdir} && pwd)` \
2248 && test -f "${srcdir}/src/config.h" ; then
2249 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2250 as a build directory right now; it has been configured in its own
2251 right. To configure in another directory as well, you MUST
2252 use GNU make. If you do not have GNU make, then you must
2253 now do \`make distclean' in ${srcdir},
2254 and then run $0 again." >&5
2255 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2256 as a build directory right now; it has been configured in its own
2257 right. To configure in another directory as well, you MUST
2258 use GNU make. If you do not have GNU make, then you must
2259 now do \`make distclean' in ${srcdir},
2260 and then run $0 again." >&2;}
2261 fi
2262
2263 #### Given the configuration name, set machfile and opsysfile to the
2264 #### names of the m/*.h and s/*.h files we should use.
2265
2266 ### Canonicalize the configuration name.
2267
2268 ac_aux_dir=
2269 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270 if test -f "$ac_dir/install-sh"; then
2271 ac_aux_dir=$ac_dir
2272 ac_install_sh="$ac_aux_dir/install-sh -c"
2273 break
2274 elif test -f "$ac_dir/install.sh"; then
2275 ac_aux_dir=$ac_dir
2276 ac_install_sh="$ac_aux_dir/install.sh -c"
2277 break
2278 elif test -f "$ac_dir/shtool"; then
2279 ac_aux_dir=$ac_dir
2280 ac_install_sh="$ac_aux_dir/shtool install -c"
2281 break
2282 fi
2283 done
2284 if test -z "$ac_aux_dir"; then
2285 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2286 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2287 { (exit 1); exit 1; }; }
2288 fi
2289
2290 # These three variables are undocumented and unsupported,
2291 # and are intended to be withdrawn in a future Autoconf release.
2292 # They can cause serious problems if a builder's source tree is in a directory
2293 # whose full name contains unusual characters.
2294 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2295 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2296 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2297
2298
2299 # Make sure we can run config.sub.
2300 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2301 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2302 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2303 { (exit 1); exit 1; }; }
2304
2305 { echo "$as_me:$LINENO: checking build system type" >&5
2306 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2307 if test "${ac_cv_build+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 ac_build_alias=$build_alias
2311 test "x$ac_build_alias" = x &&
2312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2313 test "x$ac_build_alias" = x &&
2314 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2315 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2316 { (exit 1); exit 1; }; }
2317 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2318 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2319 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2320 { (exit 1); exit 1; }; }
2321
2322 fi
2323 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2324 echo "${ECHO_T}$ac_cv_build" >&6; }
2325 case $ac_cv_build in
2326 *-*-*) ;;
2327 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2328 echo "$as_me: error: invalid value of canonical build" >&2;}
2329 { (exit 1); exit 1; }; };;
2330 esac
2331 build=$ac_cv_build
2332 ac_save_IFS=$IFS; IFS='-'
2333 set x $ac_cv_build
2334 shift
2335 build_cpu=$1
2336 build_vendor=$2
2337 shift; shift
2338 # Remember, the first character of IFS is used to create $*,
2339 # except with old shells:
2340 build_os=$*
2341 IFS=$ac_save_IFS
2342 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2343
2344
2345 { echo "$as_me:$LINENO: checking host system type" >&5
2346 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2347 if test "${ac_cv_host+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350 if test "x$host_alias" = x; then
2351 ac_cv_host=$ac_cv_build
2352 else
2353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2354 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2355 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2356 { (exit 1); exit 1; }; }
2357 fi
2358
2359 fi
2360 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2361 echo "${ECHO_T}$ac_cv_host" >&6; }
2362 case $ac_cv_host in
2363 *-*-*) ;;
2364 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2365 echo "$as_me: error: invalid value of canonical host" >&2;}
2366 { (exit 1); exit 1; }; };;
2367 esac
2368 host=$ac_cv_host
2369 ac_save_IFS=$IFS; IFS='-'
2370 set x $ac_cv_host
2371 shift
2372 host_cpu=$1
2373 host_vendor=$2
2374 shift; shift
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2377 host_os=$*
2378 IFS=$ac_save_IFS
2379 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2380
2381
2382 canonical=$host
2383 configuration=${host_alias-${build_alias-$host}}
2384
2385
2386
2387 ### If you add support for a new configuration, add code to this
2388 ### switch statement to recognize your configuration name and select
2389 ### the appropriate operating system and machine description files.
2390
2391 ### You would hope that you could choose an m/*.h file pretty much
2392 ### based on the machine portion of the configuration name, and an s-
2393 ### file based on the operating system portion. However, it turns out
2394 ### that each m/*.h file is pretty manufacturer-specific - for
2395 ### example mips.h is MIPS
2396 ### So we basically have to have a special case for each
2397 ### configuration name.
2398 ###
2399 ### As far as handling version numbers on operating systems is
2400 ### concerned, make sure things will fail in a fixable way. If
2401 ### /etc/MACHINES doesn't say anything about version numbers, be
2402 ### prepared to handle anything reasonably. If version numbers
2403 ### matter, be sure /etc/MACHINES says something about it.
2404 ###
2405 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2406 ### "System V Release 4"; he writes, "The old convention encouraged
2407 ### confusion between `system' and `release' levels'."
2408
2409 machine='' opsys='' unported=no
2410 case "${canonical}" in
2411
2412 ## FreeBSD ports
2413 *-*-freebsd* )
2414 opsys=freebsd
2415 case "${canonical}" in
2416 alpha*-*-freebsd*) machine=alpha ;;
2417 arm*-*-freebsd*) machine=arm ;;
2418 ia64-*-freebsd*) machine=ia64 ;;
2419 sparc-*-freebsd*) machine=sparc ;;
2420 sparc64-*-freebsd*) machine=sparc ;;
2421 powerpc-*-freebsd*) machine=macppc ;;
2422 i[3456]86-*-freebsd*) machine=intel386 ;;
2423 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2424 esac
2425 ;;
2426
2427 ## FreeBSD kernel + glibc based userland
2428 *-*-kfreebsd*gnu* )
2429 opsys=gnu-kfreebsd
2430 case "${canonical}" in
2431 alpha*-*-kfreebsd*) machine=alpha ;;
2432 ia64-*-kfreebsd*) machine=ia64 ;;
2433 sparc-*-kfreebsd*) machine=sparc ;;
2434 sparc64-*-kfreebsd*) machine=sparc ;;
2435 powerpc-*-kfreebsd*) machine=macppc ;;
2436 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2437 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2438 esac
2439 ;;
2440
2441 ## NetBSD ports
2442 *-*-netbsd* )
2443 opsys=netbsd
2444 if test -f /usr/lib/crti.o; then
2445
2446 cat >>confdefs.h <<\_ACEOF
2447 #define HAVE_CRTIN
2448 _ACEOF
2449
2450 fi
2451
2452 case "${canonical}" in
2453 alpha*-*-netbsd*) machine=alpha ;;
2454 i[3456]86-*-netbsd*) machine=intel386 ;;
2455 powerpc-*-netbsd*) machine=macppc ;;
2456 sparc*-*-netbsd*) machine=sparc ;;
2457 vax-*-netbsd*) machine=vax ;;
2458 arm-*-netbsd*) machine=arm ;;
2459 x86_64-*-netbsd*) machine=amdx86-64 ;;
2460 hppa-*-netbsd*) machine=hp800 ;;
2461 esac
2462 ;;
2463
2464 ## OpenBSD ports
2465 *-*-openbsd* )
2466 opsys=openbsd
2467 case "${canonical}" in
2468 alpha*-*-openbsd*) machine=alpha ;;
2469 arm-*-openbsd*) machine=arm ;;
2470 i386-*-openbsd*) machine=intel386 ;;
2471 powerpc-*-openbsd*) machine=macppc ;;
2472 sparc*-*-openbsd*) machine=sparc ;;
2473 vax-*-openbsd*) machine=vax ;;
2474 x86_64-*-openbsd*) machine=amdx86-64 ;;
2475 esac
2476 ;;
2477
2478 ## LynxOS ports
2479 *-*-lynxos* )
2480 opsys=lynxos
2481 case "${canonical}" in
2482 i[3456]86-*-lynxos*) machine=intel386 ;;
2483 powerpc-*-lynxos*) machine=powerpc ;;
2484 esac
2485 ;;
2486
2487 alpha*-*-linux-gnu* )
2488 machine=alpha opsys=gnu-linux
2489 ;;
2490
2491 arm*-*-linux-gnu* )
2492 machine=arm opsys=gnu-linux
2493 ;;
2494
2495 ## Apple Darwin / Mac OS X
2496 *-apple-darwin* )
2497 case "${canonical}" in
2498 i[3456]86-* ) machine=intel386 ;;
2499 powerpc-* ) machine=macppc ;;
2500 * ) unported=yes ;;
2501 esac
2502 opsys=darwin
2503 # Define CPP as follows to make autoconf work correctly.
2504 CPP="${CC-cc} -E -no-cpp-precomp"
2505 # Use fink packages if available.
2506 if test -d /sw/include && test -d /sw/lib; then
2507 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2508 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2509 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2510 fi
2511 ;;
2512
2513 ## HP 9000 series 700 and 800, running HP/UX
2514 hppa*-hp-hpux10.2* )
2515 machine=hp800 opsys=hpux10-20
2516 ;;
2517 hppa*-hp-hpux1[1-9]* )
2518 machine=hp800 opsys=hpux11
2519 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2520 ;;
2521
2522 hppa*-*-linux-gnu* )
2523 machine=hp800 opsys=gnu-linux
2524 ;;
2525
2526 ## IBM machines
2527 s390-*-linux-gnu* )
2528 machine=ibms390 opsys=gnu-linux
2529 ;;
2530 s390x-*-linux-gnu* )
2531 machine=ibms390x opsys=gnu-linux
2532 ;;
2533 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2534 machine=ibmrs6000 opsys=aix4-2
2535 ;;
2536 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2537 machine=ibmrs6000 opsys=aix4-2
2538 ;;
2539 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2540 machine=ibmrs6000 opsys=aix4-2
2541 ;;
2542 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2543 machine=ibmrs6000 opsys=aix4-2
2544 ;;
2545
2546 ## Macintosh PowerPC
2547 powerpc*-*-linux-gnu* )
2548 machine=macppc opsys=gnu-linux
2549 ;;
2550
2551 ## Silicon Graphics machines
2552 ## Iris 4D
2553 mips-sgi-irix6.5 )
2554 machine=iris4d opsys=irix6-5
2555 # Without defining _LANGUAGE_C, things get masked out in the headers
2556 # so that, for instance, grepping for `free' in stdlib.h fails and
2557 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2558 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2559 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2560 ;;
2561
2562 ## Suns
2563 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2564 machine=sparc opsys=gnu-linux
2565 ;;
2566
2567 *-sun-solaris* \
2568 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2569 | rs6000-*-solaris2*)
2570 case "${canonical}" in
2571 i[3456]86-*-* ) machine=intel386 ;;
2572 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2573 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2574 sparc* ) machine=sparc ;;
2575 * ) unported=yes ;;
2576 esac
2577 case "${canonical}" in
2578 *-sunos5.3* | *-solaris2.3* )
2579 opsys=sol2-3
2580 NON_GNU_CPP=/usr/ccs/lib/cpp
2581 ;;
2582 *-sunos5.4* | *-solaris2.4* )
2583 opsys=sol2-4
2584 NON_GNU_CPP=/usr/ccs/lib/cpp
2585 RANLIB="ar -ts"
2586 ;;
2587 *-sunos5.5* | *-solaris2.5* )
2588 opsys=sol2-5
2589 NON_GNU_CPP=/usr/ccs/lib/cpp
2590 RANLIB="ar -ts"
2591 ;;
2592 *-sunos5.6* | *-solaris2.6* )
2593 opsys=sol2-6
2594 NON_GNU_CPP=/usr/ccs/lib/cpp
2595 RANLIB="ar -ts"
2596 ;;
2597 *-sunos5* | *-solaris* )
2598 opsys=sol2-6
2599 emacs_check_sunpro_c=yes
2600 NON_GNU_CPP=/usr/ccs/lib/cpp
2601 ;;
2602 esac
2603 ## Watch out for a compiler that we know will not work.
2604 case "${canonical}" in
2605 *-solaris* | *-sunos5* )
2606 if [ "x$CC" = x/usr/ucb/cc ]; then
2607 ## /usr/ucb/cc doesn't work;
2608 ## we should find some other compiler that does work.
2609 unset CC
2610 fi
2611 ;;
2612 *) ;;
2613 esac
2614 ;;
2615
2616 ## Vaxen.
2617 vax-dec-* )
2618 machine=vax
2619 case "${canonical}" in
2620 *-vms* ) opsys=vms ;;
2621 * ) unported=yes
2622 esac
2623 ;;
2624
2625 ## IA-64
2626 ia64*-*-linux* )
2627 machine=ia64 opsys=gnu-linux
2628 ;;
2629
2630 ## Intel 386 machines where we don't care about the manufacturer
2631 i[3456]86-*-* )
2632 machine=intel386
2633 case "${canonical}" in
2634 *-cygwin ) opsys=cygwin ;;
2635 *-darwin* ) opsys=darwin
2636 CPP="${CC-cc} -E -no-cpp-precomp"
2637 ;;
2638 *-linux-gnu* ) opsys=gnu-linux ;;
2639 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2640 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2641 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2642 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2643 esac
2644 ;;
2645
2646 ## m68k Linux-based GNU system
2647 m68k-*-linux-gnu* )
2648 machine=m68k opsys=gnu-linux
2649 ;;
2650
2651 ## Mips Linux-based GNU system
2652 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2653 machine=mips opsys=gnu-linux
2654 ;;
2655
2656 ## AMD x86-64 Linux-based GNU system
2657 x86_64-*-linux-gnu* )
2658 machine=amdx86-64 opsys=gnu-linux
2659 ;;
2660
2661 ## Tensilica Xtensa Linux-based GNU system
2662 xtensa*-*-linux-gnu* )
2663 machine=xtensa opsys=gnu-linux
2664 ;;
2665
2666 * )
2667 unported=yes
2668 ;;
2669 esac
2670
2671 ### If the code above didn't choose an operating system, just choose
2672 ### an operating system based on the configuration name. You really
2673 ### only want to use this when you have no idea what the right
2674 ### operating system is; if you know what operating systems a machine
2675 ### runs, it's cleaner to make it explicit in the case statement
2676 ### above.
2677 if test x"${opsys}" = x; then
2678 case "${canonical}" in
2679 *-gnu* ) opsys=gnu ;;
2680 *-sysv4.2uw* ) opsys=unixware ;;
2681 *-sysv5uw* ) opsys=unixware ;;
2682 *-sysv5OpenUNIX* ) opsys=unixware ;;
2683 *-sysv4.1* | *-sysvr4.1* )
2684 NON_GNU_CPP=/usr/lib/cpp
2685 opsys=usg5-4 ;;
2686 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2687 if [ x$NON_GNU_CPP = x ]; then
2688 if [ -f /usr/ccs/lib/cpp ]; then
2689 NON_GNU_CPP=/usr/ccs/lib/cpp
2690 else
2691 NON_GNU_CPP=/lib/cpp
2692 fi
2693 fi
2694 opsys=usg5-4-2 ;;
2695 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2696 * )
2697 unported=yes
2698 ;;
2699 esac
2700 fi
2701
2702
2703
2704 if test $unported = yes; then
2705 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2706 Check \`etc/MACHINES' for recognized configuration names." >&5
2707 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2708 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2709 { (exit 1); exit 1; }; }
2710 fi
2711
2712 machfile="m/${machine}.h"
2713 opsysfile="s/${opsys}.h"
2714
2715
2716 #### Choose a compiler.
2717 test -n "$CC" && cc_specified=yes
2718
2719 # Save the value of CFLAGS that the user specified.
2720 SPECIFIED_CFLAGS="$CFLAGS"
2721
2722 ac_ext=c
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 { echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6; }
2759 else
2760 { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2762 fi
2763
2764
2765 fi
2766 if test -z "$ac_cv_prog_CC"; then
2767 ac_ct_CC=$CC
2768 # Extract the first word of "gcc", so it can be a program name with args.
2769 set dummy gcc; ac_word=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_ac_ct_CC="gcc"
2786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789 done
2790 done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
2795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2798 echo "${ECHO_T}$ac_ct_CC" >&6; }
2799 else
2800 { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2802 fi
2803
2804 if test "x$ac_ct_CC" = x; then
2805 CC=""
2806 else
2807 case $cross_compiling:$ac_tool_warned in
2808 yes:)
2809 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2810 whose name does not start with the host triplet. If you think this
2811 configuration is useful to you, please write to autoconf@gnu.org." >&5
2812 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2813 whose name does not start with the host triplet. If you think this
2814 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2815 ac_tool_warned=yes ;;
2816 esac
2817 CC=$ac_ct_CC
2818 fi
2819 else
2820 CC="$ac_cv_prog_CC"
2821 fi
2822
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2826 set dummy ${ac_tool_prefix}cc; ac_word=$2
2827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_CC+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832 if test -n "$CC"; then
2833 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 ac_cv_prog_CC="${ac_tool_prefix}cc"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846 done
2847 done
2848 IFS=$as_save_IFS
2849
2850 fi
2851 fi
2852 CC=$ac_cv_prog_CC
2853 if test -n "$CC"; then
2854 { echo "$as_me:$LINENO: result: $CC" >&5
2855 echo "${ECHO_T}$CC" >&6; }
2856 else
2857 { echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6; }
2859 fi
2860
2861
2862 fi
2863 fi
2864 if test -z "$CC"; then
2865 # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc; ac_word=$2
2867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869 if test "${ac_cv_prog_CC+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2874 else
2875 ac_prog_rejected=no
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2884 ac_prog_rejected=yes
2885 continue
2886 fi
2887 ac_cv_prog_CC="cc"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 if test $ac_prog_rejected = yes; then
2896 # We found a bogon in the path, so make sure we never use it.
2897 set dummy $ac_cv_prog_CC
2898 shift
2899 if test $# != 0; then
2900 # We chose a different compiler from the bogus one.
2901 # However, it has the same basename, so the bogon will be chosen
2902 # first if we set CC to just the basename; use the full file name.
2903 shift
2904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2905 fi
2906 fi
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { echo "$as_me:$LINENO: result: $CC" >&5
2912 echo "${ECHO_T}$CC" >&6; }
2913 else
2914 { echo "$as_me:$LINENO: result: no" >&5
2915 echo "${ECHO_T}no" >&6; }
2916 fi
2917
2918
2919 fi
2920 if test -z "$CC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 for ac_prog in cl.exe
2923 do
2924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_CC+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 { echo "$as_me:$LINENO: result: $CC" >&5
2954 echo "${ECHO_T}$CC" >&6; }
2955 else
2956 { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2958 fi
2959
2960
2961 test -n "$CC" && break
2962 done
2963 fi
2964 if test -z "$CC"; then
2965 ac_ct_CC=$CC
2966 for ac_prog in cl.exe
2967 do
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975 if test -n "$ac_ct_CC"; then
2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_ac_ct_CC="$ac_prog"
2986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996 if test -n "$ac_ct_CC"; then
2997 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2998 echo "${ECHO_T}$ac_ct_CC" >&6; }
2999 else
3000 { echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6; }
3002 fi
3003
3004
3005 test -n "$ac_ct_CC" && break
3006 done
3007
3008 if test "x$ac_ct_CC" = x; then
3009 CC=""
3010 else
3011 case $cross_compiling:$ac_tool_warned in
3012 yes:)
3013 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3014 whose name does not start with the host triplet. If you think this
3015 configuration is useful to you, please write to autoconf@gnu.org." >&5
3016 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3017 whose name does not start with the host triplet. If you think this
3018 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3019 ac_tool_warned=yes ;;
3020 esac
3021 CC=$ac_ct_CC
3022 fi
3023 fi
3024
3025 fi
3026
3027
3028 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: no acceptable C compiler found in \$PATH
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3033
3034 # Provide some information about the compiler.
3035 echo "$as_me:$LINENO: checking for C compiler version" >&5
3036 ac_compiler=`set X $ac_compile; echo $2`
3037 { (ac_try="$ac_compiler --version >&5"
3038 case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compiler --version >&5") 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (ac_try="$ac_compiler -v >&5"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compiler -v >&5") 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }
3057 { (ac_try="$ac_compiler -V >&5"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compiler -V >&5") 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }
3067
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074
3075 int
3076 main ()
3077 {
3078
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3087 # of exeext.
3088 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3089 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3090 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091 #
3092 # List of possible output files, starting from the most likely.
3093 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3094 # only as a last resort. b.out is created by i960 compilers.
3095 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3096 #
3097 # The IRIX 6 linker writes into existing files which may not be
3098 # executable, retaining their permissions. Remove them first so a
3099 # subsequent execution test works.
3100 ac_rmfiles=
3101 for ac_file in $ac_files
3102 do
3103 case $ac_file in
3104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3105 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3106 esac
3107 done
3108 rm -f $ac_rmfiles
3109
3110 if { (ac_try="$ac_link_default"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_link_default") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; then
3120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3122 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3123 # so that the user can short-circuit this test for compilers unknown to
3124 # Autoconf.
3125 for ac_file in $ac_files ''
3126 do
3127 test -f "$ac_file" || continue
3128 case $ac_file in
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3130 ;;
3131 [ab].out )
3132 # We found the default executable, but exeext='' is most
3133 # certainly right.
3134 break;;
3135 *.* )
3136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3137 then :; else
3138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 fi
3140 # We set ac_cv_exeext here because the later test for it is not
3141 # safe: cross compilers may not add the suffix if given an `-o'
3142 # argument, so we may need to know it at that point already.
3143 # Even if this section looks crufty: it has the advantage of
3144 # actually working.
3145 break;;
3146 * )
3147 break;;
3148 esac
3149 done
3150 test "$ac_cv_exeext" = no && ac_cv_exeext=
3151
3152 else
3153 ac_file=''
3154 fi
3155
3156 { echo "$as_me:$LINENO: result: $ac_file" >&5
3157 echo "${ECHO_T}$ac_file" >&6; }
3158 if test -z "$ac_file"; then
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: C compiler cannot create executables
3165 See \`config.log' for more details." >&2;}
3166 { (exit 77); exit 77; }; }
3167 fi
3168
3169 ac_exeext=$ac_cv_exeext
3170
3171 # Check that the compiler produces executables we can run. If not, either
3172 # the compiler is broken, or we cross compile.
3173 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3174 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3175 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3176 # If not cross compiling, check that we can run a simple program.
3177 if test "$cross_compiling" != yes; then
3178 if { ac_try='./$ac_file'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 cross_compiling=no
3189 else
3190 if test "$cross_compiling" = maybe; then
3191 cross_compiling=yes
3192 else
3193 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3194 If you meant to cross compile, use \`--host'.
3195 See \`config.log' for more details." >&5
3196 echo "$as_me: error: cannot run C compiled programs.
3197 If you meant to cross compile, use \`--host'.
3198 See \`config.log' for more details." >&2;}
3199 { (exit 1); exit 1; }; }
3200 fi
3201 fi
3202 fi
3203 { echo "$as_me:$LINENO: result: yes" >&5
3204 echo "${ECHO_T}yes" >&6; }
3205
3206 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3207 ac_clean_files=$ac_clean_files_save
3208 # Check that the compiler produces executables we can run. If not, either
3209 # the compiler is broken, or we cross compile.
3210 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3211 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3212 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3213 echo "${ECHO_T}$cross_compiling" >&6; }
3214
3215 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3216 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3217 if { (ac_try="$ac_link"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_link") 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; then
3227 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3228 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3229 # work properly (i.e., refer to `conftest.exe'), while it won't with
3230 # `rm'.
3231 for ac_file in conftest.exe conftest conftest.*; do
3232 test -f "$ac_file" || continue
3233 case $ac_file in
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3235 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236 break;;
3237 * ) break;;
3238 esac
3239 done
3240 else
3241 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3242 See \`config.log' for more details." >&5
3243 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3246 fi
3247
3248 rm -f conftest$ac_cv_exeext
3249 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3250 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3251
3252 rm -f conftest.$ac_ext
3253 EXEEXT=$ac_cv_exeext
3254 ac_exeext=$EXEEXT
3255 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3256 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3257 if test "${ac_cv_objext+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266
3267 int
3268 main ()
3269 {
3270
3271 ;
3272 return 0;
3273 }
3274 _ACEOF
3275 rm -f conftest.o conftest.obj
3276 if { (ac_try="$ac_compile"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compile") 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; then
3286 for ac_file in conftest.o conftest.obj conftest.*; do
3287 test -f "$ac_file" || continue;
3288 case $ac_file in
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3290 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3291 break;;
3292 esac
3293 done
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3299 See \`config.log' for more details." >&5
3300 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3301 See \`config.log' for more details." >&2;}
3302 { (exit 1); exit 1; }; }
3303 fi
3304
3305 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3306 fi
3307 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3308 echo "${ECHO_T}$ac_cv_objext" >&6; }
3309 OBJEXT=$ac_cv_objext
3310 ac_objext=$OBJEXT
3311 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3312 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3313 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h. */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3322
3323 int
3324 main ()
3325 {
3326 #ifndef __GNUC__
3327 choke me
3328 #endif
3329
3330 ;
3331 return 0;
3332 }
3333 _ACEOF
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && {
3348 test -z "$ac_c_werror_flag" ||
3349 test ! -s conftest.err
3350 } && test -s conftest.$ac_objext; then
3351 ac_compiler_gnu=yes
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 ac_compiler_gnu=no
3357 fi
3358
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3361
3362 fi
3363 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3365 GCC=`test $ac_compiler_gnu = yes && echo yes`
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3369 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3370 if test "${ac_cv_prog_cc_g+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 ac_save_c_werror_flag=$ac_c_werror_flag
3374 ac_c_werror_flag=yes
3375 ac_cv_prog_cc_g=no
3376 CFLAGS="-g"
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h. */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383
3384 int
3385 main ()
3386 {
3387
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 rm -f conftest.$ac_objext
3393 if { (ac_try="$ac_compile"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_compile") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } && {
3406 test -z "$ac_c_werror_flag" ||
3407 test ! -s conftest.err
3408 } && test -s conftest.$ac_objext; then
3409 ac_cv_prog_cc_g=yes
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 CFLAGS=""
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421
3422 int
3423 main ()
3424 {
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 :
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 ac_c_werror_flag=$ac_save_c_werror_flag
3453 CFLAGS="-g"
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460
3461 int
3462 main ()
3463 {
3464
3465 ;
3466 return 0;
3467 }
3468 _ACEOF
3469 rm -f conftest.$ac_objext
3470 if { (ac_try="$ac_compile"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3486 ac_cv_prog_cc_g=yes
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491
3492 fi
3493
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 fi
3496
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 fi
3499
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3502 fi
3503 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3504 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3505 if test "$ac_test_CFLAGS" = set; then
3506 CFLAGS=$ac_save_CFLAGS
3507 elif test $ac_cv_prog_cc_g = yes; then
3508 if test "$GCC" = yes; then
3509 CFLAGS="-g -O2"
3510 else
3511 CFLAGS="-g"
3512 fi
3513 else
3514 if test "$GCC" = yes; then
3515 CFLAGS="-O2"
3516 else
3517 CFLAGS=
3518 fi
3519 fi
3520 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3521 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3522 if test "${ac_cv_prog_cc_c89+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 ac_cv_prog_cc_c89=no
3526 ac_save_CC=$CC
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h. */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533 #include <stdarg.h>
3534 #include <stdio.h>
3535 #include <sys/types.h>
3536 #include <sys/stat.h>
3537 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3538 struct buf { int x; };
3539 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3540 static char *e (p, i)
3541 char **p;
3542 int i;
3543 {
3544 return p[i];
3545 }
3546 static char *f (char * (*g) (char **, int), char **p, ...)
3547 {
3548 char *s;
3549 va_list v;
3550 va_start (v,p);
3551 s = g (p, va_arg (v,int));
3552 va_end (v);
3553 return s;
3554 }
3555
3556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3557 function prototypes and stuff, but not '\xHH' hex character constants.
3558 These don't provoke an error unfortunately, instead are silently treated
3559 as 'x'. The following induces an error, until -std is added to get
3560 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3561 array size at least. It's necessary to write '\x00'==0 to get something
3562 that's true only with -std. */
3563 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3564
3565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3566 inside strings and character constants. */
3567 #define FOO(x) 'x'
3568 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3569
3570 int test (int i, double x);
3571 struct s1 {int (*f) (int a);};
3572 struct s2 {int (*f) (double a);};
3573 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3574 int argc;
3575 char **argv;
3576 int
3577 main ()
3578 {
3579 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3585 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3586 do
3587 CC="$ac_save_CC $ac_arg"
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compile") 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } && {
3602 test -z "$ac_c_werror_flag" ||
3603 test ! -s conftest.err
3604 } && test -s conftest.$ac_objext; then
3605 ac_cv_prog_cc_c89=$ac_arg
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610
3611 fi
3612
3613 rm -f core conftest.err conftest.$ac_objext
3614 test "x$ac_cv_prog_cc_c89" != "xno" && break
3615 done
3616 rm -f conftest.$ac_ext
3617 CC=$ac_save_CC
3618
3619 fi
3620 # AC_CACHE_VAL
3621 case "x$ac_cv_prog_cc_c89" in
3622 x)
3623 { echo "$as_me:$LINENO: result: none needed" >&5
3624 echo "${ECHO_T}none needed" >&6; } ;;
3625 xno)
3626 { echo "$as_me:$LINENO: result: unsupported" >&5
3627 echo "${ECHO_T}unsupported" >&6; } ;;
3628 *)
3629 CC="$CC $ac_cv_prog_cc_c89"
3630 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3631 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3632 esac
3633
3634
3635 ac_ext=c
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640
3641
3642 # On Suns, sometimes $CPP names a directory.
3643 if test -n "$CPP" && test -d "$CPP"; then
3644 CPP=
3645 fi
3646
3647 ## If not using gcc, and on Solaris, and no CPP specified, see if
3648 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3649 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3650 test x"$CPP" = x; then
3651 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3652 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3653
3654 if test "${emacs_cv_sunpro_c+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h. */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663
3664 int
3665 main ()
3666 {
3667 #ifndef __SUNPRO_C
3668 fail;
3669 #endif
3670
3671 ;
3672 return 0;
3673 }
3674 _ACEOF
3675 rm -f conftest.$ac_objext conftest$ac_exeext
3676 if { (ac_try="$ac_link"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_link") 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } && {
3689 test -z "$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3691 } && test -s conftest$ac_exeext &&
3692 $as_test_x conftest$ac_exeext; then
3693 emacs_cv_sunpro_c=yes
3694 else
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 emacs_cv_sunpro_c=no
3699 fi
3700
3701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3702 conftest$ac_exeext conftest.$ac_ext
3703 fi
3704
3705 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3706 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3707
3708 if test x"$emacs_cv_sunpro_c" = xyes; then
3709 NON_GNU_CPP="$CC -E -Xs"
3710 fi
3711 fi
3712
3713 #### Some systems specify a CPP to use unless we are using GCC.
3714 #### Now that we know whether we are using GCC, we can decide whether
3715 #### to use that one.
3716 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3717 then
3718 CPP="$NON_GNU_CPP"
3719 fi
3720
3721 #### Some systems specify a CC to use unless we are using GCC.
3722 #### Now that we know whether we are using GCC, we can decide whether
3723 #### to use that one.
3724 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3725 test x$cc_specified != xyes
3726 then
3727 CC="$NON_GNU_CC"
3728 fi
3729
3730 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3731 then
3732 CC="$CC $GCC_TEST_OPTIONS"
3733 fi
3734
3735 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3736 then
3737 CC="$CC $NON_GCC_TEST_OPTIONS"
3738 fi
3739
3740
3741 cat >>confdefs.h <<\_ACEOF
3742 #define _GNU_SOURCE 1
3743 _ACEOF
3744
3745
3746 ac_ext=c
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3752 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3753 # On Suns, sometimes $CPP names a directory.
3754 if test -n "$CPP" && test -d "$CPP"; then
3755 CPP=
3756 fi
3757 if test -z "$CPP"; then
3758 if test "${ac_cv_prog_CPP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 # Double quotes because CPP needs to be expanded
3762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3763 do
3764 ac_preproc_ok=false
3765 for ac_c_preproc_warn_flag in '' yes
3766 do
3767 # Use a header file that comes with gcc, so configuring glibc
3768 # with a fresh cross-compiler works.
3769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770 # <limits.h> exists even on freestanding compilers.
3771 # On the NeXT, cc -E runs the code through the compiler's parser,
3772 # not just through cpp. "Syntax error" is here to catch this case.
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h. */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 #ifdef __STDC__
3780 # include <limits.h>
3781 #else
3782 # include <assert.h>
3783 #endif
3784 Syntax error
3785 _ACEOF
3786 if { (ac_try="$ac_cpp conftest.$ac_ext"
3787 case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } >/dev/null && {
3799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3801 }; then
3802 :
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 # Broken: fails on valid input.
3808 continue
3809 fi
3810
3811 rm -f conftest.err conftest.$ac_ext
3812
3813 # OK, works on sane cases. Now check whether nonexistent headers
3814 # can be detected and how.
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 #include <ac_nonexistent.h>
3822 _ACEOF
3823 if { (ac_try="$ac_cpp conftest.$ac_ext"
3824 case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3827 esac
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } >/dev/null && {
3836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3837 test ! -s conftest.err
3838 }; then
3839 # Broken: success on invalid input.
3840 continue
3841 else
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 # Passes both tests.
3846 ac_preproc_ok=:
3847 break
3848 fi
3849
3850 rm -f conftest.err conftest.$ac_ext
3851
3852 done
3853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3854 rm -f conftest.err conftest.$ac_ext
3855 if $ac_preproc_ok; then
3856 break
3857 fi
3858
3859 done
3860 ac_cv_prog_CPP=$CPP
3861
3862 fi
3863 CPP=$ac_cv_prog_CPP
3864 else
3865 ac_cv_prog_CPP=$CPP
3866 fi
3867 { echo "$as_me:$LINENO: result: $CPP" >&5
3868 echo "${ECHO_T}$CPP" >&6; }
3869 ac_preproc_ok=false
3870 for ac_c_preproc_warn_flag in '' yes
3871 do
3872 # Use a header file that comes with gcc, so configuring glibc
3873 # with a fresh cross-compiler works.
3874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875 # <limits.h> exists even on freestanding compilers.
3876 # On the NeXT, cc -E runs the code through the compiler's parser,
3877 # not just through cpp. "Syntax error" is here to catch this case.
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3884 #ifdef __STDC__
3885 # include <limits.h>
3886 #else
3887 # include <assert.h>
3888 #endif
3889 Syntax error
3890 _ACEOF
3891 if { (ac_try="$ac_cpp conftest.$ac_ext"
3892 case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3898 ac_status=$?
3899 grep -v '^ *+' conftest.er1 >conftest.err
3900 rm -f conftest.er1
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } >/dev/null && {
3904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3905 test ! -s conftest.err
3906 }; then
3907 :
3908 else
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912 # Broken: fails on valid input.
3913 continue
3914 fi
3915
3916 rm -f conftest.err conftest.$ac_ext
3917
3918 # OK, works on sane cases. Now check whether nonexistent headers
3919 # can be detected and how.
3920 cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h. */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3926 #include <ac_nonexistent.h>
3927 _ACEOF
3928 if { (ac_try="$ac_cpp conftest.$ac_ext"
3929 case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932 esac
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } >/dev/null && {
3941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 }; then
3944 # Broken: success on invalid input.
3945 continue
3946 else
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 # Passes both tests.
3951 ac_preproc_ok=:
3952 break
3953 fi
3954
3955 rm -f conftest.err conftest.$ac_ext
3956
3957 done
3958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959 rm -f conftest.err conftest.$ac_ext
3960 if $ac_preproc_ok; then
3961 :
3962 else
3963 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3964 See \`config.log' for more details." >&5
3965 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log' for more details." >&2;}
3967 { (exit 1); exit 1; }; }
3968 fi
3969
3970 ac_ext=c
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975
3976
3977 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3978 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3979 if test "${ac_cv_path_GREP+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982 # Extract the first word of "grep ggrep" to use in msg output
3983 if test -z "$GREP"; then
3984 set dummy grep ggrep; ac_prog_name=$2
3985 if test "${ac_cv_path_GREP+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 ac_path_GREP_found=false
3989 # Loop through the user's path and test for each of PROGNAME-LIST
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3992 do
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_prog in grep ggrep; do
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3998 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3999 # Check for GNU ac_path_GREP and select it if it is found.
4000 # Check for GNU $ac_path_GREP
4001 case `"$ac_path_GREP" --version 2>&1` in
4002 *GNU*)
4003 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4004 *)
4005 ac_count=0
4006 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4007 while :
4008 do
4009 cat "conftest.in" "conftest.in" >"conftest.tmp"
4010 mv "conftest.tmp" "conftest.in"
4011 cp "conftest.in" "conftest.nl"
4012 echo 'GREP' >> "conftest.nl"
4013 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4015 ac_count=`expr $ac_count + 1`
4016 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4017 # Best one so far, save it but keep looking for a better one
4018 ac_cv_path_GREP="$ac_path_GREP"
4019 ac_path_GREP_max=$ac_count
4020 fi
4021 # 10*(2^10) chars as input seems more than enough
4022 test $ac_count -gt 10 && break
4023 done
4024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4025 esac
4026
4027
4028 $ac_path_GREP_found && break 3
4029 done
4030 done
4031
4032 done
4033 IFS=$as_save_IFS
4034
4035
4036 fi
4037
4038 GREP="$ac_cv_path_GREP"
4039 if test -z "$GREP"; then
4040 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4041 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4042 { (exit 1); exit 1; }; }
4043 fi
4044
4045 else
4046 ac_cv_path_GREP=$GREP
4047 fi
4048
4049
4050 fi
4051 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4052 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4053 GREP="$ac_cv_path_GREP"
4054
4055
4056 { echo "$as_me:$LINENO: checking for egrep" >&5
4057 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4058 if test "${ac_cv_path_EGREP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4062 then ac_cv_path_EGREP="$GREP -E"
4063 else
4064 # Extract the first word of "egrep" to use in msg output
4065 if test -z "$EGREP"; then
4066 set dummy egrep; ac_prog_name=$2
4067 if test "${ac_cv_path_EGREP+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 ac_path_EGREP_found=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074 do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_prog in egrep; do
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4080 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4081 # Check for GNU ac_path_EGREP and select it if it is found.
4082 # Check for GNU $ac_path_EGREP
4083 case `"$ac_path_EGREP" --version 2>&1` in
4084 *GNU*)
4085 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4086 *)
4087 ac_count=0
4088 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4089 while :
4090 do
4091 cat "conftest.in" "conftest.in" >"conftest.tmp"
4092 mv "conftest.tmp" "conftest.in"
4093 cp "conftest.in" "conftest.nl"
4094 echo 'EGREP' >> "conftest.nl"
4095 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097 ac_count=`expr $ac_count + 1`
4098 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4099 # Best one so far, save it but keep looking for a better one
4100 ac_cv_path_EGREP="$ac_path_EGREP"
4101 ac_path_EGREP_max=$ac_count
4102 fi
4103 # 10*(2^10) chars as input seems more than enough
4104 test $ac_count -gt 10 && break
4105 done
4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107 esac
4108
4109
4110 $ac_path_EGREP_found && break 3
4111 done
4112 done
4113
4114 done
4115 IFS=$as_save_IFS
4116
4117
4118 fi
4119
4120 EGREP="$ac_cv_path_EGREP"
4121 if test -z "$EGREP"; then
4122 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4123 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4124 { (exit 1); exit 1; }; }
4125 fi
4126
4127 else
4128 ac_cv_path_EGREP=$EGREP
4129 fi
4130
4131
4132 fi
4133 fi
4134 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4135 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4136 EGREP="$ac_cv_path_EGREP"
4137
4138
4139
4140 { echo "$as_me:$LINENO: checking for AIX" >&5
4141 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4142 cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148 #ifdef _AIX
4149 yes
4150 #endif
4151
4152 _ACEOF
4153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154 $EGREP "yes" >/dev/null 2>&1; then
4155 { echo "$as_me:$LINENO: result: yes" >&5
4156 echo "${ECHO_T}yes" >&6; }
4157 cat >>confdefs.h <<\_ACEOF
4158 #define _ALL_SOURCE 1
4159 _ACEOF
4160
4161 else
4162 { echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6; }
4164 fi
4165 rm -f conftest*
4166
4167
4168 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4169 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4170 if test "${ac_cv_header_stdc+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h. */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 #include <stdlib.h>
4180 #include <stdarg.h>
4181 #include <string.h>
4182 #include <float.h>
4183
4184 int
4185 main ()
4186 {
4187
4188 ;
4189 return 0;
4190 }
4191 _ACEOF
4192 rm -f conftest.$ac_objext
4193 if { (ac_try="$ac_compile"
4194 case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_compile") 2>conftest.er1
4200 ac_status=$?
4201 grep -v '^ *+' conftest.er1 >conftest.err
4202 rm -f conftest.er1
4203 cat conftest.err >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } && {
4206 test -z "$ac_c_werror_flag" ||
4207 test ! -s conftest.err
4208 } && test -s conftest.$ac_objext; then
4209 ac_cv_header_stdc=yes
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 ac_cv_header_stdc=no
4215 fi
4216
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218
4219 if test $ac_cv_header_stdc = yes; then
4220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h. */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4227 #include <string.h>
4228
4229 _ACEOF
4230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231 $EGREP "memchr" >/dev/null 2>&1; then
4232 :
4233 else
4234 ac_cv_header_stdc=no
4235 fi
4236 rm -f conftest*
4237
4238 fi
4239
4240 if test $ac_cv_header_stdc = yes; then
4241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4242 cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h. */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 #include <stdlib.h>
4249
4250 _ACEOF
4251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4252 $EGREP "free" >/dev/null 2>&1; then
4253 :
4254 else
4255 ac_cv_header_stdc=no
4256 fi
4257 rm -f conftest*
4258
4259 fi
4260
4261 if test $ac_cv_header_stdc = yes; then
4262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4263 if test "$cross_compiling" = yes; then
4264 :
4265 else
4266 cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h. */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 #include <ctype.h>
4273 #include <stdlib.h>
4274 #if ((' ' & 0x0FF) == 0x020)
4275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4277 #else
4278 # define ISLOWER(c) \
4279 (('a' <= (c) && (c) <= 'i') \
4280 || ('j' <= (c) && (c) <= 'r') \
4281 || ('s' <= (c) && (c) <= 'z'))
4282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4283 #endif
4284
4285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4286 int
4287 main ()
4288 {
4289 int i;
4290 for (i = 0; i < 256; i++)
4291 if (XOR (islower (i), ISLOWER (i))
4292 || toupper (i) != TOUPPER (i))
4293 return 2;
4294 return 0;
4295 }
4296 _ACEOF
4297 rm -f conftest$ac_exeext
4298 if { (ac_try="$ac_link"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_link") 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4308 { (case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 :
4318 else
4319 echo "$as_me: program exited with status $ac_status" >&5
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 ( exit $ac_status )
4324 ac_cv_header_stdc=no
4325 fi
4326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4327 fi
4328
4329
4330 fi
4331 fi
4332 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4333 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4334 if test $ac_cv_header_stdc = yes; then
4335
4336 cat >>confdefs.h <<\_ACEOF
4337 #define STDC_HEADERS 1
4338 _ACEOF
4339
4340 fi
4341
4342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4353 inttypes.h stdint.h unistd.h
4354 do
4355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h. */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 $ac_includes_default
4368
4369 #include <$ac_header>
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (ac_try="$ac_compile"
4373 case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_compile") 2>conftest.er1
4379 ac_status=$?
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } && {
4385 test -z "$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4387 } && test -s conftest.$ac_objext; then
4388 eval "$as_ac_Header=yes"
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 eval "$as_ac_Header=no"
4394 fi
4395
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 fi
4398 ac_res=`eval echo '${'$as_ac_Header'}'`
4399 { echo "$as_me:$LINENO: result: $ac_res" >&5
4400 echo "${ECHO_T}$ac_res" >&6; }
4401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4402 cat >>confdefs.h <<_ACEOF
4403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4404 _ACEOF
4405
4406 fi
4407
4408 done
4409
4410
4411 if test "${ac_cv_header_minix_config_h+set}" = set; then
4412 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4413 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4414 if test "${ac_cv_header_minix_config_h+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 fi
4417 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4418 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4419 else
4420 # Is the header compilable?
4421 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4422 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h. */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 $ac_includes_default
4430 #include <minix/config.h>
4431 _ACEOF
4432 rm -f conftest.$ac_objext
4433 if { (ac_try="$ac_compile"
4434 case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437 esac
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_compile") 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } && {
4446 test -z "$ac_c_werror_flag" ||
4447 test ! -s conftest.err
4448 } && test -s conftest.$ac_objext; then
4449 ac_header_compiler=yes
4450 else
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 ac_header_compiler=no
4455 fi
4456
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4459 echo "${ECHO_T}$ac_header_compiler" >&6; }
4460
4461 # Is the header present?
4462 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4463 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4464 cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h. */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <minix/config.h>
4471 _ACEOF
4472 if { (ac_try="$ac_cpp conftest.$ac_ext"
4473 case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4479 ac_status=$?
4480 grep -v '^ *+' conftest.er1 >conftest.err
4481 rm -f conftest.er1
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } >/dev/null && {
4485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4486 test ! -s conftest.err
4487 }; then
4488 ac_header_preproc=yes
4489 else
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493 ac_header_preproc=no
4494 fi
4495
4496 rm -f conftest.err conftest.$ac_ext
4497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4498 echo "${ECHO_T}$ac_header_preproc" >&6; }
4499
4500 # So? What about this header?
4501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4502 yes:no: )
4503 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4504 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4506 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4507 ac_header_preproc=yes
4508 ;;
4509 no:yes:* )
4510 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4511 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4513 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4515 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4516 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4517 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4519 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4521 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4522
4523 ;;
4524 esac
4525 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4526 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4527 if test "${ac_cv_header_minix_config_h+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530 ac_cv_header_minix_config_h=$ac_header_preproc
4531 fi
4532 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4533 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4534
4535 fi
4536 if test $ac_cv_header_minix_config_h = yes; then
4537 MINIX=yes
4538 else
4539 MINIX=
4540 fi
4541
4542
4543 if test "$MINIX" = yes; then
4544
4545 cat >>confdefs.h <<\_ACEOF
4546 #define _POSIX_SOURCE 1
4547 _ACEOF
4548
4549
4550 cat >>confdefs.h <<\_ACEOF
4551 #define _POSIX_1_SOURCE 2
4552 _ACEOF
4553
4554
4555 cat >>confdefs.h <<\_ACEOF
4556 #define _MINIX 1
4557 _ACEOF
4558
4559 fi
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4572 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4573 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582
4583 # define __EXTENSIONS__ 1
4584 $ac_includes_default
4585 int
4586 main ()
4587 {
4588
4589 ;
4590 return 0;
4591 }
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4595 case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598 esac
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_compile") 2>conftest.er1
4601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && {
4607 test -z "$ac_c_werror_flag" ||
4608 test ! -s conftest.err
4609 } && test -s conftest.$ac_objext; then
4610 ac_cv_safe_to_define___extensions__=yes
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 ac_cv_safe_to_define___extensions__=no
4616 fi
4617
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4621 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4622 test $ac_cv_safe_to_define___extensions__ = yes &&
4623 cat >>confdefs.h <<\_ACEOF
4624 #define __EXTENSIONS__ 1
4625 _ACEOF
4626
4627 cat >>confdefs.h <<\_ACEOF
4628 #define _POSIX_PTHREAD_SEMANTICS 1
4629 _ACEOF
4630
4631 cat >>confdefs.h <<\_ACEOF
4632 #define _TANDEM_SOURCE 1
4633 _ACEOF
4634
4635
4636
4637 ### Use -Wno-pointer-sign if the compiler supports it
4638 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4639 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4640 SAVE_CFLAGS="$CFLAGS"
4641 CFLAGS="$CFLAGS -Wno-pointer-sign"
4642 cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h. */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648
4649 int
4650 main ()
4651 {
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (ac_try="$ac_compile"
4659 case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4662 esac
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_compile") 2>conftest.er1
4665 ac_status=$?
4666 grep -v '^ *+' conftest.er1 >conftest.err
4667 rm -f conftest.er1
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } && {
4671 test -z "$ac_c_werror_flag" ||
4672 test ! -s conftest.err
4673 } && test -s conftest.$ac_objext; then
4674 has_option=yes
4675 else
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679 has_option=no
4680 fi
4681
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 if test $has_option = yes; then
4684 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4685 fi
4686 { echo "$as_me:$LINENO: result: $has_option" >&5
4687 echo "${ECHO_T}$has_option" >&6; }
4688 CFLAGS="$SAVE_CFLAGS"
4689 unset has_option
4690 unset SAVE_CFLAGS
4691
4692 #### Some other nice autoconf tests.
4693
4694 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4695 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4696 LN_S=$as_ln_s
4697 if test "$LN_S" = "ln -s"; then
4698 { echo "$as_me:$LINENO: result: yes" >&5
4699 echo "${ECHO_T}yes" >&6; }
4700 else
4701 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4702 echo "${ECHO_T}no, using $LN_S" >&6; }
4703 fi
4704
4705 ac_ext=c
4706 ac_cpp='$CPP $CPPFLAGS'
4707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4710 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4711 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4712 # On Suns, sometimes $CPP names a directory.
4713 if test -n "$CPP" && test -d "$CPP"; then
4714 CPP=
4715 fi
4716 if test -z "$CPP"; then
4717 if test "${ac_cv_prog_CPP+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720 # Double quotes because CPP needs to be expanded
4721 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4722 do
4723 ac_preproc_ok=false
4724 for ac_c_preproc_warn_flag in '' yes
4725 do
4726 # Use a header file that comes with gcc, so configuring glibc
4727 # with a fresh cross-compiler works.
4728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4729 # <limits.h> exists even on freestanding compilers.
4730 # On the NeXT, cc -E runs the code through the compiler's parser,
4731 # not just through cpp. "Syntax error" is here to catch this case.
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #ifdef __STDC__
4739 # include <limits.h>
4740 #else
4741 # include <assert.h>
4742 #endif
4743 Syntax error
4744 _ACEOF
4745 if { (ac_try="$ac_cpp conftest.$ac_ext"
4746 case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749 esac
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4752 ac_status=$?
4753 grep -v '^ *+' conftest.er1 >conftest.err
4754 rm -f conftest.er1
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } >/dev/null && {
4758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4760 }; then
4761 :
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 # Broken: fails on valid input.
4767 continue
4768 fi
4769
4770 rm -f conftest.err conftest.$ac_ext
4771
4772 # OK, works on sane cases. Now check whether nonexistent headers
4773 # can be detected and how.
4774 cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h. */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 #include <ac_nonexistent.h>
4781 _ACEOF
4782 if { (ac_try="$ac_cpp conftest.$ac_ext"
4783 case "(($ac_try" in
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4786 esac
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } >/dev/null && {
4795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4796 test ! -s conftest.err
4797 }; then
4798 # Broken: success on invalid input.
4799 continue
4800 else
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4803
4804 # Passes both tests.
4805 ac_preproc_ok=:
4806 break
4807 fi
4808
4809 rm -f conftest.err conftest.$ac_ext
4810
4811 done
4812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4813 rm -f conftest.err conftest.$ac_ext
4814 if $ac_preproc_ok; then
4815 break
4816 fi
4817
4818 done
4819 ac_cv_prog_CPP=$CPP
4820
4821 fi
4822 CPP=$ac_cv_prog_CPP
4823 else
4824 ac_cv_prog_CPP=$CPP
4825 fi
4826 { echo "$as_me:$LINENO: result: $CPP" >&5
4827 echo "${ECHO_T}$CPP" >&6; }
4828 ac_preproc_ok=false
4829 for ac_c_preproc_warn_flag in '' yes
4830 do
4831 # Use a header file that comes with gcc, so configuring glibc
4832 # with a fresh cross-compiler works.
4833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4834 # <limits.h> exists even on freestanding compilers.
4835 # On the NeXT, cc -E runs the code through the compiler's parser,
4836 # not just through cpp. "Syntax error" is here to catch this case.
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 #ifdef __STDC__
4844 # include <limits.h>
4845 #else
4846 # include <assert.h>
4847 #endif
4848 Syntax error
4849 _ACEOF
4850 if { (ac_try="$ac_cpp conftest.$ac_ext"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } >/dev/null && {
4863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4865 }; then
4866 :
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 # Broken: fails on valid input.
4872 continue
4873 fi
4874
4875 rm -f conftest.err conftest.$ac_ext
4876
4877 # OK, works on sane cases. Now check whether nonexistent headers
4878 # can be detected and how.
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h. */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 #include <ac_nonexistent.h>
4886 _ACEOF
4887 if { (ac_try="$ac_cpp conftest.$ac_ext"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null && {
4900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 }; then
4903 # Broken: success on invalid input.
4904 continue
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 # Passes both tests.
4910 ac_preproc_ok=:
4911 break
4912 fi
4913
4914 rm -f conftest.err conftest.$ac_ext
4915
4916 done
4917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 rm -f conftest.err conftest.$ac_ext
4919 if $ac_preproc_ok; then
4920 :
4921 else
4922 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4923 See \`config.log' for more details." >&5
4924 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4925 See \`config.log' for more details." >&2;}
4926 { (exit 1); exit 1; }; }
4927 fi
4928
4929 ac_ext=c
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934
4935 # Find a good install program. We prefer a C program (faster),
4936 # so one script is as good as another. But avoid the broken or
4937 # incompatible versions:
4938 # SysV /etc/install, /usr/sbin/install
4939 # SunOS /usr/etc/install
4940 # IRIX /sbin/install
4941 # AIX /bin/install
4942 # AmigaOS /C/install, which installs bootblocks on floppy discs
4943 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4944 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4945 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4946 # OS/2's system install, which has a completely different semantic
4947 # ./install, which can be erroneously created by make from ./install.sh.
4948 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4949 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4950 if test -z "$INSTALL"; then
4951 if test "${ac_cv_path_install+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 # Account for people who put trailing slashes in PATH elements.
4960 case $as_dir/ in
4961 ./ | .// | /cC/* | \
4962 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4963 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4964 /usr/ucb/* ) ;;
4965 *)
4966 # OSF1 and SCO ODT 3.0 have their own names for install.
4967 # Don't use installbsd from OSF since it installs stuff as root
4968 # by default.
4969 for ac_prog in ginstall scoinst install; do
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4972 if test $ac_prog = install &&
4973 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4974 # AIX install. It has an incompatible calling convention.
4975 :
4976 elif test $ac_prog = install &&
4977 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4978 # program-specific install script used by HP pwplus--don't use.
4979 :
4980 else
4981 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4982 break 3
4983 fi
4984 fi
4985 done
4986 done
4987 ;;
4988 esac
4989 done
4990 IFS=$as_save_IFS
4991
4992
4993 fi
4994 if test "${ac_cv_path_install+set}" = set; then
4995 INSTALL=$ac_cv_path_install
4996 else
4997 # As a last resort, use the slow shell script. Don't cache a
4998 # value for INSTALL within a source directory, because that will
4999 # break other packages using the cache if that directory is
5000 # removed, or if the value is a relative name.
5001 INSTALL=$ac_install_sh
5002 fi
5003 fi
5004 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5005 echo "${ECHO_T}$INSTALL" >&6; }
5006
5007 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5008 # It thinks the first close brace ends the variable substitution.
5009 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5010
5011 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5012
5013 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5014
5015 if test "x$RANLIB" = x; then
5016 if test -n "$ac_tool_prefix"; then
5017 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5018 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_prog_RANLIB+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 if test -n "$RANLIB"; then
5025 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038 done
5039 done
5040 IFS=$as_save_IFS
5041
5042 fi
5043 fi
5044 RANLIB=$ac_cv_prog_RANLIB
5045 if test -n "$RANLIB"; then
5046 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5047 echo "${ECHO_T}$RANLIB" >&6; }
5048 else
5049 { echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6; }
5051 fi
5052
5053
5054 fi
5055 if test -z "$ac_cv_prog_RANLIB"; then
5056 ac_ct_RANLIB=$RANLIB
5057 # Extract the first word of "ranlib", so it can be a program name with args.
5058 set dummy ranlib; ac_word=$2
5059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5061 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064 if test -n "$ac_ct_RANLIB"; then
5065 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_ac_ct_RANLIB="ranlib"
5075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5077 fi
5078 done
5079 done
5080 IFS=$as_save_IFS
5081
5082 fi
5083 fi
5084 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5085 if test -n "$ac_ct_RANLIB"; then
5086 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5087 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5088 else
5089 { echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6; }
5091 fi
5092
5093 if test "x$ac_ct_RANLIB" = x; then
5094 RANLIB=":"
5095 else
5096 case $cross_compiling:$ac_tool_warned in
5097 yes:)
5098 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5099 whose name does not start with the host triplet. If you think this
5100 configuration is useful to you, please write to autoconf@gnu.org." >&5
5101 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5102 whose name does not start with the host triplet. If you think this
5103 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106 RANLIB=$ac_ct_RANLIB
5107 fi
5108 else
5109 RANLIB="$ac_cv_prog_RANLIB"
5110 fi
5111
5112 fi
5113 # Extract the first word of "install-info", so it can be a program name with args.
5114 set dummy install-info; ac_word=$2
5115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5117 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 case $INSTALL_INFO in
5121 [\\/]* | ?:[\\/]*)
5122 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5123 ;;
5124 *)
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5135 fi
5136 done
5137 done
5138 IFS=$as_save_IFS
5139
5140 ;;
5141 esac
5142 fi
5143 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5144 if test -n "$INSTALL_INFO"; then
5145 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5146 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5147 else
5148 { echo "$as_me:$LINENO: result: no" >&5
5149 echo "${ECHO_T}no" >&6; }
5150 fi
5151
5152
5153 # Extract the first word of "install-info", so it can be a program name with args.
5154 set dummy install-info; ac_word=$2
5155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5157 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 case $INSTALL_INFO in
5161 [\\/]* | ?:[\\/]*)
5162 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5163 ;;
5164 *)
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in /usr/sbin
5167 do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176 done
5177 done
5178 IFS=$as_save_IFS
5179
5180 ;;
5181 esac
5182 fi
5183 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5184 if test -n "$INSTALL_INFO"; then
5185 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5186 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5187 else
5188 { echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6; }
5190 fi
5191
5192
5193 # Extract the first word of "install-info", so it can be a program name with args.
5194 set dummy install-info; ac_word=$2
5195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 case $INSTALL_INFO in
5201 [\\/]* | ?:[\\/]*)
5202 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5203 ;;
5204 *)
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in /sbin
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216 done
5217 done
5218 IFS=$as_save_IFS
5219
5220 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5221 ;;
5222 esac
5223 fi
5224 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5225 if test -n "$INSTALL_INFO"; then
5226 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5227 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5228 else
5229 { echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6; }
5231 fi
5232
5233
5234 # Extract the first word of "gzip", so it can be a program name with args.
5235 set dummy gzip; ac_word=$2
5236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5238 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 case $GZIP_PROG in
5242 [\\/]* | ?:[\\/]*)
5243 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5244 ;;
5245 *)
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5256 fi
5257 done
5258 done
5259 IFS=$as_save_IFS
5260
5261 ;;
5262 esac
5263 fi
5264 GZIP_PROG=$ac_cv_path_GZIP_PROG
5265 if test -n "$GZIP_PROG"; then
5266 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5267 echo "${ECHO_T}$GZIP_PROG" >&6; }
5268 else
5269 { echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6; }
5271 fi
5272
5273
5274
5275
5276 ## Need makeinfo >= 4.6 (?) to build the manuals.
5277 # Extract the first word of "makeinfo", so it can be a program name with args.
5278 set dummy makeinfo; ac_word=$2
5279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5281 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 case $MAKEINFO in
5285 [\\/]* | ?:[\\/]*)
5286 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5287 ;;
5288 *)
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300 done
5301 done
5302 IFS=$as_save_IFS
5303
5304 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5305 ;;
5306 esac
5307 fi
5308 MAKEINFO=$ac_cv_path_MAKEINFO
5309 if test -n "$MAKEINFO"; then
5310 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5311 echo "${ECHO_T}$MAKEINFO" >&6; }
5312 else
5313 { echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6; }
5315 fi
5316
5317
5318 if test "$MAKEINFO" != "no" && \
5319 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
5320 MAKEINFO=no
5321 fi
5322
5323 ## Makeinfo is unusual. For a released Emacs, the manuals are
5324 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5325 ## therefore in the category of "special tools" not normally required, which
5326 ## configure does not have to check for (eg autoconf itself).
5327 ## In a CVS checkout on the other hand, the manuals are not included.
5328 ## So makeinfo is a requirement to build from CVS, and configure
5329 ## should test for it as it does for any other build requirement.
5330 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5331 ## with pre-built manuals, from a CVS checkout.
5332 if test "$MAKEINFO" = "no"; then
5333 if test "x${with_makeinfo}" = "xno"; then
5334 MAKEINFO=off
5335 elif ! test -e $srcdir/info/emacs; then
5336 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5337 source tree does not seem to have pre-built manuals in the \`info' directory.
5338 Either install a suitable version of makeinfo, or re-run configure
5339 with the \`--without-makeinfo' option to build without the manuals. " >&5
5340 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5341 source tree does not seem to have pre-built manuals in the \`info' directory.
5342 Either install a suitable version of makeinfo, or re-run configure
5343 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5344 { (exit 1); exit 1; }; }
5345 fi
5346 fi
5347
5348
5349 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5350 then
5351 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5352 fi
5353
5354 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5355 then
5356 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5357 fi
5358
5359
5360 late_LDFLAGS=$LDFLAGS
5361 if test "$GCC" = yes; then
5362 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5363 else
5364 LDFLAGS="$LDFLAGS -znocombreloc"
5365 fi
5366
5367 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5368 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5369 cat >conftest.$ac_ext <<_ACEOF
5370 main(){return 0;}
5371 _ACEOF
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (ac_try="$ac_link"
5374 case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_link") 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } && {
5386 test -z "$ac_c_werror_flag" ||
5387 test ! -s conftest.err
5388 } && test -s conftest$ac_exeext &&
5389 $as_test_x conftest$ac_exeext; then
5390 { echo "$as_me:$LINENO: result: yes" >&5
5391 echo "${ECHO_T}yes" >&6; }
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396 LDFLAGS=$late_LDFLAGS
5397 { echo "$as_me:$LINENO: result: no" >&5
5398 echo "${ECHO_T}no" >&6; }
5399 fi
5400
5401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5402 conftest$ac_exeext conftest.$ac_ext
5403
5404 #### Extract some information from the operating system and machine files.
5405
5406 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5407 - which libraries the lib-src programs will want, and
5408 - whether the GNU malloc routines are usable..." >&5
5409 echo "$as_me: checking the machine- and system-dependent files to find out
5410 - which libraries the lib-src programs will want, and
5411 - whether the GNU malloc routines are usable..." >&6;}
5412
5413 ### First figure out CFLAGS (which we use for running the compiler here)
5414 ### and REAL_CFLAGS (which we use for real compilation).
5415 ### The two are the same except on a few systems, where they are made
5416 ### different to work around various lossages. For example,
5417 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5418 ### as implying static linking.
5419
5420 ### If the CFLAGS env var is specified, we use that value
5421 ### instead of the default.
5422
5423 ### It's not important that this name contain the PID; you can't run
5424 ### two configures in the same directory and have anything work
5425 ### anyway.
5426 tempcname="conftest.c"
5427
5428 echo '
5429 #include "'${srcdir}'/src/'${opsysfile}'"
5430 #include "'${srcdir}'/src/'${machfile}'"
5431 #ifndef LIBS_MACHINE
5432 #define LIBS_MACHINE
5433 #endif
5434 #ifndef LIBS_SYSTEM
5435 #define LIBS_SYSTEM
5436 #endif
5437 #ifndef C_SWITCH_SYSTEM
5438 #define C_SWITCH_SYSTEM
5439 #endif
5440 #ifndef C_SWITCH_MACHINE
5441 #define C_SWITCH_MACHINE
5442 #endif
5443 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5444 configure___ c_switch_system=C_SWITCH_SYSTEM
5445 configure___ c_switch_machine=C_SWITCH_MACHINE
5446
5447 #ifndef LIB_X11_LIB
5448 #define LIB_X11_LIB -lX11
5449 #endif
5450
5451 #ifndef LIBX11_SYSTEM
5452 #define LIBX11_SYSTEM
5453 #endif
5454 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5455
5456 #ifdef UNEXEC
5457 configure___ unexec=UNEXEC
5458 #else
5459 configure___ unexec=unexec.o
5460 #endif
5461
5462 #ifdef SYSTEM_MALLOC
5463 configure___ system_malloc=yes
5464 #else
5465 configure___ system_malloc=no
5466 #endif
5467
5468 #ifdef USE_MMAP_FOR_BUFFERS
5469 configure___ use_mmap_for_buffers=yes
5470 #else
5471 configure___ use_mmap_for_buffers=no
5472 #endif
5473
5474 #ifndef C_DEBUG_SWITCH
5475 #define C_DEBUG_SWITCH -g
5476 #endif
5477
5478 #ifndef C_OPTIMIZE_SWITCH
5479 #ifdef __GNUC__
5480 #define C_OPTIMIZE_SWITCH -O2
5481 #else
5482 #define C_OPTIMIZE_SWITCH -O
5483 #endif
5484 #endif
5485
5486 #ifndef C_WARNINGS_SWITCH
5487 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5488 #endif
5489
5490 #ifndef LD_SWITCH_MACHINE
5491 #define LD_SWITCH_MACHINE
5492 #endif
5493
5494 #ifndef LD_SWITCH_SYSTEM
5495 #define LD_SWITCH_SYSTEM
5496 #endif
5497
5498 #ifndef LD_SWITCH_X_SITE_AUX
5499 #define LD_SWITCH_X_SITE_AUX
5500 #endif
5501
5502 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5503 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5504
5505 #ifdef THIS_IS_CONFIGURE
5506
5507 /* Get the CFLAGS for tests in configure. */
5508 #ifdef __GNUC__
5509 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5510 #else
5511 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5512 #endif
5513
5514 #else /* not THIS_IS_CONFIGURE */
5515
5516 /* Get the CFLAGS for real compilation. */
5517 #ifdef __GNUC__
5518 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5519 #else
5520 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5521 #endif
5522
5523 #endif /* not THIS_IS_CONFIGURE */
5524 ' > ${tempcname}
5525
5526 # The value of CPP is a quoted variable reference, so we need to do this
5527 # to get its actual value...
5528 CPP=`eval "echo $CPP"`
5529 eval `${CPP} -Isrc ${tempcname} \
5530 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5531 if test "x$SPECIFIED_CFLAGS" = x; then
5532 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5533 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5534 else
5535 REAL_CFLAGS="$CFLAGS"
5536 fi
5537 rm ${tempcname}
5538
5539 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5540
5541 ### Make sure subsequent tests use flags consistent with the build flags.
5542
5543 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5544 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5545 else
5546 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5547 fi
5548
5549
5550
5551 # Check whether --enable-largefile was given.
5552 if test "${enable_largefile+set}" = set; then
5553 enableval=$enable_largefile;
5554 fi
5555
5556 if test "$enable_largefile" != no; then
5557
5558 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5559 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5560 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 ac_cv_sys_largefile_CC=no
5564 if test "$GCC" != yes; then
5565 ac_save_CC=$CC
5566 while :; do
5567 # IRIX 6.2 and later do not support large files by default,
5568 # so use the C compiler's -n32 option if that helps.
5569 cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h. */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5583 ? 1 : -1];
5584 int
5585 main ()
5586 {
5587
5588 ;
5589 return 0;
5590 }
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5594 case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.$ac_objext; then
5609 break
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5613
5614
5615 fi
5616
5617 rm -f core conftest.err conftest.$ac_objext
5618 CC="$CC -n32"
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5621 case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5636 ac_cv_sys_largefile_CC=' -n32'; break
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641
5642 fi
5643
5644 rm -f core conftest.err conftest.$ac_objext
5645 break
5646 done
5647 CC=$ac_save_CC
5648 rm -f conftest.$ac_ext
5649 fi
5650 fi
5651 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5652 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5653 if test "$ac_cv_sys_largefile_CC" != no; then
5654 CC=$CC$ac_cv_sys_largefile_CC
5655 fi
5656
5657 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5658 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5659 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662 while :; do
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5677 ? 1 : -1];
5678 int
5679 main ()
5680 {
5681
5682 ;
5683 return 0;
5684 }
5685 _ACEOF
5686 rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5688 case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691 esac
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compile") 2>conftest.er1
5694 ac_status=$?
5695 grep -v '^ *+' conftest.er1 >conftest.err
5696 rm -f conftest.er1
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } && {
5700 test -z "$ac_c_werror_flag" ||
5701 test ! -s conftest.err
5702 } && test -s conftest.$ac_objext; then
5703 ac_cv_sys_file_offset_bits=no; break
5704 else
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5707
5708
5709 fi
5710
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h. */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #define _FILE_OFFSET_BITS 64
5719 #include <sys/types.h>
5720 /* Check that off_t can represent 2**63 - 1 correctly.
5721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5722 since some C++ compilers masquerading as C compilers
5723 incorrectly reject 9223372036854775807. */
5724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5726 && LARGE_OFF_T % 2147483647 == 1)
5727 ? 1 : -1];
5728 int
5729 main ()
5730 {
5731
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (ac_try="$ac_compile"
5738 case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_compile") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest.$ac_objext; then
5753 ac_cv_sys_file_offset_bits=64; break
5754 else
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758
5759 fi
5760
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 ac_cv_sys_file_offset_bits=unknown
5763 break
5764 done
5765 fi
5766 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5767 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5768 case $ac_cv_sys_file_offset_bits in #(
5769 no | unknown) ;;
5770 *)
5771 cat >>confdefs.h <<_ACEOF
5772 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5773 _ACEOF
5774 ;;
5775 esac
5776 rm -f conftest*
5777 if test $ac_cv_sys_file_offset_bits = unknown; then
5778 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5779 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5780 if test "${ac_cv_sys_large_files+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 while :; do
5784 cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h. */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 #include <sys/types.h>
5791 /* Check that off_t can represent 2**63 - 1 correctly.
5792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5793 since some C++ compilers masquerading as C compilers
5794 incorrectly reject 9223372036854775807. */
5795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5797 && LARGE_OFF_T % 2147483647 == 1)
5798 ? 1 : -1];
5799 int
5800 main ()
5801 {
5802
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (ac_try="$ac_compile"
5809 case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812 esac
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && {
5821 test -z "$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5823 } && test -s conftest.$ac_objext; then
5824 ac_cv_sys_large_files=no; break
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829
5830 fi
5831
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 #define _LARGE_FILES 1
5840 #include <sys/types.h>
5841 /* Check that off_t can represent 2**63 - 1 correctly.
5842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5843 since some C++ compilers masquerading as C compilers
5844 incorrectly reject 9223372036854775807. */
5845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5847 && LARGE_OFF_T % 2147483647 == 1)
5848 ? 1 : -1];
5849 int
5850 main ()
5851 {
5852
5853 ;
5854 return 0;
5855 }
5856 _ACEOF
5857 rm -f conftest.$ac_objext
5858 if { (ac_try="$ac_compile"
5859 case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862 esac
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_compile") 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } && {
5871 test -z "$ac_c_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest.$ac_objext; then
5874 ac_cv_sys_large_files=1; break
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879
5880 fi
5881
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 ac_cv_sys_large_files=unknown
5884 break
5885 done
5886 fi
5887 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5888 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5889 case $ac_cv_sys_large_files in #(
5890 no | unknown) ;;
5891 *)
5892 cat >>confdefs.h <<_ACEOF
5893 #define _LARGE_FILES $ac_cv_sys_large_files
5894 _ACEOF
5895 ;;
5896 esac
5897 rm -f conftest*
5898 fi
5899 fi
5900
5901
5902
5903 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5904 ### be located in either /usr/lib64 or /usr/lib.
5905 case "${canonical}" in
5906 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5907 if test -d /usr/lib64; then
5908
5909 cat >>confdefs.h <<\_ACEOF
5910 #define HAVE_LIB64_DIR 1
5911 _ACEOF
5912
5913 fi
5914 esac
5915
5916
5917
5918
5919 if test "${with_sound}" != "no"; then
5920 # Sound support for GNU/Linux and the free BSDs.
5921
5922
5923
5924 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5925 do
5926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 fi
5933 ac_res=`eval echo '${'$as_ac_Header'}'`
5934 { echo "$as_me:$LINENO: result: $ac_res" >&5
5935 echo "${ECHO_T}$ac_res" >&6; }
5936 else
5937 # Is the header compilable?
5938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 $ac_includes_default
5947 #include <$ac_header>
5948 _ACEOF
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5951 case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954 esac
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_compile") 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } && {
5963 test -z "$ac_c_werror_flag" ||
5964 test ! -s conftest.err
5965 } && test -s conftest.$ac_objext; then
5966 ac_header_compiler=yes
5967 else
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5970
5971 ac_header_compiler=no
5972 fi
5973
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5976 echo "${ECHO_T}$ac_header_compiler" >&6; }
5977
5978 # Is the header present?
5979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5981 cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h. */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 #include <$ac_header>
5988 _ACEOF
5989 if { (ac_try="$ac_cpp conftest.$ac_ext"
5990 case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } >/dev/null && {
6002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6003 test ! -s conftest.err
6004 }; then
6005 ac_header_preproc=yes
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_header_preproc=no
6011 fi
6012
6013 rm -f conftest.err conftest.$ac_ext
6014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6015 echo "${ECHO_T}$ac_header_preproc" >&6; }
6016
6017 # So? What about this header?
6018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6019 yes:no: )
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6024 ac_header_preproc=yes
6025 ;;
6026 no:yes:* )
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6039
6040 ;;
6041 esac
6042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047 eval "$as_ac_Header=\$ac_header_preproc"
6048 fi
6049 ac_res=`eval echo '${'$as_ac_Header'}'`
6050 { echo "$as_me:$LINENO: result: $ac_res" >&5
6051 echo "${ECHO_T}$ac_res" >&6; }
6052
6053 fi
6054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6055 cat >>confdefs.h <<_ACEOF
6056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6057 _ACEOF
6058
6059 fi
6060
6061 done
6062
6063 # Emulation library used on NetBSD.
6064 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6065 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6066 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069 ac_check_lib_save_LIBS=$LIBS
6070 LIBS="-lossaudio $LIBS"
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077
6078 /* Override any GCC internal prototype to avoid an error.
6079 Use char because int might match the return type of a GCC
6080 builtin and then its argument prototype would still apply. */
6081 #ifdef __cplusplus
6082 extern "C"
6083 #endif
6084 char _oss_ioctl ();
6085 int
6086 main ()
6087 {
6088 return _oss_ioctl ();
6089 ;
6090 return 0;
6091 }
6092 _ACEOF
6093 rm -f conftest.$ac_objext conftest$ac_exeext
6094 if { (ac_try="$ac_link"
6095 case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6098 esac
6099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_link") 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } && {
6107 test -z "$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6109 } && test -s conftest$ac_exeext &&
6110 $as_test_x conftest$ac_exeext; then
6111 ac_cv_lib_ossaudio__oss_ioctl=yes
6112 else
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 ac_cv_lib_ossaudio__oss_ioctl=no
6117 fi
6118
6119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6120 conftest$ac_exeext conftest.$ac_ext
6121 LIBS=$ac_check_lib_save_LIBS
6122 fi
6123 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6124 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6125 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6126 LIBSOUND=-lossaudio
6127 else
6128 LIBSOUND=
6129 fi
6130
6131
6132
6133 ALSA_REQUIRED=1.0.0
6134 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6135
6136 succeeded=no
6137
6138 # Extract the first word of "pkg-config", so it can be a program name with args.
6139 set dummy pkg-config; ac_word=$2
6140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145 case $PKG_CONFIG in
6146 [\\/]* | ?:[\\/]*)
6147 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6148 ;;
6149 *)
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 break 2
6160 fi
6161 done
6162 done
6163 IFS=$as_save_IFS
6164
6165 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6166 ;;
6167 esac
6168 fi
6169 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6170 if test -n "$PKG_CONFIG"; then
6171 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6172 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6173 else
6174 { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6176 fi
6177
6178
6179
6180 if test "$PKG_CONFIG" = "no" ; then
6181 HAVE_ALSA=no
6182 else
6183 PKG_CONFIG_MIN_VERSION=0.9.0
6184 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6185 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6186 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6187
6188 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6189 { echo "$as_me:$LINENO: result: yes" >&5
6190 echo "${ECHO_T}yes" >&6; }
6191 succeeded=yes
6192
6193 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6194 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6195 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6196 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6197 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6198
6199 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6200 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6201 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6202 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6203 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6204 else
6205 { echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6; }
6207 ALSA_CFLAGS=""
6208 ALSA_LIBS=""
6209 ## If we have a custom action on failure, don't print errors, but
6210 ## do set a variable so people can do so.
6211 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6212
6213 fi
6214
6215
6216
6217 else
6218 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6219 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6220 fi
6221 fi
6222
6223 if test $succeeded = yes; then
6224 HAVE_ALSA=yes
6225 else
6226 HAVE_ALSA=no
6227 fi
6228
6229 if test $HAVE_ALSA = yes; then
6230 SAVE_CFLAGS="$CFLAGS"
6231 SAVE_LDFLAGS="$LDFLAGS"
6232 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6233 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #include <asoundlib.h>
6241 int
6242 main ()
6243 {
6244 snd_lib_error_set_handler (0);
6245 ;
6246 return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (ac_try="$ac_compile"
6251 case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254 esac
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_compile") 2>conftest.er1
6257 ac_status=$?
6258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } && {
6263 test -z "$ac_c_werror_flag" ||
6264 test ! -s conftest.err
6265 } && test -s conftest.$ac_objext; then
6266 emacs_alsa_normal=yes
6267 else
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6270
6271 emacs_alsa_normal=no
6272 fi
6273
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 if test "$emacs_alsa_normal" != yes; then
6276 cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h. */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 #include <alsa/asoundlib.h>
6283 int
6284 main ()
6285 {
6286 snd_lib_error_set_handler (0);
6287 ;
6288 return 0;
6289 }
6290 _ACEOF
6291 rm -f conftest.$ac_objext
6292 if { (ac_try="$ac_compile"
6293 case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_compile") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && {
6305 test -z "$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 } && test -s conftest.$ac_objext; then
6308 emacs_alsa_subdir=yes
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6312
6313 emacs_alsa_subdir=no
6314 fi
6315
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 if test "$emacs_alsa_subdir" != yes; then
6318 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6319 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6320 { (exit 1); exit 1; }; }
6321 fi
6322 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6323 fi
6324
6325 CFLAGS="$SAVE_CFLAGS"
6326 LDFLAGS="$SAVE_LDFLAGS"
6327 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6328 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6329
6330 cat >>confdefs.h <<\_ACEOF
6331 #define HAVE_ALSA 1
6332 _ACEOF
6333
6334 fi
6335
6336 fi
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6364 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6365 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6366 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6367 sys/utsname.h pwd.h
6368 do
6369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 fi
6376 ac_res=`eval echo '${'$as_ac_Header'}'`
6377 { echo "$as_me:$LINENO: result: $ac_res" >&5
6378 echo "${ECHO_T}$ac_res" >&6; }
6379 else
6380 # Is the header compilable?
6381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6390 #include <$ac_header>
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (ac_try="$ac_compile"
6394 case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397 esac
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_compile") 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } && {
6406 test -z "$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 } && test -s conftest.$ac_objext; then
6409 ac_header_compiler=yes
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414 ac_header_compiler=no
6415 fi
6416
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6419 echo "${ECHO_T}$ac_header_compiler" >&6; }
6420
6421 # Is the header present?
6422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6424 cat >conftest.$ac_ext <<_ACEOF
6425 /* confdefs.h. */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 #include <$ac_header>
6431 _ACEOF
6432 if { (ac_try="$ac_cpp conftest.$ac_ext"
6433 case "(($ac_try" in
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6436 esac
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6439 ac_status=$?
6440 grep -v '^ *+' conftest.er1 >conftest.err
6441 rm -f conftest.er1
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } >/dev/null && {
6445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6446 test ! -s conftest.err
6447 }; then
6448 ac_header_preproc=yes
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453 ac_header_preproc=no
6454 fi
6455
6456 rm -f conftest.err conftest.$ac_ext
6457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6458 echo "${ECHO_T}$ac_header_preproc" >&6; }
6459
6460 # So? What about this header?
6461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6462 yes:no: )
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6467 ac_header_preproc=yes
6468 ;;
6469 no:yes:* )
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6482
6483 ;;
6484 esac
6485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 eval "$as_ac_Header=\$ac_header_preproc"
6491 fi
6492 ac_res=`eval echo '${'$as_ac_Header'}'`
6493 { echo "$as_me:$LINENO: result: $ac_res" >&5
6494 echo "${ECHO_T}$ac_res" >&6; }
6495
6496 fi
6497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6498 cat >>confdefs.h <<_ACEOF
6499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6500 _ACEOF
6501
6502 fi
6503
6504 done
6505
6506
6507 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6508 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 #include <sys/personality.h>
6516 int
6517 main ()
6518 {
6519 personality (PER_LINUX32)
6520 ;
6521 return 0;
6522 }
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (ac_try="$ac_compile"
6526 case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529 esac
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6541 emacs_cv_personality_linux32=yes
6542 else
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 emacs_cv_personality_linux32=no
6547 fi
6548
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6551 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6552
6553 if test $emacs_cv_personality_linux32 = yes; then
6554
6555 cat >>confdefs.h <<\_ACEOF
6556 #define HAVE_PERSONALITY_LINUX32 1
6557 _ACEOF
6558
6559 fi
6560
6561
6562 for ac_header in term.h
6563 do
6564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <$ac_header>
6577 _ACEOF
6578 if { (ac_try="$ac_cpp conftest.$ac_ext"
6579 case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582 esac
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } >/dev/null && {
6591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6593 }; then
6594 eval "$as_ac_Header=yes"
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 eval "$as_ac_Header=no"
6600 fi
6601
6602 rm -f conftest.err conftest.$ac_ext
6603 fi
6604 ac_res=`eval echo '${'$as_ac_Header'}'`
6605 { echo "$as_me:$LINENO: result: $ac_res" >&5
6606 echo "${ECHO_T}$ac_res" >&6; }
6607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6610 _ACEOF
6611
6612 fi
6613
6614 done
6615
6616 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6617 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6618 if test "${ac_cv_header_stdc+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <stdlib.h>
6628 #include <stdarg.h>
6629 #include <string.h>
6630 #include <float.h>
6631
6632 int
6633 main ()
6634 {
6635
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (ac_try="$ac_compile"
6642 case "(($ac_try" in
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6645 esac
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_compile") 2>conftest.er1
6648 ac_status=$?
6649 grep -v '^ *+' conftest.er1 >conftest.err
6650 rm -f conftest.er1
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && {
6654 test -z "$ac_c_werror_flag" ||
6655 test ! -s conftest.err
6656 } && test -s conftest.$ac_objext; then
6657 ac_cv_header_stdc=yes
6658 else
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6661
6662 ac_cv_header_stdc=no
6663 fi
6664
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666
6667 if test $ac_cv_header_stdc = yes; then
6668 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #include <string.h>
6676
6677 _ACEOF
6678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6679 $EGREP "memchr" >/dev/null 2>&1; then
6680 :
6681 else
6682 ac_cv_header_stdc=no
6683 fi
6684 rm -f conftest*
6685
6686 fi
6687
6688 if test $ac_cv_header_stdc = yes; then
6689 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h. */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 #include <stdlib.h>
6697
6698 _ACEOF
6699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700 $EGREP "free" >/dev/null 2>&1; then
6701 :
6702 else
6703 ac_cv_header_stdc=no
6704 fi
6705 rm -f conftest*
6706
6707 fi
6708
6709 if test $ac_cv_header_stdc = yes; then
6710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6711 if test "$cross_compiling" = yes; then
6712 :
6713 else
6714 cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h. */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 #include <ctype.h>
6721 #include <stdlib.h>
6722 #if ((' ' & 0x0FF) == 0x020)
6723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6725 #else
6726 # define ISLOWER(c) \
6727 (('a' <= (c) && (c) <= 'i') \
6728 || ('j' <= (c) && (c) <= 'r') \
6729 || ('s' <= (c) && (c) <= 'z'))
6730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6731 #endif
6732
6733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6734 int
6735 main ()
6736 {
6737 int i;
6738 for (i = 0; i < 256; i++)
6739 if (XOR (islower (i), ISLOWER (i))
6740 || toupper (i) != TOUPPER (i))
6741 return 2;
6742 return 0;
6743 }
6744 _ACEOF
6745 rm -f conftest$ac_exeext
6746 if { (ac_try="$ac_link"
6747 case "(($ac_try" in
6748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749 *) ac_try_echo=$ac_try;;
6750 esac
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752 (eval "$ac_link") 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6756 { (case "(($ac_try" in
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6759 esac
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_try") 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 :
6766 else
6767 echo "$as_me: program exited with status $ac_status" >&5
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6770
6771 ( exit $ac_status )
6772 ac_cv_header_stdc=no
6773 fi
6774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6775 fi
6776
6777
6778 fi
6779 fi
6780 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6781 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6782 if test $ac_cv_header_stdc = yes; then
6783
6784 cat >>confdefs.h <<\_ACEOF
6785 #define STDC_HEADERS 1
6786 _ACEOF
6787
6788 fi
6789
6790 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6791 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6792 if test "${ac_cv_header_time+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <sys/types.h>
6802 #include <sys/time.h>
6803 #include <time.h>
6804
6805 int
6806 main ()
6807 {
6808 if ((struct tm *) 0)
6809 return 0;
6810 ;
6811 return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6816 case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest.$ac_objext; then
6831 ac_cv_header_time=yes
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6835
6836 ac_cv_header_time=no
6837 fi
6838
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840 fi
6841 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6842 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6843 if test $ac_cv_header_time = yes; then
6844
6845 cat >>confdefs.h <<\_ACEOF
6846 #define TIME_WITH_SYS_TIME 1
6847 _ACEOF
6848
6849 fi
6850
6851 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6852 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6853 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h. */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 $ac_includes_default
6863 int
6864 main ()
6865 {
6866 #ifndef sys_siglist
6867 (void) sys_siglist;
6868 #endif
6869
6870 ;
6871 return 0;
6872 }
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (ac_try="$ac_compile"
6876 case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879 esac
6880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881 (eval "$ac_compile") 2>conftest.er1
6882 ac_status=$?
6883 grep -v '^ *+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } && {
6888 test -z "$ac_c_werror_flag" ||
6889 test ! -s conftest.err
6890 } && test -s conftest.$ac_objext; then
6891 ac_cv_have_decl_sys_siglist=yes
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896 ac_cv_have_decl_sys_siglist=no
6897 fi
6898
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900 fi
6901 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6902 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6903 if test $ac_cv_have_decl_sys_siglist = yes; then
6904
6905 cat >>confdefs.h <<_ACEOF
6906 #define HAVE_DECL_SYS_SIGLIST 1
6907 _ACEOF
6908
6909
6910 else
6911 cat >>confdefs.h <<_ACEOF
6912 #define HAVE_DECL_SYS_SIGLIST 0
6913 _ACEOF
6914
6915
6916 fi
6917
6918
6919 if test $ac_cv_have_decl_sys_siglist != yes; then
6920 # For Tru64, at least:
6921 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6922 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6923 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h. */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 $ac_includes_default
6933 int
6934 main ()
6935 {
6936 #ifndef __sys_siglist
6937 (void) __sys_siglist;
6938 #endif
6939
6940 ;
6941 return 0;
6942 }
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (ac_try="$ac_compile"
6946 case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949 esac
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
6961 ac_cv_have_decl___sys_siglist=yes
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966 ac_cv_have_decl___sys_siglist=no
6967 fi
6968
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 fi
6971 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6972 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6973 if test $ac_cv_have_decl___sys_siglist = yes; then
6974
6975 cat >>confdefs.h <<_ACEOF
6976 #define HAVE_DECL___SYS_SIGLIST 1
6977 _ACEOF
6978
6979
6980 else
6981 cat >>confdefs.h <<_ACEOF
6982 #define HAVE_DECL___SYS_SIGLIST 0
6983 _ACEOF
6984
6985
6986 fi
6987
6988
6989 if test $ac_cv_have_decl___sys_siglist = yes; then
6990
6991 cat >>confdefs.h <<\_ACEOF
6992 #define sys_siglist __sys_siglist
6993 _ACEOF
6994
6995 fi
6996 fi
6997 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6998 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6999 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 else
7002 cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h. */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7008 #include <sys/types.h>
7009 #include <sys/wait.h>
7010 #ifndef WEXITSTATUS
7011 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7012 #endif
7013 #ifndef WIFEXITED
7014 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7015 #endif
7016
7017 int
7018 main ()
7019 {
7020 int s;
7021 wait (&s);
7022 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7023 ;
7024 return 0;
7025 }
7026 _ACEOF
7027 rm -f conftest.$ac_objext
7028 if { (ac_try="$ac_compile"
7029 case "(($ac_try" in
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7032 esac
7033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7034 (eval "$ac_compile") 2>conftest.er1
7035 ac_status=$?
7036 grep -v '^ *+' conftest.er1 >conftest.err
7037 rm -f conftest.er1
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } && {
7041 test -z "$ac_c_werror_flag" ||
7042 test ! -s conftest.err
7043 } && test -s conftest.$ac_objext; then
7044 ac_cv_header_sys_wait_h=yes
7045 else
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049 ac_cv_header_sys_wait_h=no
7050 fi
7051
7052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053 fi
7054 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7055 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7056 if test $ac_cv_header_sys_wait_h = yes; then
7057
7058 cat >>confdefs.h <<\_ACEOF
7059 #define HAVE_SYS_WAIT_H 1
7060 _ACEOF
7061
7062 fi
7063
7064
7065 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7066 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7067 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070 cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h. */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 #ifdef TIME_WITH_SYS_TIME
7077 #include <sys/time.h>
7078 #include <time.h>
7079 #else
7080 #ifdef HAVE_SYS_TIME_H
7081 #include <sys/time.h>
7082 #else
7083 #include <time.h>
7084 #endif
7085 #endif
7086 #ifdef HAVE_UTIME_H
7087 #include <utime.h>
7088 #endif
7089 int
7090 main ()
7091 {
7092 static struct utimbuf x; x.actime = x.modtime;
7093 ;
7094 return 0;
7095 }
7096 _ACEOF
7097 rm -f conftest.$ac_objext
7098 if { (ac_try="$ac_compile"
7099 case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102 esac
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7114 emacs_cv_struct_utimbuf=yes
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 emacs_cv_struct_utimbuf=no
7120 fi
7121
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 fi
7124 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7125 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7126 if test $emacs_cv_struct_utimbuf = yes; then
7127
7128 cat >>confdefs.h <<\_ACEOF
7129 #define HAVE_STRUCT_UTIMBUF 1
7130 _ACEOF
7131
7132 fi
7133
7134 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7135 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7136 if test "${ac_cv_type_signal+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 #include <sys/types.h>
7146 #include <signal.h>
7147
7148 int
7149 main ()
7150 {
7151 return *(signal (0, 0)) (0) == 1;
7152 ;
7153 return 0;
7154 }
7155 _ACEOF
7156 rm -f conftest.$ac_objext
7157 if { (ac_try="$ac_compile"
7158 case "(($ac_try" in
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7161 esac
7162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7163 (eval "$ac_compile") 2>conftest.er1
7164 ac_status=$?
7165 grep -v '^ *+' conftest.er1 >conftest.err
7166 rm -f conftest.er1
7167 cat conftest.err >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } && {
7170 test -z "$ac_c_werror_flag" ||
7171 test ! -s conftest.err
7172 } && test -s conftest.$ac_objext; then
7173 ac_cv_type_signal=int
7174 else
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7177
7178 ac_cv_type_signal=void
7179 fi
7180
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 fi
7183 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7184 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7185
7186 cat >>confdefs.h <<_ACEOF
7187 #define RETSIGTYPE $ac_cv_type_signal
7188 _ACEOF
7189
7190
7191
7192 { echo "$as_me:$LINENO: checking for speed_t" >&5
7193 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7194 if test "${emacs_cv_speed_t+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h. */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 #include <termios.h>
7204 int
7205 main ()
7206 {
7207 speed_t x = 1;
7208 ;
7209 return 0;
7210 }
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7214 case "(($ac_try" in
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7217 esac
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7220 ac_status=$?
7221 grep -v '^ *+' conftest.er1 >conftest.err
7222 rm -f conftest.er1
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7229 emacs_cv_speed_t=yes
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234 emacs_cv_speed_t=no
7235 fi
7236
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 fi
7239 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7240 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7241 if test $emacs_cv_speed_t = yes; then
7242
7243 cat >>confdefs.h <<\_ACEOF
7244 #define HAVE_SPEED_T 1
7245 _ACEOF
7246
7247 fi
7248
7249 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7250 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7251 if test "${emacs_cv_struct_timeval+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254 cat >conftest.$ac_ext <<_ACEOF
7255 /* confdefs.h. */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 #ifdef TIME_WITH_SYS_TIME
7261 #include <sys/time.h>
7262 #include <time.h>
7263 #else
7264 #ifdef HAVE_SYS_TIME_H
7265 #include <sys/time.h>
7266 #else
7267 #include <time.h>
7268 #endif
7269 #endif
7270 int
7271 main ()
7272 {
7273 static struct timeval x; x.tv_sec = x.tv_usec;
7274 ;
7275 return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest.$ac_objext
7279 if { (ac_try="$ac_compile"
7280 case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_compile") 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest.$ac_objext; then
7295 emacs_cv_struct_timeval=yes
7296 else
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 emacs_cv_struct_timeval=no
7301 fi
7302
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7304 fi
7305 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7306 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7307 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7308 if test $emacs_cv_struct_timeval = yes; then
7309
7310 cat >>confdefs.h <<\_ACEOF
7311 #define HAVE_TIMEVAL 1
7312 _ACEOF
7313
7314 fi
7315
7316 { echo "$as_me:$LINENO: checking for struct exception" >&5
7317 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7318 if test "${emacs_cv_struct_exception+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h. */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7327 #include <math.h>
7328 int
7329 main ()
7330 {
7331 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7332 ;
7333 return 0;
7334 }
7335 _ACEOF
7336 rm -f conftest.$ac_objext
7337 if { (ac_try="$ac_compile"
7338 case "(($ac_try" in
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7341 esac
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_compile") 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } && {
7350 test -z "$ac_c_werror_flag" ||
7351 test ! -s conftest.err
7352 } && test -s conftest.$ac_objext; then
7353 emacs_cv_struct_exception=yes
7354 else
7355 echo "$as_me: failed program was:" >&5
7356 sed 's/^/| /' conftest.$ac_ext >&5
7357
7358 emacs_cv_struct_exception=no
7359 fi
7360
7361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362 fi
7363 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7364 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7365 HAVE_EXCEPTION=$emacs_cv_struct_exception
7366 if test $emacs_cv_struct_exception != yes; then
7367
7368 cat >>confdefs.h <<\_ACEOF
7369 #define NO_MATHERR 1
7370 _ACEOF
7371
7372 fi
7373
7374
7375 for ac_header in sys/socket.h
7376 do
7377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 fi
7384 ac_res=`eval echo '${'$as_ac_Header'}'`
7385 { echo "$as_me:$LINENO: result: $ac_res" >&5
7386 echo "${ECHO_T}$ac_res" >&6; }
7387 else
7388 # Is the header compilable?
7389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7391 cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h. */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 $ac_includes_default
7398 #include <$ac_header>
7399 _ACEOF
7400 rm -f conftest.$ac_objext
7401 if { (ac_try="$ac_compile"
7402 case "(($ac_try" in
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7405 esac
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_compile") 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
7417 ac_header_compiler=yes
7418 else
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422 ac_header_compiler=no
7423 fi
7424
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7427 echo "${ECHO_T}$ac_header_compiler" >&6; }
7428
7429 # Is the header present?
7430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h. */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 #include <$ac_header>
7439 _ACEOF
7440 if { (ac_try="$ac_cpp conftest.$ac_ext"
7441 case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } >/dev/null && {
7453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7455 }; then
7456 ac_header_preproc=yes
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 ac_header_preproc=no
7462 fi
7463
7464 rm -f conftest.err conftest.$ac_ext
7465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7466 echo "${ECHO_T}$ac_header_preproc" >&6; }
7467
7468 # So? What about this header?
7469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7470 yes:no: )
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7475 ac_header_preproc=yes
7476 ;;
7477 no:yes:* )
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7490
7491 ;;
7492 esac
7493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498 eval "$as_ac_Header=\$ac_header_preproc"
7499 fi
7500 ac_res=`eval echo '${'$as_ac_Header'}'`
7501 { echo "$as_me:$LINENO: result: $ac_res" >&5
7502 echo "${ECHO_T}$ac_res" >&6; }
7503
7504 fi
7505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7506 cat >>confdefs.h <<_ACEOF
7507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7508 _ACEOF
7509
7510 fi
7511
7512 done
7513
7514
7515 for ac_header in net/if.h
7516 do
7517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 $ac_includes_default
7530 #if HAVE_SYS_SOCKET_H
7531 #include <sys/socket.h>
7532 #endif
7533
7534 #include <$ac_header>
7535 _ACEOF
7536 rm -f conftest.$ac_objext
7537 if { (ac_try="$ac_compile"
7538 case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541 esac
7542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 eval "$as_ac_Header=yes"
7554 else
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 eval "$as_ac_Header=no"
7559 fi
7560
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 fi
7563 ac_res=`eval echo '${'$as_ac_Header'}'`
7564 { echo "$as_me:$LINENO: result: $ac_res" >&5
7565 echo "${ECHO_T}$ac_res" >&6; }
7566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7567 cat >>confdefs.h <<_ACEOF
7568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7569 _ACEOF
7570
7571 fi
7572
7573 done
7574
7575
7576 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7577 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7578 if test "${ac_cv_struct_tm+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581 cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h. */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 #include <sys/types.h>
7588 #include <time.h>
7589
7590 int
7591 main ()
7592 {
7593 struct tm tm;
7594 int *p = &tm.tm_sec;
7595 return !p;
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 rm -f conftest.$ac_objext
7601 if { (ac_try="$ac_compile"
7602 case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7605 esac
7606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7607 (eval "$ac_compile") 2>conftest.er1
7608 ac_status=$?
7609 grep -v '^ *+' conftest.er1 >conftest.err
7610 rm -f conftest.er1
7611 cat conftest.err >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } && {
7614 test -z "$ac_c_werror_flag" ||
7615 test ! -s conftest.err
7616 } && test -s conftest.$ac_objext; then
7617 ac_cv_struct_tm=time.h
7618 else
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7621
7622 ac_cv_struct_tm=sys/time.h
7623 fi
7624
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626 fi
7627 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7628 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7629 if test $ac_cv_struct_tm = sys/time.h; then
7630
7631 cat >>confdefs.h <<\_ACEOF
7632 #define TM_IN_SYS_TIME 1
7633 _ACEOF
7634
7635 fi
7636
7637 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7638 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7639 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 #include <sys/types.h>
7649 #include <$ac_cv_struct_tm>
7650
7651
7652 int
7653 main ()
7654 {
7655 static struct tm ac_aggr;
7656 if (ac_aggr.tm_zone)
7657 return 0;
7658 ;
7659 return 0;
7660 }
7661 _ACEOF
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7664 case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667 esac
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7670 ac_status=$?
7671 grep -v '^ *+' conftest.er1 >conftest.err
7672 rm -f conftest.er1
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 ac_cv_member_struct_tm_tm_zone=yes
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h. */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 #include <sys/types.h>
7691 #include <$ac_cv_struct_tm>
7692
7693
7694 int
7695 main ()
7696 {
7697 static struct tm ac_aggr;
7698 if (sizeof ac_aggr.tm_zone)
7699 return 0;
7700 ;
7701 return 0;
7702 }
7703 _ACEOF
7704 rm -f conftest.$ac_objext
7705 if { (ac_try="$ac_compile"
7706 case "(($ac_try" in
7707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7708 *) ac_try_echo=$ac_try;;
7709 esac
7710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7711 (eval "$ac_compile") 2>conftest.er1
7712 ac_status=$?
7713 grep -v '^ *+' conftest.er1 >conftest.err
7714 rm -f conftest.er1
7715 cat conftest.err >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } && {
7718 test -z "$ac_c_werror_flag" ||
7719 test ! -s conftest.err
7720 } && test -s conftest.$ac_objext; then
7721 ac_cv_member_struct_tm_tm_zone=yes
7722 else
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7725
7726 ac_cv_member_struct_tm_tm_zone=no
7727 fi
7728
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730 fi
7731
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 fi
7734 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7735 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7736 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7737
7738 cat >>confdefs.h <<_ACEOF
7739 #define HAVE_STRUCT_TM_TM_ZONE 1
7740 _ACEOF
7741
7742
7743 fi
7744
7745 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7746
7747 cat >>confdefs.h <<\_ACEOF
7748 #define HAVE_TM_ZONE 1
7749 _ACEOF
7750
7751 else
7752 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7753 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7754 if test "${ac_cv_have_decl_tzname+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757 cat >conftest.$ac_ext <<_ACEOF
7758 /* confdefs.h. */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7763 #include <time.h>
7764
7765 int
7766 main ()
7767 {
7768 #ifndef tzname
7769 (void) tzname;
7770 #endif
7771
7772 ;
7773 return 0;
7774 }
7775 _ACEOF
7776 rm -f conftest.$ac_objext
7777 if { (ac_try="$ac_compile"
7778 case "(($ac_try" in
7779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7780 *) ac_try_echo=$ac_try;;
7781 esac
7782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7783 (eval "$ac_compile") 2>conftest.er1
7784 ac_status=$?
7785 grep -v '^ *+' conftest.er1 >conftest.err
7786 rm -f conftest.er1
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } && {
7790 test -z "$ac_c_werror_flag" ||
7791 test ! -s conftest.err
7792 } && test -s conftest.$ac_objext; then
7793 ac_cv_have_decl_tzname=yes
7794 else
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7797
7798 ac_cv_have_decl_tzname=no
7799 fi
7800
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 fi
7803 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7804 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7805 if test $ac_cv_have_decl_tzname = yes; then
7806
7807 cat >>confdefs.h <<_ACEOF
7808 #define HAVE_DECL_TZNAME 1
7809 _ACEOF
7810
7811
7812 else
7813 cat >>confdefs.h <<_ACEOF
7814 #define HAVE_DECL_TZNAME 0
7815 _ACEOF
7816
7817
7818 fi
7819
7820
7821 { echo "$as_me:$LINENO: checking for tzname" >&5
7822 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7823 if test "${ac_cv_var_tzname+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h. */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 #include <time.h>
7833 #if !HAVE_DECL_TZNAME
7834 extern char *tzname[];
7835 #endif
7836
7837 int
7838 main ()
7839 {
7840 return tzname[0][0];
7841 ;
7842 return 0;
7843 }
7844 _ACEOF
7845 rm -f conftest.$ac_objext conftest$ac_exeext
7846 if { (ac_try="$ac_link"
7847 case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_link") 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest$ac_exeext &&
7862 $as_test_x conftest$ac_exeext; then
7863 ac_cv_var_tzname=yes
7864 else
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7867
7868 ac_cv_var_tzname=no
7869 fi
7870
7871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7872 conftest$ac_exeext conftest.$ac_ext
7873 fi
7874 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7875 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7876 if test $ac_cv_var_tzname = yes; then
7877
7878 cat >>confdefs.h <<\_ACEOF
7879 #define HAVE_TZNAME 1
7880 _ACEOF
7881
7882 fi
7883 fi
7884
7885 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7886 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7887 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890 cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h. */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 #include <time.h>
7897
7898 int
7899 main ()
7900 {
7901 static struct tm ac_aggr;
7902 if (ac_aggr.tm_gmtoff)
7903 return 0;
7904 ;
7905 return 0;
7906 }
7907 _ACEOF
7908 rm -f conftest.$ac_objext
7909 if { (ac_try="$ac_compile"
7910 case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913 esac
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 ac_cv_member_struct_tm_tm_gmtoff=yes
7926 else
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7929
7930 cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h. */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7936 #include <time.h>
7937
7938 int
7939 main ()
7940 {
7941 static struct tm ac_aggr;
7942 if (sizeof ac_aggr.tm_gmtoff)
7943 return 0;
7944 ;
7945 return 0;
7946 }
7947 _ACEOF
7948 rm -f conftest.$ac_objext
7949 if { (ac_try="$ac_compile"
7950 case "(($ac_try" in
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7953 esac
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.$ac_objext; then
7965 ac_cv_member_struct_tm_tm_gmtoff=yes
7966 else
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970 ac_cv_member_struct_tm_tm_gmtoff=no
7971 fi
7972
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 fi
7975
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 fi
7978 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7979 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7980 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7981
7982 cat >>confdefs.h <<\_ACEOF
7983 #define HAVE_TM_GMTOFF 1
7984 _ACEOF
7985
7986 fi
7987
7988 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7989 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7990 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h. */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 $ac_includes_default
8000 #if HAVE_SYS_SOCKET_H
8001 #include <sys/socket.h>
8002 #endif
8003 #if HAVE_NET_IF_H
8004 #include <net/if.h>
8005 #endif
8006
8007 int
8008 main ()
8009 {
8010 static struct ifreq ac_aggr;
8011 if (ac_aggr.ifr_flags)
8012 return 0;
8013 ;
8014 return 0;
8015 }
8016 _ACEOF
8017 rm -f conftest.$ac_objext
8018 if { (ac_try="$ac_compile"
8019 case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8022 esac
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_compile") 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest.$ac_objext; then
8034 ac_cv_member_struct_ifreq_ifr_flags=yes
8035 else
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8038
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h. */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 $ac_includes_default
8046 #if HAVE_SYS_SOCKET_H
8047 #include <sys/socket.h>
8048 #endif
8049 #if HAVE_NET_IF_H
8050 #include <net/if.h>
8051 #endif
8052
8053 int
8054 main ()
8055 {
8056 static struct ifreq ac_aggr;
8057 if (sizeof ac_aggr.ifr_flags)
8058 return 0;
8059 ;
8060 return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8065 case "(($ac_try" in
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8068 esac
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_cv_member_struct_ifreq_ifr_flags=yes
8081 else
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085 ac_cv_member_struct_ifreq_ifr_flags=no
8086 fi
8087
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 fi
8090
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 fi
8093 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8094 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8095 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8096
8097 cat >>confdefs.h <<_ACEOF
8098 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8099 _ACEOF
8100
8101
8102 fi
8103 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8104 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8105 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108 cat >conftest.$ac_ext <<_ACEOF
8109 /* confdefs.h. */
8110 _ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8114 $ac_includes_default
8115 #if HAVE_SYS_SOCKET_H
8116 #include <sys/socket.h>
8117 #endif
8118 #if HAVE_NET_IF_H
8119 #include <net/if.h>
8120 #endif
8121
8122 int
8123 main ()
8124 {
8125 static struct ifreq ac_aggr;
8126 if (ac_aggr.ifr_hwaddr)
8127 return 0;
8128 ;
8129 return 0;
8130 }
8131 _ACEOF
8132 rm -f conftest.$ac_objext
8133 if { (ac_try="$ac_compile"
8134 case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8137 esac
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_compile") 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest.$ac_objext; then
8149 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8150 else
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 $ac_includes_default
8161 #if HAVE_SYS_SOCKET_H
8162 #include <sys/socket.h>
8163 #endif
8164 #if HAVE_NET_IF_H
8165 #include <net/if.h>
8166 #endif
8167
8168 int
8169 main ()
8170 {
8171 static struct ifreq ac_aggr;
8172 if (sizeof ac_aggr.ifr_hwaddr)
8173 return 0;
8174 ;
8175 return 0;
8176 }
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (ac_try="$ac_compile"
8180 case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183 esac
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_compile") 2>conftest.er1
8186 ac_status=$?
8187 grep -v '^ *+' conftest.er1 >conftest.err
8188 rm -f conftest.er1
8189 cat conftest.err >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } && {
8192 test -z "$ac_c_werror_flag" ||
8193 test ! -s conftest.err
8194 } && test -s conftest.$ac_objext; then
8195 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8196 else
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8199
8200 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8201 fi
8202
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 fi
8205
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 fi
8208 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8209 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8210 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8211
8212 cat >>confdefs.h <<_ACEOF
8213 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8214 _ACEOF
8215
8216
8217 fi
8218 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8219 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8220 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 $ac_includes_default
8230 #if HAVE_SYS_SOCKET_H
8231 #include <sys/socket.h>
8232 #endif
8233 #if HAVE_NET_IF_H
8234 #include <net/if.h>
8235 #endif
8236
8237 int
8238 main ()
8239 {
8240 static struct ifreq ac_aggr;
8241 if (ac_aggr.ifr_netmask)
8242 return 0;
8243 ;
8244 return 0;
8245 }
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8249 case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_compile") 2>conftest.er1
8255 ac_status=$?
8256 grep -v '^ *+' conftest.er1 >conftest.err
8257 rm -f conftest.er1
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
8263 } && test -s conftest.$ac_objext; then
8264 ac_cv_member_struct_ifreq_ifr_netmask=yes
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h. */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 $ac_includes_default
8276 #if HAVE_SYS_SOCKET_H
8277 #include <sys/socket.h>
8278 #endif
8279 #if HAVE_NET_IF_H
8280 #include <net/if.h>
8281 #endif
8282
8283 int
8284 main ()
8285 {
8286 static struct ifreq ac_aggr;
8287 if (sizeof ac_aggr.ifr_netmask)
8288 return 0;
8289 ;
8290 return 0;
8291 }
8292 _ACEOF
8293 rm -f conftest.$ac_objext
8294 if { (ac_try="$ac_compile"
8295 case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8298 esac
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8310 ac_cv_member_struct_ifreq_ifr_netmask=yes
8311 else
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 ac_cv_member_struct_ifreq_ifr_netmask=no
8316 fi
8317
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 fi
8320
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 fi
8323 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8324 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8325 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8326
8327 cat >>confdefs.h <<_ACEOF
8328 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8329 _ACEOF
8330
8331
8332 fi
8333 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8334 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8335 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 #if HAVE_SYS_SOCKET_H
8346 #include <sys/socket.h>
8347 #endif
8348 #if HAVE_NET_IF_H
8349 #include <net/if.h>
8350 #endif
8351
8352 int
8353 main ()
8354 {
8355 static struct ifreq ac_aggr;
8356 if (ac_aggr.ifr_broadaddr)
8357 return 0;
8358 ;
8359 return 0;
8360 }
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8364 case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_compile") 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && {
8376 test -z "$ac_c_werror_flag" ||
8377 test ! -s conftest.err
8378 } && test -s conftest.$ac_objext; then
8379 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8380 else
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8383
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h. */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 $ac_includes_default
8391 #if HAVE_SYS_SOCKET_H
8392 #include <sys/socket.h>
8393 #endif
8394 #if HAVE_NET_IF_H
8395 #include <net/if.h>
8396 #endif
8397
8398 int
8399 main ()
8400 {
8401 static struct ifreq ac_aggr;
8402 if (sizeof ac_aggr.ifr_broadaddr)
8403 return 0;
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 rm -f conftest.$ac_objext
8409 if { (ac_try="$ac_compile"
8410 case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8416 ac_status=$?
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.$ac_objext; then
8425 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8426 else
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8431 fi
8432
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 fi
8435
8436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437 fi
8438 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8439 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8440 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8441
8442 cat >>confdefs.h <<_ACEOF
8443 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8444 _ACEOF
8445
8446
8447 fi
8448 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8449 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8450 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8460 #if HAVE_SYS_SOCKET_H
8461 #include <sys/socket.h>
8462 #endif
8463 #if HAVE_NET_IF_H
8464 #include <net/if.h>
8465 #endif
8466
8467 int
8468 main ()
8469 {
8470 static struct ifreq ac_aggr;
8471 if (ac_aggr.ifr_addr)
8472 return 0;
8473 ;
8474 return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext
8478 if { (ac_try="$ac_compile"
8479 case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482 esac
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compile") 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest.$ac_objext; then
8494 ac_cv_member_struct_ifreq_ifr_addr=yes
8495 else
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8498
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h. */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505 $ac_includes_default
8506 #if HAVE_SYS_SOCKET_H
8507 #include <sys/socket.h>
8508 #endif
8509 #if HAVE_NET_IF_H
8510 #include <net/if.h>
8511 #endif
8512
8513 int
8514 main ()
8515 {
8516 static struct ifreq ac_aggr;
8517 if (sizeof ac_aggr.ifr_addr)
8518 return 0;
8519 ;
8520 return 0;
8521 }
8522 _ACEOF
8523 rm -f conftest.$ac_objext
8524 if { (ac_try="$ac_compile"
8525 case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528 esac
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_compile") 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_c_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest.$ac_objext; then
8540 ac_cv_member_struct_ifreq_ifr_addr=yes
8541 else
8542 echo "$as_me: failed program was:" >&5
8543 sed 's/^/| /' conftest.$ac_ext >&5
8544
8545 ac_cv_member_struct_ifreq_ifr_addr=no
8546 fi
8547
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 fi
8550
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 fi
8553 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8554 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8555 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8556
8557 cat >>confdefs.h <<_ACEOF
8558 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8559 _ACEOF
8560
8561
8562 fi
8563
8564
8565
8566 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8567 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8568 if test "$ac_cv_prog_cc_c89" != no; then
8569 { echo "$as_me:$LINENO: result: yes" >&5
8570 echo "${ECHO_T}yes" >&6; }
8571
8572 cat >>confdefs.h <<\_ACEOF
8573 #define PROTOTYPES 1
8574 _ACEOF
8575
8576
8577 cat >>confdefs.h <<\_ACEOF
8578 #define __PROTOTYPES 1
8579 _ACEOF
8580
8581 else
8582 { echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6; }
8584 fi
8585
8586 { echo "$as_me:$LINENO: checking for working volatile" >&5
8587 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8588 if test "${ac_cv_c_volatile+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h. */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597
8598 int
8599 main ()
8600 {
8601
8602 volatile int x;
8603 int * volatile y = (int *) 0;
8604 return !x && !y;
8605 ;
8606 return 0;
8607 }
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8611 case "(($ac_try" in
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8626 ac_cv_c_volatile=yes
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8630
8631 ac_cv_c_volatile=no
8632 fi
8633
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 fi
8636 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8637 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8638 if test $ac_cv_c_volatile = no; then
8639
8640 cat >>confdefs.h <<\_ACEOF
8641 #define volatile
8642 _ACEOF
8643
8644 fi
8645
8646 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8647 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8648 if test "${ac_cv_c_const+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657
8658 int
8659 main ()
8660 {
8661 /* FIXME: Include the comments suggested by Paul. */
8662 #ifndef __cplusplus
8663 /* Ultrix mips cc rejects this. */
8664 typedef int charset[2];
8665 const charset cs;
8666 /* SunOS 4.1.1 cc rejects this. */
8667 char const *const *pcpcc;
8668 char **ppc;
8669 /* NEC SVR4.0.2 mips cc rejects this. */
8670 struct point {int x, y;};
8671 static struct point const zero = {0,0};
8672 /* AIX XL C 1.02.0.0 rejects this.
8673 It does not let you subtract one const X* pointer from another in
8674 an arm of an if-expression whose if-part is not a constant
8675 expression */
8676 const char *g = "string";
8677 pcpcc = &g + (g ? g-g : 0);
8678 /* HPUX 7.0 cc rejects these. */
8679 ++pcpcc;
8680 ppc = (char**) pcpcc;
8681 pcpcc = (char const *const *) ppc;
8682 { /* SCO 3.2v4 cc rejects this. */
8683 char *t;
8684 char const *s = 0 ? (char *) 0 : (char const *) 0;
8685
8686 *t++ = 0;
8687 if (s) return 0;
8688 }
8689 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8690 int x[] = {25, 17};
8691 const int *foo = &x[0];
8692 ++foo;
8693 }
8694 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8695 typedef const int *iptr;
8696 iptr p = 0;
8697 ++p;
8698 }
8699 { /* AIX XL C 1.02.0.0 rejects this saying
8700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8701 struct s { int j; const int *ap[3]; };
8702 struct s *b; b->j = 5;
8703 }
8704 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8705 const int foo = 10;
8706 if (!foo) return 0;
8707 }
8708 return !cs[0] && !zero.x;
8709 #endif
8710
8711 ;
8712 return 0;
8713 }
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8717 case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720 esac
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && {
8729 test -z "$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8731 } && test -s conftest.$ac_objext; then
8732 ac_cv_c_const=yes
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 ac_cv_c_const=no
8738 fi
8739
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 fi
8742 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8743 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8744 if test $ac_cv_c_const = no; then
8745
8746 cat >>confdefs.h <<\_ACEOF
8747 #define const
8748 _ACEOF
8749
8750 fi
8751
8752 { echo "$as_me:$LINENO: checking for void * support" >&5
8753 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8754 if test "${emacs_cv_void_star+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757 cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h. */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8763
8764 int
8765 main ()
8766 {
8767 void * foo;
8768 ;
8769 return 0;
8770 }
8771 _ACEOF
8772 rm -f conftest.$ac_objext
8773 if { (ac_try="$ac_compile"
8774 case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8780 ac_status=$?
8781 grep -v '^ *+' conftest.er1 >conftest.err
8782 rm -f conftest.er1
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8789 emacs_cv_void_star=yes
8790 else
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794 emacs_cv_void_star=no
8795 fi
8796
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 fi
8799 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8800 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8801 if test $emacs_cv_void_star = yes; then
8802 cat >>confdefs.h <<\_ACEOF
8803 #define POINTER_TYPE void
8804 _ACEOF
8805
8806 else
8807 cat >>confdefs.h <<\_ACEOF
8808 #define POINTER_TYPE char
8809 _ACEOF
8810
8811 fi
8812
8813
8814
8815
8816
8817 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8819 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8820 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823 cat >conftest.make <<\_ACEOF
8824 SHELL = /bin/sh
8825 all:
8826 @echo '@@@%%%=$(MAKE)=@@@%%%'
8827 _ACEOF
8828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8830 *@@@%%%=?*=@@@%%%*)
8831 eval ac_cv_prog_make_${ac_make}_set=yes;;
8832 *)
8833 eval ac_cv_prog_make_${ac_make}_set=no;;
8834 esac
8835 rm -f conftest.make
8836 fi
8837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8838 { echo "$as_me:$LINENO: result: yes" >&5
8839 echo "${ECHO_T}yes" >&6; }
8840 SET_MAKE=
8841 else
8842 { echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6; }
8844 SET_MAKE="MAKE=${MAKE-make}"
8845 fi
8846
8847
8848 { echo "$as_me:$LINENO: checking for long file names" >&5
8849 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8850 if test "${ac_cv_sys_long_file_names+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 ac_cv_sys_long_file_names=yes
8854 # Test for long file names in all the places we know might matter:
8855 # . the current directory, where building will happen
8856 # $prefix/lib where we will be installing things
8857 # $exec_prefix/lib likewise
8858 # $TMPDIR if set, where it might want to write temporary files
8859 # /tmp where it might want to write temporary files
8860 # /var/tmp likewise
8861 # /usr/tmp likewise
8862 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8863 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8864 # in the usual case where exec_prefix is '${prefix}'.
8865 case $ac_dir in #(
8866 . | /* | ?:[\\/]*) ;; #(
8867 *) continue;;
8868 esac
8869 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8870 ac_xdir=$ac_dir/cf$$
8871 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8872 ac_tf1=$ac_xdir/conftest9012345
8873 ac_tf2=$ac_xdir/conftest9012346
8874 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8875 ac_cv_sys_long_file_names=no
8876 rm -f -r "$ac_xdir" 2>/dev/null
8877 test $ac_cv_sys_long_file_names = no && break
8878 done
8879 fi
8880 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8881 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8882 if test $ac_cv_sys_long_file_names = yes; then
8883
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_LONG_FILE_NAMES 1
8886 _ACEOF
8887
8888 fi
8889
8890
8891 #### Choose a window system.
8892
8893 { echo "$as_me:$LINENO: checking for X" >&5
8894 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8895
8896
8897 # Check whether --with-x was given.
8898 if test "${with_x+set}" = set; then
8899 withval=$with_x;
8900 fi
8901
8902 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8903 if test "x$with_x" = xno; then
8904 # The user explicitly disabled X.
8905 have_x=disabled
8906 else
8907 case $x_includes,$x_libraries in #(
8908 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8909 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8910 { (exit 1); exit 1; }; };; #(
8911 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8914 # One or both of the vars are not set, and there is no cached value.
8915 ac_x_includes=no ac_x_libraries=no
8916 rm -f -r conftest.dir
8917 if mkdir conftest.dir; then
8918 cd conftest.dir
8919 cat >Imakefile <<'_ACEOF'
8920 incroot:
8921 @echo incroot='${INCROOT}'
8922 usrlibdir:
8923 @echo usrlibdir='${USRLIBDIR}'
8924 libdir:
8925 @echo libdir='${LIBDIR}'
8926 _ACEOF
8927 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8929 for ac_var in incroot usrlibdir libdir; do
8930 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8931 done
8932 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8933 for ac_extension in a so sl; do
8934 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8935 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8936 ac_im_usrlibdir=$ac_im_libdir; break
8937 fi
8938 done
8939 # Screen out bogus values from the imake configuration. They are
8940 # bogus both because they are the default anyway, and because
8941 # using them would break gcc on systems where it needs fixed includes.
8942 case $ac_im_incroot in
8943 /usr/include) ac_x_includes= ;;
8944 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8945 esac
8946 case $ac_im_usrlibdir in
8947 /usr/lib | /lib) ;;
8948 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8949 esac
8950 fi
8951 cd ..
8952 rm -f -r conftest.dir
8953 fi
8954
8955 # Standard set of common directories for X headers.
8956 # Check X11 before X11Rn because it is often a symlink to the current release.
8957 ac_x_header_dirs='
8958 /usr/X11/include
8959 /usr/X11R6/include
8960 /usr/X11R5/include
8961 /usr/X11R4/include
8962
8963 /usr/include/X11
8964 /usr/include/X11R6
8965 /usr/include/X11R5
8966 /usr/include/X11R4
8967
8968 /usr/local/X11/include
8969 /usr/local/X11R6/include
8970 /usr/local/X11R5/include
8971 /usr/local/X11R4/include
8972
8973 /usr/local/include/X11
8974 /usr/local/include/X11R6
8975 /usr/local/include/X11R5
8976 /usr/local/include/X11R4
8977
8978 /usr/X386/include
8979 /usr/x386/include
8980 /usr/XFree86/include/X11
8981
8982 /usr/include
8983 /usr/local/include
8984 /usr/unsupported/include
8985 /usr/athena/include
8986 /usr/local/x11r5/include
8987 /usr/lpp/Xamples/include
8988
8989 /usr/openwin/include
8990 /usr/openwin/share/include'
8991
8992 if test "$ac_x_includes" = no; then
8993 # Guess where to find include files, by looking for Xlib.h.
8994 # First, try using that file with no special directory specified.
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h. */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 #include <X11/Xlib.h>
9002 _ACEOF
9003 if { (ac_try="$ac_cpp conftest.$ac_ext"
9004 case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007 esac
9008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9010 ac_status=$?
9011 grep -v '^ *+' conftest.er1 >conftest.err
9012 rm -f conftest.er1
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } >/dev/null && {
9016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9017 test ! -s conftest.err
9018 }; then
9019 # We can compile using X headers with no special include directory.
9020 ac_x_includes=
9021 else
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025 for ac_dir in $ac_x_header_dirs; do
9026 if test -r "$ac_dir/X11/Xlib.h"; then
9027 ac_x_includes=$ac_dir
9028 break
9029 fi
9030 done
9031 fi
9032
9033 rm -f conftest.err conftest.$ac_ext
9034 fi # $ac_x_includes = no
9035
9036 if test "$ac_x_libraries" = no; then
9037 # Check for the libraries.
9038 # See if we find them without any special options.
9039 # Don't add to $LIBS permanently.
9040 ac_save_LIBS=$LIBS
9041 LIBS="-lX11 $LIBS"
9042 cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h. */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 #include <X11/Xlib.h>
9049 int
9050 main ()
9051 {
9052 XrmInitialize ()
9053 ;
9054 return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (ac_try="$ac_link"
9059 case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9062 esac
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_link") 2>conftest.er1
9065 ac_status=$?
9066 grep -v '^ *+' conftest.er1 >conftest.err
9067 rm -f conftest.er1
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } && {
9071 test -z "$ac_c_werror_flag" ||
9072 test ! -s conftest.err
9073 } && test -s conftest$ac_exeext &&
9074 $as_test_x conftest$ac_exeext; then
9075 LIBS=$ac_save_LIBS
9076 # We can link X programs with no special library path.
9077 ac_x_libraries=
9078 else
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 LIBS=$ac_save_LIBS
9083 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9084 do
9085 # Don't even attempt the hair of trying to link an X program!
9086 for ac_extension in a so sl; do
9087 if test -r "$ac_dir/libX11.$ac_extension"; then
9088 ac_x_libraries=$ac_dir
9089 break 2
9090 fi
9091 done
9092 done
9093 fi
9094
9095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9096 conftest$ac_exeext conftest.$ac_ext
9097 fi # $ac_x_libraries = no
9098
9099 case $ac_x_includes,$ac_x_libraries in #(
9100 no,* | *,no | *\'*)
9101 # Didn't find X, or a directory has "'" in its name.
9102 ac_cv_have_x="have_x=no";; #(
9103 *)
9104 # Record where we found X for the cache.
9105 ac_cv_have_x="have_x=yes\
9106 ac_x_includes='$ac_x_includes'\
9107 ac_x_libraries='$ac_x_libraries'"
9108 esac
9109 fi
9110 ;; #(
9111 *) have_x=yes;;
9112 esac
9113 eval "$ac_cv_have_x"
9114 fi # $with_x != no
9115
9116 if test "$have_x" != yes; then
9117 { echo "$as_me:$LINENO: result: $have_x" >&5
9118 echo "${ECHO_T}$have_x" >&6; }
9119 no_x=yes
9120 else
9121 # If each of the values was on the command line, it overrides each guess.
9122 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9123 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9124 # Update the cache value to reflect the command line values.
9125 ac_cv_have_x="have_x=yes\
9126 ac_x_includes='$x_includes'\
9127 ac_x_libraries='$x_libraries'"
9128 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9129 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9130 fi
9131
9132 if test "$no_x" = yes; then
9133 window_system=none
9134 else
9135 window_system=x11
9136 fi
9137
9138 ## Workaround for bug in autoconf <= 2.62.
9139 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9140 ## No need to do anything special for these standard directories.
9141 ## This is an experiment, take it out if it causes problems.
9142 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9143
9144 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9145
9146 fi
9147
9148 if test "${x_libraries}" != NONE; then
9149 if test -n "${x_libraries}"; then
9150 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9151 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9152 fi
9153 x_default_search_path=""
9154 x_search_path=${x_libraries}
9155 if test -z "${x_search_path}"; then
9156 x_search_path=/usr/lib
9157 fi
9158 for x_library in `echo ${x_search_path}: | \
9159 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9160 x_search_path="\
9161 ${x_library}/X11/%L/%T/%N%C%S:\
9162 ${x_library}/X11/%l/%T/%N%C%S:\
9163 ${x_library}/X11/%T/%N%C%S:\
9164 ${x_library}/X11/%L/%T/%N%S:\
9165 ${x_library}/X11/%l/%T/%N%S:\
9166 ${x_library}/X11/%T/%N%S"
9167 if test x"${x_default_search_path}" = x; then
9168 x_default_search_path=${x_search_path}
9169 else
9170 x_default_search_path="${x_search_path}:${x_default_search_path}"
9171 fi
9172 done
9173 fi
9174 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9175 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9176 fi
9177
9178 if test x"${x_includes}" = x; then
9179 bitmapdir=/usr/include/X11/bitmaps
9180 else
9181 # accumulate include directories that have X11 bitmap subdirectories
9182 bmd_acc="dummyval"
9183 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9184 if test -d "${bmd}/X11/bitmaps"; then
9185 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9186 fi
9187 if test -d "${bmd}/bitmaps"; then
9188 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9189 fi
9190 done
9191 if test ${bmd_acc} != "dummyval"; then
9192 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9193 fi
9194 fi
9195
9196 HAVE_CARBON=no
9197 if test "${with_carbon}" != no; then
9198 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9199 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9200 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9201 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 fi
9204 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9205 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9206 else
9207 # Is the header compilable?
9208 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9209 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h. */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 $ac_includes_default
9217 #include <Carbon/Carbon.h>
9218 _ACEOF
9219 rm -f conftest.$ac_objext
9220 if { (ac_try="$ac_compile"
9221 case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9224 esac
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_compile") 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest.$ac_objext; then
9236 ac_header_compiler=yes
9237 else
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9240
9241 ac_header_compiler=no
9242 fi
9243
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9246 echo "${ECHO_T}$ac_header_compiler" >&6; }
9247
9248 # Is the header present?
9249 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9250 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 #include <Carbon/Carbon.h>
9258 _ACEOF
9259 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
9272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 }; then
9275 ac_header_preproc=yes
9276 else
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 ac_header_preproc=no
9281 fi
9282
9283 rm -f conftest.err conftest.$ac_ext
9284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285 echo "${ECHO_T}$ac_header_preproc" >&6; }
9286
9287 # So? What about this header?
9288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9289 yes:no: )
9290 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9291 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9293 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9294 ac_header_preproc=yes
9295 ;;
9296 no:yes:* )
9297 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9298 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9300 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9302 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9304 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9306 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9308 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9309
9310 ;;
9311 esac
9312 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9313 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9314 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 else
9317 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9318 fi
9319 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9320 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9321
9322 fi
9323 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9324 HAVE_CARBON=yes
9325 fi
9326
9327
9328 test "${HAVE_CARBON}" = yes && window_system=mac
9329 fi
9330
9331 HAVE_NS=no
9332 NS_IMPL_COCOA=no
9333 NS_IMPL_GNUSTEP=no
9334 tmp_CPPFLAGS="$CPPFLAGS"
9335 tmp_CFLAGS="$CFLAGS"
9336 CPPFLAGS="$CPPFLAGS -x objective-c"
9337 CFLAGS="$CFLAGS -x objective-c"
9338 if test "${with_ns}" != no; then
9339 if test "${opsys}" = darwin; then
9340 NS_IMPL_COCOA=yes
9341 ns_appdir=`pwd`/nextstep/Emacs.app
9342 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9343 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9344 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9345 elif test -f /etc/GNUstep/GNUstep.conf; then
9346 NS_IMPL_GNUSTEP=yes
9347 ns_appdir=`pwd`/nextstep/Emacs.app
9348 ns_appbindir=`pwd`/nextstep/Emacs.app
9349 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9350 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9351 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9352 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9353 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9354 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9355 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9356 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9357 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9358 fi
9359 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9360 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9361 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9362 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 fi
9365 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9366 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9367 else
9368 # Is the header compilable?
9369 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9370 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9371 cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h. */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 $ac_includes_default
9378 #include <AppKit/AppKit.h>
9379 _ACEOF
9380 rm -f conftest.$ac_objext
9381 if { (ac_try="$ac_compile"
9382 case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest.$ac_objext; then
9397 ac_header_compiler=yes
9398 else
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9401
9402 ac_header_compiler=no
9403 fi
9404
9405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407 echo "${ECHO_T}$ac_header_compiler" >&6; }
9408
9409 # Is the header present?
9410 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9411 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9412 cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h. */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 #include <AppKit/AppKit.h>
9419 _ACEOF
9420 if { (ac_try="$ac_cpp conftest.$ac_ext"
9421 case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424 esac
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } >/dev/null && {
9433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 }; then
9436 ac_header_preproc=yes
9437 else
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9440
9441 ac_header_preproc=no
9442 fi
9443
9444 rm -f conftest.err conftest.$ac_ext
9445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9446 echo "${ECHO_T}$ac_header_preproc" >&6; }
9447
9448 # So? What about this header?
9449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9450 yes:no: )
9451 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9452 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9454 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9455 ac_header_preproc=yes
9456 ;;
9457 no:yes:* )
9458 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9459 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9461 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9463 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9465 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9467 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9469 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9470
9471 ;;
9472 esac
9473 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9474 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9475 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9479 fi
9480 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9481 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9482
9483 fi
9484 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9485 HAVE_NS=yes
9486 fi
9487
9488
9489 fi
9490 if test "${HAVE_NS}" = yes; then
9491 test "${window_system}" = mac && HAVE_CARBON=no
9492 window_system=nextstep
9493 with_xft=no
9494 with_freetype=no
9495 # set up packaging dirs
9496 exec_prefix=${ns_appbindir}
9497 libexecdir=${ns_appbindir}/libexec
9498 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9499 prefix=${ns_appresdir}
9500 fi
9501 fi
9502 CFLAGS="$tmp_CFLAGS"
9503 CPPFLAGS="$tmp_CPPFLAGS"
9504
9505 case "${window_system}" in
9506 x11 )
9507 HAVE_X_WINDOWS=yes
9508 HAVE_X11=yes
9509 case "${with_x_toolkit}" in
9510 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9511 motif ) USE_X_TOOLKIT=MOTIF ;;
9512 gtk ) with_gtk=yes
9513 USE_X_TOOLKIT=none ;;
9514 no ) USE_X_TOOLKIT=none ;;
9515 * ) USE_X_TOOLKIT=maybe ;;
9516 esac
9517 ;;
9518 nextstep | mac | none )
9519 HAVE_X_WINDOWS=no
9520 HAVE_X11=no
9521 USE_X_TOOLKIT=none
9522 ;;
9523 esac
9524
9525 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9526 # Extract the first word of "X", so it can be a program name with args.
9527 set dummy X; ac_word=$2
9528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9530 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533 if test -n "$HAVE_XSERVER"; then
9534 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9535 else
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9538 do
9539 IFS=$as_save_IFS
9540 test -z "$as_dir" && as_dir=.
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9543 ac_cv_prog_HAVE_XSERVER="true"
9544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9545 break 2
9546 fi
9547 done
9548 done
9549 IFS=$as_save_IFS
9550
9551 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9552 fi
9553 fi
9554 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9555 if test -n "$HAVE_XSERVER"; then
9556 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9557 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9558 else
9559 { echo "$as_me:$LINENO: result: no" >&5
9560 echo "${ECHO_T}no" >&6; }
9561 fi
9562
9563
9564 if test "$HAVE_XSERVER" = true ||
9565 test -n "$DISPLAY" ||
9566 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9567 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9568 were found. You should install the relevant development files for X
9569 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9570 sure you have development files for image handling, i.e.
9571 tiff, gif, jpeg, png and xpm.
9572 If you are sure you want Emacs compiled without X window support, pass
9573 --without-x
9574 to configure." >&5
9575 echo "$as_me: error: You seem to be running X, but no X development libraries
9576 were found. You should install the relevant development files for X
9577 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9578 sure you have development files for image handling, i.e.
9579 tiff, gif, jpeg, png and xpm.
9580 If you are sure you want Emacs compiled without X window support, pass
9581 --without-x
9582 to configure." >&2;}
9583 { (exit 1); exit 1; }; }
9584 fi
9585 fi
9586
9587 ### If we're using X11, we should use the X menu package.
9588 HAVE_MENUS=no
9589 case ${HAVE_X11} in
9590 yes ) HAVE_MENUS=yes ;;
9591 esac
9592
9593 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9594 # Assume not, until told otherwise.
9595 GNU_MALLOC=yes
9596 doug_lea_malloc=yes
9597 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9598 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9599 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 else
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h. */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9610 #define malloc_get_state innocuous_malloc_get_state
9611
9612 /* System header to define __stub macros and hopefully few prototypes,
9613 which can conflict with char malloc_get_state (); below.
9614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9615 <limits.h> exists even on freestanding compilers. */
9616
9617 #ifdef __STDC__
9618 # include <limits.h>
9619 #else
9620 # include <assert.h>
9621 #endif
9622
9623 #undef malloc_get_state
9624
9625 /* Override any GCC internal prototype to avoid an error.
9626 Use char because int might match the return type of a GCC
9627 builtin and then its argument prototype would still apply. */
9628 #ifdef __cplusplus
9629 extern "C"
9630 #endif
9631 char malloc_get_state ();
9632 /* The GNU C library defines this for functions which it implements
9633 to always fail with ENOSYS. Some functions are actually named
9634 something starting with __ and the normal name is an alias. */
9635 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9636 choke me
9637 #endif
9638
9639 int
9640 main ()
9641 {
9642 return malloc_get_state ();
9643 ;
9644 return 0;
9645 }
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9649 case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652 esac
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext &&
9664 $as_test_x conftest$ac_exeext; then
9665 ac_cv_func_malloc_get_state=yes
9666 else
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670 ac_cv_func_malloc_get_state=no
9671 fi
9672
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674 conftest$ac_exeext conftest.$ac_ext
9675 fi
9676 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9677 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9678 if test $ac_cv_func_malloc_get_state = yes; then
9679 :
9680 else
9681 doug_lea_malloc=no
9682 fi
9683
9684 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9685 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9686 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h. */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9697 #define malloc_set_state innocuous_malloc_set_state
9698
9699 /* System header to define __stub macros and hopefully few prototypes,
9700 which can conflict with char malloc_set_state (); below.
9701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702 <limits.h> exists even on freestanding compilers. */
9703
9704 #ifdef __STDC__
9705 # include <limits.h>
9706 #else
9707 # include <assert.h>
9708 #endif
9709
9710 #undef malloc_set_state
9711
9712 /* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 char malloc_set_state ();
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9723 choke me
9724 #endif
9725
9726 int
9727 main ()
9728 {
9729 return malloc_set_state ();
9730 ;
9731 return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9736 case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext &&
9751 $as_test_x conftest$ac_exeext; then
9752 ac_cv_func_malloc_set_state=yes
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_cv_func_malloc_set_state=no
9758 fi
9759
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9762 fi
9763 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9764 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9765 if test $ac_cv_func_malloc_set_state = yes; then
9766 :
9767 else
9768 doug_lea_malloc=no
9769 fi
9770
9771 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9772 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9773 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h. */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 extern void (* __after_morecore_hook)();
9783 int
9784 main ()
9785 {
9786 __after_morecore_hook = 0
9787 ;
9788 return 0;
9789 }
9790 _ACEOF
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (ac_try="$ac_link"
9793 case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_link") 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_c_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest$ac_exeext &&
9808 $as_test_x conftest$ac_exeext; then
9809 emacs_cv_var___after_morecore_hook=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 emacs_cv_var___after_morecore_hook=no
9815 fi
9816
9817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9818 conftest$ac_exeext conftest.$ac_ext
9819 fi
9820 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9821 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9822 if test $emacs_cv_var___after_morecore_hook = no; then
9823 doug_lea_malloc=no
9824 fi
9825 if test "${system_malloc}" = "yes"; then
9826 GNU_MALLOC=no
9827 GNU_MALLOC_reason="
9828 (The GNU allocators don't work with this system configuration.)"
9829 fi
9830 if test "$doug_lea_malloc" = "yes" ; then
9831 if test "$GNU_MALLOC" = yes ; then
9832 GNU_MALLOC_reason="
9833 (Using Doug Lea's new malloc from the GNU C Library.)"
9834 fi
9835
9836 cat >>confdefs.h <<\_ACEOF
9837 #define DOUG_LEA_MALLOC 1
9838 _ACEOF
9839
9840 fi
9841
9842 if test x"${REL_ALLOC}" = x; then
9843 REL_ALLOC=${GNU_MALLOC}
9844 fi
9845
9846
9847
9848
9849 for ac_header in stdlib.h unistd.h
9850 do
9851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 fi
9858 ac_res=`eval echo '${'$as_ac_Header'}'`
9859 { echo "$as_me:$LINENO: result: $ac_res" >&5
9860 echo "${ECHO_T}$ac_res" >&6; }
9861 else
9862 # Is the header compilable?
9863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h. */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9871 $ac_includes_default
9872 #include <$ac_header>
9873 _ACEOF
9874 rm -f conftest.$ac_objext
9875 if { (ac_try="$ac_compile"
9876 case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_compile") 2>conftest.er1
9882 ac_status=$?
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } && {
9888 test -z "$ac_c_werror_flag" ||
9889 test ! -s conftest.err
9890 } && test -s conftest.$ac_objext; then
9891 ac_header_compiler=yes
9892 else
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9895
9896 ac_header_compiler=no
9897 fi
9898
9899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9901 echo "${ECHO_T}$ac_header_compiler" >&6; }
9902
9903 # Is the header present?
9904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 #include <$ac_header>
9913 _ACEOF
9914 if { (ac_try="$ac_cpp conftest.$ac_ext"
9915 case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } >/dev/null && {
9927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9928 test ! -s conftest.err
9929 }; then
9930 ac_header_preproc=yes
9931 else
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9934
9935 ac_header_preproc=no
9936 fi
9937
9938 rm -f conftest.err conftest.$ac_ext
9939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9940 echo "${ECHO_T}$ac_header_preproc" >&6; }
9941
9942 # So? What about this header?
9943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9944 yes:no: )
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9949 ac_header_preproc=yes
9950 ;;
9951 no:yes:* )
9952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9964
9965 ;;
9966 esac
9967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972 eval "$as_ac_Header=\$ac_header_preproc"
9973 fi
9974 ac_res=`eval echo '${'$as_ac_Header'}'`
9975 { echo "$as_me:$LINENO: result: $ac_res" >&5
9976 echo "${ECHO_T}$ac_res" >&6; }
9977
9978 fi
9979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9980 cat >>confdefs.h <<_ACEOF
9981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9982 _ACEOF
9983
9984 fi
9985
9986 done
9987
9988
9989 for ac_func in getpagesize
9990 do
9991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997 cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10005 #define $ac_func innocuous_$ac_func
10006
10007 /* System header to define __stub macros and hopefully few prototypes,
10008 which can conflict with char $ac_func (); below.
10009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010 <limits.h> exists even on freestanding compilers. */
10011
10012 #ifdef __STDC__
10013 # include <limits.h>
10014 #else
10015 # include <assert.h>
10016 #endif
10017
10018 #undef $ac_func
10019
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 char $ac_func ();
10027 /* The GNU C library defines this for functions which it implements
10028 to always fail with ENOSYS. Some functions are actually named
10029 something starting with __ and the normal name is an alias. */
10030 #if defined __stub_$ac_func || defined __stub___$ac_func
10031 choke me
10032 #endif
10033
10034 int
10035 main ()
10036 {
10037 return $ac_func ();
10038 ;
10039 return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest$ac_exeext &&
10059 $as_test_x conftest$ac_exeext; then
10060 eval "$as_ac_var=yes"
10061 else
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 eval "$as_ac_var=no"
10066 fi
10067
10068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10069 conftest$ac_exeext conftest.$ac_ext
10070 fi
10071 ac_res=`eval echo '${'$as_ac_var'}'`
10072 { echo "$as_me:$LINENO: result: $ac_res" >&5
10073 echo "${ECHO_T}$ac_res" >&6; }
10074 if test `eval echo '${'$as_ac_var'}'` = yes; then
10075 cat >>confdefs.h <<_ACEOF
10076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10077 _ACEOF
10078
10079 fi
10080 done
10081
10082 { echo "$as_me:$LINENO: checking for working mmap" >&5
10083 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10084 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087 if test "$cross_compiling" = yes; then
10088 ac_cv_func_mmap_fixed_mapped=no
10089 else
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h. */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 $ac_includes_default
10097 /* malloc might have been renamed as rpl_malloc. */
10098 #undef malloc
10099
10100 /* Thanks to Mike Haertel and Jim Avera for this test.
10101 Here is a matrix of mmap possibilities:
10102 mmap private not fixed
10103 mmap private fixed at somewhere currently unmapped
10104 mmap private fixed at somewhere already mapped
10105 mmap shared not fixed
10106 mmap shared fixed at somewhere currently unmapped
10107 mmap shared fixed at somewhere already mapped
10108 For private mappings, we should verify that changes cannot be read()
10109 back from the file, nor mmap's back from the file at a different
10110 address. (There have been systems where private was not correctly
10111 implemented like the infamous i386 svr4.0, and systems where the
10112 VM page cache was not coherent with the file system buffer cache
10113 like early versions of FreeBSD and possibly contemporary NetBSD.)
10114 For shared mappings, we should conversely verify that changes get
10115 propagated back to all the places they're supposed to be.
10116
10117 Grep wants private fixed already mapped.
10118 The main things grep needs to know about mmap are:
10119 * does it exist and is it safe to write into the mmap'd area
10120 * how to use it (BSD variants) */
10121
10122 #include <fcntl.h>
10123 #include <sys/mman.h>
10124
10125 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10126 char *malloc ();
10127 #endif
10128
10129 /* This mess was copied from the GNU getpagesize.h. */
10130 #ifndef HAVE_GETPAGESIZE
10131 /* Assume that all systems that can run configure have sys/param.h. */
10132 # ifndef HAVE_SYS_PARAM_H
10133 # define HAVE_SYS_PARAM_H 1
10134 # endif
10135
10136 # ifdef _SC_PAGESIZE
10137 # define getpagesize() sysconf(_SC_PAGESIZE)
10138 # else /* no _SC_PAGESIZE */
10139 # ifdef HAVE_SYS_PARAM_H
10140 # include <sys/param.h>
10141 # ifdef EXEC_PAGESIZE
10142 # define getpagesize() EXEC_PAGESIZE
10143 # else /* no EXEC_PAGESIZE */
10144 # ifdef NBPG
10145 # define getpagesize() NBPG * CLSIZE
10146 # ifndef CLSIZE
10147 # define CLSIZE 1
10148 # endif /* no CLSIZE */
10149 # else /* no NBPG */
10150 # ifdef NBPC
10151 # define getpagesize() NBPC
10152 # else /* no NBPC */
10153 # ifdef PAGESIZE
10154 # define getpagesize() PAGESIZE
10155 # endif /* PAGESIZE */
10156 # endif /* no NBPC */
10157 # endif /* no NBPG */
10158 # endif /* no EXEC_PAGESIZE */
10159 # else /* no HAVE_SYS_PARAM_H */
10160 # define getpagesize() 8192 /* punt totally */
10161 # endif /* no HAVE_SYS_PARAM_H */
10162 # endif /* no _SC_PAGESIZE */
10163
10164 #endif /* no HAVE_GETPAGESIZE */
10165
10166 int
10167 main ()
10168 {
10169 char *data, *data2, *data3;
10170 int i, pagesize;
10171 int fd;
10172
10173 pagesize = getpagesize ();
10174
10175 /* First, make a file with some known garbage in it. */
10176 data = (char *) malloc (pagesize);
10177 if (!data)
10178 return 1;
10179 for (i = 0; i < pagesize; ++i)
10180 *(data + i) = rand ();
10181 umask (0);
10182 fd = creat ("conftest.mmap", 0600);
10183 if (fd < 0)
10184 return 1;
10185 if (write (fd, data, pagesize) != pagesize)
10186 return 1;
10187 close (fd);
10188
10189 /* Next, try to mmap the file at a fixed address which already has
10190 something else allocated at it. If we can, also make sure that
10191 we see the same garbage. */
10192 fd = open ("conftest.mmap", O_RDWR);
10193 if (fd < 0)
10194 return 1;
10195 data2 = (char *) malloc (2 * pagesize);
10196 if (!data2)
10197 return 1;
10198 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10199 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10200 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10201 return 1;
10202 for (i = 0; i < pagesize; ++i)
10203 if (*(data + i) != *(data2 + i))
10204 return 1;
10205
10206 /* Finally, make sure that changes to the mapped area do not
10207 percolate back to the file as seen by read(). (This is a bug on
10208 some variants of i386 svr4.0.) */
10209 for (i = 0; i < pagesize; ++i)
10210 *(data2 + i) = *(data2 + i) + 1;
10211 data3 = (char *) malloc (pagesize);
10212 if (!data3)
10213 return 1;
10214 if (read (fd, data3, pagesize) != pagesize)
10215 return 1;
10216 for (i = 0; i < pagesize; ++i)
10217 if (*(data + i) != *(data3 + i))
10218 return 1;
10219 close (fd);
10220 return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 ac_cv_func_mmap_fixed_mapped=yes
10244 else
10245 echo "$as_me: program exited with status $ac_status" >&5
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 ( exit $ac_status )
10250 ac_cv_func_mmap_fixed_mapped=no
10251 fi
10252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10253 fi
10254
10255
10256 fi
10257 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10258 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10259 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10260
10261 cat >>confdefs.h <<\_ACEOF
10262 #define HAVE_MMAP 1
10263 _ACEOF
10264
10265 fi
10266 rm -f conftest.mmap
10267
10268 if test $use_mmap_for_buffers = yes; then
10269 REL_ALLOC=no
10270 fi
10271
10272 LIBS="$libsrc_libs $LIBS"
10273
10274
10275 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10276 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10277 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 ac_check_lib_save_LIBS=$LIBS
10281 LIBS="-ldnet $LIBS"
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288
10289 /* Override any GCC internal prototype to avoid an error.
10290 Use char because int might match the return type of a GCC
10291 builtin and then its argument prototype would still apply. */
10292 #ifdef __cplusplus
10293 extern "C"
10294 #endif
10295 char dnet_ntoa ();
10296 int
10297 main ()
10298 {
10299 return dnet_ntoa ();
10300 ;
10301 return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (ac_try="$ac_link"
10306 case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309 esac
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_link") 2>conftest.er1
10312 ac_status=$?
10313 grep -v '^ *+' conftest.er1 >conftest.err
10314 rm -f conftest.er1
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest$ac_exeext &&
10321 $as_test_x conftest$ac_exeext; then
10322 ac_cv_lib_dnet_dnet_ntoa=yes
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10326
10327 ac_cv_lib_dnet_dnet_ntoa=no
10328 fi
10329
10330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10331 conftest$ac_exeext conftest.$ac_ext
10332 LIBS=$ac_check_lib_save_LIBS
10333 fi
10334 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10335 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10336 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10337 cat >>confdefs.h <<_ACEOF
10338 #define HAVE_LIBDNET 1
10339 _ACEOF
10340
10341 LIBS="-ldnet $LIBS"
10342
10343 fi
10344
10345
10346 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10347 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10348 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 ac_check_lib_save_LIBS=$LIBS
10352 LIBS="-lXbsd $LIBS"
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359
10360
10361 int
10362 main ()
10363 {
10364 return main ();
10365 ;
10366 return 0;
10367 }
10368 _ACEOF
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (ac_try="$ac_link"
10371 case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10374 esac
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_link") 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && {
10383 test -z "$ac_c_werror_flag" ||
10384 test ! -s conftest.err
10385 } && test -s conftest$ac_exeext &&
10386 $as_test_x conftest$ac_exeext; then
10387 ac_cv_lib_Xbsd_main=yes
10388 else
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10391
10392 ac_cv_lib_Xbsd_main=no
10393 fi
10394
10395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10396 conftest$ac_exeext conftest.$ac_ext
10397 LIBS=$ac_check_lib_save_LIBS
10398 fi
10399 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10400 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10401 if test $ac_cv_lib_Xbsd_main = yes; then
10402 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10403 fi
10404
10405
10406
10407 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10408 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10409 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412 ac_check_lib_save_LIBS=$LIBS
10413 LIBS="-lpthreads $LIBS"
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h. */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420
10421 /* Override any GCC internal prototype to avoid an error.
10422 Use char because int might match the return type of a GCC
10423 builtin and then its argument prototype would still apply. */
10424 #ifdef __cplusplus
10425 extern "C"
10426 #endif
10427 char cma_open ();
10428 int
10429 main ()
10430 {
10431 return cma_open ();
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 ac_cv_lib_pthreads_cma_open=yes
10455 else
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10458
10459 ac_cv_lib_pthreads_cma_open=no
10460 fi
10461
10462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10463 conftest$ac_exeext conftest.$ac_ext
10464 LIBS=$ac_check_lib_save_LIBS
10465 fi
10466 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10467 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10468 if test $ac_cv_lib_pthreads_cma_open = yes; then
10469 cat >>confdefs.h <<_ACEOF
10470 #define HAVE_LIBPTHREADS 1
10471 _ACEOF
10472
10473 LIBS="-lpthreads $LIBS"
10474
10475 fi
10476
10477
10478
10479 case ${host_os} in
10480 aix*)
10481 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10482 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10483 if test "${gdb_cv_bigtoc+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486
10487 case $GCC in
10488 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10489 *) gdb_cv_bigtoc=-bbigtoc ;;
10490 esac
10491
10492 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10493 cat >conftest.$ac_ext <<_ACEOF
10494 /* confdefs.h. */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499
10500 int
10501 main ()
10502 {
10503 int i;
10504 ;
10505 return 0;
10506 }
10507 _ACEOF
10508 rm -f conftest.$ac_objext conftest$ac_exeext
10509 if { (ac_try="$ac_link"
10510 case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10513 esac
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_link") 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest$ac_exeext &&
10525 $as_test_x conftest$ac_exeext; then
10526 :
10527 else
10528 echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10530
10531 gdb_cv_bigtoc=
10532 fi
10533
10534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10535 conftest$ac_exeext conftest.$ac_ext
10536
10537 fi
10538 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10539 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10540 ;;
10541 esac
10542
10543 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10544 # used for the tests that follow. We set them back to REAL_CFLAGS and
10545 # REAL_CPPFLAGS later on.
10546
10547 REAL_CPPFLAGS="$CPPFLAGS"
10548
10549 if test "${HAVE_X11}" = "yes"; then
10550 DEFS="$C_SWITCH_X_SITE $DEFS"
10551 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10552 LIBS="$LIBX $LIBS"
10553 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10554 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10555
10556 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10557 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10558 # but it's more convenient here to set LD_RUN_PATH
10559 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10560 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10561 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10562 export LD_RUN_PATH
10563 fi
10564
10565 if test "${opsys}" = "gnu-linux"; then
10566 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10567 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10568 cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h. */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574
10575 int
10576 main ()
10577 {
10578 XOpenDisplay ("foo");
10579 ;
10580 return 0;
10581 }
10582 _ACEOF
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (ac_try="$ac_link"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588 esac
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_link") 2>conftest.er1
10591 ac_status=$?
10592 grep -v '^ *+' conftest.er1 >conftest.err
10593 rm -f conftest.er1
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && {
10597 test -z "$ac_c_werror_flag" ||
10598 test ! -s conftest.err
10599 } && test -s conftest$ac_exeext &&
10600 $as_test_x conftest$ac_exeext; then
10601 xlinux_first_failure=no
10602 else
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10605
10606 xlinux_first_failure=yes
10607 fi
10608
10609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10610 conftest$ac_exeext conftest.$ac_ext
10611 if test "${xlinux_first_failure}" = "yes"; then
10612 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10613 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10614 OLD_CPPFLAGS="$CPPFLAGS"
10615 OLD_LIBS="$LIBS"
10616 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10617 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10618 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10619 LIBS="$LIBS -b i486-linuxaout"
10620 cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h. */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10626
10627 int
10628 main ()
10629 {
10630 XOpenDisplay ("foo");
10631 ;
10632 return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (ac_try="$ac_link"
10637 case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640 esac
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_link") 2>conftest.er1
10643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } && {
10649 test -z "$ac_c_werror_flag" ||
10650 test ! -s conftest.err
10651 } && test -s conftest$ac_exeext &&
10652 $as_test_x conftest$ac_exeext; then
10653 xlinux_second_failure=no
10654 else
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10657
10658 xlinux_second_failure=yes
10659 fi
10660
10661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10662 conftest$ac_exeext conftest.$ac_ext
10663 if test "${xlinux_second_failure}" = "yes"; then
10664 # If we get the same failure with -b, there is no use adding -b.
10665 # So take it out. This plays safe.
10666 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10667 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10668 CPPFLAGS="$OLD_CPPFLAGS"
10669 LIBS="$OLD_LIBS"
10670 { echo "$as_me:$LINENO: result: no" >&5
10671 echo "${ECHO_T}no" >&6; }
10672 else
10673 { echo "$as_me:$LINENO: result: yes" >&5
10674 echo "${ECHO_T}yes" >&6; }
10675 fi
10676 else
10677 { echo "$as_me:$LINENO: result: no" >&5
10678 echo "${ECHO_T}no" >&6; }
10679 fi
10680 fi
10681
10682 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10683 # header files included from there.
10684 { echo "$as_me:$LINENO: checking for Xkb" >&5
10685 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h. */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #include <X11/Xlib.h>
10693 #include <X11/XKBlib.h>
10694 int
10695 main ()
10696 {
10697 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10698 ;
10699 return 0;
10700 }
10701 _ACEOF
10702 rm -f conftest.$ac_objext conftest$ac_exeext
10703 if { (ac_try="$ac_link"
10704 case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707 esac
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_link") 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } && {
10716 test -z "$ac_c_werror_flag" ||
10717 test ! -s conftest.err
10718 } && test -s conftest$ac_exeext &&
10719 $as_test_x conftest$ac_exeext; then
10720 emacs_xkb=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725 emacs_xkb=no
10726 fi
10727
10728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10729 conftest$ac_exeext conftest.$ac_ext
10730 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10731 echo "${ECHO_T}$emacs_xkb" >&6; }
10732 if test $emacs_xkb = yes; then
10733
10734 cat >>confdefs.h <<\_ACEOF
10735 #define HAVE_XKBGETKEYBOARD 1
10736 _ACEOF
10737
10738 fi
10739
10740
10741
10742
10743
10744 for ac_func in XrmSetDatabase XScreenResourceString \
10745 XScreenNumberOfScreen XSetWMProtocols
10746 do
10747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h. */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10761 #define $ac_func innocuous_$ac_func
10762
10763 /* System header to define __stub macros and hopefully few prototypes,
10764 which can conflict with char $ac_func (); below.
10765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10766 <limits.h> exists even on freestanding compilers. */
10767
10768 #ifdef __STDC__
10769 # include <limits.h>
10770 #else
10771 # include <assert.h>
10772 #endif
10773
10774 #undef $ac_func
10775
10776 /* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
10779 #ifdef __cplusplus
10780 extern "C"
10781 #endif
10782 char $ac_func ();
10783 /* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786 #if defined __stub_$ac_func || defined __stub___$ac_func
10787 choke me
10788 #endif
10789
10790 int
10791 main ()
10792 {
10793 return $ac_func ();
10794 ;
10795 return 0;
10796 }
10797 _ACEOF
10798 rm -f conftest.$ac_objext conftest$ac_exeext
10799 if { (ac_try="$ac_link"
10800 case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10803 esac
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_link") 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } && {
10812 test -z "$ac_c_werror_flag" ||
10813 test ! -s conftest.err
10814 } && test -s conftest$ac_exeext &&
10815 $as_test_x conftest$ac_exeext; then
10816 eval "$as_ac_var=yes"
10817 else
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10820
10821 eval "$as_ac_var=no"
10822 fi
10823
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825 conftest$ac_exeext conftest.$ac_ext
10826 fi
10827 ac_res=`eval echo '${'$as_ac_var'}'`
10828 { echo "$as_me:$LINENO: result: $ac_res" >&5
10829 echo "${ECHO_T}$ac_res" >&6; }
10830 if test `eval echo '${'$as_ac_var'}'` = yes; then
10831 cat >>confdefs.h <<_ACEOF
10832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10833 _ACEOF
10834
10835 fi
10836 done
10837
10838 fi
10839
10840 if test "${window_system}" = "x11"; then
10841 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10842 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10843 if test "${emacs_cv_x11_version_6+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h. */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 #include <X11/Xlib.h>
10853 int
10854 main ()
10855 {
10856 #if XlibSpecificationRelease < 6
10857 fail;
10858 #endif
10859
10860 ;
10861 return 0;
10862 }
10863 _ACEOF
10864 rm -f conftest.$ac_objext conftest$ac_exeext
10865 if { (ac_try="$ac_link"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_link") 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest$ac_exeext &&
10881 $as_test_x conftest$ac_exeext; then
10882 emacs_cv_x11_version_6=yes
10883 else
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10886
10887 emacs_cv_x11_version_6=no
10888 fi
10889
10890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10891 conftest$ac_exeext conftest.$ac_ext
10892 fi
10893
10894 if test $emacs_cv_x11_version_6 = yes; then
10895 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10896 echo "${ECHO_T}6 or newer" >&6; }
10897
10898 cat >>confdefs.h <<\_ACEOF
10899 #define HAVE_X11R6 1
10900 _ACEOF
10901
10902 else
10903 { echo "$as_me:$LINENO: result: before 6" >&5
10904 echo "${ECHO_T}before 6" >&6; }
10905 fi
10906 fi
10907
10908
10909 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10910 HAVE_RSVG=no
10911 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10912 if test "${with_rsvg}" != "no"; then
10913 RSVG_REQUIRED=2.0.0
10914 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10915
10916
10917 succeeded=no
10918
10919 # Extract the first word of "pkg-config", so it can be a program name with args.
10920 set dummy pkg-config; ac_word=$2
10921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10923 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926 case $PKG_CONFIG in
10927 [\\/]* | ?:[\\/]*)
10928 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10929 ;;
10930 *)
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10933 do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10941 fi
10942 done
10943 done
10944 IFS=$as_save_IFS
10945
10946 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10947 ;;
10948 esac
10949 fi
10950 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10951 if test -n "$PKG_CONFIG"; then
10952 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10953 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10954 else
10955 { echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6; }
10957 fi
10958
10959
10960
10961 if test "$PKG_CONFIG" = "no" ; then
10962 :
10963 else
10964 PKG_CONFIG_MIN_VERSION=0.9.0
10965 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10966 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10967 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10968
10969 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10970 { echo "$as_me:$LINENO: result: yes" >&5
10971 echo "${ECHO_T}yes" >&6; }
10972 succeeded=yes
10973
10974 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10975 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10976 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10977 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10978 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10979
10980 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10981 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10982 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10983 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10984 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10985 else
10986 { echo "$as_me:$LINENO: result: no" >&5
10987 echo "${ECHO_T}no" >&6; }
10988 RSVG_CFLAGS=""
10989 RSVG_LIBS=""
10990 ## If we have a custom action on failure, don't print errors, but
10991 ## do set a variable so people can do so.
10992 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10993
10994 fi
10995
10996
10997
10998 else
10999 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11000 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11001 fi
11002 fi
11003
11004 if test $succeeded = yes; then
11005 :
11006 else
11007 :
11008 fi
11009
11010
11011
11012
11013 if test ".${RSVG_CFLAGS}" != "."; then
11014 HAVE_RSVG=yes
11015
11016 cat >>confdefs.h <<\_ACEOF
11017 #define HAVE_RSVG 1
11018 _ACEOF
11019
11020 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11021 LIBS="$RSVG_LIBS $LIBS"
11022 fi
11023 fi
11024 fi
11025
11026
11027 HAVE_GTK=no
11028 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11029 GLIB_REQUIRED=2.6
11030 GTK_REQUIRED=2.6
11031 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11032
11033
11034 succeeded=no
11035
11036 # Extract the first word of "pkg-config", so it can be a program name with args.
11037 set dummy pkg-config; ac_word=$2
11038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11040 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 else
11043 case $PKG_CONFIG in
11044 [\\/]* | ?:[\\/]*)
11045 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11046 ;;
11047 *)
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11050 do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11055 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11058 fi
11059 done
11060 done
11061 IFS=$as_save_IFS
11062
11063 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11064 ;;
11065 esac
11066 fi
11067 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11068 if test -n "$PKG_CONFIG"; then
11069 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11070 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11071 else
11072 { echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6; }
11074 fi
11075
11076
11077
11078 if test "$PKG_CONFIG" = "no" ; then
11079 pkg_check_gtk=no
11080 else
11081 PKG_CONFIG_MIN_VERSION=0.9.0
11082 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11083 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11084 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11085
11086 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11087 { echo "$as_me:$LINENO: result: yes" >&5
11088 echo "${ECHO_T}yes" >&6; }
11089 succeeded=yes
11090
11091 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11092 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11093 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11094 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11095 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11096
11097 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11098 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11099 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11100 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11101 echo "${ECHO_T}$GTK_LIBS" >&6; }
11102 else
11103 { echo "$as_me:$LINENO: result: no" >&5
11104 echo "${ECHO_T}no" >&6; }
11105 GTK_CFLAGS=""
11106 GTK_LIBS=""
11107 ## If we have a custom action on failure, don't print errors, but
11108 ## do set a variable so people can do so.
11109 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11110
11111 fi
11112
11113
11114
11115 else
11116 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11117 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11118 fi
11119 fi
11120
11121 if test $succeeded = yes; then
11122 pkg_check_gtk=yes
11123 else
11124 pkg_check_gtk=no
11125 fi
11126
11127 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11128 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11129 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11130 { (exit 1); exit 1; }; }
11131 fi
11132 fi
11133
11134
11135 if test x"$pkg_check_gtk" = xyes; then
11136
11137
11138
11139 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11140 CFLAGS="$CFLAGS $GTK_CFLAGS"
11141 LIBS="$GTK_LIBS $LIBS"
11142 GTK_COMPILES=no
11143
11144 for ac_func in gtk_main
11145 do
11146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152 cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h. */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11160 #define $ac_func innocuous_$ac_func
11161
11162 /* System header to define __stub macros and hopefully few prototypes,
11163 which can conflict with char $ac_func (); below.
11164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11165 <limits.h> exists even on freestanding compilers. */
11166
11167 #ifdef __STDC__
11168 # include <limits.h>
11169 #else
11170 # include <assert.h>
11171 #endif
11172
11173 #undef $ac_func
11174
11175 /* Override any GCC internal prototype to avoid an error.
11176 Use char because int might match the return type of a GCC
11177 builtin and then its argument prototype would still apply. */
11178 #ifdef __cplusplus
11179 extern "C"
11180 #endif
11181 char $ac_func ();
11182 /* The GNU C library defines this for functions which it implements
11183 to always fail with ENOSYS. Some functions are actually named
11184 something starting with __ and the normal name is an alias. */
11185 #if defined __stub_$ac_func || defined __stub___$ac_func
11186 choke me
11187 #endif
11188
11189 int
11190 main ()
11191 {
11192 return $ac_func ();
11193 ;
11194 return 0;
11195 }
11196 _ACEOF
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198 if { (ac_try="$ac_link"
11199 case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202 esac
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_link") 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && {
11211 test -z "$ac_c_werror_flag" ||
11212 test ! -s conftest.err
11213 } && test -s conftest$ac_exeext &&
11214 $as_test_x conftest$ac_exeext; then
11215 eval "$as_ac_var=yes"
11216 else
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11219
11220 eval "$as_ac_var=no"
11221 fi
11222
11223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11224 conftest$ac_exeext conftest.$ac_ext
11225 fi
11226 ac_res=`eval echo '${'$as_ac_var'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11229 if test `eval echo '${'$as_ac_var'}'` = yes; then
11230 cat >>confdefs.h <<_ACEOF
11231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232 _ACEOF
11233 GTK_COMPILES=yes
11234 fi
11235 done
11236
11237 if test "${GTK_COMPILES}" != "yes"; then
11238 if test "$USE_X_TOOLKIT" != "maybe"; then
11239 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11240 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11241 { (exit 1); exit 1; }; };
11242 fi
11243 else
11244 HAVE_GTK=yes
11245
11246 cat >>confdefs.h <<\_ACEOF
11247 #define USE_GTK 1
11248 _ACEOF
11249
11250 USE_X_TOOLKIT=none
11251 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11252 :
11253 else
11254 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11255 closing open displays. This is no problem if you just use
11256 one display, but if you use more than one and close one of them
11257 Emacs may crash." >&5
11258 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11259 closing open displays. This is no problem if you just use
11260 one display, but if you use more than one and close one of them
11261 Emacs may crash." >&2;}
11262 sleep 3
11263 fi
11264 fi
11265
11266 fi
11267
11268
11269 if test "${HAVE_GTK}" = "yes"; then
11270
11271 if test "$with_toolkit_scroll_bars" != no; then
11272 with_toolkit_scroll_bars=yes
11273 fi
11274
11275 HAVE_GTK_MULTIDISPLAY=no
11276
11277 for ac_func in gdk_display_open
11278 do
11279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11293 #define $ac_func innocuous_$ac_func
11294
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func (); below.
11297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298 <limits.h> exists even on freestanding compilers. */
11299
11300 #ifdef __STDC__
11301 # include <limits.h>
11302 #else
11303 # include <assert.h>
11304 #endif
11305
11306 #undef $ac_func
11307
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char $ac_func ();
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined __stub_$ac_func || defined __stub___$ac_func
11319 choke me
11320 #endif
11321
11322 int
11323 main ()
11324 {
11325 return $ac_func ();
11326 ;
11327 return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest$ac_exeext &&
11347 $as_test_x conftest$ac_exeext; then
11348 eval "$as_ac_var=yes"
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11352
11353 eval "$as_ac_var=no"
11354 fi
11355
11356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11357 conftest$ac_exeext conftest.$ac_ext
11358 fi
11359 ac_res=`eval echo '${'$as_ac_var'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11362 if test `eval echo '${'$as_ac_var'}'` = yes; then
11363 cat >>confdefs.h <<_ACEOF
11364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11365 _ACEOF
11366 HAVE_GTK_MULTIDISPLAY=yes
11367 fi
11368 done
11369
11370 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11371
11372 cat >>confdefs.h <<\_ACEOF
11373 #define HAVE_GTK_MULTIDISPLAY 1
11374 _ACEOF
11375
11376 fi
11377
11378 HAVE_GTK_FILE_SELECTION=no
11379
11380 for ac_func in gtk_file_selection_new
11381 do
11382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11396 #define $ac_func innocuous_$ac_func
11397
11398 /* System header to define __stub macros and hopefully few prototypes,
11399 which can conflict with char $ac_func (); below.
11400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11401 <limits.h> exists even on freestanding compilers. */
11402
11403 #ifdef __STDC__
11404 # include <limits.h>
11405 #else
11406 # include <assert.h>
11407 #endif
11408
11409 #undef $ac_func
11410
11411 /* Override any GCC internal prototype to avoid an error.
11412 Use char because int might match the return type of a GCC
11413 builtin and then its argument prototype would still apply. */
11414 #ifdef __cplusplus
11415 extern "C"
11416 #endif
11417 char $ac_func ();
11418 /* The GNU C library defines this for functions which it implements
11419 to always fail with ENOSYS. Some functions are actually named
11420 something starting with __ and the normal name is an alias. */
11421 #if defined __stub_$ac_func || defined __stub___$ac_func
11422 choke me
11423 #endif
11424
11425 int
11426 main ()
11427 {
11428 return $ac_func ();
11429 ;
11430 return 0;
11431 }
11432 _ACEOF
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (ac_try="$ac_link"
11435 case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11438 esac
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_link") 2>conftest.er1
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && {
11447 test -z "$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11449 } && test -s conftest$ac_exeext &&
11450 $as_test_x conftest$ac_exeext; then
11451 eval "$as_ac_var=yes"
11452 else
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 eval "$as_ac_var=no"
11457 fi
11458
11459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11460 conftest$ac_exeext conftest.$ac_ext
11461 fi
11462 ac_res=`eval echo '${'$as_ac_var'}'`
11463 { echo "$as_me:$LINENO: result: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11465 if test `eval echo '${'$as_ac_var'}'` = yes; then
11466 cat >>confdefs.h <<_ACEOF
11467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11468 _ACEOF
11469 HAVE_GTK_FILE_SELECTION=yes
11470 fi
11471 done
11472
11473
11474 HAVE_GTK_FILE_CHOOSER=no
11475
11476 for ac_func in gtk_file_chooser_dialog_new
11477 do
11478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h. */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11492 #define $ac_func innocuous_$ac_func
11493
11494 /* System header to define __stub macros and hopefully few prototypes,
11495 which can conflict with char $ac_func (); below.
11496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11497 <limits.h> exists even on freestanding compilers. */
11498
11499 #ifdef __STDC__
11500 # include <limits.h>
11501 #else
11502 # include <assert.h>
11503 #endif
11504
11505 #undef $ac_func
11506
11507 /* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11510 #ifdef __cplusplus
11511 extern "C"
11512 #endif
11513 char $ac_func ();
11514 /* The GNU C library defines this for functions which it implements
11515 to always fail with ENOSYS. Some functions are actually named
11516 something starting with __ and the normal name is an alias. */
11517 #if defined __stub_$ac_func || defined __stub___$ac_func
11518 choke me
11519 #endif
11520
11521 int
11522 main ()
11523 {
11524 return $ac_func ();
11525 ;
11526 return 0;
11527 }
11528 _ACEOF
11529 rm -f conftest.$ac_objext conftest$ac_exeext
11530 if { (ac_try="$ac_link"
11531 case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11534 esac
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_link") 2>conftest.er1
11537 ac_status=$?
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } && {
11543 test -z "$ac_c_werror_flag" ||
11544 test ! -s conftest.err
11545 } && test -s conftest$ac_exeext &&
11546 $as_test_x conftest$ac_exeext; then
11547 eval "$as_ac_var=yes"
11548 else
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11551
11552 eval "$as_ac_var=no"
11553 fi
11554
11555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11556 conftest$ac_exeext conftest.$ac_ext
11557 fi
11558 ac_res=`eval echo '${'$as_ac_var'}'`
11559 { echo "$as_me:$LINENO: result: $ac_res" >&5
11560 echo "${ECHO_T}$ac_res" >&6; }
11561 if test `eval echo '${'$as_ac_var'}'` = yes; then
11562 cat >>confdefs.h <<_ACEOF
11563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11564 _ACEOF
11565 HAVE_GTK_FILE_CHOOSER=yes
11566 fi
11567 done
11568
11569
11570 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11571 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11572
11573 cat >>confdefs.h <<\_ACEOF
11574 #define HAVE_GTK_FILE_BOTH 1
11575 _ACEOF
11576
11577 fi
11578
11579 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11580 HAVE_GTK_AND_PTHREAD=no
11581
11582 for ac_header in pthread.h
11583 do
11584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 fi
11591 ac_res=`eval echo '${'$as_ac_Header'}'`
11592 { echo "$as_me:$LINENO: result: $ac_res" >&5
11593 echo "${ECHO_T}$ac_res" >&6; }
11594 else
11595 # Is the header compilable?
11596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11605 #include <$ac_header>
11606 _ACEOF
11607 rm -f conftest.$ac_objext
11608 if { (ac_try="$ac_compile"
11609 case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612 esac
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_compile") 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } && {
11621 test -z "$ac_c_werror_flag" ||
11622 test ! -s conftest.err
11623 } && test -s conftest.$ac_objext; then
11624 ac_header_compiler=yes
11625 else
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11628
11629 ac_header_compiler=no
11630 fi
11631
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11634 echo "${ECHO_T}$ac_header_compiler" >&6; }
11635
11636 # Is the header present?
11637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 #include <$ac_header>
11646 _ACEOF
11647 if { (ac_try="$ac_cpp conftest.$ac_ext"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651 esac
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } >/dev/null && {
11660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11661 test ! -s conftest.err
11662 }; then
11663 ac_header_preproc=yes
11664 else
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 ac_header_preproc=no
11669 fi
11670
11671 rm -f conftest.err conftest.$ac_ext
11672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11673 echo "${ECHO_T}$ac_header_preproc" >&6; }
11674
11675 # So? What about this header?
11676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11677 yes:no: )
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11682 ac_header_preproc=yes
11683 ;;
11684 no:yes:* )
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11697
11698 ;;
11699 esac
11700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 else
11705 eval "$as_ac_Header=\$ac_header_preproc"
11706 fi
11707 ac_res=`eval echo '${'$as_ac_Header'}'`
11708 { echo "$as_me:$LINENO: result: $ac_res" >&5
11709 echo "${ECHO_T}$ac_res" >&6; }
11710
11711 fi
11712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11713 cat >>confdefs.h <<_ACEOF
11714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11715 _ACEOF
11716
11717 fi
11718
11719 done
11720
11721 if test "$ac_cv_header_pthread_h"; then
11722 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11723 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11724 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727 ac_check_lib_save_LIBS=$LIBS
11728 LIBS="-lpthread $LIBS"
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h. */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735
11736 /* Override any GCC internal prototype to avoid an error.
11737 Use char because int might match the return type of a GCC
11738 builtin and then its argument prototype would still apply. */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 char pthread_self ();
11743 int
11744 main ()
11745 {
11746 return pthread_self ();
11747 ;
11748 return 0;
11749 }
11750 _ACEOF
11751 rm -f conftest.$ac_objext conftest$ac_exeext
11752 if { (ac_try="$ac_link"
11753 case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11756 esac
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_link") 2>conftest.er1
11759 ac_status=$?
11760 grep -v '^ *+' conftest.er1 >conftest.err
11761 rm -f conftest.er1
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } && {
11765 test -z "$ac_c_werror_flag" ||
11766 test ! -s conftest.err
11767 } && test -s conftest$ac_exeext &&
11768 $as_test_x conftest$ac_exeext; then
11769 ac_cv_lib_pthread_pthread_self=yes
11770 else
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11773
11774 ac_cv_lib_pthread_pthread_self=no
11775 fi
11776
11777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11778 conftest$ac_exeext conftest.$ac_ext
11779 LIBS=$ac_check_lib_save_LIBS
11780 fi
11781 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11782 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11783 if test $ac_cv_lib_pthread_pthread_self = yes; then
11784 HAVE_GTK_AND_PTHREAD=yes
11785 fi
11786
11787 fi
11788 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11789 case "${canonical}" in
11790 *-hpux*) ;;
11791 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11792 esac
11793
11794 cat >>confdefs.h <<\_ACEOF
11795 #define HAVE_GTK_AND_PTHREAD 1
11796 _ACEOF
11797
11798 fi
11799 fi
11800 fi
11801
11802 HAVE_DBUS=no
11803 if test "${with_dbus}" = "yes"; then
11804
11805 succeeded=no
11806
11807 # Extract the first word of "pkg-config", so it can be a program name with args.
11808 set dummy pkg-config; ac_word=$2
11809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11811 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814 case $PKG_CONFIG in
11815 [\\/]* | ?:[\\/]*)
11816 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11817 ;;
11818 *)
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11821 do
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11826 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11829 fi
11830 done
11831 done
11832 IFS=$as_save_IFS
11833
11834 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11835 ;;
11836 esac
11837 fi
11838 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11839 if test -n "$PKG_CONFIG"; then
11840 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11841 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11842 else
11843 { echo "$as_me:$LINENO: result: no" >&5
11844 echo "${ECHO_T}no" >&6; }
11845 fi
11846
11847
11848
11849 if test "$PKG_CONFIG" = "no" ; then
11850 HAVE_DBUS=no
11851 else
11852 PKG_CONFIG_MIN_VERSION=0.9.0
11853 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11854 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11855 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11856
11857 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11858 { echo "$as_me:$LINENO: result: yes" >&5
11859 echo "${ECHO_T}yes" >&6; }
11860 succeeded=yes
11861
11862 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11863 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11864 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11865 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11866 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11867
11868 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11869 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11870 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11871 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11872 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11873 else
11874 { echo "$as_me:$LINENO: result: no" >&5
11875 echo "${ECHO_T}no" >&6; }
11876 DBUS_CFLAGS=""
11877 DBUS_LIBS=""
11878 ## If we have a custom action on failure, don't print errors, but
11879 ## do set a variable so people can do so.
11880 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11881
11882 fi
11883
11884
11885
11886 else
11887 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11888 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11889 fi
11890 fi
11891
11892 if test $succeeded = yes; then
11893 HAVE_DBUS=yes
11894 else
11895 HAVE_DBUS=no
11896 fi
11897
11898 if test "$HAVE_DBUS" = yes; then
11899
11900 cat >>confdefs.h <<\_ACEOF
11901 #define HAVE_DBUS 1
11902 _ACEOF
11903
11904 fi
11905 fi
11906
11907 HAVE_XAW3D=no
11908 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11909 if test "$with_xaw3d" != no; then
11910 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11911 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11912 if test "${emacs_cv_xaw3d+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 else
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h. */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921
11922 #include <X11/Intrinsic.h>
11923 #include <X11/Xaw3d/Simple.h>
11924 int
11925 main ()
11926 {
11927
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (ac_try="$ac_link"
11934 case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937 esac
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_link") 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } && {
11946 test -z "$ac_c_werror_flag" ||
11947 test ! -s conftest.err
11948 } && test -s conftest$ac_exeext &&
11949 $as_test_x conftest$ac_exeext; then
11950 emacs_cv_xaw3d=yes
11951 else
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11954
11955 emacs_cv_xaw3d=no
11956 fi
11957
11958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11959 conftest$ac_exeext conftest.$ac_ext
11960 fi
11961
11962 else
11963 emacs_cv_xaw3d=no
11964 fi
11965 if test $emacs_cv_xaw3d = yes; then
11966 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11967 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11968 USE_X_TOOLKIT=LUCID
11969 HAVE_XAW3D=yes
11970
11971 cat >>confdefs.h <<\_ACEOF
11972 #define HAVE_XAW3D 1
11973 _ACEOF
11974
11975 else
11976 { echo "$as_me:$LINENO: result: no" >&5
11977 echo "${ECHO_T}no" >&6; }
11978 { echo "$as_me:$LINENO: checking for libXaw" >&5
11979 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11980 if test "${emacs_cv_xaw+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983 cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h. */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989
11990 #include <X11/Intrinsic.h>
11991 #include <X11/Xaw/Simple.h>
11992 int
11993 main ()
11994 {
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_xaw=yes
12019 else
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 emacs_cv_xaw=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 if test $emacs_cv_xaw = yes; then
12031 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12032 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12033 USE_X_TOOLKIT=LUCID
12034 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12035 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12036 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12037 { (exit 1); exit 1; }; }
12038 else
12039 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12040 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12041 USE_X_TOOLKIT=none
12042 fi
12043 fi
12044 fi
12045
12046 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12047
12048 if test "${USE_X_TOOLKIT}" != "none"; then
12049 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12050 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12051 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h. */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 #include <X11/Intrinsic.h>
12061 int
12062 main ()
12063 {
12064 #if XtSpecificationRelease < 6
12065 fail;
12066 #endif
12067
12068 ;
12069 return 0;
12070 }
12071 _ACEOF
12072 rm -f conftest.$ac_objext conftest$ac_exeext
12073 if { (ac_try="$ac_link"
12074 case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12077 esac
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079 (eval "$ac_link") 2>conftest.er1
12080 ac_status=$?
12081 grep -v '^ *+' conftest.er1 >conftest.err
12082 rm -f conftest.er1
12083 cat conftest.err >&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } && {
12086 test -z "$ac_c_werror_flag" ||
12087 test ! -s conftest.err
12088 } && test -s conftest$ac_exeext &&
12089 $as_test_x conftest$ac_exeext; then
12090 emacs_cv_x11_toolkit_version_6=yes
12091 else
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12094
12095 emacs_cv_x11_toolkit_version_6=no
12096 fi
12097
12098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12099 conftest$ac_exeext conftest.$ac_ext
12100 fi
12101
12102 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12103 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12104 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12105 echo "${ECHO_T}6 or newer" >&6; }
12106
12107 cat >>confdefs.h <<\_ACEOF
12108 #define HAVE_X11XTR6 1
12109 _ACEOF
12110
12111 else
12112 { echo "$as_me:$LINENO: result: before 6" >&5
12113 echo "${ECHO_T}before 6" >&6; }
12114 fi
12115
12116 OLDLIBS="$LIBS"
12117 if test x$HAVE_X11XTR6 = xyes; then
12118 LIBS="-lXt -lSM -lICE $LIBS"
12119 else
12120 LIBS="-lXt $LIBS"
12121 fi
12122
12123 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12124 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12125 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128 ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-lXmu $LIBS"
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h. */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136
12137 /* Override any GCC internal prototype to avoid an error.
12138 Use char because int might match the return type of a GCC
12139 builtin and then its argument prototype would still apply. */
12140 #ifdef __cplusplus
12141 extern "C"
12142 #endif
12143 char XmuConvertStandardSelection ();
12144 int
12145 main ()
12146 {
12147 return XmuConvertStandardSelection ();
12148 ;
12149 return 0;
12150 }
12151 _ACEOF
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (ac_try="$ac_link"
12154 case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12157 esac
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_link") 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } && {
12166 test -z "$ac_c_werror_flag" ||
12167 test ! -s conftest.err
12168 } && test -s conftest$ac_exeext &&
12169 $as_test_x conftest$ac_exeext; then
12170 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12171 else
12172 echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12174
12175 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12176 fi
12177
12178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12179 conftest$ac_exeext conftest.$ac_ext
12180 LIBS=$ac_check_lib_save_LIBS
12181 fi
12182 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12183 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12184 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12185 cat >>confdefs.h <<_ACEOF
12186 #define HAVE_LIBXMU 1
12187 _ACEOF
12188
12189 LIBS="-lXmu $LIBS"
12190
12191 fi
12192
12193 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12194 fi
12195
12196 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12197 if test "${HAVE_X11}" = "yes"; then
12198 if test "${USE_X_TOOLKIT}" != "none"; then
12199
12200 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12201 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12202 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205 ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-lXext $LIBS"
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
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char XShapeQueryExtension ();
12221 int
12222 main ()
12223 {
12224 return XShapeQueryExtension ();
12225 ;
12226 return 0;
12227 }
12228 _ACEOF
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (ac_try="$ac_link"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234 esac
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_link") 2>conftest.er1
12237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && {
12243 test -z "$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 } && test -s conftest$ac_exeext &&
12246 $as_test_x conftest$ac_exeext; then
12247 ac_cv_lib_Xext_XShapeQueryExtension=yes
12248 else
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12251
12252 ac_cv_lib_Xext_XShapeQueryExtension=no
12253 fi
12254
12255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12256 conftest$ac_exeext conftest.$ac_ext
12257 LIBS=$ac_check_lib_save_LIBS
12258 fi
12259 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12260 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12261 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12262 cat >>confdefs.h <<_ACEOF
12263 #define HAVE_LIBXEXT 1
12264 _ACEOF
12265
12266 LIBS="-lXext $LIBS"
12267
12268 fi
12269
12270 fi
12271 fi
12272
12273 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12274 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12275 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12276 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279 cat >conftest.$ac_ext <<_ACEOF
12280 /* confdefs.h. */
12281 _ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12285 #include <Xm/Xm.h>
12286 int
12287 main ()
12288 {
12289 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12290 int x = 5;
12291 #else
12292 Motif version prior to 2.1.
12293 #endif
12294 ;
12295 return 0;
12296 }
12297 _ACEOF
12298 rm -f conftest.$ac_objext
12299 if { (ac_try="$ac_compile"
12300 case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_compile") 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } && {
12312 test -z "$ac_c_werror_flag" ||
12313 test ! -s conftest.err
12314 } && test -s conftest.$ac_objext; then
12315 emacs_cv_motif_version_2_1=yes
12316 else
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 emacs_cv_motif_version_2_1=no
12321 fi
12322
12323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12324 fi
12325 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12326 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12327 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12328 if test $emacs_cv_motif_version_2_1 = yes; then
12329 HAVE_LIBXP=no
12330
12331 cat >>confdefs.h <<\_ACEOF
12332 #define HAVE_MOTIF_2_1 1
12333 _ACEOF
12334
12335 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12336 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12337 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340 ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-lXp $LIBS"
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12352 #ifdef __cplusplus
12353 extern "C"
12354 #endif
12355 char XpCreateContext ();
12356 int
12357 main ()
12358 {
12359 return XpCreateContext ();
12360 ;
12361 return 0;
12362 }
12363 _ACEOF
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (ac_try="$ac_link"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369 esac
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_link") 2>conftest.er1
12372 ac_status=$?
12373 grep -v '^ *+' conftest.er1 >conftest.err
12374 rm -f conftest.er1
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } && {
12378 test -z "$ac_c_werror_flag" ||
12379 test ! -s conftest.err
12380 } && test -s conftest$ac_exeext &&
12381 $as_test_x conftest$ac_exeext; then
12382 ac_cv_lib_Xp_XpCreateContext=yes
12383 else
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12386
12387 ac_cv_lib_Xp_XpCreateContext=no
12388 fi
12389
12390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12391 conftest$ac_exeext conftest.$ac_ext
12392 LIBS=$ac_check_lib_save_LIBS
12393 fi
12394 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12395 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12396 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12397 HAVE_LIBXP=yes
12398 fi
12399
12400 if test ${HAVE_LIBXP} = yes; then
12401
12402 cat >>confdefs.h <<\_ACEOF
12403 #define HAVE_LIBXP 1
12404 _ACEOF
12405
12406 fi
12407 else
12408 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12409 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12410 if test "${emacs_cv_lesstif+set}" = set; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12412 else
12413 # We put this in CFLAGS temporarily to precede other -I options
12414 # that might be in CFLAGS temporarily.
12415 # We put this in CPPFLAGS where it precedes the other -I options.
12416 OLD_CPPFLAGS=$CPPFLAGS
12417 OLD_CFLAGS=$CFLAGS
12418 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12419 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12420 cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h. */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12426 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12427 int
12428 main ()
12429 {
12430 int x = 5;
12431 ;
12432 return 0;
12433 }
12434 _ACEOF
12435 rm -f conftest.$ac_objext
12436 if { (ac_try="$ac_compile"
12437 case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_compile") 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } && {
12449 test -z "$ac_c_werror_flag" ||
12450 test ! -s conftest.err
12451 } && test -s conftest.$ac_objext; then
12452 emacs_cv_lesstif=yes
12453 else
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12456
12457 emacs_cv_lesstif=no
12458 fi
12459
12460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 fi
12462 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12463 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12464 if test $emacs_cv_lesstif = yes; then
12465 # Make sure this -I option remains in CPPFLAGS after it is set
12466 # back to REAL_CPPFLAGS.
12467 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12468 # have those other -I options anyway. Ultimately, having this
12469 # directory ultimately in CPPFLAGS will be enough.
12470 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12471 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12472 else
12473 CFLAGS=$OLD_CFLAGS
12474 CPPFLAGS=$OLD_CPPFLAGS
12475 fi
12476 fi
12477 fi
12478
12479
12480
12481 USE_TOOLKIT_SCROLL_BARS=no
12482 if test "${with_toolkit_scroll_bars}" != "no"; then
12483 if test "${USE_X_TOOLKIT}" != "none"; then
12484 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12485 cat >>confdefs.h <<\_ACEOF
12486 #define USE_TOOLKIT_SCROLL_BARS 1
12487 _ACEOF
12488
12489 HAVE_XAW3D=no
12490 USE_TOOLKIT_SCROLL_BARS=yes
12491 elif test "${HAVE_XAW3D}" = "yes"; then
12492 cat >>confdefs.h <<\_ACEOF
12493 #define USE_TOOLKIT_SCROLL_BARS 1
12494 _ACEOF
12495
12496 USE_TOOLKIT_SCROLL_BARS=yes
12497 fi
12498 elif test "${HAVE_GTK}" = "yes"; then
12499 cat >>confdefs.h <<\_ACEOF
12500 #define USE_TOOLKIT_SCROLL_BARS 1
12501 _ACEOF
12502
12503 USE_TOOLKIT_SCROLL_BARS=yes
12504 elif test "${HAVE_CARBON}" = "yes"; then
12505 cat >>confdefs.h <<\_ACEOF
12506 #define USE_TOOLKIT_SCROLL_BARS 1
12507 _ACEOF
12508
12509 USE_TOOLKIT_SCROLL_BARS=yes
12510 elif test "${HAVE_NS}" = "yes"; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define USE_TOOLKIT_SCROLL_BARS 1
12513 _ACEOF
12514
12515 USE_TOOLKIT_SCROLL_BARS=yes
12516 fi
12517 fi
12518
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h. */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525
12526 #include <X11/Xlib.h>
12527 #include <X11/Xresource.h>
12528 int
12529 main ()
12530 {
12531 XIMProc callback;
12532 ;
12533 return 0;
12534 }
12535 _ACEOF
12536 rm -f conftest.$ac_objext
12537 if { (ac_try="$ac_compile"
12538 case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_compile") 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && {
12550 test -z "$ac_c_werror_flag" ||
12551 test ! -s conftest.err
12552 } && test -s conftest.$ac_objext; then
12553 HAVE_XIM=yes
12554
12555 cat >>confdefs.h <<\_ACEOF
12556 #define HAVE_XIM 1
12557 _ACEOF
12558
12559 else
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563 HAVE_XIM=no
12564 fi
12565
12566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567
12568
12569 if test "${with_xim}" != "no"; then
12570
12571 cat >>confdefs.h <<\_ACEOF
12572 #define USE_XIM 1
12573 _ACEOF
12574
12575 fi
12576
12577
12578 if test "${HAVE_XIM}" != "no"; then
12579 late_CFLAGS=$CFLAGS
12580 if test "$GCC" = yes; then
12581 CFLAGS="$CFLAGS --pedantic-errors"
12582 fi
12583 cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h. */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589
12590 #include <X11/Xlib.h>
12591 #include <X11/Xresource.h>
12592 int
12593 main ()
12594 {
12595 Display *display;
12596 XrmDatabase db;
12597 char *res_name;
12598 char *res_class;
12599 XIMProc callback;
12600 XPointer *client_data;
12601 #ifndef __GNUC__
12602 /* If we're not using GCC, it's probably not XFree86, and this is
12603 probably right, but we can't use something like --pedantic-errors. */
12604 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12605 char*, XIMProc, XPointer*);
12606 #endif
12607 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12608 client_data);
12609 ;
12610 return 0;
12611 }
12612 _ACEOF
12613 rm -f conftest.$ac_objext
12614 if { (ac_try="$ac_compile"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_compile") 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && {
12627 test -z "$ac_c_werror_flag" ||
12628 test ! -s conftest.err
12629 } && test -s conftest.$ac_objext; then
12630 emacs_cv_arg6_star=yes
12631 else
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635
12636 fi
12637
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639
12640 if test "$emacs_cv_arg6_star" = yes; then
12641 cat >>confdefs.h <<\_ACEOF
12642 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12643 _ACEOF
12644
12645 else
12646 cat >>confdefs.h <<\_ACEOF
12647 #define XRegisterIMInstantiateCallback_arg6 XPointer
12648 _ACEOF
12649
12650 fi
12651 CFLAGS=$late_CFLAGS
12652 fi
12653
12654 ### Start of font-backend section.
12655
12656 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12657 HAVE_XFT=maybe
12658 if test "x${with_freetype}" = "xno"; then
12659 with_xft="no";
12660 fi
12661 if test "x${with_xft}" != "xno"; then
12662
12663
12664 succeeded=no
12665
12666 # Extract the first word of "pkg-config", so it can be a program name with args.
12667 set dummy pkg-config; ac_word=$2
12668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673 case $PKG_CONFIG in
12674 [\\/]* | ?:[\\/]*)
12675 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12676 ;;
12677 *)
12678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679 for as_dir in $PATH
12680 do
12681 IFS=$as_save_IFS
12682 test -z "$as_dir" && as_dir=.
12683 for ac_exec_ext in '' $ac_executable_extensions; do
12684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12685 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12687 break 2
12688 fi
12689 done
12690 done
12691 IFS=$as_save_IFS
12692
12693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12694 ;;
12695 esac
12696 fi
12697 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12698 if test -n "$PKG_CONFIG"; then
12699 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12700 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12701 else
12702 { echo "$as_me:$LINENO: result: no" >&5
12703 echo "${ECHO_T}no" >&6; }
12704 fi
12705
12706
12707
12708 if test "$PKG_CONFIG" = "no" ; then
12709 HAVE_XFT=no
12710 else
12711 PKG_CONFIG_MIN_VERSION=0.9.0
12712 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12713 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12714 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12715
12716 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12717 { echo "$as_me:$LINENO: result: yes" >&5
12718 echo "${ECHO_T}yes" >&6; }
12719 succeeded=yes
12720
12721 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12722 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12723 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12724 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12725 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12726
12727 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12728 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12729 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12730 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12731 echo "${ECHO_T}$XFT_LIBS" >&6; }
12732 else
12733 { echo "$as_me:$LINENO: result: no" >&5
12734 echo "${ECHO_T}no" >&6; }
12735 XFT_CFLAGS=""
12736 XFT_LIBS=""
12737 ## If we have a custom action on failure, don't print errors, but
12738 ## do set a variable so people can do so.
12739 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12740
12741 fi
12742
12743
12744
12745 else
12746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12748 fi
12749 fi
12750
12751 if test $succeeded = yes; then
12752 :
12753 else
12754 HAVE_XFT=no
12755 fi
12756
12757 if test "$HAVE_XFT" != no; then
12758 OLD_CPPFLAGS="$CPPFLAGS"
12759 OLD_CFLAGS="$CFLAGS"
12760 OLD_LIBS="$LIBS"
12761 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12762 CFLAGS="$CFLAGS $XFT_CFLAGS"
12763 LIBS="$XFT_LIBS $LIBS"
12764 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12765 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12766 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12767 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 fi
12770 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12771 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12772 else
12773 # Is the header compilable?
12774 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12775 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12776 cat >conftest.$ac_ext <<_ACEOF
12777 /* confdefs.h. */
12778 _ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12782 $ac_includes_default
12783 #include <X11/Xft/Xft.h>
12784 _ACEOF
12785 rm -f conftest.$ac_objext
12786 if { (ac_try="$ac_compile"
12787 case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_compile") 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest.$ac_objext; then
12802 ac_header_compiler=yes
12803 else
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12806
12807 ac_header_compiler=no
12808 fi
12809
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12812 echo "${ECHO_T}$ac_header_compiler" >&6; }
12813
12814 # Is the header present?
12815 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12816 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 #include <X11/Xft/Xft.h>
12824 _ACEOF
12825 if { (ac_try="$ac_cpp conftest.$ac_ext"
12826 case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12829 esac
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12832 ac_status=$?
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } >/dev/null && {
12838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12839 test ! -s conftest.err
12840 }; then
12841 ac_header_preproc=yes
12842 else
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846 ac_header_preproc=no
12847 fi
12848
12849 rm -f conftest.err conftest.$ac_ext
12850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12851 echo "${ECHO_T}$ac_header_preproc" >&6; }
12852
12853 # So? What about this header?
12854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12855 yes:no: )
12856 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12857 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12859 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12860 ac_header_preproc=yes
12861 ;;
12862 no:yes:* )
12863 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12864 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12866 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12868 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12870 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12871 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12872 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12874 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12875
12876 ;;
12877 esac
12878 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12879 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12880 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12884 fi
12885 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12886 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12887
12888 fi
12889 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12890 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12891 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12892 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895 ac_check_lib_save_LIBS=$LIBS
12896 LIBS="-lXft $XFT_LIBS $LIBS"
12897 cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h. */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12903
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12907 #ifdef __cplusplus
12908 extern "C"
12909 #endif
12910 char XftFontOpen ();
12911 int
12912 main ()
12913 {
12914 return XftFontOpen ();
12915 ;
12916 return 0;
12917 }
12918 _ACEOF
12919 rm -f conftest.$ac_objext conftest$ac_exeext
12920 if { (ac_try="$ac_link"
12921 case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12924 esac
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_link") 2>conftest.er1
12927 ac_status=$?
12928 grep -v '^ *+' conftest.er1 >conftest.err
12929 rm -f conftest.er1
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } && {
12933 test -z "$ac_c_werror_flag" ||
12934 test ! -s conftest.err
12935 } && test -s conftest$ac_exeext &&
12936 $as_test_x conftest$ac_exeext; then
12937 ac_cv_lib_Xft_XftFontOpen=yes
12938 else
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12941
12942 ac_cv_lib_Xft_XftFontOpen=no
12943 fi
12944
12945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12946 conftest$ac_exeext conftest.$ac_ext
12947 LIBS=$ac_check_lib_save_LIBS
12948 fi
12949 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12950 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12951 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12952 HAVE_XFT=yes
12953 fi
12954
12955 fi
12956
12957
12958
12959 if test "${HAVE_XFT}" = "yes"; then
12960
12961 cat >>confdefs.h <<\_ACEOF
12962 #define HAVE_XFT 1
12963 _ACEOF
12964
12965
12966 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12967 else
12968 CPPFLAGS="$OLD_CPPFLAGS"
12969 CFLAGS="$OLD_CFLAGS"
12970 LIBS="$OLD_LIBS"
12971 fi # "${HAVE_XFT}" = "yes"
12972 fi # "$HAVE_XFT" != no
12973 fi # "x${with_xft}" != "xno"
12974
12975 if test "$HAVE_XFT" != "yes"; then
12976 HAVE_XFT=no
12977 fi
12978
12979
12980 HAVE_FREETYPE=no
12981 ### Use -lfreetype if available, unless `--with-freetype=no'.
12982 if test "${HAVE_XFT}" = "yes"; then
12983 HAVE_FREETYPE=yes
12984 elif test "x${with_freetype}" != "xno"; then
12985
12986
12987 succeeded=no
12988
12989 # Extract the first word of "pkg-config", so it can be a program name with args.
12990 set dummy pkg-config; ac_word=$2
12991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12993 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12995 else
12996 case $PKG_CONFIG in
12997 [\\/]* | ?:[\\/]*)
12998 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12999 ;;
13000 *)
13001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $PATH
13003 do
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13008 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13010 break 2
13011 fi
13012 done
13013 done
13014 IFS=$as_save_IFS
13015
13016 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13017 ;;
13018 esac
13019 fi
13020 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13021 if test -n "$PKG_CONFIG"; then
13022 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13023 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13024 else
13025 { echo "$as_me:$LINENO: result: no" >&5
13026 echo "${ECHO_T}no" >&6; }
13027 fi
13028
13029
13030
13031 if test "$PKG_CONFIG" = "no" ; then
13032 HAVE_FREETYPE=no
13033 else
13034 PKG_CONFIG_MIN_VERSION=0.9.0
13035 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13036 { echo "$as_me:$LINENO: checking for freetype2" >&5
13037 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13038
13039 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13040 { echo "$as_me:$LINENO: result: yes" >&5
13041 echo "${ECHO_T}yes" >&6; }
13042 succeeded=yes
13043
13044 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13045 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13046 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13047 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13048 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13049
13050 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13051 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13052 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13053 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13054 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13055 else
13056 { echo "$as_me:$LINENO: result: no" >&5
13057 echo "${ECHO_T}no" >&6; }
13058 FREETYPE_CFLAGS=""
13059 FREETYPE_LIBS=""
13060 ## If we have a custom action on failure, don't print errors, but
13061 ## do set a variable so people can do so.
13062 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13063
13064 fi
13065
13066
13067
13068 else
13069 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13070 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13071 fi
13072 fi
13073
13074 if test $succeeded = yes; then
13075 HAVE_FREETYPE=yes
13076 else
13077 HAVE_FREETYPE=no
13078 fi
13079
13080 if test "${HAVE_FREETYPE}" = "yes"; then
13081
13082 succeeded=no
13083
13084 # Extract the first word of "pkg-config", so it can be a program name with args.
13085 set dummy pkg-config; ac_word=$2
13086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13088 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091 case $PKG_CONFIG in
13092 [\\/]* | ?:[\\/]*)
13093 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13094 ;;
13095 *)
13096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097 for as_dir in $PATH
13098 do
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
13102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13103 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13106 fi
13107 done
13108 done
13109 IFS=$as_save_IFS
13110
13111 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13112 ;;
13113 esac
13114 fi
13115 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13116 if test -n "$PKG_CONFIG"; then
13117 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13118 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13119 else
13120 { echo "$as_me:$LINENO: result: no" >&5
13121 echo "${ECHO_T}no" >&6; }
13122 fi
13123
13124
13125
13126 if test "$PKG_CONFIG" = "no" ; then
13127 HAVE_FC=no
13128 else
13129 PKG_CONFIG_MIN_VERSION=0.9.0
13130 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13131 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13132 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13133
13134 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13135 { echo "$as_me:$LINENO: result: yes" >&5
13136 echo "${ECHO_T}yes" >&6; }
13137 succeeded=yes
13138
13139 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13140 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13141 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13142 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13143 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13144
13145 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13146 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13147 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13148 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13149 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13150 else
13151 { echo "$as_me:$LINENO: result: no" >&5
13152 echo "${ECHO_T}no" >&6; }
13153 FONTCONFIG_CFLAGS=""
13154 FONTCONFIG_LIBS=""
13155 ## If we have a custom action on failure, don't print errors, but
13156 ## do set a variable so people can do so.
13157 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13158
13159 fi
13160
13161
13162
13163 else
13164 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13165 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13166 fi
13167 fi
13168
13169 if test $succeeded = yes; then
13170 HAVE_FC=yes
13171 else
13172 HAVE_FC=no
13173 fi
13174
13175 if test "${HAVE_FC}" = "no"; then
13176 HAVE_FREETYPE=no
13177 fi
13178 fi
13179 fi
13180
13181 HAVE_LIBOTF=no
13182 if test "${HAVE_FREETYPE}" = "yes"; then
13183
13184 cat >>confdefs.h <<\_ACEOF
13185 #define HAVE_FREETYPE 1
13186 _ACEOF
13187
13188 if test "${with_libotf}" != "no"; then
13189
13190 succeeded=no
13191
13192 # Extract the first word of "pkg-config", so it can be a program name with args.
13193 set dummy pkg-config; ac_word=$2
13194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13196 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199 case $PKG_CONFIG in
13200 [\\/]* | ?:[\\/]*)
13201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13202 ;;
13203 *)
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13206 do
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13214 fi
13215 done
13216 done
13217 IFS=$as_save_IFS
13218
13219 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13220 ;;
13221 esac
13222 fi
13223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13224 if test -n "$PKG_CONFIG"; then
13225 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13226 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13227 else
13228 { echo "$as_me:$LINENO: result: no" >&5
13229 echo "${ECHO_T}no" >&6; }
13230 fi
13231
13232
13233
13234 if test "$PKG_CONFIG" = "no" ; then
13235 HAVE_LIBOTF=no
13236 else
13237 PKG_CONFIG_MIN_VERSION=0.9.0
13238 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13239 { echo "$as_me:$LINENO: checking for libotf" >&5
13240 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13241
13242 if $PKG_CONFIG --exists "libotf" 2>&5; then
13243 { echo "$as_me:$LINENO: result: yes" >&5
13244 echo "${ECHO_T}yes" >&6; }
13245 succeeded=yes
13246
13247 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13248 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13249 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13250 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13251 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13252
13253 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13254 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13255 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13256 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13257 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13258 else
13259 { echo "$as_me:$LINENO: result: no" >&5
13260 echo "${ECHO_T}no" >&6; }
13261 LIBOTF_CFLAGS=""
13262 LIBOTF_LIBS=""
13263 ## If we have a custom action on failure, don't print errors, but
13264 ## do set a variable so people can do so.
13265 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13266
13267 fi
13268
13269
13270
13271 else
13272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13274 fi
13275 fi
13276
13277 if test $succeeded = yes; then
13278 HAVE_LIBOTF=yes
13279 else
13280 HAVE_LIBOTF=no
13281 fi
13282
13283 if test "$HAVE_LIBOTF" = "yes"; then
13284
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_LIBOTF 1
13287 _ACEOF
13288
13289 fi
13290 fi
13291 fi
13292
13293 HAVE_M17N_FLT=no
13294 if test "${with_m17n_flt}" != "no"; then
13295
13296 succeeded=no
13297
13298 # Extract the first word of "pkg-config", so it can be a program name with args.
13299 set dummy pkg-config; ac_word=$2
13300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13302 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13304 else
13305 case $PKG_CONFIG in
13306 [\\/]* | ?:[\\/]*)
13307 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13308 ;;
13309 *)
13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311 for as_dir in $PATH
13312 do
13313 IFS=$as_save_IFS
13314 test -z "$as_dir" && as_dir=.
13315 for ac_exec_ext in '' $ac_executable_extensions; do
13316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13319 break 2
13320 fi
13321 done
13322 done
13323 IFS=$as_save_IFS
13324
13325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13326 ;;
13327 esac
13328 fi
13329 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13330 if test -n "$PKG_CONFIG"; then
13331 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13332 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13333 else
13334 { echo "$as_me:$LINENO: result: no" >&5
13335 echo "${ECHO_T}no" >&6; }
13336 fi
13337
13338
13339
13340 if test "$PKG_CONFIG" = "no" ; then
13341 HAVE_M17N_FLT=no
13342 else
13343 PKG_CONFIG_MIN_VERSION=0.9.0
13344 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13345 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13346 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13347
13348 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13349 { echo "$as_me:$LINENO: result: yes" >&5
13350 echo "${ECHO_T}yes" >&6; }
13351 succeeded=yes
13352
13353 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13354 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13355 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13356 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13357 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13358
13359 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13360 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13361 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13362 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13363 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13364 else
13365 { echo "$as_me:$LINENO: result: no" >&5
13366 echo "${ECHO_T}no" >&6; }
13367 M17N_FLT_CFLAGS=""
13368 M17N_FLT_LIBS=""
13369 ## If we have a custom action on failure, don't print errors, but
13370 ## do set a variable so people can do so.
13371 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13372
13373 fi
13374
13375
13376
13377 else
13378 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13379 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13380 fi
13381 fi
13382
13383 if test $succeeded = yes; then
13384 HAVE_M17N_FLT=yes
13385 else
13386 HAVE_M17N_FLT=no
13387 fi
13388
13389 if test "$HAVE_M17N_FLT" = "yes"; then
13390
13391 cat >>confdefs.h <<\_ACEOF
13392 #define HAVE_M17N_FLT 1
13393 _ACEOF
13394
13395 fi
13396 fi
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407 ### End of font-backend section.
13408
13409 ### Use -lXpm if available, unless `--with-xpm=no'.
13410 HAVE_XPM=no
13411 if test "${HAVE_X11}" = "yes"; then
13412 if test "${with_xpm}" != "no"; then
13413 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13414 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13415 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13416 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 fi
13419 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13420 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13421 else
13422 # Is the header compilable?
13423 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13424 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h. */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13432 #include <X11/xpm.h>
13433 _ACEOF
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_compile") 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } && {
13448 test -z "$ac_c_werror_flag" ||
13449 test ! -s conftest.err
13450 } && test -s conftest.$ac_objext; then
13451 ac_header_compiler=yes
13452 else
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13455
13456 ac_header_compiler=no
13457 fi
13458
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13461 echo "${ECHO_T}$ac_header_compiler" >&6; }
13462
13463 # Is the header present?
13464 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13465 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h. */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 #include <X11/xpm.h>
13473 _ACEOF
13474 if { (ac_try="$ac_cpp conftest.$ac_ext"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } >/dev/null && {
13487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13488 test ! -s conftest.err
13489 }; then
13490 ac_header_preproc=yes
13491 else
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_header_preproc=no
13496 fi
13497
13498 rm -f conftest.err conftest.$ac_ext
13499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13500 echo "${ECHO_T}$ac_header_preproc" >&6; }
13501
13502 # So? What about this header?
13503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13504 yes:no: )
13505 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13506 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13508 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13509 ac_header_preproc=yes
13510 ;;
13511 no:yes:* )
13512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13513 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13515 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13517 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13519 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13521 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13523 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13524
13525 ;;
13526 esac
13527 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13528 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532 ac_cv_header_X11_xpm_h=$ac_header_preproc
13533 fi
13534 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13535 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13536
13537 fi
13538 if test $ac_cv_header_X11_xpm_h = yes; then
13539 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13540 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13541 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544 ac_check_lib_save_LIBS=$LIBS
13545 LIBS="-lXpm -lX11 $LIBS"
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h. */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13556 #ifdef __cplusplus
13557 extern "C"
13558 #endif
13559 char XpmReadFileToPixmap ();
13560 int
13561 main ()
13562 {
13563 return XpmReadFileToPixmap ();
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (ac_try="$ac_link"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_link") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest$ac_exeext &&
13585 $as_test_x conftest$ac_exeext; then
13586 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13587 else
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13592 fi
13593
13594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13597 fi
13598 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13599 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13600 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13601 HAVE_XPM=yes
13602 fi
13603
13604 fi
13605
13606
13607 if test "${HAVE_XPM}" = "yes"; then
13608 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13609 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h. */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 #include "X11/xpm.h"
13617 #ifndef XpmReturnAllocPixels
13618 no_return_alloc_pixels
13619 #endif
13620
13621 _ACEOF
13622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13623 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13624 HAVE_XPM=no
13625 else
13626 HAVE_XPM=yes
13627 fi
13628 rm -f conftest*
13629
13630
13631 if test "${HAVE_XPM}" = "yes"; then
13632 { echo "$as_me:$LINENO: result: yes" >&5
13633 echo "${ECHO_T}yes" >&6; }
13634 else
13635 { echo "$as_me:$LINENO: result: no" >&5
13636 echo "${ECHO_T}no" >&6; }
13637 fi
13638 fi
13639 fi
13640
13641 if test "${HAVE_XPM}" = "yes"; then
13642
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_XPM 1
13645 _ACEOF
13646
13647 fi
13648 fi
13649
13650 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13651 HAVE_JPEG=no
13652 if test "${HAVE_X11}" = "yes"; then
13653 if test "${with_jpeg}" != "no"; then
13654 if test "${ac_cv_header_jerror_h+set}" = set; then
13655 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13656 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13657 if test "${ac_cv_header_jerror_h+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 fi
13660 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13661 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13662 else
13663 # Is the header compilable?
13664 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13665 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 $ac_includes_default
13673 #include <jerror.h>
13674 _ACEOF
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13680 esac
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13683 ac_status=$?
13684 grep -v '^ *+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13692 ac_header_compiler=yes
13693 else
13694 echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13696
13697 ac_header_compiler=no
13698 fi
13699
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702 echo "${ECHO_T}$ac_header_compiler" >&6; }
13703
13704 # Is the header present?
13705 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13706 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include <jerror.h>
13714 _ACEOF
13715 if { (ac_try="$ac_cpp conftest.$ac_ext"
13716 case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719 esac
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13722 ac_status=$?
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } >/dev/null && {
13728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13729 test ! -s conftest.err
13730 }; then
13731 ac_header_preproc=yes
13732 else
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13735
13736 ac_header_preproc=no
13737 fi
13738
13739 rm -f conftest.err conftest.$ac_ext
13740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741 echo "${ECHO_T}$ac_header_preproc" >&6; }
13742
13743 # So? What about this header?
13744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13745 yes:no: )
13746 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13747 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13749 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13750 ac_header_preproc=yes
13751 ;;
13752 no:yes:* )
13753 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13754 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13756 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13758 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13760 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13762 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13764 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13765
13766 ;;
13767 esac
13768 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13769 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13770 if test "${ac_cv_header_jerror_h+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 ac_cv_header_jerror_h=$ac_header_preproc
13774 fi
13775 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13776 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13777
13778 fi
13779 if test $ac_cv_header_jerror_h = yes; then
13780 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13781 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13782 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 ac_check_lib_save_LIBS=$LIBS
13786 LIBS="-ljpeg $LIBS"
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13797 #ifdef __cplusplus
13798 extern "C"
13799 #endif
13800 char jpeg_destroy_compress ();
13801 int
13802 main ()
13803 {
13804 return jpeg_destroy_compress ();
13805 ;
13806 return 0;
13807 }
13808 _ACEOF
13809 rm -f conftest.$ac_objext conftest$ac_exeext
13810 if { (ac_try="$ac_link"
13811 case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13814 esac
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_link") 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest$ac_exeext &&
13826 $as_test_x conftest$ac_exeext; then
13827 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13828 else
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13833 fi
13834
13835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13838 fi
13839 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13840 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13841 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13842 HAVE_JPEG=yes
13843 fi
13844
13845 fi
13846
13847
13848 fi
13849
13850
13851 if test "${HAVE_JPEG}" = "yes"; then
13852 cat >>confdefs.h <<\_ACEOF
13853 #define HAVE_JPEG 1
13854 _ACEOF
13855
13856 cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h. */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 #include <jpeglib.h>
13863 version=JPEG_LIB_VERSION
13864
13865 _ACEOF
13866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13867 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13868 cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_JPEG 1
13870 _ACEOF
13871
13872 else
13873 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13874 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13875 HAVE_JPEG=no
13876 fi
13877 rm -f conftest*
13878
13879 fi
13880 fi
13881
13882 ### Use -lpng if available, unless `--with-png=no'.
13883 HAVE_PNG=no
13884 if test "${HAVE_X11}" = "yes"; then
13885 if test "${with_png}" != "no"; then
13886 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13887 # in /usr/include/libpng.
13888
13889
13890 for ac_header in png.h libpng/png.h
13891 do
13892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 fi
13899 ac_res=`eval echo '${'$as_ac_Header'}'`
13900 { echo "$as_me:$LINENO: result: $ac_res" >&5
13901 echo "${ECHO_T}$ac_res" >&6; }
13902 else
13903 # Is the header compilable?
13904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h. */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 $ac_includes_default
13913 #include <$ac_header>
13914 _ACEOF
13915 rm -f conftest.$ac_objext
13916 if { (ac_try="$ac_compile"
13917 case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13920 esac
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_compile") 2>conftest.er1
13923 ac_status=$?
13924 grep -v '^ *+' conftest.er1 >conftest.err
13925 rm -f conftest.er1
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } && {
13929 test -z "$ac_c_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest.$ac_objext; then
13932 ac_header_compiler=yes
13933 else
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937 ac_header_compiler=no
13938 fi
13939
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13942 echo "${ECHO_T}$ac_header_compiler" >&6; }
13943
13944 # Is the header present?
13945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13947 cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h. */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 #include <$ac_header>
13954 _ACEOF
13955 if { (ac_try="$ac_cpp conftest.$ac_ext"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } >/dev/null && {
13968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13970 }; then
13971 ac_header_preproc=yes
13972 else
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976 ac_header_preproc=no
13977 fi
13978
13979 rm -f conftest.err conftest.$ac_ext
13980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13981 echo "${ECHO_T}$ac_header_preproc" >&6; }
13982
13983 # So? What about this header?
13984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13985 yes:no: )
13986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13990 ac_header_preproc=yes
13991 ;;
13992 no:yes:* )
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14005
14006 ;;
14007 esac
14008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013 eval "$as_ac_Header=\$ac_header_preproc"
14014 fi
14015 ac_res=`eval echo '${'$as_ac_Header'}'`
14016 { echo "$as_me:$LINENO: result: $ac_res" >&5
14017 echo "${ECHO_T}$ac_res" >&6; }
14018
14019 fi
14020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14021 cat >>confdefs.h <<_ACEOF
14022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14023 _ACEOF
14024
14025 fi
14026
14027 done
14028
14029 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14030 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14031 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14032 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035 ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lpng -lz -lm $LIBS"
14037 cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h. */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043
14044 /* Override any GCC internal prototype to avoid an error.
14045 Use char because int might match the return type of a GCC
14046 builtin and then its argument prototype would still apply. */
14047 #ifdef __cplusplus
14048 extern "C"
14049 #endif
14050 char png_get_channels ();
14051 int
14052 main ()
14053 {
14054 return png_get_channels ();
14055 ;
14056 return 0;
14057 }
14058 _ACEOF
14059 rm -f conftest.$ac_objext conftest$ac_exeext
14060 if { (ac_try="$ac_link"
14061 case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14064 esac
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_link") 2>conftest.er1
14067 ac_status=$?
14068 grep -v '^ *+' conftest.er1 >conftest.err
14069 rm -f conftest.er1
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } && {
14073 test -z "$ac_c_werror_flag" ||
14074 test ! -s conftest.err
14075 } && test -s conftest$ac_exeext &&
14076 $as_test_x conftest$ac_exeext; then
14077 ac_cv_lib_png_png_get_channels=yes
14078 else
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14081
14082 ac_cv_lib_png_png_get_channels=no
14083 fi
14084
14085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14086 conftest$ac_exeext conftest.$ac_ext
14087 LIBS=$ac_check_lib_save_LIBS
14088 fi
14089 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14090 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14091 if test $ac_cv_lib_png_png_get_channels = yes; then
14092 HAVE_PNG=yes
14093 fi
14094
14095 fi
14096 fi
14097
14098 if test "${HAVE_PNG}" = "yes"; then
14099
14100 cat >>confdefs.h <<\_ACEOF
14101 #define HAVE_PNG 1
14102 _ACEOF
14103
14104 fi
14105 fi
14106
14107 ### Use -ltiff if available, unless `--with-tiff=no'.
14108 HAVE_TIFF=no
14109 if test "${HAVE_X11}" = "yes"; then
14110 if test "${with_tiff}" != "no"; then
14111 if test "${ac_cv_header_tiffio_h+set}" = set; then
14112 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14113 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14114 if test "${ac_cv_header_tiffio_h+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 fi
14117 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14118 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14119 else
14120 # Is the header compilable?
14121 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14122 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h. */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 $ac_includes_default
14130 #include <tiffio.h>
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14137 esac
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_compile") 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest.$ac_objext; then
14149 ac_header_compiler=yes
14150 else
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14153
14154 ac_header_compiler=no
14155 fi
14156
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14159 echo "${ECHO_T}$ac_header_compiler" >&6; }
14160
14161 # Is the header present?
14162 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14163 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h. */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 #include <tiffio.h>
14171 _ACEOF
14172 if { (ac_try="$ac_cpp conftest.$ac_ext"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } >/dev/null && {
14185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 }; then
14188 ac_header_preproc=yes
14189 else
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 ac_header_preproc=no
14194 fi
14195
14196 rm -f conftest.err conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14198 echo "${ECHO_T}$ac_header_preproc" >&6; }
14199
14200 # So? What about this header?
14201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14202 yes:no: )
14203 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14204 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14206 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14207 ac_header_preproc=yes
14208 ;;
14209 no:yes:* )
14210 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14211 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14212 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14213 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14214 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14215 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14216 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14217 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14218 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14219 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14221 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14222
14223 ;;
14224 esac
14225 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14226 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14227 if test "${ac_cv_header_tiffio_h+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230 ac_cv_header_tiffio_h=$ac_header_preproc
14231 fi
14232 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14233 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14234
14235 fi
14236 if test $ac_cv_header_tiffio_h = yes; then
14237 tifflibs="-lz -lm"
14238 # At least one tiff package requires the jpeg library.
14239 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14240 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14241 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14242 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245 ac_check_lib_save_LIBS=$LIBS
14246 LIBS="-ltiff $tifflibs $LIBS"
14247 cat >conftest.$ac_ext <<_ACEOF
14248 /* confdefs.h. */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253
14254 /* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14257 #ifdef __cplusplus
14258 extern "C"
14259 #endif
14260 char TIFFGetVersion ();
14261 int
14262 main ()
14263 {
14264 return TIFFGetVersion ();
14265 ;
14266 return 0;
14267 }
14268 _ACEOF
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (ac_try="$ac_link"
14271 case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_link") 2>conftest.er1
14277 ac_status=$?
14278 grep -v '^ *+' conftest.er1 >conftest.err
14279 rm -f conftest.er1
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } && {
14283 test -z "$ac_c_werror_flag" ||
14284 test ! -s conftest.err
14285 } && test -s conftest$ac_exeext &&
14286 $as_test_x conftest$ac_exeext; then
14287 ac_cv_lib_tiff_TIFFGetVersion=yes
14288 else
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292 ac_cv_lib_tiff_TIFFGetVersion=no
14293 fi
14294
14295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14296 conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14298 fi
14299 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14300 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14301 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14302 HAVE_TIFF=yes
14303 fi
14304
14305 fi
14306
14307
14308 fi
14309
14310 if test "${HAVE_TIFF}" = "yes"; then
14311
14312 cat >>confdefs.h <<\_ACEOF
14313 #define HAVE_TIFF 1
14314 _ACEOF
14315
14316 fi
14317 fi
14318
14319 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14320 HAVE_GIF=no
14321 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14322 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14323 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14324 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14325 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 fi
14328 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14329 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14330 else
14331 # Is the header compilable?
14332 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14333 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14334 cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h. */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 $ac_includes_default
14341 #include <gif_lib.h>
14342 _ACEOF
14343 rm -f conftest.$ac_objext
14344 if { (ac_try="$ac_compile"
14345 case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_compile") 2>conftest.er1
14351 ac_status=$?
14352 grep -v '^ *+' conftest.er1 >conftest.err
14353 rm -f conftest.er1
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } && {
14357 test -z "$ac_c_werror_flag" ||
14358 test ! -s conftest.err
14359 } && test -s conftest.$ac_objext; then
14360 ac_header_compiler=yes
14361 else
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14364
14365 ac_header_compiler=no
14366 fi
14367
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14370 echo "${ECHO_T}$ac_header_compiler" >&6; }
14371
14372 # Is the header present?
14373 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14374 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14375 cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h. */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 #include <gif_lib.h>
14382 _ACEOF
14383 if { (ac_try="$ac_cpp conftest.$ac_ext"
14384 case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387 esac
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14390 ac_status=$?
14391 grep -v '^ *+' conftest.er1 >conftest.err
14392 rm -f conftest.er1
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } >/dev/null && {
14396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14397 test ! -s conftest.err
14398 }; then
14399 ac_header_preproc=yes
14400 else
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14403
14404 ac_header_preproc=no
14405 fi
14406
14407 rm -f conftest.err conftest.$ac_ext
14408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14409 echo "${ECHO_T}$ac_header_preproc" >&6; }
14410
14411 # So? What about this header?
14412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14413 yes:no: )
14414 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14415 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14417 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14418 ac_header_preproc=yes
14419 ;;
14420 no:yes:* )
14421 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14422 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14423 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14424 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14425 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14426 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14428 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14429 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14430 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14432 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14433
14434 ;;
14435 esac
14436 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14437 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14438 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441 ac_cv_header_gif_lib_h=$ac_header_preproc
14442 fi
14443 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14444 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14445
14446 fi
14447 if test $ac_cv_header_gif_lib_h = yes; then
14448 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14449 # Earlier versions can crash Emacs.
14450 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14451 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14452 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 ac_check_lib_save_LIBS=$LIBS
14456 LIBS="-lgif $LIBS"
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h. */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463
14464 /* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14467 #ifdef __cplusplus
14468 extern "C"
14469 #endif
14470 char EGifPutExtensionLast ();
14471 int
14472 main ()
14473 {
14474 return EGifPutExtensionLast ();
14475 ;
14476 return 0;
14477 }
14478 _ACEOF
14479 rm -f conftest.$ac_objext conftest$ac_exeext
14480 if { (ac_try="$ac_link"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_link") 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } && {
14493 test -z "$ac_c_werror_flag" ||
14494 test ! -s conftest.err
14495 } && test -s conftest$ac_exeext &&
14496 $as_test_x conftest$ac_exeext; then
14497 ac_cv_lib_gif_EGifPutExtensionLast=yes
14498 else
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_cv_lib_gif_EGifPutExtensionLast=no
14503 fi
14504
14505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14506 conftest$ac_exeext conftest.$ac_ext
14507 LIBS=$ac_check_lib_save_LIBS
14508 fi
14509 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14510 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14511 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14512 HAVE_GIF=yes
14513 else
14514 try_libungif=yes
14515 fi
14516
14517 fi
14518
14519
14520
14521 if test "$HAVE_GIF" = yes; then
14522 ac_gif_lib_name="-lgif"
14523 fi
14524
14525 # If gif_lib.h but no libgif, try libungif.
14526 if test x"$try_libungif" = xyes; then
14527 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14528 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14529 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532 ac_check_lib_save_LIBS=$LIBS
14533 LIBS="-lungif $LIBS"
14534 cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h. */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14540
14541 /* Override any GCC internal prototype to avoid an error.
14542 Use char because int might match the return type of a GCC
14543 builtin and then its argument prototype would still apply. */
14544 #ifdef __cplusplus
14545 extern "C"
14546 #endif
14547 char EGifPutExtensionLast ();
14548 int
14549 main ()
14550 {
14551 return EGifPutExtensionLast ();
14552 ;
14553 return 0;
14554 }
14555 _ACEOF
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (ac_try="$ac_link"
14558 case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14561 esac
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_link") 2>conftest.er1
14564 ac_status=$?
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } && {
14570 test -z "$ac_c_werror_flag" ||
14571 test ! -s conftest.err
14572 } && test -s conftest$ac_exeext &&
14573 $as_test_x conftest$ac_exeext; then
14574 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14578
14579 ac_cv_lib_ungif_EGifPutExtensionLast=no
14580 fi
14581
14582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14583 conftest$ac_exeext conftest.$ac_ext
14584 LIBS=$ac_check_lib_save_LIBS
14585 fi
14586 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14587 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14588 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14589 HAVE_GIF=yes
14590 fi
14591
14592
14593 if test "$HAVE_GIF" = yes; then
14594
14595 cat >>confdefs.h <<\_ACEOF
14596 #define LIBGIF -lungif
14597 _ACEOF
14598
14599 ac_gif_lib_name="-lungif"
14600 fi
14601 fi
14602
14603 if test "${HAVE_GIF}" = "yes"; then
14604
14605 cat >>confdefs.h <<\_ACEOF
14606 #define HAVE_GIF 1
14607 _ACEOF
14608
14609 fi
14610 fi
14611
14612 if test "${HAVE_X11}" = "yes"; then
14613 MISSING=""
14614 WITH_NO=""
14615 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14616 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14617 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14618 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14619 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14620 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14621 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14622 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14623 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14624 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14625
14626 if test "X${MISSING}" != X; then
14627 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14628 $MISSING
14629 Maybe some development libraries/packages are missing?
14630 If you don't want to link with them give
14631 $WITH_NO
14632 as options to configure" >&5
14633 echo "$as_me: error: The following required libraries were not found:
14634 $MISSING
14635 Maybe some development libraries/packages are missing?
14636 If you don't want to link with them give
14637 $WITH_NO
14638 as options to configure" >&2;}
14639 { (exit 1); exit 1; }; }
14640 fi
14641 fi
14642
14643 ### Use -lgpm if available, unless `--with-gpm=no'.
14644 HAVE_GPM=no
14645 if test "${with_gpm}" != "no"; then
14646 if test "${ac_cv_header_gpm_h+set}" = set; then
14647 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14648 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14649 if test "${ac_cv_header_gpm_h+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 fi
14652 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14653 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14654 else
14655 # Is the header compilable?
14656 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14657 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14658 cat >conftest.$ac_ext <<_ACEOF
14659 /* confdefs.h. */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 $ac_includes_default
14665 #include <gpm.h>
14666 _ACEOF
14667 rm -f conftest.$ac_objext
14668 if { (ac_try="$ac_compile"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_compile") 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest.$ac_objext; then
14684 ac_header_compiler=yes
14685 else
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 ac_header_compiler=no
14690 fi
14691
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14694 echo "${ECHO_T}$ac_header_compiler" >&6; }
14695
14696 # Is the header present?
14697 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14698 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14699 cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h. */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 #include <gpm.h>
14706 _ACEOF
14707 if { (ac_try="$ac_cpp conftest.$ac_ext"
14708 case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14711 esac
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14714 ac_status=$?
14715 grep -v '^ *+' conftest.er1 >conftest.err
14716 rm -f conftest.er1
14717 cat conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } >/dev/null && {
14720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14721 test ! -s conftest.err
14722 }; then
14723 ac_header_preproc=yes
14724 else
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728 ac_header_preproc=no
14729 fi
14730
14731 rm -f conftest.err conftest.$ac_ext
14732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14733 echo "${ECHO_T}$ac_header_preproc" >&6; }
14734
14735 # So? What about this header?
14736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14737 yes:no: )
14738 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14739 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14741 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14742 ac_header_preproc=yes
14743 ;;
14744 no:yes:* )
14745 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14746 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14748 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14750 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14752 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14754 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14756 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14757
14758 ;;
14759 esac
14760 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14761 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14762 if test "${ac_cv_header_gpm_h+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765 ac_cv_header_gpm_h=$ac_header_preproc
14766 fi
14767 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14768 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14769
14770 fi
14771 if test $ac_cv_header_gpm_h = yes; then
14772 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14773 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14774 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14776 else
14777 ac_check_lib_save_LIBS=$LIBS
14778 LIBS="-lgpm $LIBS"
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h. */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785
14786 /* Override any GCC internal prototype to avoid an error.
14787 Use char because int might match the return type of a GCC
14788 builtin and then its argument prototype would still apply. */
14789 #ifdef __cplusplus
14790 extern "C"
14791 #endif
14792 char Gpm_Open ();
14793 int
14794 main ()
14795 {
14796 return Gpm_Open ();
14797 ;
14798 return 0;
14799 }
14800 _ACEOF
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (ac_try="$ac_link"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_link") 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest$ac_exeext &&
14818 $as_test_x conftest$ac_exeext; then
14819 ac_cv_lib_gpm_Gpm_Open=yes
14820 else
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824 ac_cv_lib_gpm_Gpm_Open=no
14825 fi
14826
14827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14830 fi
14831 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14832 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14833 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14834 HAVE_GPM=yes
14835 fi
14836
14837 fi
14838
14839
14840 fi
14841
14842 if test "${HAVE_GPM}" = "yes"; then
14843
14844 cat >>confdefs.h <<\_ACEOF
14845 #define HAVE_GPM 1
14846 _ACEOF
14847
14848 fi
14849
14850 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14851 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14852 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14853 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 fi
14856 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14857 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14858 else
14859 # Is the header compilable?
14860 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14861 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14862 cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h. */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 $ac_includes_default
14869 #include <malloc/malloc.h>
14870 _ACEOF
14871 rm -f conftest.$ac_objext
14872 if { (ac_try="$ac_compile"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14876 esac
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_compile") 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest.$ac_objext; then
14888 ac_header_compiler=yes
14889 else
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 ac_header_compiler=no
14894 fi
14895
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14898 echo "${ECHO_T}$ac_header_compiler" >&6; }
14899
14900 # Is the header present?
14901 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14902 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h. */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 #include <malloc/malloc.h>
14910 _ACEOF
14911 if { (ac_try="$ac_cpp conftest.$ac_ext"
14912 case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915 esac
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } >/dev/null && {
14924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14926 }; then
14927 ac_header_preproc=yes
14928 else
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932 ac_header_preproc=no
14933 fi
14934
14935 rm -f conftest.err conftest.$ac_ext
14936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14937 echo "${ECHO_T}$ac_header_preproc" >&6; }
14938
14939 # So? What about this header?
14940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14941 yes:no: )
14942 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14943 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14944 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14945 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14946 ac_header_preproc=yes
14947 ;;
14948 no:yes:* )
14949 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14950 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14952 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14953 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14954 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14955 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14956 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14957 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14958 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14960 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14961
14962 ;;
14963 esac
14964 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14965 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14966 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14970 fi
14971 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14972 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14973
14974 fi
14975 if test $ac_cv_header_malloc_malloc_h = yes; then
14976
14977 cat >>confdefs.h <<\_ACEOF
14978 #define HAVE_MALLOC_MALLOC_H 1
14979 _ACEOF
14980
14981 fi
14982
14983
14984
14985 ### Use Mac OS X Carbon API to implement GUI.
14986 if test "${HAVE_CARBON}" = "yes"; then
14987
14988 cat >>confdefs.h <<\_ACEOF
14989 #define HAVE_CARBON 1
14990 _ACEOF
14991
14992
14993 for ac_header in AvailabilityMacros.h
14994 do
14995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15001 fi
15002 ac_res=`eval echo '${'$as_ac_Header'}'`
15003 { echo "$as_me:$LINENO: result: $ac_res" >&5
15004 echo "${ECHO_T}$ac_res" >&6; }
15005 else
15006 # Is the header compilable?
15007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h. */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 $ac_includes_default
15016 #include <$ac_header>
15017 _ACEOF
15018 rm -f conftest.$ac_objext
15019 if { (ac_try="$ac_compile"
15020 case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15023 esac
15024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025 (eval "$ac_compile") 2>conftest.er1
15026 ac_status=$?
15027 grep -v '^ *+' conftest.er1 >conftest.err
15028 rm -f conftest.er1
15029 cat conftest.err >&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } && {
15032 test -z "$ac_c_werror_flag" ||
15033 test ! -s conftest.err
15034 } && test -s conftest.$ac_objext; then
15035 ac_header_compiler=yes
15036 else
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15039
15040 ac_header_compiler=no
15041 fi
15042
15043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15045 echo "${ECHO_T}$ac_header_compiler" >&6; }
15046
15047 # Is the header present?
15048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15050 cat >conftest.$ac_ext <<_ACEOF
15051 /* confdefs.h. */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 #include <$ac_header>
15057 _ACEOF
15058 if { (ac_try="$ac_cpp conftest.$ac_ext"
15059 case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15062 esac
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15065 ac_status=$?
15066 grep -v '^ *+' conftest.er1 >conftest.err
15067 rm -f conftest.er1
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } >/dev/null && {
15071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15072 test ! -s conftest.err
15073 }; then
15074 ac_header_preproc=yes
15075 else
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15078
15079 ac_header_preproc=no
15080 fi
15081
15082 rm -f conftest.err conftest.$ac_ext
15083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15084 echo "${ECHO_T}$ac_header_preproc" >&6; }
15085
15086 # So? What about this header?
15087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15088 yes:no: )
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15093 ac_header_preproc=yes
15094 ;;
15095 no:yes:* )
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15108
15109 ;;
15110 esac
15111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116 eval "$as_ac_Header=\$ac_header_preproc"
15117 fi
15118 ac_res=`eval echo '${'$as_ac_Header'}'`
15119 { echo "$as_me:$LINENO: result: $ac_res" >&5
15120 echo "${ECHO_T}$ac_res" >&6; }
15121
15122 fi
15123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15124 cat >>confdefs.h <<_ACEOF
15125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15126 _ACEOF
15127
15128 fi
15129
15130 done
15131
15132 ## Specify the install directory
15133 carbon_appdir=
15134 if test "${carbon_appdir_x}" != ""; then
15135 case ${carbon_appdir_x} in
15136 y | ye | yes) carbon_appdir=/Applications ;;
15137 * ) carbon_appdir=${carbon_appdir_x} ;;
15138 esac
15139 fi
15140 # We also have mouse menus.
15141 HAVE_MENUS=yes
15142 fi
15143 ### Use NeXTstep API to implement GUI.
15144 if test "${HAVE_NS}" = "yes"; then
15145
15146 cat >>confdefs.h <<\_ACEOF
15147 #define HAVE_NS 1
15148 _ACEOF
15149
15150 if test "${NS_IMPL_COCOA}" = "yes"; then
15151
15152 cat >>confdefs.h <<\_ACEOF
15153 #define NS_IMPL_COCOA 1
15154 _ACEOF
15155
15156 fi
15157 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
15158
15159 cat >>confdefs.h <<\_ACEOF
15160 #define COCOA_EXPERIMENTAL_CTRL_G 1
15161 _ACEOF
15162
15163 fi
15164 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15165
15166 cat >>confdefs.h <<\_ACEOF
15167 #define NS_IMPL_GNUSTEP 1
15168 _ACEOF
15169
15170 fi
15171 # We also have mouse menus.
15172 HAVE_MENUS=yes
15173 fi
15174
15175
15176 ### Use session management (-lSM -lICE) if available
15177 HAVE_X_SM=no
15178 if test "${HAVE_X11}" = "yes"; then
15179 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15180 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15181 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15182 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 fi
15185 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15186 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15187 else
15188 # Is the header compilable?
15189 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15190 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15191 cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h. */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 $ac_includes_default
15198 #include <X11/SM/SMlib.h>
15199 _ACEOF
15200 rm -f conftest.$ac_objext
15201 if { (ac_try="$ac_compile"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15205 esac
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_compile") 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } && {
15214 test -z "$ac_c_werror_flag" ||
15215 test ! -s conftest.err
15216 } && test -s conftest.$ac_objext; then
15217 ac_header_compiler=yes
15218 else
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15221
15222 ac_header_compiler=no
15223 fi
15224
15225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15227 echo "${ECHO_T}$ac_header_compiler" >&6; }
15228
15229 # Is the header present?
15230 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15231 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15232 cat >conftest.$ac_ext <<_ACEOF
15233 /* confdefs.h. */
15234 _ACEOF
15235 cat confdefs.h >>conftest.$ac_ext
15236 cat >>conftest.$ac_ext <<_ACEOF
15237 /* end confdefs.h. */
15238 #include <X11/SM/SMlib.h>
15239 _ACEOF
15240 if { (ac_try="$ac_cpp conftest.$ac_ext"
15241 case "(($ac_try" in
15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15244 esac
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15247 ac_status=$?
15248 grep -v '^ *+' conftest.er1 >conftest.err
15249 rm -f conftest.er1
15250 cat conftest.err >&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } >/dev/null && {
15253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15254 test ! -s conftest.err
15255 }; then
15256 ac_header_preproc=yes
15257 else
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15260
15261 ac_header_preproc=no
15262 fi
15263
15264 rm -f conftest.err conftest.$ac_ext
15265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15266 echo "${ECHO_T}$ac_header_preproc" >&6; }
15267
15268 # So? What about this header?
15269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15270 yes:no: )
15271 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15272 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15273 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15274 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15275 ac_header_preproc=yes
15276 ;;
15277 no:yes:* )
15278 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15279 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15280 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15281 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15283 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15285 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15287 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15289 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15290
15291 ;;
15292 esac
15293 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15294 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15295 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15299 fi
15300 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15301 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15302
15303 fi
15304 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15305 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15306 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15307 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 else
15310 ac_check_lib_save_LIBS=$LIBS
15311 LIBS="-lSM -lICE $LIBS"
15312 cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h. */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318
15319 /* Override any GCC internal prototype to avoid an error.
15320 Use char because int might match the return type of a GCC
15321 builtin and then its argument prototype would still apply. */
15322 #ifdef __cplusplus
15323 extern "C"
15324 #endif
15325 char SmcOpenConnection ();
15326 int
15327 main ()
15328 {
15329 return SmcOpenConnection ();
15330 ;
15331 return 0;
15332 }
15333 _ACEOF
15334 rm -f conftest.$ac_objext conftest$ac_exeext
15335 if { (ac_try="$ac_link"
15336 case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_link") 2>conftest.er1
15342 ac_status=$?
15343 grep -v '^ *+' conftest.er1 >conftest.err
15344 rm -f conftest.er1
15345 cat conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } && {
15348 test -z "$ac_c_werror_flag" ||
15349 test ! -s conftest.err
15350 } && test -s conftest$ac_exeext &&
15351 $as_test_x conftest$ac_exeext; then
15352 ac_cv_lib_SM_SmcOpenConnection=yes
15353 else
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15356
15357 ac_cv_lib_SM_SmcOpenConnection=no
15358 fi
15359
15360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15361 conftest$ac_exeext conftest.$ac_ext
15362 LIBS=$ac_check_lib_save_LIBS
15363 fi
15364 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15365 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15366 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15367 HAVE_X_SM=yes
15368 fi
15369
15370 fi
15371
15372
15373
15374 if test "${HAVE_X_SM}" = "yes"; then
15375
15376 cat >>confdefs.h <<\_ACEOF
15377 #define HAVE_X_SM 1
15378 _ACEOF
15379
15380 case "$LIBS" in
15381 *-lSM*) ;;
15382 *) LIBS="-lSM -lICE $LIBS" ;;
15383 esac
15384 fi
15385 fi
15386
15387 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15388 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15389 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15390 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 else
15393 cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h. */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15399 #include <netdb.h>
15400 int
15401 main ()
15402 {
15403 return h_errno;
15404 ;
15405 return 0;
15406 }
15407 _ACEOF
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (ac_try="$ac_link"
15410 case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_link") 2>conftest.er1
15416 ac_status=$?
15417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } && {
15422 test -z "$ac_c_werror_flag" ||
15423 test ! -s conftest.err
15424 } && test -s conftest$ac_exeext &&
15425 $as_test_x conftest$ac_exeext; then
15426 emacs_cv_netdb_declares_h_errno=yes
15427 else
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15430
15431 emacs_cv_netdb_declares_h_errno=no
15432 fi
15433
15434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15435 conftest$ac_exeext conftest.$ac_ext
15436 fi
15437 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15438 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15439 if test $emacs_cv_netdb_declares_h_errno = yes; then
15440
15441 cat >>confdefs.h <<\_ACEOF
15442 #define HAVE_H_ERRNO 1
15443 _ACEOF
15444
15445 fi
15446
15447 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15448 # for constant arguments. Useless!
15449 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15450 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15451 if test "${ac_cv_working_alloca_h+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 else
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h. */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #include <alloca.h>
15461 int
15462 main ()
15463 {
15464 char *p = (char *) alloca (2 * sizeof (int));
15465 if (p) return 0;
15466 ;
15467 return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_link") 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } && {
15484 test -z "$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15486 } && test -s conftest$ac_exeext &&
15487 $as_test_x conftest$ac_exeext; then
15488 ac_cv_working_alloca_h=yes
15489 else
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 ac_cv_working_alloca_h=no
15494 fi
15495
15496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15497 conftest$ac_exeext conftest.$ac_ext
15498 fi
15499 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15500 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15501 if test $ac_cv_working_alloca_h = yes; then
15502
15503 cat >>confdefs.h <<\_ACEOF
15504 #define HAVE_ALLOCA_H 1
15505 _ACEOF
15506
15507 fi
15508
15509 { echo "$as_me:$LINENO: checking for alloca" >&5
15510 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15511 if test "${ac_cv_func_alloca_works+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h. */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 #ifdef __GNUC__
15521 # define alloca __builtin_alloca
15522 #else
15523 # ifdef _MSC_VER
15524 # include <malloc.h>
15525 # define alloca _alloca
15526 # else
15527 # ifdef HAVE_ALLOCA_H
15528 # include <alloca.h>
15529 # else
15530 # ifdef _AIX
15531 #pragma alloca
15532 # else
15533 # ifndef alloca /* predefined by HP cc +Olibcalls */
15534 char *alloca ();
15535 # endif
15536 # endif
15537 # endif
15538 # endif
15539 #endif
15540
15541 int
15542 main ()
15543 {
15544 char *p = (char *) alloca (1);
15545 if (p) return 0;
15546 ;
15547 return 0;
15548 }
15549 _ACEOF
15550 rm -f conftest.$ac_objext conftest$ac_exeext
15551 if { (ac_try="$ac_link"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_link") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest$ac_exeext &&
15567 $as_test_x conftest$ac_exeext; then
15568 ac_cv_func_alloca_works=yes
15569 else
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 ac_cv_func_alloca_works=no
15574 fi
15575
15576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15577 conftest$ac_exeext conftest.$ac_ext
15578 fi
15579 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15580 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15581
15582 if test $ac_cv_func_alloca_works = yes; then
15583
15584 cat >>confdefs.h <<\_ACEOF
15585 #define HAVE_ALLOCA 1
15586 _ACEOF
15587
15588 else
15589 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15590 # that cause trouble. Some versions do not even contain alloca or
15591 # contain a buggy version. If you still want to use their alloca,
15592 # use ar to extract alloca.o from them instead of compiling alloca.c.
15593
15594 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15595
15596 cat >>confdefs.h <<\_ACEOF
15597 #define C_ALLOCA 1
15598 _ACEOF
15599
15600
15601 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15602 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15603 if test "${ac_cv_os_cray+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612 #if defined CRAY && ! defined CRAY2
15613 webecray
15614 #else
15615 wenotbecray
15616 #endif
15617
15618 _ACEOF
15619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15620 $EGREP "webecray" >/dev/null 2>&1; then
15621 ac_cv_os_cray=yes
15622 else
15623 ac_cv_os_cray=no
15624 fi
15625 rm -f conftest*
15626
15627 fi
15628 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15629 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15630 if test $ac_cv_os_cray = yes; then
15631 for ac_func in _getb67 GETB67 getb67; do
15632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15646 #define $ac_func innocuous_$ac_func
15647
15648 /* System header to define __stub macros and hopefully few prototypes,
15649 which can conflict with char $ac_func (); below.
15650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15651 <limits.h> exists even on freestanding compilers. */
15652
15653 #ifdef __STDC__
15654 # include <limits.h>
15655 #else
15656 # include <assert.h>
15657 #endif
15658
15659 #undef $ac_func
15660
15661 /* Override any GCC internal prototype to avoid an error.
15662 Use char because int might match the return type of a GCC
15663 builtin and then its argument prototype would still apply. */
15664 #ifdef __cplusplus
15665 extern "C"
15666 #endif
15667 char $ac_func ();
15668 /* The GNU C library defines this for functions which it implements
15669 to always fail with ENOSYS. Some functions are actually named
15670 something starting with __ and the normal name is an alias. */
15671 #if defined __stub_$ac_func || defined __stub___$ac_func
15672 choke me
15673 #endif
15674
15675 int
15676 main ()
15677 {
15678 return $ac_func ();
15679 ;
15680 return 0;
15681 }
15682 _ACEOF
15683 rm -f conftest.$ac_objext conftest$ac_exeext
15684 if { (ac_try="$ac_link"
15685 case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15688 esac
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_link") 2>conftest.er1
15691 ac_status=$?
15692 grep -v '^ *+' conftest.er1 >conftest.err
15693 rm -f conftest.er1
15694 cat conftest.err >&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } && {
15697 test -z "$ac_c_werror_flag" ||
15698 test ! -s conftest.err
15699 } && test -s conftest$ac_exeext &&
15700 $as_test_x conftest$ac_exeext; then
15701 eval "$as_ac_var=yes"
15702 else
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706 eval "$as_ac_var=no"
15707 fi
15708
15709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15710 conftest$ac_exeext conftest.$ac_ext
15711 fi
15712 ac_res=`eval echo '${'$as_ac_var'}'`
15713 { echo "$as_me:$LINENO: result: $ac_res" >&5
15714 echo "${ECHO_T}$ac_res" >&6; }
15715 if test `eval echo '${'$as_ac_var'}'` = yes; then
15716
15717 cat >>confdefs.h <<_ACEOF
15718 #define CRAY_STACKSEG_END $ac_func
15719 _ACEOF
15720
15721 break
15722 fi
15723
15724 done
15725 fi
15726
15727 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15728 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15729 if test "${ac_cv_c_stack_direction+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732 if test "$cross_compiling" = yes; then
15733 ac_cv_c_stack_direction=0
15734 else
15735 cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h. */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 $ac_includes_default
15742 int
15743 find_stack_direction ()
15744 {
15745 static char *addr = 0;
15746 auto char dummy;
15747 if (addr == 0)
15748 {
15749 addr = &dummy;
15750 return find_stack_direction ();
15751 }
15752 else
15753 return (&dummy > addr) ? 1 : -1;
15754 }
15755
15756 int
15757 main ()
15758 {
15759 return find_stack_direction () < 0;
15760 }
15761 _ACEOF
15762 rm -f conftest$ac_exeext
15763 if { (ac_try="$ac_link"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767 esac
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_link") 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15773 { (case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15776 esac
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_try") 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 ac_cv_c_stack_direction=1
15783 else
15784 echo "$as_me: program exited with status $ac_status" >&5
15785 echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15787
15788 ( exit $ac_status )
15789 ac_cv_c_stack_direction=-1
15790 fi
15791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15792 fi
15793
15794
15795 fi
15796 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15797 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15798
15799 cat >>confdefs.h <<_ACEOF
15800 #define STACK_DIRECTION $ac_cv_c_stack_direction
15801 _ACEOF
15802
15803
15804 fi
15805
15806
15807 if test x"$ac_cv_func_alloca_works" != xyes; then
15808 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15809 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15810 { (exit 1); exit 1; }; }
15811 fi
15812
15813 # fmod, logb, and frexp are found in -lm on most systems.
15814 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15815
15816 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15817 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15818 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821 ac_check_lib_save_LIBS=$LIBS
15822 LIBS="-lm $LIBS"
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h. */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829
15830 /* Override any GCC internal prototype to avoid an error.
15831 Use char because int might match the return type of a GCC
15832 builtin and then its argument prototype would still apply. */
15833 #ifdef __cplusplus
15834 extern "C"
15835 #endif
15836 char sqrt ();
15837 int
15838 main ()
15839 {
15840 return sqrt ();
15841 ;
15842 return 0;
15843 }
15844 _ACEOF
15845 rm -f conftest.$ac_objext conftest$ac_exeext
15846 if { (ac_try="$ac_link"
15847 case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15850 esac
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_link") 2>conftest.er1
15853 ac_status=$?
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } && {
15859 test -z "$ac_c_werror_flag" ||
15860 test ! -s conftest.err
15861 } && test -s conftest$ac_exeext &&
15862 $as_test_x conftest$ac_exeext; then
15863 ac_cv_lib_m_sqrt=yes
15864 else
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15867
15868 ac_cv_lib_m_sqrt=no
15869 fi
15870
15871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15872 conftest$ac_exeext conftest.$ac_ext
15873 LIBS=$ac_check_lib_save_LIBS
15874 fi
15875 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15876 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15877 if test $ac_cv_lib_m_sqrt = yes; then
15878 cat >>confdefs.h <<_ACEOF
15879 #define HAVE_LIBM 1
15880 _ACEOF
15881
15882 LIBS="-lm $LIBS"
15883
15884 fi
15885
15886
15887 # Check for mail-locking functions in a "mail" library. Probably this should
15888 # have the same check as for liblockfile below.
15889
15890 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15891 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15892 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15895 ac_check_lib_save_LIBS=$LIBS
15896 LIBS="-lmail $LIBS"
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h. */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15903
15904 /* Override any GCC internal prototype to avoid an error.
15905 Use char because int might match the return type of a GCC
15906 builtin and then its argument prototype would still apply. */
15907 #ifdef __cplusplus
15908 extern "C"
15909 #endif
15910 char maillock ();
15911 int
15912 main ()
15913 {
15914 return maillock ();
15915 ;
15916 return 0;
15917 }
15918 _ACEOF
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (ac_try="$ac_link"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924 esac
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_link") 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest$ac_exeext &&
15936 $as_test_x conftest$ac_exeext; then
15937 ac_cv_lib_mail_maillock=yes
15938 else
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 ac_cv_lib_mail_maillock=no
15943 fi
15944
15945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15946 conftest$ac_exeext conftest.$ac_ext
15947 LIBS=$ac_check_lib_save_LIBS
15948 fi
15949 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15950 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15951 if test $ac_cv_lib_mail_maillock = yes; then
15952 cat >>confdefs.h <<_ACEOF
15953 #define HAVE_LIBMAIL 1
15954 _ACEOF
15955
15956 LIBS="-lmail $LIBS"
15957
15958 fi
15959
15960
15961 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15962 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15963 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 else
15966 ac_check_lib_save_LIBS=$LIBS
15967 LIBS="-llockfile $LIBS"
15968 cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h. */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974
15975 /* Override any GCC internal prototype to avoid an error.
15976 Use char because int might match the return type of a GCC
15977 builtin and then its argument prototype would still apply. */
15978 #ifdef __cplusplus
15979 extern "C"
15980 #endif
15981 char maillock ();
15982 int
15983 main ()
15984 {
15985 return maillock ();
15986 ;
15987 return 0;
15988 }
15989 _ACEOF
15990 rm -f conftest.$ac_objext conftest$ac_exeext
15991 if { (ac_try="$ac_link"
15992 case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_link") 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && {
16004 test -z "$ac_c_werror_flag" ||
16005 test ! -s conftest.err
16006 } && test -s conftest$ac_exeext &&
16007 $as_test_x conftest$ac_exeext; then
16008 ac_cv_lib_lockfile_maillock=yes
16009 else
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16012
16013 ac_cv_lib_lockfile_maillock=no
16014 fi
16015
16016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16017 conftest$ac_exeext conftest.$ac_ext
16018 LIBS=$ac_check_lib_save_LIBS
16019 fi
16020 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16021 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16022 if test $ac_cv_lib_lockfile_maillock = yes; then
16023 cat >>confdefs.h <<_ACEOF
16024 #define HAVE_LIBLOCKFILE 1
16025 _ACEOF
16026
16027 LIBS="-llockfile $LIBS"
16028
16029 fi
16030
16031 # If we have the shared liblockfile, assume we must use it for mail
16032 # locking (e.g. Debian). If we couldn't link against liblockfile
16033 # (no liblockfile.a installed), ensure that we don't need to.
16034 if test "$ac_cv_lib_lockfile_maillock" = no; then
16035 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16036 set dummy liblockfile.so; ac_word=$2
16037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16039 if test "${ac_cv_prog_liblockfile+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 else
16042 if test -n "$liblockfile"; then
16043 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16044 else
16045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16046 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16047 for as_dir in $as_dummy
16048 do
16049 IFS=$as_save_IFS
16050 test -z "$as_dir" && as_dir=.
16051 for ac_exec_ext in '' $ac_executable_extensions; do
16052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16053 ac_cv_prog_liblockfile="yes"
16054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16055 break 2
16056 fi
16057 done
16058 done
16059 IFS=$as_save_IFS
16060
16061 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16062 fi
16063 fi
16064 liblockfile=$ac_cv_prog_liblockfile
16065 if test -n "$liblockfile"; then
16066 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16067 echo "${ECHO_T}$liblockfile" >&6; }
16068 else
16069 { echo "$as_me:$LINENO: result: no" >&5
16070 echo "${ECHO_T}no" >&6; }
16071 fi
16072
16073
16074 if test $ac_cv_prog_liblockfile = yes; then
16075 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16076 This probably means that movemail could lose mail.
16077 There may be a \`development' package to install containing liblockfile." >&5
16078 echo "$as_me: error: Shared liblockfile found but can't link against it.
16079 This probably means that movemail could lose mail.
16080 There may be a \`development' package to install containing liblockfile." >&2;}
16081 { (exit 1); exit 1; }; }
16082 else :
16083 fi
16084 fi
16085
16086 for ac_func in touchlock
16087 do
16088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h. */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16102 #define $ac_func innocuous_$ac_func
16103
16104 /* System header to define __stub macros and hopefully few prototypes,
16105 which can conflict with char $ac_func (); below.
16106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16107 <limits.h> exists even on freestanding compilers. */
16108
16109 #ifdef __STDC__
16110 # include <limits.h>
16111 #else
16112 # include <assert.h>
16113 #endif
16114
16115 #undef $ac_func
16116
16117 /* Override any GCC internal prototype to avoid an error.
16118 Use char because int might match the return type of a GCC
16119 builtin and then its argument prototype would still apply. */
16120 #ifdef __cplusplus
16121 extern "C"
16122 #endif
16123 char $ac_func ();
16124 /* The GNU C library defines this for functions which it implements
16125 to always fail with ENOSYS. Some functions are actually named
16126 something starting with __ and the normal name is an alias. */
16127 #if defined __stub_$ac_func || defined __stub___$ac_func
16128 choke me
16129 #endif
16130
16131 int
16132 main ()
16133 {
16134 return $ac_func ();
16135 ;
16136 return 0;
16137 }
16138 _ACEOF
16139 rm -f conftest.$ac_objext conftest$ac_exeext
16140 if { (ac_try="$ac_link"
16141 case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16144 esac
16145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16146 (eval "$ac_link") 2>conftest.er1
16147 ac_status=$?
16148 grep -v '^ *+' conftest.er1 >conftest.err
16149 rm -f conftest.er1
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } && {
16153 test -z "$ac_c_werror_flag" ||
16154 test ! -s conftest.err
16155 } && test -s conftest$ac_exeext &&
16156 $as_test_x conftest$ac_exeext; then
16157 eval "$as_ac_var=yes"
16158 else
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16161
16162 eval "$as_ac_var=no"
16163 fi
16164
16165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16166 conftest$ac_exeext conftest.$ac_ext
16167 fi
16168 ac_res=`eval echo '${'$as_ac_var'}'`
16169 { echo "$as_me:$LINENO: result: $ac_res" >&5
16170 echo "${ECHO_T}$ac_res" >&6; }
16171 if test `eval echo '${'$as_ac_var'}'` = yes; then
16172 cat >>confdefs.h <<_ACEOF
16173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16174 _ACEOF
16175
16176 fi
16177 done
16178
16179
16180 for ac_header in maillock.h
16181 do
16182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 fi
16189 ac_res=`eval echo '${'$as_ac_Header'}'`
16190 { echo "$as_me:$LINENO: result: $ac_res" >&5
16191 echo "${ECHO_T}$ac_res" >&6; }
16192 else
16193 # Is the header compilable?
16194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 $ac_includes_default
16203 #include <$ac_header>
16204 _ACEOF
16205 rm -f conftest.$ac_objext
16206 if { (ac_try="$ac_compile"
16207 case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_compile") 2>conftest.er1
16213 ac_status=$?
16214 grep -v '^ *+' conftest.er1 >conftest.err
16215 rm -f conftest.er1
16216 cat conftest.err >&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } && {
16219 test -z "$ac_c_werror_flag" ||
16220 test ! -s conftest.err
16221 } && test -s conftest.$ac_objext; then
16222 ac_header_compiler=yes
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227 ac_header_compiler=no
16228 fi
16229
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16232 echo "${ECHO_T}$ac_header_compiler" >&6; }
16233
16234 # Is the header present?
16235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include <$ac_header>
16244 _ACEOF
16245 if { (ac_try="$ac_cpp conftest.$ac_ext"
16246 case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16249 esac
16250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16252 ac_status=$?
16253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } >/dev/null && {
16258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16259 test ! -s conftest.err
16260 }; then
16261 ac_header_preproc=yes
16262 else
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16265
16266 ac_header_preproc=no
16267 fi
16268
16269 rm -f conftest.err conftest.$ac_ext
16270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16271 echo "${ECHO_T}$ac_header_preproc" >&6; }
16272
16273 # So? What about this header?
16274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16275 yes:no: )
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16280 ac_header_preproc=yes
16281 ;;
16282 no:yes:* )
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16295
16296 ;;
16297 esac
16298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 else
16303 eval "$as_ac_Header=\$ac_header_preproc"
16304 fi
16305 ac_res=`eval echo '${'$as_ac_Header'}'`
16306 { echo "$as_me:$LINENO: result: $ac_res" >&5
16307 echo "${ECHO_T}$ac_res" >&6; }
16308
16309 fi
16310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16311 cat >>confdefs.h <<_ACEOF
16312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16313 _ACEOF
16314
16315 fi
16316
16317 done
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391 for ac_func in gethostname getdomainname dup2 \
16392 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16393 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16394 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16395 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16396 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16397 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16398 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16399 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16400 cfmakeraw cfsetspeed
16401 do
16402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 else
16408 cat >conftest.$ac_ext <<_ACEOF
16409 /* confdefs.h. */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16416 #define $ac_func innocuous_$ac_func
16417
16418 /* System header to define __stub macros and hopefully few prototypes,
16419 which can conflict with char $ac_func (); below.
16420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16421 <limits.h> exists even on freestanding compilers. */
16422
16423 #ifdef __STDC__
16424 # include <limits.h>
16425 #else
16426 # include <assert.h>
16427 #endif
16428
16429 #undef $ac_func
16430
16431 /* Override any GCC internal prototype to avoid an error.
16432 Use char because int might match the return type of a GCC
16433 builtin and then its argument prototype would still apply. */
16434 #ifdef __cplusplus
16435 extern "C"
16436 #endif
16437 char $ac_func ();
16438 /* The GNU C library defines this for functions which it implements
16439 to always fail with ENOSYS. Some functions are actually named
16440 something starting with __ and the normal name is an alias. */
16441 #if defined __stub_$ac_func || defined __stub___$ac_func
16442 choke me
16443 #endif
16444
16445 int
16446 main ()
16447 {
16448 return $ac_func ();
16449 ;
16450 return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext conftest$ac_exeext
16454 if { (ac_try="$ac_link"
16455 case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_link") 2>conftest.er1
16461 ac_status=$?
16462 grep -v '^ *+' conftest.er1 >conftest.err
16463 rm -f conftest.er1
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } && {
16467 test -z "$ac_c_werror_flag" ||
16468 test ! -s conftest.err
16469 } && test -s conftest$ac_exeext &&
16470 $as_test_x conftest$ac_exeext; then
16471 eval "$as_ac_var=yes"
16472 else
16473 echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16475
16476 eval "$as_ac_var=no"
16477 fi
16478
16479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16480 conftest$ac_exeext conftest.$ac_ext
16481 fi
16482 ac_res=`eval echo '${'$as_ac_var'}'`
16483 { echo "$as_me:$LINENO: result: $ac_res" >&5
16484 echo "${ECHO_T}$ac_res" >&6; }
16485 if test `eval echo '${'$as_ac_var'}'` = yes; then
16486 cat >>confdefs.h <<_ACEOF
16487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16488 _ACEOF
16489
16490 fi
16491 done
16492
16493
16494
16495 for ac_header in sys/un.h
16496 do
16497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 fi
16504 ac_res=`eval echo '${'$as_ac_Header'}'`
16505 { echo "$as_me:$LINENO: result: $ac_res" >&5
16506 echo "${ECHO_T}$ac_res" >&6; }
16507 else
16508 # Is the header compilable?
16509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16511 cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h. */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 $ac_includes_default
16518 #include <$ac_header>
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (ac_try="$ac_compile"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_compile") 2>conftest.er1
16528 ac_status=$?
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && {
16534 test -z "$ac_c_werror_flag" ||
16535 test ! -s conftest.err
16536 } && test -s conftest.$ac_objext; then
16537 ac_header_compiler=yes
16538 else
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542 ac_header_compiler=no
16543 fi
16544
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16547 echo "${ECHO_T}$ac_header_compiler" >&6; }
16548
16549 # Is the header present?
16550 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h. */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 #include <$ac_header>
16559 _ACEOF
16560 if { (ac_try="$ac_cpp conftest.$ac_ext"
16561 case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16564 esac
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16567 ac_status=$?
16568 grep -v '^ *+' conftest.er1 >conftest.err
16569 rm -f conftest.er1
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } >/dev/null && {
16573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16574 test ! -s conftest.err
16575 }; then
16576 ac_header_preproc=yes
16577 else
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16580
16581 ac_header_preproc=no
16582 fi
16583
16584 rm -f conftest.err conftest.$ac_ext
16585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16586 echo "${ECHO_T}$ac_header_preproc" >&6; }
16587
16588 # So? What about this header?
16589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16590 yes:no: )
16591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16595 ac_header_preproc=yes
16596 ;;
16597 no:yes:* )
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16610
16611 ;;
16612 esac
16613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618 eval "$as_ac_Header=\$ac_header_preproc"
16619 fi
16620 ac_res=`eval echo '${'$as_ac_Header'}'`
16621 { echo "$as_me:$LINENO: result: $ac_res" >&5
16622 echo "${ECHO_T}$ac_res" >&6; }
16623
16624 fi
16625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16626 cat >>confdefs.h <<_ACEOF
16627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16628 _ACEOF
16629
16630 fi
16631
16632 done
16633
16634
16635
16636
16637
16638
16639 for ac_header in $ac_header_list
16640 do
16641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 fi
16648 ac_res=`eval echo '${'$as_ac_Header'}'`
16649 { echo "$as_me:$LINENO: result: $ac_res" >&5
16650 echo "${ECHO_T}$ac_res" >&6; }
16651 else
16652 # Is the header compilable?
16653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16655 cat >conftest.$ac_ext <<_ACEOF
16656 /* confdefs.h. */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 $ac_includes_default
16662 #include <$ac_header>
16663 _ACEOF
16664 rm -f conftest.$ac_objext
16665 if { (ac_try="$ac_compile"
16666 case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_compile") 2>conftest.er1
16672 ac_status=$?
16673 grep -v '^ *+' conftest.er1 >conftest.err
16674 rm -f conftest.er1
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } && {
16678 test -z "$ac_c_werror_flag" ||
16679 test ! -s conftest.err
16680 } && test -s conftest.$ac_objext; then
16681 ac_header_compiler=yes
16682 else
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16685
16686 ac_header_compiler=no
16687 fi
16688
16689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16691 echo "${ECHO_T}$ac_header_compiler" >&6; }
16692
16693 # Is the header present?
16694 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16696 cat >conftest.$ac_ext <<_ACEOF
16697 /* confdefs.h. */
16698 _ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h. */
16702 #include <$ac_header>
16703 _ACEOF
16704 if { (ac_try="$ac_cpp conftest.$ac_ext"
16705 case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } >/dev/null && {
16717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16718 test ! -s conftest.err
16719 }; then
16720 ac_header_preproc=yes
16721 else
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725 ac_header_preproc=no
16726 fi
16727
16728 rm -f conftest.err conftest.$ac_ext
16729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16730 echo "${ECHO_T}$ac_header_preproc" >&6; }
16731
16732 # So? What about this header?
16733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16734 yes:no: )
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16739 ac_header_preproc=yes
16740 ;;
16741 no:yes:* )
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16749 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16754
16755 ;;
16756 esac
16757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 else
16762 eval "$as_ac_Header=\$ac_header_preproc"
16763 fi
16764 ac_res=`eval echo '${'$as_ac_Header'}'`
16765 { echo "$as_me:$LINENO: result: $ac_res" >&5
16766 echo "${ECHO_T}$ac_res" >&6; }
16767
16768 fi
16769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16770 cat >>confdefs.h <<_ACEOF
16771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16772 _ACEOF
16773
16774 fi
16775
16776 done
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786 for ac_func in $ac_func_list
16787 do
16788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 else
16794 cat >conftest.$ac_ext <<_ACEOF
16795 /* confdefs.h. */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16802 #define $ac_func innocuous_$ac_func
16803
16804 /* System header to define __stub macros and hopefully few prototypes,
16805 which can conflict with char $ac_func (); below.
16806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16807 <limits.h> exists even on freestanding compilers. */
16808
16809 #ifdef __STDC__
16810 # include <limits.h>
16811 #else
16812 # include <assert.h>
16813 #endif
16814
16815 #undef $ac_func
16816
16817 /* Override any GCC internal prototype to avoid an error.
16818 Use char because int might match the return type of a GCC
16819 builtin and then its argument prototype would still apply. */
16820 #ifdef __cplusplus
16821 extern "C"
16822 #endif
16823 char $ac_func ();
16824 /* The GNU C library defines this for functions which it implements
16825 to always fail with ENOSYS. Some functions are actually named
16826 something starting with __ and the normal name is an alias. */
16827 #if defined __stub_$ac_func || defined __stub___$ac_func
16828 choke me
16829 #endif
16830
16831 int
16832 main ()
16833 {
16834 return $ac_func ();
16835 ;
16836 return 0;
16837 }
16838 _ACEOF
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_link") 2>conftest.er1
16847 ac_status=$?
16848 grep -v '^ *+' conftest.er1 >conftest.err
16849 rm -f conftest.er1
16850 cat conftest.err >&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } && {
16853 test -z "$ac_c_werror_flag" ||
16854 test ! -s conftest.err
16855 } && test -s conftest$ac_exeext &&
16856 $as_test_x conftest$ac_exeext; then
16857 eval "$as_ac_var=yes"
16858 else
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16861
16862 eval "$as_ac_var=no"
16863 fi
16864
16865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16866 conftest$ac_exeext conftest.$ac_ext
16867 fi
16868 ac_res=`eval echo '${'$as_ac_var'}'`
16869 { echo "$as_me:$LINENO: result: $ac_res" >&5
16870 echo "${ECHO_T}$ac_res" >&6; }
16871 if test `eval echo '${'$as_ac_var'}'` = yes; then
16872 cat >>confdefs.h <<_ACEOF
16873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16874 _ACEOF
16875
16876 fi
16877 done
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895 { echo "$as_me:$LINENO: checking for working mktime" >&5
16896 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16897 if test "${ac_cv_func_working_mktime+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900 if test "$cross_compiling" = yes; then
16901 ac_cv_func_working_mktime=no
16902 else
16903 cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h. */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 /* Test program from Paul Eggert and Tony Leneis. */
16910 #ifdef TIME_WITH_SYS_TIME
16911 # include <sys/time.h>
16912 # include <time.h>
16913 #else
16914 # ifdef HAVE_SYS_TIME_H
16915 # include <sys/time.h>
16916 # else
16917 # include <time.h>
16918 # endif
16919 #endif
16920
16921 #include <stdlib.h>
16922
16923 #ifdef HAVE_UNISTD_H
16924 # include <unistd.h>
16925 #endif
16926
16927 #ifndef HAVE_ALARM
16928 # define alarm(X) /* empty */
16929 #endif
16930
16931 /* Work around redefinition to rpl_putenv by other config tests. */
16932 #undef putenv
16933
16934 static time_t time_t_max;
16935 static time_t time_t_min;
16936
16937 /* Values we'll use to set the TZ environment variable. */
16938 static char *tz_strings[] = {
16939 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16940 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16941 };
16942 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16943
16944 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16945 Based on a problem report from Andreas Jaeger. */
16946 static int
16947 spring_forward_gap ()
16948 {
16949 /* glibc (up to about 1998-10-07) failed this test. */
16950 struct tm tm;
16951
16952 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16953 instead of "TZ=America/Vancouver" in order to detect the bug even
16954 on systems that don't support the Olson extension, or don't have the
16955 full zoneinfo tables installed. */
16956 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16957
16958 tm.tm_year = 98;
16959 tm.tm_mon = 3;
16960 tm.tm_mday = 5;
16961 tm.tm_hour = 2;
16962 tm.tm_min = 0;
16963 tm.tm_sec = 0;
16964 tm.tm_isdst = -1;
16965 return mktime (&tm) != (time_t) -1;
16966 }
16967
16968 static int
16969 mktime_test1 (now)
16970 time_t now;
16971 {
16972 struct tm *lt;
16973 return ! (lt = localtime (&now)) || mktime (lt) == now;
16974 }
16975
16976 static int
16977 mktime_test (now)
16978 time_t now;
16979 {
16980 return (mktime_test1 (now)
16981 && mktime_test1 ((time_t) (time_t_max - now))
16982 && mktime_test1 ((time_t) (time_t_min + now)));
16983 }
16984
16985 static int
16986 irix_6_4_bug ()
16987 {
16988 /* Based on code from Ariel Faigon. */
16989 struct tm tm;
16990 tm.tm_year = 96;
16991 tm.tm_mon = 3;
16992 tm.tm_mday = 0;
16993 tm.tm_hour = 0;
16994 tm.tm_min = 0;
16995 tm.tm_sec = 0;
16996 tm.tm_isdst = -1;
16997 mktime (&tm);
16998 return tm.tm_mon == 2 && tm.tm_mday == 31;
16999 }
17000
17001 static int
17002 bigtime_test (j)
17003 int j;
17004 {
17005 struct tm tm;
17006 time_t now;
17007 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17008 now = mktime (&tm);
17009 if (now != (time_t) -1)
17010 {
17011 struct tm *lt = localtime (&now);
17012 if (! (lt
17013 && lt->tm_year == tm.tm_year
17014 && lt->tm_mon == tm.tm_mon
17015 && lt->tm_mday == tm.tm_mday
17016 && lt->tm_hour == tm.tm_hour
17017 && lt->tm_min == tm.tm_min
17018 && lt->tm_sec == tm.tm_sec
17019 && lt->tm_yday == tm.tm_yday
17020 && lt->tm_wday == tm.tm_wday
17021 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17022 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17023 return 0;
17024 }
17025 return 1;
17026 }
17027
17028 static int
17029 year_2050_test ()
17030 {
17031 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17032 ignoring leap seconds. */
17033 unsigned long int answer = 2527315200UL;
17034
17035 struct tm tm;
17036 time_t t;
17037 tm.tm_year = 2050 - 1900;
17038 tm.tm_mon = 2 - 1;
17039 tm.tm_mday = 1;
17040 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17041 tm.tm_isdst = -1;
17042
17043 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17044 instead of "TZ=America/Vancouver" in order to detect the bug even
17045 on systems that don't support the Olson extension, or don't have the
17046 full zoneinfo tables installed. */
17047 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17048
17049 t = mktime (&tm);
17050
17051 /* Check that the result is either a failure, or close enough
17052 to the correct answer that we can assume the discrepancy is
17053 due to leap seconds. */
17054 return (t == (time_t) -1
17055 || (0 < t && answer - 120 <= t && t <= answer + 120));
17056 }
17057
17058 int
17059 main ()
17060 {
17061 time_t t, delta;
17062 int i, j;
17063
17064 /* This test makes some buggy mktime implementations loop.
17065 Give up after 60 seconds; a mktime slower than that
17066 isn't worth using anyway. */
17067 alarm (60);
17068
17069 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17070 continue;
17071 time_t_max--;
17072 if ((time_t) -1 < 0)
17073 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17074 continue;
17075 delta = time_t_max / 997; /* a suitable prime number */
17076 for (i = 0; i < N_STRINGS; i++)
17077 {
17078 if (tz_strings[i])
17079 putenv (tz_strings[i]);
17080
17081 for (t = 0; t <= time_t_max - delta; t += delta)
17082 if (! mktime_test (t))
17083 return 1;
17084 if (! (mktime_test ((time_t) 1)
17085 && mktime_test ((time_t) (60 * 60))
17086 && mktime_test ((time_t) (60 * 60 * 24))))
17087 return 1;
17088
17089 for (j = 1; 0 < j; j *= 2)
17090 if (! bigtime_test (j))
17091 return 1;
17092 if (! bigtime_test (j - 1))
17093 return 1;
17094 }
17095 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17096 }
17097 _ACEOF
17098 rm -f conftest$ac_exeext
17099 if { (ac_try="$ac_link"
17100 case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103 esac
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_link") 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17109 { (case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17112 esac
17113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17114 (eval "$ac_try") 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 ac_cv_func_working_mktime=yes
17119 else
17120 echo "$as_me: program exited with status $ac_status" >&5
17121 echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17123
17124 ( exit $ac_status )
17125 ac_cv_func_working_mktime=no
17126 fi
17127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17128 fi
17129
17130
17131 fi
17132 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17133 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17134 if test $ac_cv_func_working_mktime = no; then
17135 case " $LIBOBJS " in
17136 *" mktime.$ac_objext "* ) ;;
17137 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17138 ;;
17139 esac
17140
17141 fi
17142
17143 if test "$ac_cv_func_working_mktime" = no; then
17144
17145 cat >>confdefs.h <<\_ACEOF
17146 #define BROKEN_MKTIME 1
17147 _ACEOF
17148
17149 fi
17150
17151 ac_have_func=no # yes means we've found a way to get the load average.
17152
17153 # Make sure getloadavg.c is where it belongs, at configure-time.
17154 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17155 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17156 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17157 { (exit 1); exit 1; }; }
17158
17159 ac_save_LIBS=$LIBS
17160
17161 # Check for getloadavg, but be sure not to touch the cache variable.
17162 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17163 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17164 if test "${ac_cv_func_getloadavg+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167 cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h. */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17175 #define getloadavg innocuous_getloadavg
17176
17177 /* System header to define __stub macros and hopefully few prototypes,
17178 which can conflict with char getloadavg (); below.
17179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17180 <limits.h> exists even on freestanding compilers. */
17181
17182 #ifdef __STDC__
17183 # include <limits.h>
17184 #else
17185 # include <assert.h>
17186 #endif
17187
17188 #undef getloadavg
17189
17190 /* Override any GCC internal prototype to avoid an error.
17191 Use char because int might match the return type of a GCC
17192 builtin and then its argument prototype would still apply. */
17193 #ifdef __cplusplus
17194 extern "C"
17195 #endif
17196 char getloadavg ();
17197 /* The GNU C library defines this for functions which it implements
17198 to always fail with ENOSYS. Some functions are actually named
17199 something starting with __ and the normal name is an alias. */
17200 #if defined __stub_getloadavg || defined __stub___getloadavg
17201 choke me
17202 #endif
17203
17204 int
17205 main ()
17206 {
17207 return getloadavg ();
17208 ;
17209 return 0;
17210 }
17211 _ACEOF
17212 rm -f conftest.$ac_objext conftest$ac_exeext
17213 if { (ac_try="$ac_link"
17214 case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17217 esac
17218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219 (eval "$ac_link") 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } && {
17226 test -z "$ac_c_werror_flag" ||
17227 test ! -s conftest.err
17228 } && test -s conftest$ac_exeext &&
17229 $as_test_x conftest$ac_exeext; then
17230 ac_cv_func_getloadavg=yes
17231 else
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17234
17235 ac_cv_func_getloadavg=no
17236 fi
17237
17238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17239 conftest$ac_exeext conftest.$ac_ext
17240 fi
17241 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17242 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17243 if test $ac_cv_func_getloadavg = yes; then
17244 exit 0
17245 else
17246 exit 1
17247 fi
17248 ) && ac_have_func=yes
17249
17250 # On HPUX9, an unprivileged user can get load averages through this function.
17251
17252 for ac_func in pstat_getdynamic
17253 do
17254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 else
17260 cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h. */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17268 #define $ac_func innocuous_$ac_func
17269
17270 /* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func (); below.
17272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17273 <limits.h> exists even on freestanding compilers. */
17274
17275 #ifdef __STDC__
17276 # include <limits.h>
17277 #else
17278 # include <assert.h>
17279 #endif
17280
17281 #undef $ac_func
17282
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17286 #ifdef __cplusplus
17287 extern "C"
17288 #endif
17289 char $ac_func ();
17290 /* The GNU C library defines this for functions which it implements
17291 to always fail with ENOSYS. Some functions are actually named
17292 something starting with __ and the normal name is an alias. */
17293 #if defined __stub_$ac_func || defined __stub___$ac_func
17294 choke me
17295 #endif
17296
17297 int
17298 main ()
17299 {
17300 return $ac_func ();
17301 ;
17302 return 0;
17303 }
17304 _ACEOF
17305 rm -f conftest.$ac_objext conftest$ac_exeext
17306 if { (ac_try="$ac_link"
17307 case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310 esac
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_link") 2>conftest.er1
17313 ac_status=$?
17314 grep -v '^ *+' conftest.er1 >conftest.err
17315 rm -f conftest.er1
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } && {
17319 test -z "$ac_c_werror_flag" ||
17320 test ! -s conftest.err
17321 } && test -s conftest$ac_exeext &&
17322 $as_test_x conftest$ac_exeext; then
17323 eval "$as_ac_var=yes"
17324 else
17325 echo "$as_me: failed program was:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17327
17328 eval "$as_ac_var=no"
17329 fi
17330
17331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17332 conftest$ac_exeext conftest.$ac_ext
17333 fi
17334 ac_res=`eval echo '${'$as_ac_var'}'`
17335 { echo "$as_me:$LINENO: result: $ac_res" >&5
17336 echo "${ECHO_T}$ac_res" >&6; }
17337 if test `eval echo '${'$as_ac_var'}'` = yes; then
17338 cat >>confdefs.h <<_ACEOF
17339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17340 _ACEOF
17341
17342 fi
17343 done
17344
17345
17346 # Solaris has libkstat which does not require root.
17347
17348 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17349 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17350 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353 ac_check_lib_save_LIBS=$LIBS
17354 LIBS="-lkstat $LIBS"
17355 cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h. */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17361
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char kstat_open ();
17369 int
17370 main ()
17371 {
17372 return kstat_open ();
17373 ;
17374 return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext conftest$ac_exeext
17378 if { (ac_try="$ac_link"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_link") 2>conftest.er1
17385 ac_status=$?
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest$ac_exeext &&
17394 $as_test_x conftest$ac_exeext; then
17395 ac_cv_lib_kstat_kstat_open=yes
17396 else
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17399
17400 ac_cv_lib_kstat_kstat_open=no
17401 fi
17402
17403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17404 conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17406 fi
17407 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17408 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17409 if test $ac_cv_lib_kstat_kstat_open = yes; then
17410 cat >>confdefs.h <<_ACEOF
17411 #define HAVE_LIBKSTAT 1
17412 _ACEOF
17413
17414 LIBS="-lkstat $LIBS"
17415
17416 fi
17417
17418 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17419
17420 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17421 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17422 # to get the right answer into the cache.
17423 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17424 if test $ac_have_func = no; then
17425 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17426 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17427 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 else
17430 ac_check_lib_save_LIBS=$LIBS
17431 LIBS="-lelf $LIBS"
17432 cat >conftest.$ac_ext <<_ACEOF
17433 /* confdefs.h. */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h. */
17438
17439 /* Override any GCC internal prototype to avoid an error.
17440 Use char because int might match the return type of a GCC
17441 builtin and then its argument prototype would still apply. */
17442 #ifdef __cplusplus
17443 extern "C"
17444 #endif
17445 char elf_begin ();
17446 int
17447 main ()
17448 {
17449 return elf_begin ();
17450 ;
17451 return 0;
17452 }
17453 _ACEOF
17454 rm -f conftest.$ac_objext conftest$ac_exeext
17455 if { (ac_try="$ac_link"
17456 case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_link") 2>conftest.er1
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } && {
17468 test -z "$ac_c_werror_flag" ||
17469 test ! -s conftest.err
17470 } && test -s conftest$ac_exeext &&
17471 $as_test_x conftest$ac_exeext; then
17472 ac_cv_lib_elf_elf_begin=yes
17473 else
17474 echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17476
17477 ac_cv_lib_elf_elf_begin=no
17478 fi
17479
17480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17481 conftest$ac_exeext conftest.$ac_ext
17482 LIBS=$ac_check_lib_save_LIBS
17483 fi
17484 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17485 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17486 if test $ac_cv_lib_elf_elf_begin = yes; then
17487 LIBS="-lelf $LIBS"
17488 fi
17489
17490 fi
17491 if test $ac_have_func = no; then
17492 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17493 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17494 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497 ac_check_lib_save_LIBS=$LIBS
17498 LIBS="-lkvm $LIBS"
17499 cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h. */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505
17506 /* Override any GCC internal prototype to avoid an error.
17507 Use char because int might match the return type of a GCC
17508 builtin and then its argument prototype would still apply. */
17509 #ifdef __cplusplus
17510 extern "C"
17511 #endif
17512 char kvm_open ();
17513 int
17514 main ()
17515 {
17516 return kvm_open ();
17517 ;
17518 return 0;
17519 }
17520 _ACEOF
17521 rm -f conftest.$ac_objext conftest$ac_exeext
17522 if { (ac_try="$ac_link"
17523 case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_link") 2>conftest.er1
17529 ac_status=$?
17530 grep -v '^ *+' conftest.er1 >conftest.err
17531 rm -f conftest.er1
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } && {
17535 test -z "$ac_c_werror_flag" ||
17536 test ! -s conftest.err
17537 } && test -s conftest$ac_exeext &&
17538 $as_test_x conftest$ac_exeext; then
17539 ac_cv_lib_kvm_kvm_open=yes
17540 else
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17543
17544 ac_cv_lib_kvm_kvm_open=no
17545 fi
17546
17547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17548 conftest$ac_exeext conftest.$ac_ext
17549 LIBS=$ac_check_lib_save_LIBS
17550 fi
17551 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17552 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17553 if test $ac_cv_lib_kvm_kvm_open = yes; then
17554 LIBS="-lkvm $LIBS"
17555 fi
17556
17557 # Check for the 4.4BSD definition of getloadavg.
17558 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17559 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17560 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563 ac_check_lib_save_LIBS=$LIBS
17564 LIBS="-lutil $LIBS"
17565 cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h. */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571
17572 /* Override any GCC internal prototype to avoid an error.
17573 Use char because int might match the return type of a GCC
17574 builtin and then its argument prototype would still apply. */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 char getloadavg ();
17579 int
17580 main ()
17581 {
17582 return getloadavg ();
17583 ;
17584 return 0;
17585 }
17586 _ACEOF
17587 rm -f conftest.$ac_objext conftest$ac_exeext
17588 if { (ac_try="$ac_link"
17589 case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17592 esac
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_link") 2>conftest.er1
17595 ac_status=$?
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } && {
17601 test -z "$ac_c_werror_flag" ||
17602 test ! -s conftest.err
17603 } && test -s conftest$ac_exeext &&
17604 $as_test_x conftest$ac_exeext; then
17605 ac_cv_lib_util_getloadavg=yes
17606 else
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17609
17610 ac_cv_lib_util_getloadavg=no
17611 fi
17612
17613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17614 conftest$ac_exeext conftest.$ac_ext
17615 LIBS=$ac_check_lib_save_LIBS
17616 fi
17617 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17618 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17619 if test $ac_cv_lib_util_getloadavg = yes; then
17620 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17621 fi
17622
17623 fi
17624
17625 if test $ac_have_func = no; then
17626 # There is a commonly available library for RS/6000 AIX.
17627 # Since it is not a standard part of AIX, it might be installed locally.
17628 ac_getloadavg_LIBS=$LIBS
17629 LIBS="-L/usr/local/lib $LIBS"
17630 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17631 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17632 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 else
17635 ac_check_lib_save_LIBS=$LIBS
17636 LIBS="-lgetloadavg $LIBS"
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h. */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643
17644 /* Override any GCC internal prototype to avoid an error.
17645 Use char because int might match the return type of a GCC
17646 builtin and then its argument prototype would still apply. */
17647 #ifdef __cplusplus
17648 extern "C"
17649 #endif
17650 char getloadavg ();
17651 int
17652 main ()
17653 {
17654 return getloadavg ();
17655 ;
17656 return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_link") 2>conftest.er1
17667 ac_status=$?
17668 grep -v '^ *+' conftest.er1 >conftest.err
17669 rm -f conftest.er1
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } && {
17673 test -z "$ac_c_werror_flag" ||
17674 test ! -s conftest.err
17675 } && test -s conftest$ac_exeext &&
17676 $as_test_x conftest$ac_exeext; then
17677 ac_cv_lib_getloadavg_getloadavg=yes
17678 else
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682 ac_cv_lib_getloadavg_getloadavg=no
17683 fi
17684
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS=$ac_check_lib_save_LIBS
17688 fi
17689 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17690 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17691 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17692 LIBS="-lgetloadavg $LIBS"
17693 else
17694 LIBS=$ac_getloadavg_LIBS
17695 fi
17696
17697 fi
17698
17699 # Make sure it is really in the library, if we think we found it,
17700 # otherwise set up the replacement function.
17701
17702 for ac_func in getloadavg
17703 do
17704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710 cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h. */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17718 #define $ac_func innocuous_$ac_func
17719
17720 /* System header to define __stub macros and hopefully few prototypes,
17721 which can conflict with char $ac_func (); below.
17722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17723 <limits.h> exists even on freestanding compilers. */
17724
17725 #ifdef __STDC__
17726 # include <limits.h>
17727 #else
17728 # include <assert.h>
17729 #endif
17730
17731 #undef $ac_func
17732
17733 /* Override any GCC internal prototype to avoid an error.
17734 Use char because int might match the return type of a GCC
17735 builtin and then its argument prototype would still apply. */
17736 #ifdef __cplusplus
17737 extern "C"
17738 #endif
17739 char $ac_func ();
17740 /* The GNU C library defines this for functions which it implements
17741 to always fail with ENOSYS. Some functions are actually named
17742 something starting with __ and the normal name is an alias. */
17743 #if defined __stub_$ac_func || defined __stub___$ac_func
17744 choke me
17745 #endif
17746
17747 int
17748 main ()
17749 {
17750 return $ac_func ();
17751 ;
17752 return 0;
17753 }
17754 _ACEOF
17755 rm -f conftest.$ac_objext conftest$ac_exeext
17756 if { (ac_try="$ac_link"
17757 case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_link") 2>conftest.er1
17763 ac_status=$?
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } && {
17769 test -z "$ac_c_werror_flag" ||
17770 test ! -s conftest.err
17771 } && test -s conftest$ac_exeext &&
17772 $as_test_x conftest$ac_exeext; then
17773 eval "$as_ac_var=yes"
17774 else
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778 eval "$as_ac_var=no"
17779 fi
17780
17781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17782 conftest$ac_exeext conftest.$ac_ext
17783 fi
17784 ac_res=`eval echo '${'$as_ac_var'}'`
17785 { echo "$as_me:$LINENO: result: $ac_res" >&5
17786 echo "${ECHO_T}$ac_res" >&6; }
17787 if test `eval echo '${'$as_ac_var'}'` = yes; then
17788 cat >>confdefs.h <<_ACEOF
17789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17790 _ACEOF
17791
17792 else
17793 case " $LIBOBJS " in
17794 *" getloadavg.$ac_objext "* ) ;;
17795 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17796 ;;
17797 esac
17798
17799
17800 cat >>confdefs.h <<\_ACEOF
17801 #define C_GETLOADAVG 1
17802 _ACEOF
17803
17804 # Figure out what our getloadavg.c needs.
17805 ac_have_func=no
17806 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17807 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17808 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17809 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 fi
17812 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17813 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17814 else
17815 # Is the header compilable?
17816 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17817 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17818 cat >conftest.$ac_ext <<_ACEOF
17819 /* confdefs.h. */
17820 _ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17824 $ac_includes_default
17825 #include <sys/dg_sys_info.h>
17826 _ACEOF
17827 rm -f conftest.$ac_objext
17828 if { (ac_try="$ac_compile"
17829 case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_compile") 2>conftest.er1
17835 ac_status=$?
17836 grep -v '^ *+' conftest.er1 >conftest.err
17837 rm -f conftest.er1
17838 cat conftest.err >&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } && {
17841 test -z "$ac_c_werror_flag" ||
17842 test ! -s conftest.err
17843 } && test -s conftest.$ac_objext; then
17844 ac_header_compiler=yes
17845 else
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849 ac_header_compiler=no
17850 fi
17851
17852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17854 echo "${ECHO_T}$ac_header_compiler" >&6; }
17855
17856 # Is the header present?
17857 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17858 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17859 cat >conftest.$ac_ext <<_ACEOF
17860 /* confdefs.h. */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 #include <sys/dg_sys_info.h>
17866 _ACEOF
17867 if { (ac_try="$ac_cpp conftest.$ac_ext"
17868 case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17871 esac
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17874 ac_status=$?
17875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } >/dev/null && {
17880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17881 test ! -s conftest.err
17882 }; then
17883 ac_header_preproc=yes
17884 else
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888 ac_header_preproc=no
17889 fi
17890
17891 rm -f conftest.err conftest.$ac_ext
17892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17893 echo "${ECHO_T}$ac_header_preproc" >&6; }
17894
17895 # So? What about this header?
17896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17897 yes:no: )
17898 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17899 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17901 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17902 ac_header_preproc=yes
17903 ;;
17904 no:yes:* )
17905 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17906 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17907 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17908 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17909 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17910 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17911 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17912 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17913 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17914 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17915 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17916 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17917
17918 ;;
17919 esac
17920 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17921 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17922 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17924 else
17925 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17926 fi
17927 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17928 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17929
17930 fi
17931 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17932 ac_have_func=yes
17933
17934 cat >>confdefs.h <<\_ACEOF
17935 #define DGUX 1
17936 _ACEOF
17937
17938
17939 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17940 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17941 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17943 else
17944 ac_check_lib_save_LIBS=$LIBS
17945 LIBS="-ldgc $LIBS"
17946 cat >conftest.$ac_ext <<_ACEOF
17947 /* confdefs.h. */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952
17953 /* Override any GCC internal prototype to avoid an error.
17954 Use char because int might match the return type of a GCC
17955 builtin and then its argument prototype would still apply. */
17956 #ifdef __cplusplus
17957 extern "C"
17958 #endif
17959 char dg_sys_info ();
17960 int
17961 main ()
17962 {
17963 return dg_sys_info ();
17964 ;
17965 return 0;
17966 }
17967 _ACEOF
17968 rm -f conftest.$ac_objext conftest$ac_exeext
17969 if { (ac_try="$ac_link"
17970 case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17973 esac
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_link") 2>conftest.er1
17976 ac_status=$?
17977 grep -v '^ *+' conftest.er1 >conftest.err
17978 rm -f conftest.er1
17979 cat conftest.err >&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } && {
17982 test -z "$ac_c_werror_flag" ||
17983 test ! -s conftest.err
17984 } && test -s conftest$ac_exeext &&
17985 $as_test_x conftest$ac_exeext; then
17986 ac_cv_lib_dgc_dg_sys_info=yes
17987 else
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17990
17991 ac_cv_lib_dgc_dg_sys_info=no
17992 fi
17993
17994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17995 conftest$ac_exeext conftest.$ac_ext
17996 LIBS=$ac_check_lib_save_LIBS
17997 fi
17998 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17999 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18000 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18001 cat >>confdefs.h <<_ACEOF
18002 #define HAVE_LIBDGC 1
18003 _ACEOF
18004
18005 LIBS="-ldgc $LIBS"
18006
18007 fi
18008
18009 fi
18010
18011
18012
18013 if test "${ac_cv_header_locale_h+set}" = set; then
18014 { echo "$as_me:$LINENO: checking for locale.h" >&5
18015 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18016 if test "${ac_cv_header_locale_h+set}" = set; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18018 fi
18019 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18020 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18021 else
18022 # Is the header compilable?
18023 { echo "$as_me:$LINENO: checking locale.h usability" >&5
18024 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
18025 cat >conftest.$ac_ext <<_ACEOF
18026 /* confdefs.h. */
18027 _ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h. */
18031 $ac_includes_default
18032 #include <locale.h>
18033 _ACEOF
18034 rm -f conftest.$ac_objext
18035 if { (ac_try="$ac_compile"
18036 case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18039 esac
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_compile") 2>conftest.er1
18042 ac_status=$?
18043 grep -v '^ *+' conftest.er1 >conftest.err
18044 rm -f conftest.er1
18045 cat conftest.err >&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } && {
18048 test -z "$ac_c_werror_flag" ||
18049 test ! -s conftest.err
18050 } && test -s conftest.$ac_objext; then
18051 ac_header_compiler=yes
18052 else
18053 echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18055
18056 ac_header_compiler=no
18057 fi
18058
18059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18061 echo "${ECHO_T}$ac_header_compiler" >&6; }
18062
18063 # Is the header present?
18064 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18065 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18066 cat >conftest.$ac_ext <<_ACEOF
18067 /* confdefs.h. */
18068 _ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h. */
18072 #include <locale.h>
18073 _ACEOF
18074 if { (ac_try="$ac_cpp conftest.$ac_ext"
18075 case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18081 ac_status=$?
18082 grep -v '^ *+' conftest.er1 >conftest.err
18083 rm -f conftest.er1
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } >/dev/null && {
18087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18088 test ! -s conftest.err
18089 }; then
18090 ac_header_preproc=yes
18091 else
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18094
18095 ac_header_preproc=no
18096 fi
18097
18098 rm -f conftest.err conftest.$ac_ext
18099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18100 echo "${ECHO_T}$ac_header_preproc" >&6; }
18101
18102 # So? What about this header?
18103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18104 yes:no: )
18105 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18106 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18107 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18108 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18109 ac_header_preproc=yes
18110 ;;
18111 no:yes:* )
18112 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18113 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18114 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18115 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18116 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18117 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18118 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18119 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18120 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18121 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18122 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18123 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18124
18125 ;;
18126 esac
18127 { echo "$as_me:$LINENO: checking for locale.h" >&5
18128 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18129 if test "${ac_cv_header_locale_h+set}" = set; then
18130 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 else
18132 ac_cv_header_locale_h=$ac_header_preproc
18133 fi
18134 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18135 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18136
18137 fi
18138
18139
18140
18141 for ac_func in setlocale
18142 do
18143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 else
18149 cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h. */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18157 #define $ac_func innocuous_$ac_func
18158
18159 /* System header to define __stub macros and hopefully few prototypes,
18160 which can conflict with char $ac_func (); below.
18161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18162 <limits.h> exists even on freestanding compilers. */
18163
18164 #ifdef __STDC__
18165 # include <limits.h>
18166 #else
18167 # include <assert.h>
18168 #endif
18169
18170 #undef $ac_func
18171
18172 /* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18175 #ifdef __cplusplus
18176 extern "C"
18177 #endif
18178 char $ac_func ();
18179 /* The GNU C library defines this for functions which it implements
18180 to always fail with ENOSYS. Some functions are actually named
18181 something starting with __ and the normal name is an alias. */
18182 #if defined __stub_$ac_func || defined __stub___$ac_func
18183 choke me
18184 #endif
18185
18186 int
18187 main ()
18188 {
18189 return $ac_func ();
18190 ;
18191 return 0;
18192 }
18193 _ACEOF
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (ac_try="$ac_link"
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_link") 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_exeext &&
18211 $as_test_x conftest$ac_exeext; then
18212 eval "$as_ac_var=yes"
18213 else
18214 echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18216
18217 eval "$as_ac_var=no"
18218 fi
18219
18220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18221 conftest$ac_exeext conftest.$ac_ext
18222 fi
18223 ac_res=`eval echo '${'$as_ac_var'}'`
18224 { echo "$as_me:$LINENO: result: $ac_res" >&5
18225 echo "${ECHO_T}$ac_res" >&6; }
18226 if test `eval echo '${'$as_ac_var'}'` = yes; then
18227 cat >>confdefs.h <<_ACEOF
18228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18229 _ACEOF
18230
18231 fi
18232 done
18233
18234
18235 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18236 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18237 # Irix 4.0.5F has the header but not the library.
18238 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18239 ac_have_func=yes
18240
18241 cat >>confdefs.h <<\_ACEOF
18242 #define SVR4 1
18243 _ACEOF
18244
18245 fi
18246
18247 if test $ac_have_func = no; then
18248 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18249 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18250 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18251 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 fi
18254 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18255 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18256 else
18257 # Is the header compilable?
18258 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18259 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18260 cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h. */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 $ac_includes_default
18267 #include <inq_stats/cpustats.h>
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (ac_try="$ac_compile"
18271 case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18274 esac
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_compile") 2>conftest.er1
18277 ac_status=$?
18278 grep -v '^ *+' conftest.er1 >conftest.err
18279 rm -f conftest.er1
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } && {
18283 test -z "$ac_c_werror_flag" ||
18284 test ! -s conftest.err
18285 } && test -s conftest.$ac_objext; then
18286 ac_header_compiler=yes
18287 else
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18290
18291 ac_header_compiler=no
18292 fi
18293
18294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18296 echo "${ECHO_T}$ac_header_compiler" >&6; }
18297
18298 # Is the header present?
18299 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18300 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18301 cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 #include <inq_stats/cpustats.h>
18308 _ACEOF
18309 if { (ac_try="$ac_cpp conftest.$ac_ext"
18310 case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18316 ac_status=$?
18317 grep -v '^ *+' conftest.er1 >conftest.err
18318 rm -f conftest.er1
18319 cat conftest.err >&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } >/dev/null && {
18322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18323 test ! -s conftest.err
18324 }; then
18325 ac_header_preproc=yes
18326 else
18327 echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18329
18330 ac_header_preproc=no
18331 fi
18332
18333 rm -f conftest.err conftest.$ac_ext
18334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18335 echo "${ECHO_T}$ac_header_preproc" >&6; }
18336
18337 # So? What about this header?
18338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18339 yes:no: )
18340 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18341 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18343 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18344 ac_header_preproc=yes
18345 ;;
18346 no:yes:* )
18347 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18348 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18349 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18350 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18351 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18352 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18353 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18354 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18355 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18356 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18357 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18358 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18359
18360 ;;
18361 esac
18362 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18363 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18364 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18365 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 else
18367 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18368 fi
18369 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18370 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18371
18372 fi
18373 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18374 ac_have_func=yes
18375
18376 cat >>confdefs.h <<\_ACEOF
18377 #define UMAX 1
18378 _ACEOF
18379
18380
18381 cat >>confdefs.h <<\_ACEOF
18382 #define UMAX4_3 1
18383 _ACEOF
18384
18385 fi
18386
18387
18388 fi
18389
18390 if test $ac_have_func = no; then
18391 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18392 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18393 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18394 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 fi
18397 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18398 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18399 else
18400 # Is the header compilable?
18401 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18402 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18403 cat >conftest.$ac_ext <<_ACEOF
18404 /* confdefs.h. */
18405 _ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18409 $ac_includes_default
18410 #include <sys/cpustats.h>
18411 _ACEOF
18412 rm -f conftest.$ac_objext
18413 if { (ac_try="$ac_compile"
18414 case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18417 esac
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_compile") 2>conftest.er1
18420 ac_status=$?
18421 grep -v '^ *+' conftest.er1 >conftest.err
18422 rm -f conftest.er1
18423 cat conftest.err >&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } && {
18426 test -z "$ac_c_werror_flag" ||
18427 test ! -s conftest.err
18428 } && test -s conftest.$ac_objext; then
18429 ac_header_compiler=yes
18430 else
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18433
18434 ac_header_compiler=no
18435 fi
18436
18437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18439 echo "${ECHO_T}$ac_header_compiler" >&6; }
18440
18441 # Is the header present?
18442 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18443 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18444 cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h. */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18450 #include <sys/cpustats.h>
18451 _ACEOF
18452 if { (ac_try="$ac_cpp conftest.$ac_ext"
18453 case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18459 ac_status=$?
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } >/dev/null && {
18465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18466 test ! -s conftest.err
18467 }; then
18468 ac_header_preproc=yes
18469 else
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18472
18473 ac_header_preproc=no
18474 fi
18475
18476 rm -f conftest.err conftest.$ac_ext
18477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18478 echo "${ECHO_T}$ac_header_preproc" >&6; }
18479
18480 # So? What about this header?
18481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18482 yes:no: )
18483 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18484 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18485 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18486 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18487 ac_header_preproc=yes
18488 ;;
18489 no:yes:* )
18490 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18491 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18492 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18493 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18494 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18495 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18496 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18497 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18498 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18499 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18500 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18501 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18502
18503 ;;
18504 esac
18505 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18506 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18507 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18511 fi
18512 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18513 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18514
18515 fi
18516 if test $ac_cv_header_sys_cpustats_h = yes; then
18517 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18518 #define UMAX 1
18519 _ACEOF
18520
18521 fi
18522
18523
18524 fi
18525
18526 if test $ac_have_func = no; then
18527
18528 for ac_header in mach/mach.h
18529 do
18530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 fi
18537 ac_res=`eval echo '${'$as_ac_Header'}'`
18538 { echo "$as_me:$LINENO: result: $ac_res" >&5
18539 echo "${ECHO_T}$ac_res" >&6; }
18540 else
18541 # Is the header compilable?
18542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18544 cat >conftest.$ac_ext <<_ACEOF
18545 /* confdefs.h. */
18546 _ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18550 $ac_includes_default
18551 #include <$ac_header>
18552 _ACEOF
18553 rm -f conftest.$ac_objext
18554 if { (ac_try="$ac_compile"
18555 case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18558 esac
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_compile") 2>conftest.er1
18561 ac_status=$?
18562 grep -v '^ *+' conftest.er1 >conftest.err
18563 rm -f conftest.er1
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } && {
18567 test -z "$ac_c_werror_flag" ||
18568 test ! -s conftest.err
18569 } && test -s conftest.$ac_objext; then
18570 ac_header_compiler=yes
18571 else
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18574
18575 ac_header_compiler=no
18576 fi
18577
18578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18580 echo "${ECHO_T}$ac_header_compiler" >&6; }
18581
18582 # Is the header present?
18583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h. */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18591 #include <$ac_header>
18592 _ACEOF
18593 if { (ac_try="$ac_cpp conftest.$ac_ext"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18600 ac_status=$?
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } >/dev/null && {
18606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18607 test ! -s conftest.err
18608 }; then
18609 ac_header_preproc=yes
18610 else
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18613
18614 ac_header_preproc=no
18615 fi
18616
18617 rm -f conftest.err conftest.$ac_ext
18618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18619 echo "${ECHO_T}$ac_header_preproc" >&6; }
18620
18621 # So? What about this header?
18622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18623 yes:no: )
18624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18628 ac_header_preproc=yes
18629 ;;
18630 no:yes:* )
18631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18643
18644 ;;
18645 esac
18646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651 eval "$as_ac_Header=\$ac_header_preproc"
18652 fi
18653 ac_res=`eval echo '${'$as_ac_Header'}'`
18654 { echo "$as_me:$LINENO: result: $ac_res" >&5
18655 echo "${ECHO_T}$ac_res" >&6; }
18656
18657 fi
18658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18659 cat >>confdefs.h <<_ACEOF
18660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18661 _ACEOF
18662
18663 fi
18664
18665 done
18666
18667 fi
18668
18669
18670 for ac_header in nlist.h
18671 do
18672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 fi
18679 ac_res=`eval echo '${'$as_ac_Header'}'`
18680 { echo "$as_me:$LINENO: result: $ac_res" >&5
18681 echo "${ECHO_T}$ac_res" >&6; }
18682 else
18683 # Is the header compilable?
18684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18686 cat >conftest.$ac_ext <<_ACEOF
18687 /* confdefs.h. */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 $ac_includes_default
18693 #include <$ac_header>
18694 _ACEOF
18695 rm -f conftest.$ac_objext
18696 if { (ac_try="$ac_compile"
18697 case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_compile") 2>conftest.er1
18703 ac_status=$?
18704 grep -v '^ *+' conftest.er1 >conftest.err
18705 rm -f conftest.er1
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } && {
18709 test -z "$ac_c_werror_flag" ||
18710 test ! -s conftest.err
18711 } && test -s conftest.$ac_objext; then
18712 ac_header_compiler=yes
18713 else
18714 echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717 ac_header_compiler=no
18718 fi
18719
18720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18722 echo "${ECHO_T}$ac_header_compiler" >&6; }
18723
18724 # Is the header present?
18725 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18727 cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h. */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 #include <$ac_header>
18734 _ACEOF
18735 if { (ac_try="$ac_cpp conftest.$ac_ext"
18736 case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18739 esac
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } >/dev/null && {
18748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18749 test ! -s conftest.err
18750 }; then
18751 ac_header_preproc=yes
18752 else
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18755
18756 ac_header_preproc=no
18757 fi
18758
18759 rm -f conftest.err conftest.$ac_ext
18760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18761 echo "${ECHO_T}$ac_header_preproc" >&6; }
18762
18763 # So? What about this header?
18764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18765 yes:no: )
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18770 ac_header_preproc=yes
18771 ;;
18772 no:yes:* )
18773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18785
18786 ;;
18787 esac
18788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793 eval "$as_ac_Header=\$ac_header_preproc"
18794 fi
18795 ac_res=`eval echo '${'$as_ac_Header'}'`
18796 { echo "$as_me:$LINENO: result: $ac_res" >&5
18797 echo "${ECHO_T}$ac_res" >&6; }
18798
18799 fi
18800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18801 cat >>confdefs.h <<_ACEOF
18802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18803 _ACEOF
18804 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18805 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18806 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815 #include <nlist.h>
18816
18817 int
18818 main ()
18819 {
18820 static struct nlist ac_aggr;
18821 if (ac_aggr.n_un.n_name)
18822 return 0;
18823 ;
18824 return 0;
18825 }
18826 _ACEOF
18827 rm -f conftest.$ac_objext
18828 if { (ac_try="$ac_compile"
18829 case "(($ac_try" in
18830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18832 esac
18833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834 (eval "$ac_compile") 2>conftest.er1
18835 ac_status=$?
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } && {
18841 test -z "$ac_c_werror_flag" ||
18842 test ! -s conftest.err
18843 } && test -s conftest.$ac_objext; then
18844 ac_cv_member_struct_nlist_n_un_n_name=yes
18845 else
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18848
18849 cat >conftest.$ac_ext <<_ACEOF
18850 /* confdefs.h. */
18851 _ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18855 #include <nlist.h>
18856
18857 int
18858 main ()
18859 {
18860 static struct nlist ac_aggr;
18861 if (sizeof ac_aggr.n_un.n_name)
18862 return 0;
18863 ;
18864 return 0;
18865 }
18866 _ACEOF
18867 rm -f conftest.$ac_objext
18868 if { (ac_try="$ac_compile"
18869 case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_compile") 2>conftest.er1
18875 ac_status=$?
18876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } && {
18881 test -z "$ac_c_werror_flag" ||
18882 test ! -s conftest.err
18883 } && test -s conftest.$ac_objext; then
18884 ac_cv_member_struct_nlist_n_un_n_name=yes
18885 else
18886 echo "$as_me: failed program was:" >&5
18887 sed 's/^/| /' conftest.$ac_ext >&5
18888
18889 ac_cv_member_struct_nlist_n_un_n_name=no
18890 fi
18891
18892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18893 fi
18894
18895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18896 fi
18897 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18898 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18899 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18900
18901 cat >>confdefs.h <<_ACEOF
18902 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18903 _ACEOF
18904
18905
18906 cat >>confdefs.h <<\_ACEOF
18907 #define NLIST_NAME_UNION 1
18908 _ACEOF
18909
18910 fi
18911
18912
18913 fi
18914
18915 done
18916
18917 fi
18918 done
18919
18920
18921 # Some definitions of getloadavg require that the program be installed setgid.
18922 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18923 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18924 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927 cat >conftest.$ac_ext <<_ACEOF
18928 /* confdefs.h. */
18929 _ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h. */
18933 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18934 #ifdef LDAV_PRIVILEGED
18935 Yowza Am I SETGID yet
18936 #endif
18937 _ACEOF
18938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18939 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18940 ac_cv_func_getloadavg_setgid=yes
18941 else
18942 ac_cv_func_getloadavg_setgid=no
18943 fi
18944 rm -f conftest*
18945
18946 fi
18947 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18948 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18949 if test $ac_cv_func_getloadavg_setgid = yes; then
18950 NEED_SETGID=true
18951
18952 cat >>confdefs.h <<\_ACEOF
18953 #define GETLOADAVG_PRIVILEGED 1
18954 _ACEOF
18955
18956 else
18957 NEED_SETGID=false
18958 fi
18959
18960 if test $ac_cv_func_getloadavg_setgid = yes; then
18961 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18962 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18963 if test "${ac_cv_group_kmem+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18967 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18968 # If we got an error (system does not support symlinks), try without -L.
18969 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18970 ac_cv_group_kmem=`echo $ac_ls_output \
18971 | sed -ne 's/[ ][ ]*/ /g;
18972 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18973 / /s/.* //;p;'`
18974
18975 fi
18976 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18977 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18978 KMEM_GROUP=$ac_cv_group_kmem
18979 fi
18980 if test "x$ac_save_LIBS" = x; then
18981 GETLOADAVG_LIBS=$LIBS
18982 else
18983 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18984 fi
18985 LIBS=$ac_save_LIBS
18986
18987
18988
18989 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18990 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18991 if test "${ac_cv_sys_largefile_source+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994 while :; do
18995 cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h. */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19001 #include <sys/types.h> /* for off_t */
19002 #include <stdio.h>
19003 int
19004 main ()
19005 {
19006 int (*fp) (FILE *, off_t, int) = fseeko;
19007 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19008 ;
19009 return 0;
19010 }
19011 _ACEOF
19012 rm -f conftest.$ac_objext conftest$ac_exeext
19013 if { (ac_try="$ac_link"
19014 case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19017 esac
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_link") 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest$ac_exeext &&
19029 $as_test_x conftest$ac_exeext; then
19030 ac_cv_sys_largefile_source=no; break
19031 else
19032 echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035
19036 fi
19037
19038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19039 conftest$ac_exeext conftest.$ac_ext
19040 cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h. */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 #define _LARGEFILE_SOURCE 1
19047 #include <sys/types.h> /* for off_t */
19048 #include <stdio.h>
19049 int
19050 main ()
19051 {
19052 int (*fp) (FILE *, off_t, int) = fseeko;
19053 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19054 ;
19055 return 0;
19056 }
19057 _ACEOF
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (ac_try="$ac_link"
19060 case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_link") 2>conftest.er1
19066 ac_status=$?
19067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && {
19072 test -z "$ac_c_werror_flag" ||
19073 test ! -s conftest.err
19074 } && test -s conftest$ac_exeext &&
19075 $as_test_x conftest$ac_exeext; then
19076 ac_cv_sys_largefile_source=1; break
19077 else
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081
19082 fi
19083
19084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085 conftest$ac_exeext conftest.$ac_ext
19086 ac_cv_sys_largefile_source=unknown
19087 break
19088 done
19089 fi
19090 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19091 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19092 case $ac_cv_sys_largefile_source in #(
19093 no | unknown) ;;
19094 *)
19095 cat >>confdefs.h <<_ACEOF
19096 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19097 _ACEOF
19098 ;;
19099 esac
19100 rm -f conftest*
19101
19102 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19103 # in glibc 2.1.3, but that breaks too many other things.
19104 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19105 if test $ac_cv_sys_largefile_source != unknown; then
19106
19107 cat >>confdefs.h <<\_ACEOF
19108 #define HAVE_FSEEKO 1
19109 _ACEOF
19110
19111 fi
19112
19113
19114 # Configure getopt.
19115 # getopt.m4 serial 10
19116
19117 # The getopt module assume you want GNU getopt, with getopt_long etc,
19118 # rather than vanilla POSIX getopt. This means your your code should
19119 # always include <getopt.h> for the getopt prototypes.
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131 # Prerequisites of lib/getopt*.
19132
19133
19134
19135
19136 GETOPT_H=
19137
19138 for ac_header in getopt.h
19139 do
19140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 fi
19147 ac_res=`eval echo '${'$as_ac_Header'}'`
19148 { echo "$as_me:$LINENO: result: $ac_res" >&5
19149 echo "${ECHO_T}$ac_res" >&6; }
19150 else
19151 # Is the header compilable?
19152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19154 cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h. */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 $ac_includes_default
19161 #include <$ac_header>
19162 _ACEOF
19163 rm -f conftest.$ac_objext
19164 if { (ac_try="$ac_compile"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168 esac
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_compile") 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } && {
19177 test -z "$ac_c_werror_flag" ||
19178 test ! -s conftest.err
19179 } && test -s conftest.$ac_objext; then
19180 ac_header_compiler=yes
19181 else
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19184
19185 ac_header_compiler=no
19186 fi
19187
19188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19190 echo "${ECHO_T}$ac_header_compiler" >&6; }
19191
19192 # Is the header present?
19193 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19195 cat >conftest.$ac_ext <<_ACEOF
19196 /* confdefs.h. */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19201 #include <$ac_header>
19202 _ACEOF
19203 if { (ac_try="$ac_cpp conftest.$ac_ext"
19204 case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19207 esac
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19210 ac_status=$?
19211 grep -v '^ *+' conftest.er1 >conftest.err
19212 rm -f conftest.er1
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } >/dev/null && {
19216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19217 test ! -s conftest.err
19218 }; then
19219 ac_header_preproc=yes
19220 else
19221 echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19223
19224 ac_header_preproc=no
19225 fi
19226
19227 rm -f conftest.err conftest.$ac_ext
19228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19229 echo "${ECHO_T}$ac_header_preproc" >&6; }
19230
19231 # So? What about this header?
19232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19233 yes:no: )
19234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19238 ac_header_preproc=yes
19239 ;;
19240 no:yes:* )
19241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19248 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19253
19254 ;;
19255 esac
19256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261 eval "$as_ac_Header=\$ac_header_preproc"
19262 fi
19263 ac_res=`eval echo '${'$as_ac_Header'}'`
19264 { echo "$as_me:$LINENO: result: $ac_res" >&5
19265 echo "${ECHO_T}$ac_res" >&6; }
19266
19267 fi
19268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19269 cat >>confdefs.h <<_ACEOF
19270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19271 _ACEOF
19272
19273 else
19274 GETOPT_H=getopt.h
19275 fi
19276
19277 done
19278
19279 if test -z "$GETOPT_H"; then
19280
19281 for ac_func in getopt_long_only
19282 do
19283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 else
19289 cat >conftest.$ac_ext <<_ACEOF
19290 /* confdefs.h. */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19297 #define $ac_func innocuous_$ac_func
19298
19299 /* System header to define __stub macros and hopefully few prototypes,
19300 which can conflict with char $ac_func (); below.
19301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19302 <limits.h> exists even on freestanding compilers. */
19303
19304 #ifdef __STDC__
19305 # include <limits.h>
19306 #else
19307 # include <assert.h>
19308 #endif
19309
19310 #undef $ac_func
19311
19312 /* Override any GCC internal prototype to avoid an error.
19313 Use char because int might match the return type of a GCC
19314 builtin and then its argument prototype would still apply. */
19315 #ifdef __cplusplus
19316 extern "C"
19317 #endif
19318 char $ac_func ();
19319 /* The GNU C library defines this for functions which it implements
19320 to always fail with ENOSYS. Some functions are actually named
19321 something starting with __ and the normal name is an alias. */
19322 #if defined __stub_$ac_func || defined __stub___$ac_func
19323 choke me
19324 #endif
19325
19326 int
19327 main ()
19328 {
19329 return $ac_func ();
19330 ;
19331 return 0;
19332 }
19333 _ACEOF
19334 rm -f conftest.$ac_objext conftest$ac_exeext
19335 if { (ac_try="$ac_link"
19336 case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19339 esac
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_link") 2>conftest.er1
19342 ac_status=$?
19343 grep -v '^ *+' conftest.er1 >conftest.err
19344 rm -f conftest.er1
19345 cat conftest.err >&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } && {
19348 test -z "$ac_c_werror_flag" ||
19349 test ! -s conftest.err
19350 } && test -s conftest$ac_exeext &&
19351 $as_test_x conftest$ac_exeext; then
19352 eval "$as_ac_var=yes"
19353 else
19354 echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19356
19357 eval "$as_ac_var=no"
19358 fi
19359
19360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19361 conftest$ac_exeext conftest.$ac_ext
19362 fi
19363 ac_res=`eval echo '${'$as_ac_var'}'`
19364 { echo "$as_me:$LINENO: result: $ac_res" >&5
19365 echo "${ECHO_T}$ac_res" >&6; }
19366 if test `eval echo '${'$as_ac_var'}'` = yes; then
19367 cat >>confdefs.h <<_ACEOF
19368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19369 _ACEOF
19370
19371 else
19372 GETOPT_H=getopt.h
19373 fi
19374 done
19375
19376 fi
19377
19378 if test -z "$GETOPT_H"; then
19379 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19380 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19381 if test "${ac_cv_have_decl_optreset+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 else
19384 cat >conftest.$ac_ext <<_ACEOF
19385 /* confdefs.h. */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19390 #include <getopt.h>
19391
19392 int
19393 main ()
19394 {
19395 #ifndef optreset
19396 (void) optreset;
19397 #endif
19398
19399 ;
19400 return 0;
19401 }
19402 _ACEOF
19403 rm -f conftest.$ac_objext
19404 if { (ac_try="$ac_compile"
19405 case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19408 esac
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_compile") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest.$ac_objext; then
19420 ac_cv_have_decl_optreset=yes
19421 else
19422 echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19424
19425 ac_cv_have_decl_optreset=no
19426 fi
19427
19428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19429 fi
19430 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19431 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19432 if test $ac_cv_have_decl_optreset = yes; then
19433 GETOPT_H=getopt.h
19434 fi
19435
19436 fi
19437
19438 if test -z "$GETOPT_H"; then
19439 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19440 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19441 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444 if test "$cross_compiling" = yes; then
19445 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19446 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19447 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19448 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 else
19450 cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h. */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19456 #include <getopt.h>
19457
19458 int
19459 main ()
19460 {
19461 #ifndef getopt_clip
19462 (void) getopt_clip;
19463 #endif
19464
19465 ;
19466 return 0;
19467 }
19468 _ACEOF
19469 rm -f conftest.$ac_objext
19470 if { (ac_try="$ac_compile"
19471 case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_compile") 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } && {
19483 test -z "$ac_c_werror_flag" ||
19484 test ! -s conftest.err
19485 } && test -s conftest.$ac_objext; then
19486 ac_cv_have_decl_getopt_clip=yes
19487 else
19488 echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19490
19491 ac_cv_have_decl_getopt_clip=no
19492 fi
19493
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495 fi
19496 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19497 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19498 if test $ac_cv_have_decl_getopt_clip = yes; then
19499 gl_cv_func_gnu_getopt=no
19500 else
19501 gl_cv_func_gnu_getopt=yes
19502 fi
19503
19504 else
19505 cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h. */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 #include <getopt.h>
19512 int
19513 main ()
19514 {
19515
19516 char *myargv[3];
19517 myargv[0] = "conftest";
19518 myargv[1] = "-+";
19519 myargv[2] = 0;
19520 return getopt (2, myargv, "+a") != '?';
19521
19522 ;
19523 return 0;
19524 }
19525 _ACEOF
19526 rm -f conftest$ac_exeext
19527 if { (ac_try="$ac_link"
19528 case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19531 esac
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_link") 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19537 { (case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19540 esac
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_try") 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; }; then
19546 gl_cv_func_gnu_getopt=yes
19547 else
19548 echo "$as_me: program exited with status $ac_status" >&5
19549 echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19551
19552 ( exit $ac_status )
19553 gl_cv_func_gnu_getopt=no
19554 fi
19555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19556 fi
19557
19558
19559 fi
19560 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19561 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19562 if test "$gl_cv_func_gnu_getopt" = "no"; then
19563 GETOPT_H=getopt.h
19564 fi
19565 fi
19566
19567
19568
19569 if test -n "$GETOPT_H"; then
19570
19571
19572 GETOPT_H=getopt.h
19573
19574 cat >>confdefs.h <<\_ACEOF
19575 #define __GETOPT_PREFIX rpl_
19576 _ACEOF
19577
19578
19579
19580 :
19581 GETOPTOBJS='getopt.o getopt1.o'
19582
19583 fi
19584
19585
19586
19587
19588 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19589 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19590 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593 # Use it with a single arg.
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h. */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 $ac_includes_default
19601 int
19602 main ()
19603 {
19604 getpgrp (0);
19605 ;
19606 return 0;
19607 }
19608 _ACEOF
19609 rm -f conftest.$ac_objext
19610 if { (ac_try="$ac_compile"
19611 case "(($ac_try" in
19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19614 esac
19615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616 (eval "$ac_compile") 2>conftest.er1
19617 ac_status=$?
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } && {
19623 test -z "$ac_c_werror_flag" ||
19624 test ! -s conftest.err
19625 } && test -s conftest.$ac_objext; then
19626 ac_cv_func_getpgrp_void=no
19627 else
19628 echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19630
19631 ac_cv_func_getpgrp_void=yes
19632 fi
19633
19634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635
19636 fi
19637 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19638 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19639 if test $ac_cv_func_getpgrp_void = yes; then
19640
19641 cat >>confdefs.h <<\_ACEOF
19642 #define GETPGRP_VOID 1
19643 _ACEOF
19644
19645 fi
19646
19647
19648
19649 for ac_func in strftime
19650 do
19651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657 cat >conftest.$ac_ext <<_ACEOF
19658 /* confdefs.h. */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19665 #define $ac_func innocuous_$ac_func
19666
19667 /* System header to define __stub macros and hopefully few prototypes,
19668 which can conflict with char $ac_func (); below.
19669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19670 <limits.h> exists even on freestanding compilers. */
19671
19672 #ifdef __STDC__
19673 # include <limits.h>
19674 #else
19675 # include <assert.h>
19676 #endif
19677
19678 #undef $ac_func
19679
19680 /* Override any GCC internal prototype to avoid an error.
19681 Use char because int might match the return type of a GCC
19682 builtin and then its argument prototype would still apply. */
19683 #ifdef __cplusplus
19684 extern "C"
19685 #endif
19686 char $ac_func ();
19687 /* The GNU C library defines this for functions which it implements
19688 to always fail with ENOSYS. Some functions are actually named
19689 something starting with __ and the normal name is an alias. */
19690 #if defined __stub_$ac_func || defined __stub___$ac_func
19691 choke me
19692 #endif
19693
19694 int
19695 main ()
19696 {
19697 return $ac_func ();
19698 ;
19699 return 0;
19700 }
19701 _ACEOF
19702 rm -f conftest.$ac_objext conftest$ac_exeext
19703 if { (ac_try="$ac_link"
19704 case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_link") 2>conftest.er1
19710 ac_status=$?
19711 grep -v '^ *+' conftest.er1 >conftest.err
19712 rm -f conftest.er1
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } && {
19716 test -z "$ac_c_werror_flag" ||
19717 test ! -s conftest.err
19718 } && test -s conftest$ac_exeext &&
19719 $as_test_x conftest$ac_exeext; then
19720 eval "$as_ac_var=yes"
19721 else
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19724
19725 eval "$as_ac_var=no"
19726 fi
19727
19728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19729 conftest$ac_exeext conftest.$ac_ext
19730 fi
19731 ac_res=`eval echo '${'$as_ac_var'}'`
19732 { echo "$as_me:$LINENO: result: $ac_res" >&5
19733 echo "${ECHO_T}$ac_res" >&6; }
19734 if test `eval echo '${'$as_ac_var'}'` = yes; then
19735 cat >>confdefs.h <<_ACEOF
19736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19737 _ACEOF
19738
19739 else
19740 # strftime is in -lintl on SCO UNIX.
19741 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19742 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19743 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745 else
19746 ac_check_lib_save_LIBS=$LIBS
19747 LIBS="-lintl $LIBS"
19748 cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h. */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754
19755 /* Override any GCC internal prototype to avoid an error.
19756 Use char because int might match the return type of a GCC
19757 builtin and then its argument prototype would still apply. */
19758 #ifdef __cplusplus
19759 extern "C"
19760 #endif
19761 char strftime ();
19762 int
19763 main ()
19764 {
19765 return strftime ();
19766 ;
19767 return 0;
19768 }
19769 _ACEOF
19770 rm -f conftest.$ac_objext conftest$ac_exeext
19771 if { (ac_try="$ac_link"
19772 case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19775 esac
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_link") 2>conftest.er1
19778 ac_status=$?
19779 grep -v '^ *+' conftest.er1 >conftest.err
19780 rm -f conftest.er1
19781 cat conftest.err >&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } && {
19784 test -z "$ac_c_werror_flag" ||
19785 test ! -s conftest.err
19786 } && test -s conftest$ac_exeext &&
19787 $as_test_x conftest$ac_exeext; then
19788 ac_cv_lib_intl_strftime=yes
19789 else
19790 echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19792
19793 ac_cv_lib_intl_strftime=no
19794 fi
19795
19796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19797 conftest$ac_exeext conftest.$ac_ext
19798 LIBS=$ac_check_lib_save_LIBS
19799 fi
19800 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19801 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19802 if test $ac_cv_lib_intl_strftime = yes; then
19803 cat >>confdefs.h <<\_ACEOF
19804 #define HAVE_STRFTIME 1
19805 _ACEOF
19806
19807 LIBS="-lintl $LIBS"
19808 fi
19809
19810 fi
19811 done
19812
19813
19814 # UNIX98 PTYs.
19815
19816 for ac_func in grantpt
19817 do
19818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824 cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h. */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19832 #define $ac_func innocuous_$ac_func
19833
19834 /* System header to define __stub macros and hopefully few prototypes,
19835 which can conflict with char $ac_func (); below.
19836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19837 <limits.h> exists even on freestanding compilers. */
19838
19839 #ifdef __STDC__
19840 # include <limits.h>
19841 #else
19842 # include <assert.h>
19843 #endif
19844
19845 #undef $ac_func
19846
19847 /* Override any GCC internal prototype to avoid an error.
19848 Use char because int might match the return type of a GCC
19849 builtin and then its argument prototype would still apply. */
19850 #ifdef __cplusplus
19851 extern "C"
19852 #endif
19853 char $ac_func ();
19854 /* The GNU C library defines this for functions which it implements
19855 to always fail with ENOSYS. Some functions are actually named
19856 something starting with __ and the normal name is an alias. */
19857 #if defined __stub_$ac_func || defined __stub___$ac_func
19858 choke me
19859 #endif
19860
19861 int
19862 main ()
19863 {
19864 return $ac_func ();
19865 ;
19866 return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (ac_try="$ac_link"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_link") 2>conftest.er1
19877 ac_status=$?
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && {
19883 test -z "$ac_c_werror_flag" ||
19884 test ! -s conftest.err
19885 } && test -s conftest$ac_exeext &&
19886 $as_test_x conftest$ac_exeext; then
19887 eval "$as_ac_var=yes"
19888 else
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892 eval "$as_ac_var=no"
19893 fi
19894
19895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19896 conftest$ac_exeext conftest.$ac_ext
19897 fi
19898 ac_res=`eval echo '${'$as_ac_var'}'`
19899 { echo "$as_me:$LINENO: result: $ac_res" >&5
19900 echo "${ECHO_T}$ac_res" >&6; }
19901 if test `eval echo '${'$as_ac_var'}'` = yes; then
19902 cat >>confdefs.h <<_ACEOF
19903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19904 _ACEOF
19905
19906 fi
19907 done
19908
19909
19910 # PTY-related GNU extensions.
19911
19912 for ac_func in getpt
19913 do
19914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 else
19920 cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h. */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19928 #define $ac_func innocuous_$ac_func
19929
19930 /* System header to define __stub macros and hopefully few prototypes,
19931 which can conflict with char $ac_func (); below.
19932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19933 <limits.h> exists even on freestanding compilers. */
19934
19935 #ifdef __STDC__
19936 # include <limits.h>
19937 #else
19938 # include <assert.h>
19939 #endif
19940
19941 #undef $ac_func
19942
19943 /* Override any GCC internal prototype to avoid an error.
19944 Use char because int might match the return type of a GCC
19945 builtin and then its argument prototype would still apply. */
19946 #ifdef __cplusplus
19947 extern "C"
19948 #endif
19949 char $ac_func ();
19950 /* The GNU C library defines this for functions which it implements
19951 to always fail with ENOSYS. Some functions are actually named
19952 something starting with __ and the normal name is an alias. */
19953 #if defined __stub_$ac_func || defined __stub___$ac_func
19954 choke me
19955 #endif
19956
19957 int
19958 main ()
19959 {
19960 return $ac_func ();
19961 ;
19962 return 0;
19963 }
19964 _ACEOF
19965 rm -f conftest.$ac_objext conftest$ac_exeext
19966 if { (ac_try="$ac_link"
19967 case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19970 esac
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972 (eval "$ac_link") 2>conftest.er1
19973 ac_status=$?
19974 grep -v '^ *+' conftest.er1 >conftest.err
19975 rm -f conftest.er1
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } && {
19979 test -z "$ac_c_werror_flag" ||
19980 test ! -s conftest.err
19981 } && test -s conftest$ac_exeext &&
19982 $as_test_x conftest$ac_exeext; then
19983 eval "$as_ac_var=yes"
19984 else
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19987
19988 eval "$as_ac_var=no"
19989 fi
19990
19991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19992 conftest$ac_exeext conftest.$ac_ext
19993 fi
19994 ac_res=`eval echo '${'$as_ac_var'}'`
19995 { echo "$as_me:$LINENO: result: $ac_res" >&5
19996 echo "${ECHO_T}$ac_res" >&6; }
19997 if test `eval echo '${'$as_ac_var'}'` = yes; then
19998 cat >>confdefs.h <<_ACEOF
19999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20000 _ACEOF
20001
20002 fi
20003 done
20004
20005
20006 # Check this now, so that we will NOT find the above functions in ncurses.
20007 # That is because we have not set up to link ncurses in lib-src.
20008 # It's better to believe a function is not available
20009 # than to expect to find it in ncurses.
20010
20011 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20012 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
20013 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 else
20016 ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-lncurses $LIBS"
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h. */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20028 #ifdef __cplusplus
20029 extern "C"
20030 #endif
20031 char tparm ();
20032 int
20033 main ()
20034 {
20035 return tparm ();
20036 ;
20037 return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest$ac_exeext &&
20057 $as_test_x conftest$ac_exeext; then
20058 ac_cv_lib_ncurses_tparm=yes
20059 else
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063 ac_cv_lib_ncurses_tparm=no
20064 fi
20065
20066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20067 conftest$ac_exeext conftest.$ac_ext
20068 LIBS=$ac_check_lib_save_LIBS
20069 fi
20070 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20071 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20072 if test $ac_cv_lib_ncurses_tparm = yes; then
20073 cat >>confdefs.h <<_ACEOF
20074 #define HAVE_LIBNCURSES 1
20075 _ACEOF
20076
20077 LIBS="-lncurses $LIBS"
20078
20079 fi
20080
20081
20082 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20083
20084 resolv=no
20085 cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h. */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20091 #include <netinet/in.h>
20092 #include <arpa/nameser.h>
20093 #include <resolv.h>
20094 int
20095 main ()
20096 {
20097 return res_init();
20098 ;
20099 return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_link") 2>conftest.er1
20110 ac_status=$?
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } && {
20116 test -z "$ac_c_werror_flag" ||
20117 test ! -s conftest.err
20118 } && test -s conftest$ac_exeext &&
20119 $as_test_x conftest$ac_exeext; then
20120 have_res_init=yes
20121 else
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20124
20125 have_res_init=no
20126 fi
20127
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129 conftest$ac_exeext conftest.$ac_ext
20130 if test "$have_res_init" = no; then
20131 OLIBS="$LIBS"
20132 LIBS="$LIBS -lresolv"
20133 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20134 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20135 cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h. */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141 #include <netinet/in.h>
20142 #include <arpa/nameser.h>
20143 #include <resolv.h>
20144 int
20145 main ()
20146 {
20147 return res_init();
20148 ;
20149 return 0;
20150 }
20151 _ACEOF
20152 rm -f conftest.$ac_objext conftest$ac_exeext
20153 if { (ac_try="$ac_link"
20154 case "(($ac_try" in
20155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156 *) ac_try_echo=$ac_try;;
20157 esac
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159 (eval "$ac_link") 2>conftest.er1
20160 ac_status=$?
20161 grep -v '^ *+' conftest.er1 >conftest.err
20162 rm -f conftest.er1
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } && {
20166 test -z "$ac_c_werror_flag" ||
20167 test ! -s conftest.err
20168 } && test -s conftest$ac_exeext &&
20169 $as_test_x conftest$ac_exeext; then
20170 have_res_init=yes
20171 else
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175 have_res_init=no
20176 fi
20177
20178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20179 conftest$ac_exeext conftest.$ac_ext
20180 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20181 echo "${ECHO_T}$have_res_init" >&6; }
20182 if test "$have_res_init" = yes ; then
20183 resolv=yes
20184 fi
20185 LIBS="$OLIBS"
20186 fi
20187
20188 if test "$have_res_init" = yes; then
20189
20190 cat >>confdefs.h <<\_ACEOF
20191 #define HAVE_RES_INIT 1
20192 _ACEOF
20193
20194 fi
20195
20196 # Do we need the Hesiod library to provide the support routines?
20197 if test "$with_hesiod" != no ; then
20198 # Don't set $LIBS here -- see comments above.
20199 { echo "$as_me:$LINENO: checking for res_send" >&5
20200 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20201 if test "${ac_cv_func_res_send+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204 cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h. */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20210 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20212 #define res_send innocuous_res_send
20213
20214 /* System header to define __stub macros and hopefully few prototypes,
20215 which can conflict with char res_send (); below.
20216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20217 <limits.h> exists even on freestanding compilers. */
20218
20219 #ifdef __STDC__
20220 # include <limits.h>
20221 #else
20222 # include <assert.h>
20223 #endif
20224
20225 #undef res_send
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 /* The GNU C library defines this for functions which it implements
20235 to always fail with ENOSYS. Some functions are actually named
20236 something starting with __ and the normal name is an alias. */
20237 #if defined __stub_res_send || defined __stub___res_send
20238 choke me
20239 #endif
20240
20241 int
20242 main ()
20243 {
20244 return res_send ();
20245 ;
20246 return 0;
20247 }
20248 _ACEOF
20249 rm -f conftest.$ac_objext conftest$ac_exeext
20250 if { (ac_try="$ac_link"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_link") 2>conftest.er1
20257 ac_status=$?
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest$ac_exeext &&
20266 $as_test_x conftest$ac_exeext; then
20267 ac_cv_func_res_send=yes
20268 else
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272 ac_cv_func_res_send=no
20273 fi
20274
20275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20276 conftest$ac_exeext conftest.$ac_ext
20277 fi
20278 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20279 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20280 if test $ac_cv_func_res_send = yes; then
20281 :
20282 else
20283 { echo "$as_me:$LINENO: checking for __res_send" >&5
20284 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20285 if test "${ac_cv_func___res_send+set}" = set; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20287 else
20288 cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h. */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20296 #define __res_send innocuous___res_send
20297
20298 /* System header to define __stub macros and hopefully few prototypes,
20299 which can conflict with char __res_send (); below.
20300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20301 <limits.h> exists even on freestanding compilers. */
20302
20303 #ifdef __STDC__
20304 # include <limits.h>
20305 #else
20306 # include <assert.h>
20307 #endif
20308
20309 #undef __res_send
20310
20311 /* Override any GCC internal prototype to avoid an error.
20312 Use char because int might match the return type of a GCC
20313 builtin and then its argument prototype would still apply. */
20314 #ifdef __cplusplus
20315 extern "C"
20316 #endif
20317 char __res_send ();
20318 /* The GNU C library defines this for functions which it implements
20319 to always fail with ENOSYS. Some functions are actually named
20320 something starting with __ and the normal name is an alias. */
20321 #if defined __stub___res_send || defined __stub_____res_send
20322 choke me
20323 #endif
20324
20325 int
20326 main ()
20327 {
20328 return __res_send ();
20329 ;
20330 return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (ac_try="$ac_link"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_link") 2>conftest.er1
20341 ac_status=$?
20342 grep -v '^ *+' conftest.er1 >conftest.err
20343 rm -f conftest.er1
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest$ac_exeext &&
20350 $as_test_x conftest$ac_exeext; then
20351 ac_cv_func___res_send=yes
20352 else
20353 echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20355
20356 ac_cv_func___res_send=no
20357 fi
20358
20359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20360 conftest$ac_exeext conftest.$ac_ext
20361 fi
20362 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20363 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20364 if test $ac_cv_func___res_send = yes; then
20365 :
20366 else
20367 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20368 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20369 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372 ac_check_lib_save_LIBS=$LIBS
20373 LIBS="-lresolv $LIBS"
20374 cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h. */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20380
20381 /* Override any GCC internal prototype to avoid an error.
20382 Use char because int might match the return type of a GCC
20383 builtin and then its argument prototype would still apply. */
20384 #ifdef __cplusplus
20385 extern "C"
20386 #endif
20387 char res_send ();
20388 int
20389 main ()
20390 {
20391 return res_send ();
20392 ;
20393 return 0;
20394 }
20395 _ACEOF
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_link") 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } && {
20410 test -z "$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 } && test -s conftest$ac_exeext &&
20413 $as_test_x conftest$ac_exeext; then
20414 ac_cv_lib_resolv_res_send=yes
20415 else
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 ac_cv_lib_resolv_res_send=no
20420 fi
20421
20422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20423 conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20425 fi
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20427 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20428 if test $ac_cv_lib_resolv_res_send = yes; then
20429 resolv=yes
20430 else
20431 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20432 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20433 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
20435 else
20436 ac_check_lib_save_LIBS=$LIBS
20437 LIBS="-lresolv $LIBS"
20438 cat >conftest.$ac_ext <<_ACEOF
20439 /* confdefs.h. */
20440 _ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20444
20445 /* Override any GCC internal prototype to avoid an error.
20446 Use char because int might match the return type of a GCC
20447 builtin and then its argument prototype would still apply. */
20448 #ifdef __cplusplus
20449 extern "C"
20450 #endif
20451 char __res_send ();
20452 int
20453 main ()
20454 {
20455 return __res_send ();
20456 ;
20457 return 0;
20458 }
20459 _ACEOF
20460 rm -f conftest.$ac_objext conftest$ac_exeext
20461 if { (ac_try="$ac_link"
20462 case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465 esac
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_link") 2>conftest.er1
20468 ac_status=$?
20469 grep -v '^ *+' conftest.er1 >conftest.err
20470 rm -f conftest.er1
20471 cat conftest.err >&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } && {
20474 test -z "$ac_c_werror_flag" ||
20475 test ! -s conftest.err
20476 } && test -s conftest$ac_exeext &&
20477 $as_test_x conftest$ac_exeext; then
20478 ac_cv_lib_resolv___res_send=yes
20479 else
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 ac_cv_lib_resolv___res_send=no
20484 fi
20485
20486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20487 conftest$ac_exeext conftest.$ac_ext
20488 LIBS=$ac_check_lib_save_LIBS
20489 fi
20490 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20491 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20492 if test $ac_cv_lib_resolv___res_send = yes; then
20493 resolv=yes
20494 fi
20495
20496 fi
20497
20498 fi
20499
20500 fi
20501
20502 if test "$resolv" = yes ; then
20503 RESOLVLIB=-lresolv
20504 else
20505 RESOLVLIB=
20506 fi
20507 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20508 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20509 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h. */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20518 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20520 #define hes_getmailhost innocuous_hes_getmailhost
20521
20522 /* System header to define __stub macros and hopefully few prototypes,
20523 which can conflict with char hes_getmailhost (); below.
20524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20525 <limits.h> exists even on freestanding compilers. */
20526
20527 #ifdef __STDC__
20528 # include <limits.h>
20529 #else
20530 # include <assert.h>
20531 #endif
20532
20533 #undef hes_getmailhost
20534
20535 /* Override any GCC internal prototype to avoid an error.
20536 Use char because int might match the return type of a GCC
20537 builtin and then its argument prototype would still apply. */
20538 #ifdef __cplusplus
20539 extern "C"
20540 #endif
20541 char hes_getmailhost ();
20542 /* The GNU C library defines this for functions which it implements
20543 to always fail with ENOSYS. Some functions are actually named
20544 something starting with __ and the normal name is an alias. */
20545 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20546 choke me
20547 #endif
20548
20549 int
20550 main ()
20551 {
20552 return hes_getmailhost ();
20553 ;
20554 return 0;
20555 }
20556 _ACEOF
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (ac_try="$ac_link"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_link") 2>conftest.er1
20565 ac_status=$?
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest$ac_exeext &&
20574 $as_test_x conftest$ac_exeext; then
20575 ac_cv_func_hes_getmailhost=yes
20576 else
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20579
20580 ac_cv_func_hes_getmailhost=no
20581 fi
20582
20583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20584 conftest$ac_exeext conftest.$ac_ext
20585 fi
20586 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20587 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20588 if test $ac_cv_func_hes_getmailhost = yes; then
20589 :
20590 else
20591 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20592 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20593 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596 ac_check_lib_save_LIBS=$LIBS
20597 LIBS="-lhesiod $RESOLVLIB $LIBS"
20598 cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h. */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20604
20605 /* Override any GCC internal prototype to avoid an error.
20606 Use char because int might match the return type of a GCC
20607 builtin and then its argument prototype would still apply. */
20608 #ifdef __cplusplus
20609 extern "C"
20610 #endif
20611 char hes_getmailhost ();
20612 int
20613 main ()
20614 {
20615 return hes_getmailhost ();
20616 ;
20617 return 0;
20618 }
20619 _ACEOF
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (ac_try="$ac_link"
20622 case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_link") 2>conftest.er1
20628 ac_status=$?
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } && {
20634 test -z "$ac_c_werror_flag" ||
20635 test ! -s conftest.err
20636 } && test -s conftest$ac_exeext &&
20637 $as_test_x conftest$ac_exeext; then
20638 ac_cv_lib_hesiod_hes_getmailhost=yes
20639 else
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643 ac_cv_lib_hesiod_hes_getmailhost=no
20644 fi
20645
20646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20647 conftest$ac_exeext conftest.$ac_ext
20648 LIBS=$ac_check_lib_save_LIBS
20649 fi
20650 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20651 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20652 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20653
20654 cat >>confdefs.h <<\_ACEOF
20655 #define HAVE_LIBHESIOD 1
20656 _ACEOF
20657
20658 else
20659 :
20660 fi
20661
20662 fi
20663
20664 fi
20665
20666 # Do we need libresolv (due to res_init or Hesiod)?
20667 if test "$resolv" = yes ; then
20668
20669 cat >>confdefs.h <<\_ACEOF
20670 #define HAVE_LIBRESOLV 1
20671 _ACEOF
20672
20673 fi
20674
20675 # These tell us which Kerberos-related libraries to use.
20676 if test "${with_kerberos}" != no; then
20677
20678 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20679 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20680 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 else
20683 ac_check_lib_save_LIBS=$LIBS
20684 LIBS="-lcom_err $LIBS"
20685 cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h. */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691
20692 /* Override any GCC internal prototype to avoid an error.
20693 Use char because int might match the return type of a GCC
20694 builtin and then its argument prototype would still apply. */
20695 #ifdef __cplusplus
20696 extern "C"
20697 #endif
20698 char com_err ();
20699 int
20700 main ()
20701 {
20702 return com_err ();
20703 ;
20704 return 0;
20705 }
20706 _ACEOF
20707 rm -f conftest.$ac_objext conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_link") 2>conftest.er1
20715 ac_status=$?
20716 grep -v '^ *+' conftest.er1 >conftest.err
20717 rm -f conftest.er1
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } && {
20721 test -z "$ac_c_werror_flag" ||
20722 test ! -s conftest.err
20723 } && test -s conftest$ac_exeext &&
20724 $as_test_x conftest$ac_exeext; then
20725 ac_cv_lib_com_err_com_err=yes
20726 else
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730 ac_cv_lib_com_err_com_err=no
20731 fi
20732
20733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20734 conftest$ac_exeext conftest.$ac_ext
20735 LIBS=$ac_check_lib_save_LIBS
20736 fi
20737 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20738 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20739 if test $ac_cv_lib_com_err_com_err = yes; then
20740 cat >>confdefs.h <<_ACEOF
20741 #define HAVE_LIBCOM_ERR 1
20742 _ACEOF
20743
20744 LIBS="-lcom_err $LIBS"
20745
20746 fi
20747
20748
20749 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20750 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20751 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20752 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 else
20754 ac_check_lib_save_LIBS=$LIBS
20755 LIBS="-lk5crypto $LIBS"
20756 cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h. */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762
20763 /* Override any GCC internal prototype to avoid an error.
20764 Use char because int might match the return type of a GCC
20765 builtin and then its argument prototype would still apply. */
20766 #ifdef __cplusplus
20767 extern "C"
20768 #endif
20769 char mit_des_cbc_encrypt ();
20770 int
20771 main ()
20772 {
20773 return mit_des_cbc_encrypt ();
20774 ;
20775 return 0;
20776 }
20777 _ACEOF
20778 rm -f conftest.$ac_objext conftest$ac_exeext
20779 if { (ac_try="$ac_link"
20780 case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20783 esac
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_link") 2>conftest.er1
20786 ac_status=$?
20787 grep -v '^ *+' conftest.er1 >conftest.err
20788 rm -f conftest.er1
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } && {
20792 test -z "$ac_c_werror_flag" ||
20793 test ! -s conftest.err
20794 } && test -s conftest$ac_exeext &&
20795 $as_test_x conftest$ac_exeext; then
20796 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20797 else
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20800
20801 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20802 fi
20803
20804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20805 conftest$ac_exeext conftest.$ac_ext
20806 LIBS=$ac_check_lib_save_LIBS
20807 fi
20808 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20809 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20810 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20811 cat >>confdefs.h <<_ACEOF
20812 #define HAVE_LIBK5CRYPTO 1
20813 _ACEOF
20814
20815 LIBS="-lk5crypto $LIBS"
20816
20817 fi
20818
20819
20820 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20821 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20822 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20824 else
20825 ac_check_lib_save_LIBS=$LIBS
20826 LIBS="-lcrypto $LIBS"
20827 cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h. */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833
20834 /* Override any GCC internal prototype to avoid an error.
20835 Use char because int might match the return type of a GCC
20836 builtin and then its argument prototype would still apply. */
20837 #ifdef __cplusplus
20838 extern "C"
20839 #endif
20840 char mit_des_cbc_encrypt ();
20841 int
20842 main ()
20843 {
20844 return mit_des_cbc_encrypt ();
20845 ;
20846 return 0;
20847 }
20848 _ACEOF
20849 rm -f conftest.$ac_objext conftest$ac_exeext
20850 if { (ac_try="$ac_link"
20851 case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20854 esac
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_link") 2>conftest.er1
20857 ac_status=$?
20858 grep -v '^ *+' conftest.er1 >conftest.err
20859 rm -f conftest.er1
20860 cat conftest.err >&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } && {
20863 test -z "$ac_c_werror_flag" ||
20864 test ! -s conftest.err
20865 } && test -s conftest$ac_exeext &&
20866 $as_test_x conftest$ac_exeext; then
20867 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20868 else
20869 echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20873 fi
20874
20875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20876 conftest$ac_exeext conftest.$ac_ext
20877 LIBS=$ac_check_lib_save_LIBS
20878 fi
20879 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20880 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20881 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20882 cat >>confdefs.h <<_ACEOF
20883 #define HAVE_LIBCRYPTO 1
20884 _ACEOF
20885
20886 LIBS="-lcrypto $LIBS"
20887
20888 fi
20889
20890
20891 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20892 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20893 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20895 else
20896 ac_check_lib_save_LIBS=$LIBS
20897 LIBS="-lkrb5 $LIBS"
20898 cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h. */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20904
20905 /* Override any GCC internal prototype to avoid an error.
20906 Use char because int might match the return type of a GCC
20907 builtin and then its argument prototype would still apply. */
20908 #ifdef __cplusplus
20909 extern "C"
20910 #endif
20911 char krb5_init_context ();
20912 int
20913 main ()
20914 {
20915 return krb5_init_context ();
20916 ;
20917 return 0;
20918 }
20919 _ACEOF
20920 rm -f conftest.$ac_objext conftest$ac_exeext
20921 if { (ac_try="$ac_link"
20922 case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20925 esac
20926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927 (eval "$ac_link") 2>conftest.er1
20928 ac_status=$?
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } && {
20934 test -z "$ac_c_werror_flag" ||
20935 test ! -s conftest.err
20936 } && test -s conftest$ac_exeext &&
20937 $as_test_x conftest$ac_exeext; then
20938 ac_cv_lib_krb5_krb5_init_context=yes
20939 else
20940 echo "$as_me: failed program was:" >&5
20941 sed 's/^/| /' conftest.$ac_ext >&5
20942
20943 ac_cv_lib_krb5_krb5_init_context=no
20944 fi
20945
20946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20947 conftest$ac_exeext conftest.$ac_ext
20948 LIBS=$ac_check_lib_save_LIBS
20949 fi
20950 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20951 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20952 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20953 cat >>confdefs.h <<_ACEOF
20954 #define HAVE_LIBKRB5 1
20955 _ACEOF
20956
20957 LIBS="-lkrb5 $LIBS"
20958
20959 fi
20960
20961 if test "${with_kerberos5}" = no; then
20962
20963 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20964 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20965 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 else
20968 ac_check_lib_save_LIBS=$LIBS
20969 LIBS="-ldes425 $LIBS"
20970 cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h. */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976
20977 /* Override any GCC internal prototype to avoid an error.
20978 Use char because int might match the return type of a GCC
20979 builtin and then its argument prototype would still apply. */
20980 #ifdef __cplusplus
20981 extern "C"
20982 #endif
20983 char des_cbc_encrypt ();
20984 int
20985 main ()
20986 {
20987 return des_cbc_encrypt ();
20988 ;
20989 return 0;
20990 }
20991 _ACEOF
20992 rm -f conftest.$ac_objext conftest$ac_exeext
20993 if { (ac_try="$ac_link"
20994 case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20997 esac
20998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999 (eval "$ac_link") 2>conftest.er1
21000 ac_status=$?
21001 grep -v '^ *+' conftest.er1 >conftest.err
21002 rm -f conftest.er1
21003 cat conftest.err >&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } && {
21006 test -z "$ac_c_werror_flag" ||
21007 test ! -s conftest.err
21008 } && test -s conftest$ac_exeext &&
21009 $as_test_x conftest$ac_exeext; then
21010 ac_cv_lib_des425_des_cbc_encrypt=yes
21011 else
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015 ac_cv_lib_des425_des_cbc_encrypt=no
21016 fi
21017
21018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21019 conftest$ac_exeext conftest.$ac_ext
21020 LIBS=$ac_check_lib_save_LIBS
21021 fi
21022 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21023 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21024 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21025 cat >>confdefs.h <<_ACEOF
21026 #define HAVE_LIBDES425 1
21027 _ACEOF
21028
21029 LIBS="-ldes425 $LIBS"
21030
21031 else
21032
21033 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21034 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
21035 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038 ac_check_lib_save_LIBS=$LIBS
21039 LIBS="-ldes $LIBS"
21040 cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h. */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046
21047 /* Override any GCC internal prototype to avoid an error.
21048 Use char because int might match the return type of a GCC
21049 builtin and then its argument prototype would still apply. */
21050 #ifdef __cplusplus
21051 extern "C"
21052 #endif
21053 char des_cbc_encrypt ();
21054 int
21055 main ()
21056 {
21057 return des_cbc_encrypt ();
21058 ;
21059 return 0;
21060 }
21061 _ACEOF
21062 rm -f conftest.$ac_objext conftest$ac_exeext
21063 if { (ac_try="$ac_link"
21064 case "(($ac_try" in
21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066 *) ac_try_echo=$ac_try;;
21067 esac
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069 (eval "$ac_link") 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } && {
21076 test -z "$ac_c_werror_flag" ||
21077 test ! -s conftest.err
21078 } && test -s conftest$ac_exeext &&
21079 $as_test_x conftest$ac_exeext; then
21080 ac_cv_lib_des_des_cbc_encrypt=yes
21081 else
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21084
21085 ac_cv_lib_des_des_cbc_encrypt=no
21086 fi
21087
21088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21089 conftest$ac_exeext conftest.$ac_ext
21090 LIBS=$ac_check_lib_save_LIBS
21091 fi
21092 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21093 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21094 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21095 cat >>confdefs.h <<_ACEOF
21096 #define HAVE_LIBDES 1
21097 _ACEOF
21098
21099 LIBS="-ldes $LIBS"
21100
21101 fi
21102
21103 fi
21104
21105
21106 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21107 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
21108 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 else
21111 ac_check_lib_save_LIBS=$LIBS
21112 LIBS="-lkrb4 $LIBS"
21113 cat >conftest.$ac_ext <<_ACEOF
21114 /* confdefs.h. */
21115 _ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119
21120 /* Override any GCC internal prototype to avoid an error.
21121 Use char because int might match the return type of a GCC
21122 builtin and then its argument prototype would still apply. */
21123 #ifdef __cplusplus
21124 extern "C"
21125 #endif
21126 char krb_get_cred ();
21127 int
21128 main ()
21129 {
21130 return krb_get_cred ();
21131 ;
21132 return 0;
21133 }
21134 _ACEOF
21135 rm -f conftest.$ac_objext conftest$ac_exeext
21136 if { (ac_try="$ac_link"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_link") 2>conftest.er1
21143 ac_status=$?
21144 grep -v '^ *+' conftest.er1 >conftest.err
21145 rm -f conftest.er1
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } && {
21149 test -z "$ac_c_werror_flag" ||
21150 test ! -s conftest.err
21151 } && test -s conftest$ac_exeext &&
21152 $as_test_x conftest$ac_exeext; then
21153 ac_cv_lib_krb4_krb_get_cred=yes
21154 else
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21157
21158 ac_cv_lib_krb4_krb_get_cred=no
21159 fi
21160
21161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21162 conftest$ac_exeext conftest.$ac_ext
21163 LIBS=$ac_check_lib_save_LIBS
21164 fi
21165 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21166 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21167 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21168 cat >>confdefs.h <<_ACEOF
21169 #define HAVE_LIBKRB4 1
21170 _ACEOF
21171
21172 LIBS="-lkrb4 $LIBS"
21173
21174 else
21175
21176 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21177 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21178 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21179 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 else
21181 ac_check_lib_save_LIBS=$LIBS
21182 LIBS="-lkrb $LIBS"
21183 cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h. */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189
21190 /* Override any GCC internal prototype to avoid an error.
21191 Use char because int might match the return type of a GCC
21192 builtin and then its argument prototype would still apply. */
21193 #ifdef __cplusplus
21194 extern "C"
21195 #endif
21196 char krb_get_cred ();
21197 int
21198 main ()
21199 {
21200 return krb_get_cred ();
21201 ;
21202 return 0;
21203 }
21204 _ACEOF
21205 rm -f conftest.$ac_objext conftest$ac_exeext
21206 if { (ac_try="$ac_link"
21207 case "(($ac_try" in
21208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21209 *) ac_try_echo=$ac_try;;
21210 esac
21211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21212 (eval "$ac_link") 2>conftest.er1
21213 ac_status=$?
21214 grep -v '^ *+' conftest.er1 >conftest.err
21215 rm -f conftest.er1
21216 cat conftest.err >&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); } && {
21219 test -z "$ac_c_werror_flag" ||
21220 test ! -s conftest.err
21221 } && test -s conftest$ac_exeext &&
21222 $as_test_x conftest$ac_exeext; then
21223 ac_cv_lib_krb_krb_get_cred=yes
21224 else
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228 ac_cv_lib_krb_krb_get_cred=no
21229 fi
21230
21231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21232 conftest$ac_exeext conftest.$ac_ext
21233 LIBS=$ac_check_lib_save_LIBS
21234 fi
21235 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21236 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21237 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21238 cat >>confdefs.h <<_ACEOF
21239 #define HAVE_LIBKRB 1
21240 _ACEOF
21241
21242 LIBS="-lkrb $LIBS"
21243
21244 fi
21245
21246 fi
21247
21248 fi
21249
21250 if test "${with_kerberos5}" != no; then
21251
21252 for ac_header in krb5.h
21253 do
21254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 fi
21261 ac_res=`eval echo '${'$as_ac_Header'}'`
21262 { echo "$as_me:$LINENO: result: $ac_res" >&5
21263 echo "${ECHO_T}$ac_res" >&6; }
21264 else
21265 # Is the header compilable?
21266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21268 cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h. */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 $ac_includes_default
21275 #include <$ac_header>
21276 _ACEOF
21277 rm -f conftest.$ac_objext
21278 if { (ac_try="$ac_compile"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_compile") 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest.$ac_objext; then
21294 ac_header_compiler=yes
21295 else
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 ac_header_compiler=no
21300 fi
21301
21302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21304 echo "${ECHO_T}$ac_header_compiler" >&6; }
21305
21306 # Is the header present?
21307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21309 cat >conftest.$ac_ext <<_ACEOF
21310 /* confdefs.h. */
21311 _ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21315 #include <$ac_header>
21316 _ACEOF
21317 if { (ac_try="$ac_cpp conftest.$ac_ext"
21318 case "(($ac_try" in
21319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21320 *) ac_try_echo=$ac_try;;
21321 esac
21322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21324 ac_status=$?
21325 grep -v '^ *+' conftest.er1 >conftest.err
21326 rm -f conftest.er1
21327 cat conftest.err >&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } >/dev/null && {
21330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21331 test ! -s conftest.err
21332 }; then
21333 ac_header_preproc=yes
21334 else
21335 echo "$as_me: failed program was:" >&5
21336 sed 's/^/| /' conftest.$ac_ext >&5
21337
21338 ac_header_preproc=no
21339 fi
21340
21341 rm -f conftest.err conftest.$ac_ext
21342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21343 echo "${ECHO_T}$ac_header_preproc" >&6; }
21344
21345 # So? What about this header?
21346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21347 yes:no: )
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21352 ac_header_preproc=yes
21353 ;;
21354 no:yes:* )
21355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21367
21368 ;;
21369 esac
21370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 else
21375 eval "$as_ac_Header=\$ac_header_preproc"
21376 fi
21377 ac_res=`eval echo '${'$as_ac_Header'}'`
21378 { echo "$as_me:$LINENO: result: $ac_res" >&5
21379 echo "${ECHO_T}$ac_res" >&6; }
21380
21381 fi
21382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21383 cat >>confdefs.h <<_ACEOF
21384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21385 _ACEOF
21386
21387 fi
21388
21389 done
21390
21391 else
21392
21393 for ac_header in des.h
21394 do
21395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 fi
21402 ac_res=`eval echo '${'$as_ac_Header'}'`
21403 { echo "$as_me:$LINENO: result: $ac_res" >&5
21404 echo "${ECHO_T}$ac_res" >&6; }
21405 else
21406 # Is the header compilable?
21407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21409 cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h. */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21415 $ac_includes_default
21416 #include <$ac_header>
21417 _ACEOF
21418 rm -f conftest.$ac_objext
21419 if { (ac_try="$ac_compile"
21420 case "(($ac_try" in
21421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422 *) ac_try_echo=$ac_try;;
21423 esac
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425 (eval "$ac_compile") 2>conftest.er1
21426 ac_status=$?
21427 grep -v '^ *+' conftest.er1 >conftest.err
21428 rm -f conftest.er1
21429 cat conftest.err >&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); } && {
21432 test -z "$ac_c_werror_flag" ||
21433 test ! -s conftest.err
21434 } && test -s conftest.$ac_objext; then
21435 ac_header_compiler=yes
21436 else
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21439
21440 ac_header_compiler=no
21441 fi
21442
21443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21445 echo "${ECHO_T}$ac_header_compiler" >&6; }
21446
21447 # Is the header present?
21448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21450 cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h. */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21456 #include <$ac_header>
21457 _ACEOF
21458 if { (ac_try="$ac_cpp conftest.$ac_ext"
21459 case "(($ac_try" in
21460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21461 *) ac_try_echo=$ac_try;;
21462 esac
21463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21465 ac_status=$?
21466 grep -v '^ *+' conftest.er1 >conftest.err
21467 rm -f conftest.er1
21468 cat conftest.err >&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } >/dev/null && {
21471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21472 test ! -s conftest.err
21473 }; then
21474 ac_header_preproc=yes
21475 else
21476 echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21478
21479 ac_header_preproc=no
21480 fi
21481
21482 rm -f conftest.err conftest.$ac_ext
21483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21484 echo "${ECHO_T}$ac_header_preproc" >&6; }
21485
21486 # So? What about this header?
21487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21488 yes:no: )
21489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21493 ac_header_preproc=yes
21494 ;;
21495 no:yes:* )
21496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21508
21509 ;;
21510 esac
21511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21515 else
21516 eval "$as_ac_Header=\$ac_header_preproc"
21517 fi
21518 ac_res=`eval echo '${'$as_ac_Header'}'`
21519 { echo "$as_me:$LINENO: result: $ac_res" >&5
21520 echo "${ECHO_T}$ac_res" >&6; }
21521
21522 fi
21523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21524 cat >>confdefs.h <<_ACEOF
21525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21526 _ACEOF
21527
21528 else
21529
21530 for ac_header in kerberosIV/des.h
21531 do
21532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21538 fi
21539 ac_res=`eval echo '${'$as_ac_Header'}'`
21540 { echo "$as_me:$LINENO: result: $ac_res" >&5
21541 echo "${ECHO_T}$ac_res" >&6; }
21542 else
21543 # Is the header compilable?
21544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21546 cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h. */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 $ac_includes_default
21553 #include <$ac_header>
21554 _ACEOF
21555 rm -f conftest.$ac_objext
21556 if { (ac_try="$ac_compile"
21557 case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21560 esac
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562 (eval "$ac_compile") 2>conftest.er1
21563 ac_status=$?
21564 grep -v '^ *+' conftest.er1 >conftest.err
21565 rm -f conftest.er1
21566 cat conftest.err >&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } && {
21569 test -z "$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21571 } && test -s conftest.$ac_objext; then
21572 ac_header_compiler=yes
21573 else
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21576
21577 ac_header_compiler=no
21578 fi
21579
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21582 echo "${ECHO_T}$ac_header_compiler" >&6; }
21583
21584 # Is the header present?
21585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21587 cat >conftest.$ac_ext <<_ACEOF
21588 /* confdefs.h. */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21593 #include <$ac_header>
21594 _ACEOF
21595 if { (ac_try="$ac_cpp conftest.$ac_ext"
21596 case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21599 esac
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21602 ac_status=$?
21603 grep -v '^ *+' conftest.er1 >conftest.err
21604 rm -f conftest.er1
21605 cat conftest.err >&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } >/dev/null && {
21608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21609 test ! -s conftest.err
21610 }; then
21611 ac_header_preproc=yes
21612 else
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616 ac_header_preproc=no
21617 fi
21618
21619 rm -f conftest.err conftest.$ac_ext
21620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21621 echo "${ECHO_T}$ac_header_preproc" >&6; }
21622
21623 # So? What about this header?
21624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21625 yes:no: )
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21630 ac_header_preproc=yes
21631 ;;
21632 no:yes:* )
21633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21645
21646 ;;
21647 esac
21648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21651 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 else
21653 eval "$as_ac_Header=\$ac_header_preproc"
21654 fi
21655 ac_res=`eval echo '${'$as_ac_Header'}'`
21656 { echo "$as_me:$LINENO: result: $ac_res" >&5
21657 echo "${ECHO_T}$ac_res" >&6; }
21658
21659 fi
21660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21661 cat >>confdefs.h <<_ACEOF
21662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21663 _ACEOF
21664
21665 else
21666
21667 for ac_header in kerberos/des.h
21668 do
21669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 fi
21676 ac_res=`eval echo '${'$as_ac_Header'}'`
21677 { echo "$as_me:$LINENO: result: $ac_res" >&5
21678 echo "${ECHO_T}$ac_res" >&6; }
21679 else
21680 # Is the header compilable?
21681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21683 cat >conftest.$ac_ext <<_ACEOF
21684 /* confdefs.h. */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h. */
21689 $ac_includes_default
21690 #include <$ac_header>
21691 _ACEOF
21692 rm -f conftest.$ac_objext
21693 if { (ac_try="$ac_compile"
21694 case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21697 esac
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_compile") 2>conftest.er1
21700 ac_status=$?
21701 grep -v '^ *+' conftest.er1 >conftest.err
21702 rm -f conftest.er1
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } && {
21706 test -z "$ac_c_werror_flag" ||
21707 test ! -s conftest.err
21708 } && test -s conftest.$ac_objext; then
21709 ac_header_compiler=yes
21710 else
21711 echo "$as_me: failed program was:" >&5
21712 sed 's/^/| /' conftest.$ac_ext >&5
21713
21714 ac_header_compiler=no
21715 fi
21716
21717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21719 echo "${ECHO_T}$ac_header_compiler" >&6; }
21720
21721 # Is the header present?
21722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21724 cat >conftest.$ac_ext <<_ACEOF
21725 /* confdefs.h. */
21726 _ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21730 #include <$ac_header>
21731 _ACEOF
21732 if { (ac_try="$ac_cpp conftest.$ac_ext"
21733 case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21736 esac
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21739 ac_status=$?
21740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } >/dev/null && {
21745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21746 test ! -s conftest.err
21747 }; then
21748 ac_header_preproc=yes
21749 else
21750 echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21752
21753 ac_header_preproc=no
21754 fi
21755
21756 rm -f conftest.err conftest.$ac_ext
21757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21758 echo "${ECHO_T}$ac_header_preproc" >&6; }
21759
21760 # So? What about this header?
21761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21762 yes:no: )
21763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21767 ac_header_preproc=yes
21768 ;;
21769 no:yes:* )
21770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21782
21783 ;;
21784 esac
21785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 else
21790 eval "$as_ac_Header=\$ac_header_preproc"
21791 fi
21792 ac_res=`eval echo '${'$as_ac_Header'}'`
21793 { echo "$as_me:$LINENO: result: $ac_res" >&5
21794 echo "${ECHO_T}$ac_res" >&6; }
21795
21796 fi
21797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21798 cat >>confdefs.h <<_ACEOF
21799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21800 _ACEOF
21801
21802 fi
21803
21804 done
21805
21806 fi
21807
21808 done
21809
21810 fi
21811
21812 done
21813
21814
21815 for ac_header in krb.h
21816 do
21817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21823 fi
21824 ac_res=`eval echo '${'$as_ac_Header'}'`
21825 { echo "$as_me:$LINENO: result: $ac_res" >&5
21826 echo "${ECHO_T}$ac_res" >&6; }
21827 else
21828 # Is the header compilable?
21829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21831 cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h. */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837 $ac_includes_default
21838 #include <$ac_header>
21839 _ACEOF
21840 rm -f conftest.$ac_objext
21841 if { (ac_try="$ac_compile"
21842 case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21845 esac
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_compile") 2>conftest.er1
21848 ac_status=$?
21849 grep -v '^ *+' conftest.er1 >conftest.err
21850 rm -f conftest.er1
21851 cat conftest.err >&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } && {
21854 test -z "$ac_c_werror_flag" ||
21855 test ! -s conftest.err
21856 } && test -s conftest.$ac_objext; then
21857 ac_header_compiler=yes
21858 else
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862 ac_header_compiler=no
21863 fi
21864
21865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21867 echo "${ECHO_T}$ac_header_compiler" >&6; }
21868
21869 # Is the header present?
21870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21872 cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h. */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21878 #include <$ac_header>
21879 _ACEOF
21880 if { (ac_try="$ac_cpp conftest.$ac_ext"
21881 case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21884 esac
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21887 ac_status=$?
21888 grep -v '^ *+' conftest.er1 >conftest.err
21889 rm -f conftest.er1
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } >/dev/null && {
21893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 }; then
21896 ac_header_preproc=yes
21897 else
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901 ac_header_preproc=no
21902 fi
21903
21904 rm -f conftest.err conftest.$ac_ext
21905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21906 echo "${ECHO_T}$ac_header_preproc" >&6; }
21907
21908 # So? What about this header?
21909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21910 yes:no: )
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21915 ac_header_preproc=yes
21916 ;;
21917 no:yes:* )
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21930
21931 ;;
21932 esac
21933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21937 else
21938 eval "$as_ac_Header=\$ac_header_preproc"
21939 fi
21940 ac_res=`eval echo '${'$as_ac_Header'}'`
21941 { echo "$as_me:$LINENO: result: $ac_res" >&5
21942 echo "${ECHO_T}$ac_res" >&6; }
21943
21944 fi
21945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21946 cat >>confdefs.h <<_ACEOF
21947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21948 _ACEOF
21949
21950 else
21951
21952 for ac_header in kerberosIV/krb.h
21953 do
21954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21960 fi
21961 ac_res=`eval echo '${'$as_ac_Header'}'`
21962 { echo "$as_me:$LINENO: result: $ac_res" >&5
21963 echo "${ECHO_T}$ac_res" >&6; }
21964 else
21965 # Is the header compilable?
21966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21968 cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h. */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21974 $ac_includes_default
21975 #include <$ac_header>
21976 _ACEOF
21977 rm -f conftest.$ac_objext
21978 if { (ac_try="$ac_compile"
21979 case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21982 esac
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_compile") 2>conftest.er1
21985 ac_status=$?
21986 grep -v '^ *+' conftest.er1 >conftest.err
21987 rm -f conftest.er1
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } && {
21991 test -z "$ac_c_werror_flag" ||
21992 test ! -s conftest.err
21993 } && test -s conftest.$ac_objext; then
21994 ac_header_compiler=yes
21995 else
21996 echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21998
21999 ac_header_compiler=no
22000 fi
22001
22002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22004 echo "${ECHO_T}$ac_header_compiler" >&6; }
22005
22006 # Is the header present?
22007 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 #include <$ac_header>
22016 _ACEOF
22017 if { (ac_try="$ac_cpp conftest.$ac_ext"
22018 case "(($ac_try" in
22019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22020 *) ac_try_echo=$ac_try;;
22021 esac
22022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22024 ac_status=$?
22025 grep -v '^ *+' conftest.er1 >conftest.err
22026 rm -f conftest.er1
22027 cat conftest.err >&5
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); } >/dev/null && {
22030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22031 test ! -s conftest.err
22032 }; then
22033 ac_header_preproc=yes
22034 else
22035 echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038 ac_header_preproc=no
22039 fi
22040
22041 rm -f conftest.err conftest.$ac_ext
22042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22043 echo "${ECHO_T}$ac_header_preproc" >&6; }
22044
22045 # So? What about this header?
22046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22047 yes:no: )
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22052 ac_header_preproc=yes
22053 ;;
22054 no:yes:* )
22055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22067
22068 ;;
22069 esac
22070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22074 else
22075 eval "$as_ac_Header=\$ac_header_preproc"
22076 fi
22077 ac_res=`eval echo '${'$as_ac_Header'}'`
22078 { echo "$as_me:$LINENO: result: $ac_res" >&5
22079 echo "${ECHO_T}$ac_res" >&6; }
22080
22081 fi
22082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22083 cat >>confdefs.h <<_ACEOF
22084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22085 _ACEOF
22086
22087 else
22088
22089 for ac_header in kerberos/krb.h
22090 do
22091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 fi
22098 ac_res=`eval echo '${'$as_ac_Header'}'`
22099 { echo "$as_me:$LINENO: result: $ac_res" >&5
22100 echo "${ECHO_T}$ac_res" >&6; }
22101 else
22102 # Is the header compilable?
22103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22105 cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h. */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22111 $ac_includes_default
22112 #include <$ac_header>
22113 _ACEOF
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_compile") 2>conftest.er1
22122 ac_status=$?
22123 grep -v '^ *+' conftest.er1 >conftest.err
22124 rm -f conftest.er1
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } && {
22128 test -z "$ac_c_werror_flag" ||
22129 test ! -s conftest.err
22130 } && test -s conftest.$ac_objext; then
22131 ac_header_compiler=yes
22132 else
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22135
22136 ac_header_compiler=no
22137 fi
22138
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22141 echo "${ECHO_T}$ac_header_compiler" >&6; }
22142
22143 # Is the header present?
22144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h. */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 #include <$ac_header>
22153 _ACEOF
22154 if { (ac_try="$ac_cpp conftest.$ac_ext"
22155 case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22158 esac
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22161 ac_status=$?
22162 grep -v '^ *+' conftest.er1 >conftest.err
22163 rm -f conftest.er1
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } >/dev/null && {
22167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22168 test ! -s conftest.err
22169 }; then
22170 ac_header_preproc=yes
22171 else
22172 echo "$as_me: failed program was:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22174
22175 ac_header_preproc=no
22176 fi
22177
22178 rm -f conftest.err conftest.$ac_ext
22179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22180 echo "${ECHO_T}$ac_header_preproc" >&6; }
22181
22182 # So? What about this header?
22183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22184 yes:no: )
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22189 ac_header_preproc=yes
22190 ;;
22191 no:yes:* )
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22204
22205 ;;
22206 esac
22207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22210 echo $ECHO_N "(cached) $ECHO_C" >&6
22211 else
22212 eval "$as_ac_Header=\$ac_header_preproc"
22213 fi
22214 ac_res=`eval echo '${'$as_ac_Header'}'`
22215 { echo "$as_me:$LINENO: result: $ac_res" >&5
22216 echo "${ECHO_T}$ac_res" >&6; }
22217
22218 fi
22219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22222 _ACEOF
22223
22224 fi
22225
22226 done
22227
22228 fi
22229
22230 done
22231
22232 fi
22233
22234 done
22235
22236 fi
22237
22238 for ac_header in com_err.h
22239 do
22240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22246 fi
22247 ac_res=`eval echo '${'$as_ac_Header'}'`
22248 { echo "$as_me:$LINENO: result: $ac_res" >&5
22249 echo "${ECHO_T}$ac_res" >&6; }
22250 else
22251 # Is the header compilable?
22252 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22254 cat >conftest.$ac_ext <<_ACEOF
22255 /* confdefs.h. */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h. */
22260 $ac_includes_default
22261 #include <$ac_header>
22262 _ACEOF
22263 rm -f conftest.$ac_objext
22264 if { (ac_try="$ac_compile"
22265 case "(($ac_try" in
22266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22267 *) ac_try_echo=$ac_try;;
22268 esac
22269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22270 (eval "$ac_compile") 2>conftest.er1
22271 ac_status=$?
22272 grep -v '^ *+' conftest.er1 >conftest.err
22273 rm -f conftest.er1
22274 cat conftest.err >&5
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); } && {
22277 test -z "$ac_c_werror_flag" ||
22278 test ! -s conftest.err
22279 } && test -s conftest.$ac_objext; then
22280 ac_header_compiler=yes
22281 else
22282 echo "$as_me: failed program was:" >&5
22283 sed 's/^/| /' conftest.$ac_ext >&5
22284
22285 ac_header_compiler=no
22286 fi
22287
22288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22290 echo "${ECHO_T}$ac_header_compiler" >&6; }
22291
22292 # Is the header present?
22293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22295 cat >conftest.$ac_ext <<_ACEOF
22296 /* confdefs.h. */
22297 _ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22301 #include <$ac_header>
22302 _ACEOF
22303 if { (ac_try="$ac_cpp conftest.$ac_ext"
22304 case "(($ac_try" in
22305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22307 esac
22308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22310 ac_status=$?
22311 grep -v '^ *+' conftest.er1 >conftest.err
22312 rm -f conftest.er1
22313 cat conftest.err >&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } >/dev/null && {
22316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22317 test ! -s conftest.err
22318 }; then
22319 ac_header_preproc=yes
22320 else
22321 echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22323
22324 ac_header_preproc=no
22325 fi
22326
22327 rm -f conftest.err conftest.$ac_ext
22328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22329 echo "${ECHO_T}$ac_header_preproc" >&6; }
22330
22331 # So? What about this header?
22332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22333 yes:no: )
22334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22338 ac_header_preproc=yes
22339 ;;
22340 no:yes:* )
22341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22353
22354 ;;
22355 esac
22356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22359 echo $ECHO_N "(cached) $ECHO_C" >&6
22360 else
22361 eval "$as_ac_Header=\$ac_header_preproc"
22362 fi
22363 ac_res=`eval echo '${'$as_ac_Header'}'`
22364 { echo "$as_me:$LINENO: result: $ac_res" >&5
22365 echo "${ECHO_T}$ac_res" >&6; }
22366
22367 fi
22368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22369 cat >>confdefs.h <<_ACEOF
22370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22371 _ACEOF
22372
22373 fi
22374
22375 done
22376
22377 fi
22378
22379 # Solaris requires -lintl if you want strerror (which calls dgettext)
22380 # to return localized messages.
22381
22382 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22383 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22384 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22386 else
22387 ac_check_lib_save_LIBS=$LIBS
22388 LIBS="-lintl $LIBS"
22389 cat >conftest.$ac_ext <<_ACEOF
22390 /* confdefs.h. */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22395
22396 /* Override any GCC internal prototype to avoid an error.
22397 Use char because int might match the return type of a GCC
22398 builtin and then its argument prototype would still apply. */
22399 #ifdef __cplusplus
22400 extern "C"
22401 #endif
22402 char dgettext ();
22403 int
22404 main ()
22405 {
22406 return dgettext ();
22407 ;
22408 return 0;
22409 }
22410 _ACEOF
22411 rm -f conftest.$ac_objext conftest$ac_exeext
22412 if { (ac_try="$ac_link"
22413 case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22416 esac
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418 (eval "$ac_link") 2>conftest.er1
22419 ac_status=$?
22420 grep -v '^ *+' conftest.er1 >conftest.err
22421 rm -f conftest.er1
22422 cat conftest.err >&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } && {
22425 test -z "$ac_c_werror_flag" ||
22426 test ! -s conftest.err
22427 } && test -s conftest$ac_exeext &&
22428 $as_test_x conftest$ac_exeext; then
22429 ac_cv_lib_intl_dgettext=yes
22430 else
22431 echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22433
22434 ac_cv_lib_intl_dgettext=no
22435 fi
22436
22437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22438 conftest$ac_exeext conftest.$ac_ext
22439 LIBS=$ac_check_lib_save_LIBS
22440 fi
22441 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22442 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22443 if test $ac_cv_lib_intl_dgettext = yes; then
22444 cat >>confdefs.h <<_ACEOF
22445 #define HAVE_LIBINTL 1
22446 _ACEOF
22447
22448 LIBS="-lintl $LIBS"
22449
22450 fi
22451
22452
22453 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22454 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22455 if test "${emacs_cv_localtime_cache+set}" = set; then
22456 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 else
22458 if test x$ac_cv_func_tzset = xyes; then
22459 if test "$cross_compiling" = yes; then
22460 # If we have tzset, assume the worst when cross-compiling.
22461 emacs_cv_localtime_cache=yes
22462 else
22463 cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h. */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 #include <time.h>
22470 extern char **environ;
22471 unset_TZ ()
22472 {
22473 char **from, **to;
22474 for (to = from = environ; (*to = *from); from++)
22475 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22476 to++;
22477 }
22478 char TZ_GMT0[] = "TZ=GMT0";
22479 char TZ_PST8[] = "TZ=PST8";
22480 main()
22481 {
22482 time_t now = time ((time_t *) 0);
22483 int hour_GMT0, hour_unset;
22484 if (putenv (TZ_GMT0) != 0)
22485 exit (1);
22486 hour_GMT0 = localtime (&now)->tm_hour;
22487 unset_TZ ();
22488 hour_unset = localtime (&now)->tm_hour;
22489 if (putenv (TZ_PST8) != 0)
22490 exit (1);
22491 if (localtime (&now)->tm_hour == hour_GMT0)
22492 exit (1);
22493 unset_TZ ();
22494 if (localtime (&now)->tm_hour != hour_unset)
22495 exit (1);
22496 exit (0);
22497 }
22498 _ACEOF
22499 rm -f conftest$ac_exeext
22500 if { (ac_try="$ac_link"
22501 case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22504 esac
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506 (eval "$ac_link") 2>&5
22507 ac_status=$?
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22510 { (case "(($ac_try" in
22511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512 *) ac_try_echo=$ac_try;;
22513 esac
22514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22515 (eval "$ac_try") 2>&5
22516 ac_status=$?
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; }; then
22519 emacs_cv_localtime_cache=no
22520 else
22521 echo "$as_me: program exited with status $ac_status" >&5
22522 echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22524
22525 ( exit $ac_status )
22526 emacs_cv_localtime_cache=yes
22527 fi
22528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22529 fi
22530
22531
22532 else
22533 # If we lack tzset, report that localtime does not cache TZ,
22534 # since we can't invalidate the cache if we don't have tzset.
22535 emacs_cv_localtime_cache=no
22536 fi
22537 fi
22538 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22539 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22540 if test $emacs_cv_localtime_cache = yes; then
22541
22542 cat >>confdefs.h <<\_ACEOF
22543 #define LOCALTIME_CACHE 1
22544 _ACEOF
22545
22546 fi
22547
22548 if test "x$HAVE_TIMEVAL" = xyes; then
22549
22550 for ac_func in gettimeofday
22551 do
22552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 else
22558 cat >conftest.$ac_ext <<_ACEOF
22559 /* confdefs.h. */
22560 _ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h. */
22564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22566 #define $ac_func innocuous_$ac_func
22567
22568 /* System header to define __stub macros and hopefully few prototypes,
22569 which can conflict with char $ac_func (); below.
22570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22571 <limits.h> exists even on freestanding compilers. */
22572
22573 #ifdef __STDC__
22574 # include <limits.h>
22575 #else
22576 # include <assert.h>
22577 #endif
22578
22579 #undef $ac_func
22580
22581 /* Override any GCC internal prototype to avoid an error.
22582 Use char because int might match the return type of a GCC
22583 builtin and then its argument prototype would still apply. */
22584 #ifdef __cplusplus
22585 extern "C"
22586 #endif
22587 char $ac_func ();
22588 /* The GNU C library defines this for functions which it implements
22589 to always fail with ENOSYS. Some functions are actually named
22590 something starting with __ and the normal name is an alias. */
22591 #if defined __stub_$ac_func || defined __stub___$ac_func
22592 choke me
22593 #endif
22594
22595 int
22596 main ()
22597 {
22598 return $ac_func ();
22599 ;
22600 return 0;
22601 }
22602 _ACEOF
22603 rm -f conftest.$ac_objext conftest$ac_exeext
22604 if { (ac_try="$ac_link"
22605 case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22608 esac
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610 (eval "$ac_link") 2>conftest.er1
22611 ac_status=$?
22612 grep -v '^ *+' conftest.er1 >conftest.err
22613 rm -f conftest.er1
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } && {
22617 test -z "$ac_c_werror_flag" ||
22618 test ! -s conftest.err
22619 } && test -s conftest$ac_exeext &&
22620 $as_test_x conftest$ac_exeext; then
22621 eval "$as_ac_var=yes"
22622 else
22623 echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22625
22626 eval "$as_ac_var=no"
22627 fi
22628
22629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22630 conftest$ac_exeext conftest.$ac_ext
22631 fi
22632 ac_res=`eval echo '${'$as_ac_var'}'`
22633 { echo "$as_me:$LINENO: result: $ac_res" >&5
22634 echo "${ECHO_T}$ac_res" >&6; }
22635 if test `eval echo '${'$as_ac_var'}'` = yes; then
22636 cat >>confdefs.h <<_ACEOF
22637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22638 _ACEOF
22639
22640 fi
22641 done
22642
22643 if test $ac_cv_func_gettimeofday = yes; then
22644 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22645 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22646 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 else
22649 cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h. */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22655
22656 #ifdef TIME_WITH_SYS_TIME
22657 #include <sys/time.h>
22658 #include <time.h>
22659 #else
22660 #ifdef HAVE_SYS_TIME_H
22661 #include <sys/time.h>
22662 #else
22663 #include <time.h>
22664 #endif
22665 #endif
22666 int
22667 main ()
22668 {
22669 struct timeval time;
22670 gettimeofday (&time, 0);
22671 ;
22672 return 0;
22673 }
22674 _ACEOF
22675 rm -f conftest.$ac_objext
22676 if { (ac_try="$ac_compile"
22677 case "(($ac_try" in
22678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679 *) ac_try_echo=$ac_try;;
22680 esac
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682 (eval "$ac_compile") 2>conftest.er1
22683 ac_status=$?
22684 grep -v '^ *+' conftest.er1 >conftest.err
22685 rm -f conftest.er1
22686 cat conftest.err >&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } && {
22689 test -z "$ac_c_werror_flag" ||
22690 test ! -s conftest.err
22691 } && test -s conftest.$ac_objext; then
22692 emacs_cv_gettimeofday_two_arguments=yes
22693 else
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22696
22697 emacs_cv_gettimeofday_two_arguments=no
22698 fi
22699
22700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22701 fi
22702 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22703 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22704 if test $emacs_cv_gettimeofday_two_arguments = no; then
22705
22706 cat >>confdefs.h <<\_ACEOF
22707 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22708 _ACEOF
22709
22710 fi
22711 fi
22712 fi
22713
22714 ok_so_far=yes
22715 { echo "$as_me:$LINENO: checking for socket" >&5
22716 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22717 if test "${ac_cv_func_socket+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 else
22720 cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h. */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22726 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22728 #define socket innocuous_socket
22729
22730 /* System header to define __stub macros and hopefully few prototypes,
22731 which can conflict with char socket (); below.
22732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22733 <limits.h> exists even on freestanding compilers. */
22734
22735 #ifdef __STDC__
22736 # include <limits.h>
22737 #else
22738 # include <assert.h>
22739 #endif
22740
22741 #undef socket
22742
22743 /* Override any GCC internal prototype to avoid an error.
22744 Use char because int might match the return type of a GCC
22745 builtin and then its argument prototype would still apply. */
22746 #ifdef __cplusplus
22747 extern "C"
22748 #endif
22749 char socket ();
22750 /* The GNU C library defines this for functions which it implements
22751 to always fail with ENOSYS. Some functions are actually named
22752 something starting with __ and the normal name is an alias. */
22753 #if defined __stub_socket || defined __stub___socket
22754 choke me
22755 #endif
22756
22757 int
22758 main ()
22759 {
22760 return socket ();
22761 ;
22762 return 0;
22763 }
22764 _ACEOF
22765 rm -f conftest.$ac_objext conftest$ac_exeext
22766 if { (ac_try="$ac_link"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22770 esac
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_link") 2>conftest.er1
22773 ac_status=$?
22774 grep -v '^ *+' conftest.er1 >conftest.err
22775 rm -f conftest.er1
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } && {
22779 test -z "$ac_c_werror_flag" ||
22780 test ! -s conftest.err
22781 } && test -s conftest$ac_exeext &&
22782 $as_test_x conftest$ac_exeext; then
22783 ac_cv_func_socket=yes
22784 else
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788 ac_cv_func_socket=no
22789 fi
22790
22791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22792 conftest$ac_exeext conftest.$ac_ext
22793 fi
22794 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22795 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22796 if test $ac_cv_func_socket = yes; then
22797 :
22798 else
22799 ok_so_far=no
22800 fi
22801
22802 if test $ok_so_far = yes; then
22803 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22804 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22805 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22806 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22808 fi
22809 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22810 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22811 else
22812 # Is the header compilable?
22813 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22814 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22815 cat >conftest.$ac_ext <<_ACEOF
22816 /* confdefs.h. */
22817 _ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22821 $ac_includes_default
22822 #include <netinet/in.h>
22823 _ACEOF
22824 rm -f conftest.$ac_objext
22825 if { (ac_try="$ac_compile"
22826 case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22829 esac
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_compile") 2>conftest.er1
22832 ac_status=$?
22833 grep -v '^ *+' conftest.er1 >conftest.err
22834 rm -f conftest.er1
22835 cat conftest.err >&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } && {
22838 test -z "$ac_c_werror_flag" ||
22839 test ! -s conftest.err
22840 } && test -s conftest.$ac_objext; then
22841 ac_header_compiler=yes
22842 else
22843 echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22845
22846 ac_header_compiler=no
22847 fi
22848
22849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22851 echo "${ECHO_T}$ac_header_compiler" >&6; }
22852
22853 # Is the header present?
22854 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22855 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22856 cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h. */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 #include <netinet/in.h>
22863 _ACEOF
22864 if { (ac_try="$ac_cpp conftest.$ac_ext"
22865 case "(($ac_try" in
22866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867 *) ac_try_echo=$ac_try;;
22868 esac
22869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22871 ac_status=$?
22872 grep -v '^ *+' conftest.er1 >conftest.err
22873 rm -f conftest.er1
22874 cat conftest.err >&5
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); } >/dev/null && {
22877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22878 test ! -s conftest.err
22879 }; then
22880 ac_header_preproc=yes
22881 else
22882 echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22884
22885 ac_header_preproc=no
22886 fi
22887
22888 rm -f conftest.err conftest.$ac_ext
22889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22890 echo "${ECHO_T}$ac_header_preproc" >&6; }
22891
22892 # So? What about this header?
22893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22894 yes:no: )
22895 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22896 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22897 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22898 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22899 ac_header_preproc=yes
22900 ;;
22901 no:yes:* )
22902 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22903 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22904 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22905 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22906 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22907 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22908 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22909 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22910 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22911 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22912 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22913 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22914
22915 ;;
22916 esac
22917 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22918 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22919 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22920 echo $ECHO_N "(cached) $ECHO_C" >&6
22921 else
22922 ac_cv_header_netinet_in_h=$ac_header_preproc
22923 fi
22924 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22925 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22926
22927 fi
22928 if test $ac_cv_header_netinet_in_h = yes; then
22929 :
22930 else
22931 ok_so_far=no
22932 fi
22933
22934
22935 fi
22936 if test $ok_so_far = yes; then
22937 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22938 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22939 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22940 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22941 echo $ECHO_N "(cached) $ECHO_C" >&6
22942 fi
22943 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22944 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22945 else
22946 # Is the header compilable?
22947 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22948 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22949 cat >conftest.$ac_ext <<_ACEOF
22950 /* confdefs.h. */
22951 _ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h. */
22955 $ac_includes_default
22956 #include <arpa/inet.h>
22957 _ACEOF
22958 rm -f conftest.$ac_objext
22959 if { (ac_try="$ac_compile"
22960 case "(($ac_try" in
22961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22962 *) ac_try_echo=$ac_try;;
22963 esac
22964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22965 (eval "$ac_compile") 2>conftest.er1
22966 ac_status=$?
22967 grep -v '^ *+' conftest.er1 >conftest.err
22968 rm -f conftest.er1
22969 cat conftest.err >&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } && {
22972 test -z "$ac_c_werror_flag" ||
22973 test ! -s conftest.err
22974 } && test -s conftest.$ac_objext; then
22975 ac_header_compiler=yes
22976 else
22977 echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22979
22980 ac_header_compiler=no
22981 fi
22982
22983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22985 echo "${ECHO_T}$ac_header_compiler" >&6; }
22986
22987 # Is the header present?
22988 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22989 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22990 cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h. */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22996 #include <arpa/inet.h>
22997 _ACEOF
22998 if { (ac_try="$ac_cpp conftest.$ac_ext"
22999 case "(($ac_try" in
23000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23001 *) ac_try_echo=$ac_try;;
23002 esac
23003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23005 ac_status=$?
23006 grep -v '^ *+' conftest.er1 >conftest.err
23007 rm -f conftest.er1
23008 cat conftest.err >&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } >/dev/null && {
23011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23012 test ! -s conftest.err
23013 }; then
23014 ac_header_preproc=yes
23015 else
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23018
23019 ac_header_preproc=no
23020 fi
23021
23022 rm -f conftest.err conftest.$ac_ext
23023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23024 echo "${ECHO_T}$ac_header_preproc" >&6; }
23025
23026 # So? What about this header?
23027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23028 yes:no: )
23029 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23030 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23031 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23032 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23033 ac_header_preproc=yes
23034 ;;
23035 no:yes:* )
23036 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23037 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23038 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23039 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23040 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23041 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23042 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23043 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23044 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23045 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23046 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23047 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23048
23049 ;;
23050 esac
23051 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23052 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23053 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23055 else
23056 ac_cv_header_arpa_inet_h=$ac_header_preproc
23057 fi
23058 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23059 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23060
23061 fi
23062 if test $ac_cv_header_arpa_inet_h = yes; then
23063 :
23064 else
23065 ok_so_far=no
23066 fi
23067
23068
23069 fi
23070 if test $ok_so_far = yes; then
23071
23072 cat >>confdefs.h <<\_ACEOF
23073 #define HAVE_INET_SOCKETS 1
23074 _ACEOF
23075
23076 fi
23077
23078
23079 for ac_header in sys/ioctl.h
23080 do
23081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23086 echo $ECHO_N "(cached) $ECHO_C" >&6
23087 fi
23088 ac_res=`eval echo '${'$as_ac_Header'}'`
23089 { echo "$as_me:$LINENO: result: $ac_res" >&5
23090 echo "${ECHO_T}$ac_res" >&6; }
23091 else
23092 # Is the header compilable?
23093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23095 cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h. */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 $ac_includes_default
23102 #include <$ac_header>
23103 _ACEOF
23104 rm -f conftest.$ac_objext
23105 if { (ac_try="$ac_compile"
23106 case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23109 esac
23110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23111 (eval "$ac_compile") 2>conftest.er1
23112 ac_status=$?
23113 grep -v '^ *+' conftest.er1 >conftest.err
23114 rm -f conftest.er1
23115 cat conftest.err >&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } && {
23118 test -z "$ac_c_werror_flag" ||
23119 test ! -s conftest.err
23120 } && test -s conftest.$ac_objext; then
23121 ac_header_compiler=yes
23122 else
23123 echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23125
23126 ac_header_compiler=no
23127 fi
23128
23129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23131 echo "${ECHO_T}$ac_header_compiler" >&6; }
23132
23133 # Is the header present?
23134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23136 cat >conftest.$ac_ext <<_ACEOF
23137 /* confdefs.h. */
23138 _ACEOF
23139 cat confdefs.h >>conftest.$ac_ext
23140 cat >>conftest.$ac_ext <<_ACEOF
23141 /* end confdefs.h. */
23142 #include <$ac_header>
23143 _ACEOF
23144 if { (ac_try="$ac_cpp conftest.$ac_ext"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23151 ac_status=$?
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } >/dev/null && {
23157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 }; then
23160 ac_header_preproc=yes
23161 else
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23164
23165 ac_header_preproc=no
23166 fi
23167
23168 rm -f conftest.err conftest.$ac_ext
23169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23170 echo "${ECHO_T}$ac_header_preproc" >&6; }
23171
23172 # So? What about this header?
23173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23174 yes:no: )
23175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23179 ac_header_preproc=yes
23180 ;;
23181 no:yes:* )
23182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23194
23195 ;;
23196 esac
23197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23200 echo $ECHO_N "(cached) $ECHO_C" >&6
23201 else
23202 eval "$as_ac_Header=\$ac_header_preproc"
23203 fi
23204 ac_res=`eval echo '${'$as_ac_Header'}'`
23205 { echo "$as_me:$LINENO: result: $ac_res" >&5
23206 echo "${ECHO_T}$ac_res" >&6; }
23207
23208 fi
23209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23210 cat >>confdefs.h <<_ACEOF
23211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23212 _ACEOF
23213
23214 fi
23215
23216 done
23217
23218
23219 if test -f /usr/lpp/X11/bin/smt.exp; then
23220
23221 cat >>confdefs.h <<\_ACEOF
23222 #define HAVE_AIX_SMT_EXP 1
23223 _ACEOF
23224
23225 fi
23226
23227 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23228 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23229 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23230 { echo "$as_me:$LINENO: result: yes" >&5
23231 echo "${ECHO_T}yes" >&6; }
23232
23233 cat >>confdefs.h <<\_ACEOF
23234 #define HAVE_DEV_PTMX 1
23235 _ACEOF
23236
23237 else
23238 { echo "$as_me:$LINENO: result: no" >&5
23239 echo "${ECHO_T}no" >&6; }
23240 fi
23241
23242 { echo "$as_me:$LINENO: checking for pid_t" >&5
23243 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23244 if test "${ac_cv_type_pid_t+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247 cat >conftest.$ac_ext <<_ACEOF
23248 /* confdefs.h. */
23249 _ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h. */
23253 $ac_includes_default
23254 typedef pid_t ac__type_new_;
23255 int
23256 main ()
23257 {
23258 if ((ac__type_new_ *) 0)
23259 return 0;
23260 if (sizeof (ac__type_new_))
23261 return 0;
23262 ;
23263 return 0;
23264 }
23265 _ACEOF
23266 rm -f conftest.$ac_objext
23267 if { (ac_try="$ac_compile"
23268 case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23271 esac
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_compile") 2>conftest.er1
23274 ac_status=$?
23275 grep -v '^ *+' conftest.er1 >conftest.err
23276 rm -f conftest.er1
23277 cat conftest.err >&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } && {
23280 test -z "$ac_c_werror_flag" ||
23281 test ! -s conftest.err
23282 } && test -s conftest.$ac_objext; then
23283 ac_cv_type_pid_t=yes
23284 else
23285 echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23287
23288 ac_cv_type_pid_t=no
23289 fi
23290
23291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23292 fi
23293 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23294 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23295 if test $ac_cv_type_pid_t = yes; then
23296 :
23297 else
23298
23299 cat >>confdefs.h <<_ACEOF
23300 #define pid_t int
23301 _ACEOF
23302
23303 fi
23304
23305
23306 for ac_header in vfork.h
23307 do
23308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23313 echo $ECHO_N "(cached) $ECHO_C" >&6
23314 fi
23315 ac_res=`eval echo '${'$as_ac_Header'}'`
23316 { echo "$as_me:$LINENO: result: $ac_res" >&5
23317 echo "${ECHO_T}$ac_res" >&6; }
23318 else
23319 # Is the header compilable?
23320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23322 cat >conftest.$ac_ext <<_ACEOF
23323 /* confdefs.h. */
23324 _ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23328 $ac_includes_default
23329 #include <$ac_header>
23330 _ACEOF
23331 rm -f conftest.$ac_objext
23332 if { (ac_try="$ac_compile"
23333 case "(($ac_try" in
23334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23335 *) ac_try_echo=$ac_try;;
23336 esac
23337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23338 (eval "$ac_compile") 2>conftest.er1
23339 ac_status=$?
23340 grep -v '^ *+' conftest.er1 >conftest.err
23341 rm -f conftest.er1
23342 cat conftest.err >&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } && {
23345 test -z "$ac_c_werror_flag" ||
23346 test ! -s conftest.err
23347 } && test -s conftest.$ac_objext; then
23348 ac_header_compiler=yes
23349 else
23350 echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23352
23353 ac_header_compiler=no
23354 fi
23355
23356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23358 echo "${ECHO_T}$ac_header_compiler" >&6; }
23359
23360 # Is the header present?
23361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23363 cat >conftest.$ac_ext <<_ACEOF
23364 /* confdefs.h. */
23365 _ACEOF
23366 cat confdefs.h >>conftest.$ac_ext
23367 cat >>conftest.$ac_ext <<_ACEOF
23368 /* end confdefs.h. */
23369 #include <$ac_header>
23370 _ACEOF
23371 if { (ac_try="$ac_cpp conftest.$ac_ext"
23372 case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23375 esac
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23378 ac_status=$?
23379 grep -v '^ *+' conftest.er1 >conftest.err
23380 rm -f conftest.er1
23381 cat conftest.err >&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } >/dev/null && {
23384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23385 test ! -s conftest.err
23386 }; then
23387 ac_header_preproc=yes
23388 else
23389 echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23391
23392 ac_header_preproc=no
23393 fi
23394
23395 rm -f conftest.err conftest.$ac_ext
23396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23397 echo "${ECHO_T}$ac_header_preproc" >&6; }
23398
23399 # So? What about this header?
23400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23401 yes:no: )
23402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23406 ac_header_preproc=yes
23407 ;;
23408 no:yes:* )
23409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23421
23422 ;;
23423 esac
23424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23427 echo $ECHO_N "(cached) $ECHO_C" >&6
23428 else
23429 eval "$as_ac_Header=\$ac_header_preproc"
23430 fi
23431 ac_res=`eval echo '${'$as_ac_Header'}'`
23432 { echo "$as_me:$LINENO: result: $ac_res" >&5
23433 echo "${ECHO_T}$ac_res" >&6; }
23434
23435 fi
23436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23437 cat >>confdefs.h <<_ACEOF
23438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23439 _ACEOF
23440
23441 fi
23442
23443 done
23444
23445
23446
23447 for ac_func in fork vfork
23448 do
23449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23453 echo $ECHO_N "(cached) $ECHO_C" >&6
23454 else
23455 cat >conftest.$ac_ext <<_ACEOF
23456 /* confdefs.h. */
23457 _ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h. */
23461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23463 #define $ac_func innocuous_$ac_func
23464
23465 /* System header to define __stub macros and hopefully few prototypes,
23466 which can conflict with char $ac_func (); below.
23467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23468 <limits.h> exists even on freestanding compilers. */
23469
23470 #ifdef __STDC__
23471 # include <limits.h>
23472 #else
23473 # include <assert.h>
23474 #endif
23475
23476 #undef $ac_func
23477
23478 /* Override any GCC internal prototype to avoid an error.
23479 Use char because int might match the return type of a GCC
23480 builtin and then its argument prototype would still apply. */
23481 #ifdef __cplusplus
23482 extern "C"
23483 #endif
23484 char $ac_func ();
23485 /* The GNU C library defines this for functions which it implements
23486 to always fail with ENOSYS. Some functions are actually named
23487 something starting with __ and the normal name is an alias. */
23488 #if defined __stub_$ac_func || defined __stub___$ac_func
23489 choke me
23490 #endif
23491
23492 int
23493 main ()
23494 {
23495 return $ac_func ();
23496 ;
23497 return 0;
23498 }
23499 _ACEOF
23500 rm -f conftest.$ac_objext conftest$ac_exeext
23501 if { (ac_try="$ac_link"
23502 case "(($ac_try" in
23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23505 esac
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507 (eval "$ac_link") 2>conftest.er1
23508 ac_status=$?
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } && {
23514 test -z "$ac_c_werror_flag" ||
23515 test ! -s conftest.err
23516 } && test -s conftest$ac_exeext &&
23517 $as_test_x conftest$ac_exeext; then
23518 eval "$as_ac_var=yes"
23519 else
23520 echo "$as_me: failed program was:" >&5
23521 sed 's/^/| /' conftest.$ac_ext >&5
23522
23523 eval "$as_ac_var=no"
23524 fi
23525
23526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23527 conftest$ac_exeext conftest.$ac_ext
23528 fi
23529 ac_res=`eval echo '${'$as_ac_var'}'`
23530 { echo "$as_me:$LINENO: result: $ac_res" >&5
23531 echo "${ECHO_T}$ac_res" >&6; }
23532 if test `eval echo '${'$as_ac_var'}'` = yes; then
23533 cat >>confdefs.h <<_ACEOF
23534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23535 _ACEOF
23536
23537 fi
23538 done
23539
23540 if test "x$ac_cv_func_fork" = xyes; then
23541 { echo "$as_me:$LINENO: checking for working fork" >&5
23542 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23543 if test "${ac_cv_func_fork_works+set}" = set; then
23544 echo $ECHO_N "(cached) $ECHO_C" >&6
23545 else
23546 if test "$cross_compiling" = yes; then
23547 ac_cv_func_fork_works=cross
23548 else
23549 cat >conftest.$ac_ext <<_ACEOF
23550 /* confdefs.h. */
23551 _ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23555 $ac_includes_default
23556 int
23557 main ()
23558 {
23559
23560 /* By Ruediger Kuhlmann. */
23561 return fork () < 0;
23562
23563 ;
23564 return 0;
23565 }
23566 _ACEOF
23567 rm -f conftest$ac_exeext
23568 if { (ac_try="$ac_link"
23569 case "(($ac_try" in
23570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571 *) ac_try_echo=$ac_try;;
23572 esac
23573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23574 (eval "$ac_link") 2>&5
23575 ac_status=$?
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23578 { (case "(($ac_try" in
23579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580 *) ac_try_echo=$ac_try;;
23581 esac
23582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583 (eval "$ac_try") 2>&5
23584 ac_status=$?
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; }; then
23587 ac_cv_func_fork_works=yes
23588 else
23589 echo "$as_me: program exited with status $ac_status" >&5
23590 echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23592
23593 ( exit $ac_status )
23594 ac_cv_func_fork_works=no
23595 fi
23596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23597 fi
23598
23599
23600 fi
23601 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23602 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23603
23604 else
23605 ac_cv_func_fork_works=$ac_cv_func_fork
23606 fi
23607 if test "x$ac_cv_func_fork_works" = xcross; then
23608 case $host in
23609 *-*-amigaos* | *-*-msdosdjgpp*)
23610 # Override, as these systems have only a dummy fork() stub
23611 ac_cv_func_fork_works=no
23612 ;;
23613 *)
23614 ac_cv_func_fork_works=yes
23615 ;;
23616 esac
23617 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23618 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23619 fi
23620 ac_cv_func_vfork_works=$ac_cv_func_vfork
23621 if test "x$ac_cv_func_vfork" = xyes; then
23622 { echo "$as_me:$LINENO: checking for working vfork" >&5
23623 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23624 if test "${ac_cv_func_vfork_works+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23626 else
23627 if test "$cross_compiling" = yes; then
23628 ac_cv_func_vfork_works=cross
23629 else
23630 cat >conftest.$ac_ext <<_ACEOF
23631 /* confdefs.h. */
23632 _ACEOF
23633 cat confdefs.h >>conftest.$ac_ext
23634 cat >>conftest.$ac_ext <<_ACEOF
23635 /* end confdefs.h. */
23636 /* Thanks to Paul Eggert for this test. */
23637 $ac_includes_default
23638 #include <sys/wait.h>
23639 #ifdef HAVE_VFORK_H
23640 # include <vfork.h>
23641 #endif
23642 /* On some sparc systems, changes by the child to local and incoming
23643 argument registers are propagated back to the parent. The compiler
23644 is told about this with #include <vfork.h>, but some compilers
23645 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23646 static variable whose address is put into a register that is
23647 clobbered by the vfork. */
23648 static void
23649 #ifdef __cplusplus
23650 sparc_address_test (int arg)
23651 # else
23652 sparc_address_test (arg) int arg;
23653 #endif
23654 {
23655 static pid_t child;
23656 if (!child) {
23657 child = vfork ();
23658 if (child < 0) {
23659 perror ("vfork");
23660 _exit(2);
23661 }
23662 if (!child) {
23663 arg = getpid();
23664 write(-1, "", 0);
23665 _exit (arg);
23666 }
23667 }
23668 }
23669
23670 int
23671 main ()
23672 {
23673 pid_t parent = getpid ();
23674 pid_t child;
23675
23676 sparc_address_test (0);
23677
23678 child = vfork ();
23679
23680 if (child == 0) {
23681 /* Here is another test for sparc vfork register problems. This
23682 test uses lots of local variables, at least as many local
23683 variables as main has allocated so far including compiler
23684 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23685 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23686 reuse the register of parent for one of the local variables,
23687 since it will think that parent can't possibly be used any more
23688 in this routine. Assigning to the local variable will thus
23689 munge parent in the parent process. */
23690 pid_t
23691 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23692 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23693 /* Convince the compiler that p..p7 are live; otherwise, it might
23694 use the same hardware register for all 8 local variables. */
23695 if (p != p1 || p != p2 || p != p3 || p != p4
23696 || p != p5 || p != p6 || p != p7)
23697 _exit(1);
23698
23699 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23700 from child file descriptors. If the child closes a descriptor
23701 before it execs or exits, this munges the parent's descriptor
23702 as well. Test for this by closing stdout in the child. */
23703 _exit(close(fileno(stdout)) != 0);
23704 } else {
23705 int status;
23706 struct stat st;
23707
23708 while (wait(&status) != child)
23709 ;
23710 return (
23711 /* Was there some problem with vforking? */
23712 child < 0
23713
23714 /* Did the child fail? (This shouldn't happen.) */
23715 || status
23716
23717 /* Did the vfork/compiler bug occur? */
23718 || parent != getpid()
23719
23720 /* Did the file descriptor bug occur? */
23721 || fstat(fileno(stdout), &st) != 0
23722 );
23723 }
23724 }
23725 _ACEOF
23726 rm -f conftest$ac_exeext
23727 if { (ac_try="$ac_link"
23728 case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_link") 2>&5
23734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23737 { (case "(($ac_try" in
23738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739 *) ac_try_echo=$ac_try;;
23740 esac
23741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23742 (eval "$ac_try") 2>&5
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; }; then
23746 ac_cv_func_vfork_works=yes
23747 else
23748 echo "$as_me: program exited with status $ac_status" >&5
23749 echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23751
23752 ( exit $ac_status )
23753 ac_cv_func_vfork_works=no
23754 fi
23755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23756 fi
23757
23758
23759 fi
23760 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23761 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23762
23763 fi;
23764 if test "x$ac_cv_func_fork_works" = xcross; then
23765 ac_cv_func_vfork_works=$ac_cv_func_vfork
23766 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23767 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23768 fi
23769
23770 if test "x$ac_cv_func_vfork_works" = xyes; then
23771
23772 cat >>confdefs.h <<\_ACEOF
23773 #define HAVE_WORKING_VFORK 1
23774 _ACEOF
23775
23776 else
23777
23778 cat >>confdefs.h <<\_ACEOF
23779 #define vfork fork
23780 _ACEOF
23781
23782 fi
23783 if test "x$ac_cv_func_fork_works" = xyes; then
23784
23785 cat >>confdefs.h <<\_ACEOF
23786 #define HAVE_WORKING_FORK 1
23787 _ACEOF
23788
23789 fi
23790
23791
23792 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23793 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23794 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23795 echo $ECHO_N "(cached) $ECHO_C" >&6
23796 else
23797 cat >conftest.$ac_ext <<_ACEOF
23798 /* confdefs.h. */
23799 _ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h. */
23803 #include <langinfo.h>
23804 int
23805 main ()
23806 {
23807 char* cs = nl_langinfo(CODESET);
23808 ;
23809 return 0;
23810 }
23811 _ACEOF
23812 rm -f conftest.$ac_objext conftest$ac_exeext
23813 if { (ac_try="$ac_link"
23814 case "(($ac_try" in
23815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816 *) ac_try_echo=$ac_try;;
23817 esac
23818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23819 (eval "$ac_link") 2>conftest.er1
23820 ac_status=$?
23821 grep -v '^ *+' conftest.er1 >conftest.err
23822 rm -f conftest.er1
23823 cat conftest.err >&5
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); } && {
23826 test -z "$ac_c_werror_flag" ||
23827 test ! -s conftest.err
23828 } && test -s conftest$ac_exeext &&
23829 $as_test_x conftest$ac_exeext; then
23830 emacs_cv_langinfo_codeset=yes
23831 else
23832 echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23834
23835 emacs_cv_langinfo_codeset=no
23836 fi
23837
23838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23839 conftest$ac_exeext conftest.$ac_ext
23840
23841 fi
23842 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23843 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23844 if test $emacs_cv_langinfo_codeset = yes; then
23845
23846 cat >>confdefs.h <<\_ACEOF
23847 #define HAVE_LANGINFO_CODESET 1
23848 _ACEOF
23849
23850 fi
23851
23852 { echo "$as_me:$LINENO: checking for size_t" >&5
23853 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23854 if test "${ac_cv_type_size_t+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23856 else
23857 cat >conftest.$ac_ext <<_ACEOF
23858 /* confdefs.h. */
23859 _ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h. */
23863 $ac_includes_default
23864 typedef size_t ac__type_new_;
23865 int
23866 main ()
23867 {
23868 if ((ac__type_new_ *) 0)
23869 return 0;
23870 if (sizeof (ac__type_new_))
23871 return 0;
23872 ;
23873 return 0;
23874 }
23875 _ACEOF
23876 rm -f conftest.$ac_objext
23877 if { (ac_try="$ac_compile"
23878 case "(($ac_try" in
23879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23880 *) ac_try_echo=$ac_try;;
23881 esac
23882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23883 (eval "$ac_compile") 2>conftest.er1
23884 ac_status=$?
23885 grep -v '^ *+' conftest.er1 >conftest.err
23886 rm -f conftest.er1
23887 cat conftest.err >&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } && {
23890 test -z "$ac_c_werror_flag" ||
23891 test ! -s conftest.err
23892 } && test -s conftest.$ac_objext; then
23893 ac_cv_type_size_t=yes
23894 else
23895 echo "$as_me: failed program was:" >&5
23896 sed 's/^/| /' conftest.$ac_ext >&5
23897
23898 ac_cv_type_size_t=no
23899 fi
23900
23901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23902 fi
23903 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23904 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23905 if test $ac_cv_type_size_t = yes; then
23906
23907 cat >>confdefs.h <<_ACEOF
23908 #define HAVE_SIZE_T 1
23909 _ACEOF
23910
23911
23912 fi
23913
23914
23915 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23916 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23917 if test "${ac_cv_type_mbstate_t+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
23919 else
23920 cat >conftest.$ac_ext <<_ACEOF
23921 /* confdefs.h. */
23922 _ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h. */
23926 $ac_includes_default
23927 # include <wchar.h>
23928 int
23929 main ()
23930 {
23931 mbstate_t x; return sizeof x;
23932 ;
23933 return 0;
23934 }
23935 _ACEOF
23936 rm -f conftest.$ac_objext
23937 if { (ac_try="$ac_compile"
23938 case "(($ac_try" in
23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940 *) ac_try_echo=$ac_try;;
23941 esac
23942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23943 (eval "$ac_compile") 2>conftest.er1
23944 ac_status=$?
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } && {
23950 test -z "$ac_c_werror_flag" ||
23951 test ! -s conftest.err
23952 } && test -s conftest.$ac_objext; then
23953 ac_cv_type_mbstate_t=yes
23954 else
23955 echo "$as_me: failed program was:" >&5
23956 sed 's/^/| /' conftest.$ac_ext >&5
23957
23958 ac_cv_type_mbstate_t=no
23959 fi
23960
23961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23962 fi
23963 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23964 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23965 if test $ac_cv_type_mbstate_t = yes; then
23966
23967 cat >>confdefs.h <<\_ACEOF
23968 #define HAVE_MBSTATE_T 1
23969 _ACEOF
23970
23971 else
23972
23973 cat >>confdefs.h <<\_ACEOF
23974 #define mbstate_t int
23975 _ACEOF
23976
23977 fi
23978
23979 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23980 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23981 if test "${emacs_cv_c_restrict+set}" = set; then
23982 echo $ECHO_N "(cached) $ECHO_C" >&6
23983 else
23984 cat >conftest.$ac_ext <<_ACEOF
23985 /* confdefs.h. */
23986 _ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23990 void fred (int *restrict x);
23991 int
23992 main ()
23993 {
23994
23995 ;
23996 return 0;
23997 }
23998 _ACEOF
23999 rm -f conftest.$ac_objext
24000 if { (ac_try="$ac_compile"
24001 case "(($ac_try" in
24002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003 *) ac_try_echo=$ac_try;;
24004 esac
24005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006 (eval "$ac_compile") 2>conftest.er1
24007 ac_status=$?
24008 grep -v '^ *+' conftest.er1 >conftest.err
24009 rm -f conftest.er1
24010 cat conftest.err >&5
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); } && {
24013 test -z "$ac_c_werror_flag" ||
24014 test ! -s conftest.err
24015 } && test -s conftest.$ac_objext; then
24016 emacs_cv_c_restrict=yes
24017 else
24018 echo "$as_me: failed program was:" >&5
24019 sed 's/^/| /' conftest.$ac_ext >&5
24020
24021 cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h. */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24027 void fred (int *__restrict x);
24028 int
24029 main ()
24030 {
24031
24032 ;
24033 return 0;
24034 }
24035 _ACEOF
24036 rm -f conftest.$ac_objext
24037 if { (ac_try="$ac_compile"
24038 case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24041 esac
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043 (eval "$ac_compile") 2>conftest.er1
24044 ac_status=$?
24045 grep -v '^ *+' conftest.er1 >conftest.err
24046 rm -f conftest.er1
24047 cat conftest.err >&5
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); } && {
24050 test -z "$ac_c_werror_flag" ||
24051 test ! -s conftest.err
24052 } && test -s conftest.$ac_objext; then
24053 emacs_cv_c_restrict=__restrict
24054 else
24055 echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24057
24058 emacs_cv_c_restrict=no
24059 fi
24060
24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062 fi
24063
24064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24065 fi
24066 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24067 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24068 case "$emacs_cv_c_restrict" in
24069 yes) emacs_restrict=restrict;;
24070 no) emacs_restrict="";;
24071 *) emacs_restrict="$emacs_cv_c_restrict";;
24072 esac
24073 if test "$emacs_restrict" != __restrict; then
24074
24075 cat >>confdefs.h <<_ACEOF
24076 #define __restrict $emacs_restrict
24077 _ACEOF
24078
24079 fi
24080
24081 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24082 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24083 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
24085 else
24086 cat >conftest.$ac_ext <<_ACEOF
24087 /* confdefs.h. */
24088 _ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h. */
24092 void fred (int x[__restrict]);
24093 int
24094 main ()
24095 {
24096
24097 ;
24098 return 0;
24099 }
24100 _ACEOF
24101 rm -f conftest.$ac_objext
24102 if { (ac_try="$ac_compile"
24103 case "(($ac_try" in
24104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105 *) ac_try_echo=$ac_try;;
24106 esac
24107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24108 (eval "$ac_compile") 2>conftest.er1
24109 ac_status=$?
24110 grep -v '^ *+' conftest.er1 >conftest.err
24111 rm -f conftest.er1
24112 cat conftest.err >&5
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } && {
24115 test -z "$ac_c_werror_flag" ||
24116 test ! -s conftest.err
24117 } && test -s conftest.$ac_objext; then
24118 emacs_cv_c_restrict_arr=yes
24119 else
24120 echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24122
24123 emacs_cv_c_restrict_arr=no
24124 fi
24125
24126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127 fi
24128 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24129 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24130 if test "$emacs_cv_c_restrict_arr" = yes; then
24131
24132 cat >>confdefs.h <<\_ACEOF
24133 #define __restrict_arr __restrict
24134 _ACEOF
24135
24136 fi
24137
24138
24139
24140 # Set up the CFLAGS for real compilation, so we can substitute it.
24141 CFLAGS="$REAL_CFLAGS"
24142 CPPFLAGS="$REAL_CPPFLAGS"
24143
24144 #### Find out which version of Emacs this is.
24145 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24146 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24147 if test x"${version}" = x; then
24148 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24149 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24150 { (exit 1); exit 1; }; }
24151 fi
24152
24153 ### Specify what sort of things we'll be editing into Makefile and config.h.
24154 ### Use configuration here uncanonicalized to avoid exceeding size limits.
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
24187
24188
24189
24190
24191
24192
24193
24194
24195 cat >>confdefs.h <<_ACEOF
24196 #define EMACS_CONFIGURATION "${canonical}"
24197 _ACEOF
24198
24199
24200 cat >>confdefs.h <<_ACEOF
24201 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24202 _ACEOF
24203
24204
24205 cat >>confdefs.h <<_ACEOF
24206 #define config_machfile "${machfile}"
24207 _ACEOF
24208
24209
24210 cat >>confdefs.h <<_ACEOF
24211 #define config_opsysfile "${opsysfile}"
24212 _ACEOF
24213
24214
24215 cat >>confdefs.h <<_ACEOF
24216 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24217 _ACEOF
24218
24219
24220 cat >>confdefs.h <<_ACEOF
24221 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24222 _ACEOF
24223
24224
24225 cat >>confdefs.h <<_ACEOF
24226 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24227 _ACEOF
24228
24229
24230 cat >>confdefs.h <<_ACEOF
24231 #define UNEXEC_SRC ${UNEXEC_SRC}
24232 _ACEOF
24233
24234
24235 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24236
24237 cat >>confdefs.h <<\_ACEOF
24238 #define HAVE_X_WINDOWS 1
24239 _ACEOF
24240
24241 fi
24242 if test "${USE_X_TOOLKIT}" != "none" ; then
24243
24244 cat >>confdefs.h <<\_ACEOF
24245 #define USE_X_TOOLKIT 1
24246 _ACEOF
24247
24248 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24249
24250 cat >>confdefs.h <<\_ACEOF
24251 #define USE_LUCID 1
24252 _ACEOF
24253
24254 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24255
24256 cat >>confdefs.h <<\_ACEOF
24257 #define USE_MOTIF 1
24258 _ACEOF
24259
24260 fi
24261 fi
24262 if test "${HAVE_X11}" = "yes" ; then
24263
24264 cat >>confdefs.h <<\_ACEOF
24265 #define HAVE_X11 1
24266 _ACEOF
24267
24268 fi
24269 if test "${HAVE_MENUS}" = "yes" ; then
24270
24271 cat >>confdefs.h <<\_ACEOF
24272 #define HAVE_MENUS 1
24273 _ACEOF
24274
24275 fi
24276 if test "${GNU_MALLOC}" = "yes" ; then
24277
24278 cat >>confdefs.h <<\_ACEOF
24279 #define GNU_MALLOC 1
24280 _ACEOF
24281
24282 fi
24283 if test "${REL_ALLOC}" = "yes" ; then
24284
24285 cat >>confdefs.h <<\_ACEOF
24286 #define REL_ALLOC 1
24287 _ACEOF
24288
24289 fi
24290
24291
24292
24293
24294
24295
24296 #### Report on what we decided to do.
24297 #### Report GTK as a toolkit, even if it doesn't use Xt.
24298 #### It makes printing result more understandable as using GTK sets
24299 #### toolkit_scroll_bars to yes by default.
24300 if test "${HAVE_GTK}" = "yes"; then
24301 USE_X_TOOLKIT=GTK
24302 fi
24303
24304 echo "
24305 Configured for \`${canonical}'.
24306
24307 Where should the build process find the source code? ${srcdir}
24308 What operating system and machine description files should Emacs use?
24309 \`${opsysfile}' and \`${machfile}'
24310 What compiler should emacs be built with? ${CC} ${CFLAGS}
24311 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24312 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24313 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24314 What window system should Emacs use? ${window_system}
24315 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24316
24317 if test -n "${x_includes}"; then
24318 echo " Where do we find X Windows header files? ${x_includes}"
24319 else
24320 echo " Where do we find X Windows header files? Standard dirs"
24321 fi
24322 if test -n "${x_libraries}"; then
24323 echo " Where do we find X Windows libraries? ${x_libraries}"
24324 else
24325 echo " Where do we find X Windows libraries? Standard dirs"
24326 fi
24327
24328 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24329 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24330 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24331 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24332 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24333 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24334 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24335 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24336 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24337
24338 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24339 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24340 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24341 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24342
24343 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24344 echo
24345
24346 if test $USE_XASSERTS = yes; then
24347 echo " Compiling with asserts turned on."
24348 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24349 fi
24350
24351 echo
24352
24353 if test "$USE_X_TOOLKIT" = GTK; then
24354 case "$canonical" in
24355 *cygwin*)
24356 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24357 will probably get a crash on startup. If this happens, please use another
24358 toolkit for Emacs. See etc/PROBLEMS for more information."
24359 ;;
24360 esac
24361 fi
24362
24363
24364 if test "$HAVE_CARBON" = "yes"; then
24365 echo
24366 echo "Warning: The Mac Carbon port is currently unsupported and has
24367 known problems. It is not recommended for use by non-developers.
24368 The NeXTstep port (--with-ns) is an alternative.
24369 Read the emacs-devel archives for more information."
24370 echo
24371 fi
24372
24373 if test "$HAVE_NS" = "yes"; then
24374 echo
24375 echo "You must run \"make install\" in order to test the built application.
24376 The installed application will go to nextstep/Emacs.app and can be
24377 run or moved from there."
24378 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24379 echo "The application will be fully self-contained."
24380 else
24381 echo "The lisp resources for the application will be installed under ${prefix}.
24382 You may need to run \"make install\" with sudo. The application will fail
24383 to run if these resources are not installed."
24384 fi
24385 echo
24386 fi
24387
24388 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24389 echo "D-Bus integration has been tested for GNU/Linux only."
24390 echo
24391 fi
24392
24393
24394 # Remove any trailing slashes in these variables.
24395 test "${prefix}" != NONE &&
24396 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24397 test "${exec_prefix}" != NONE &&
24398 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24399
24400 # Now get this: Some word that is part of the ${srcdir} directory name
24401 # or the ${configuration} value might, just might, happen to be an
24402 # identifier like `sun4' or `i386' or something, and be predefined by
24403 # the C preprocessor to some helpful value like 1, or maybe the empty
24404 # string. Needless to say consequent macro substitutions are less
24405 # than conducive to the makefile finding the correct directory.
24406 cpp_undefs="`echo $srcdir $configuration $canonical |
24407 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24408 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24409
24410 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24411 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24412 ## from Makefile.c can correctly provide the arg `-traditional' to the
24413 ## C preprocessor.
24414
24415 cat >conftest.$ac_ext <<_ACEOF
24416 /* confdefs.h. */
24417 _ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h. */
24421 yes..yes
24422 _ACEOF
24423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24424 $EGREP "yes..yes" >/dev/null 2>&1; then
24425 CPP_NEED_TRADITIONAL=no
24426 else
24427 CPP_NEED_TRADITIONAL=yes
24428 fi
24429 rm -f conftest*
24430
24431
24432 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"
24433
24434 ac_config_commands="$ac_config_commands default"
24435
24436 cat >confcache <<\_ACEOF
24437 # This file is a shell script that caches the results of configure
24438 # tests run on this system so they can be shared between configure
24439 # scripts and configure runs, see configure's option --config-cache.
24440 # It is not useful on other systems. If it contains results you don't
24441 # want to keep, you may remove or edit it.
24442 #
24443 # config.status only pays attention to the cache file if you give it
24444 # the --recheck option to rerun configure.
24445 #
24446 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24447 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24448 # following values.
24449
24450 _ACEOF
24451
24452 # The following way of writing the cache mishandles newlines in values,
24453 # but we know of no workaround that is simple, portable, and efficient.
24454 # So, we kill variables containing newlines.
24455 # Ultrix sh set writes to stderr and can't be redirected directly,
24456 # and sets the high bit in the cache file unless we assign to the vars.
24457 (
24458 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24459 eval ac_val=\$$ac_var
24460 case $ac_val in #(
24461 *${as_nl}*)
24462 case $ac_var in #(
24463 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24464 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24465 esac
24466 case $ac_var in #(
24467 _ | IFS | as_nl) ;; #(
24468 *) $as_unset $ac_var ;;
24469 esac ;;
24470 esac
24471 done
24472
24473 (set) 2>&1 |
24474 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24475 *${as_nl}ac_space=\ *)
24476 # `set' does not quote correctly, so add quotes (double-quote
24477 # substitution turns \\\\ into \\, and sed turns \\ into \).
24478 sed -n \
24479 "s/'/'\\\\''/g;
24480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24481 ;; #(
24482 *)
24483 # `set' quotes correctly as required by POSIX, so do not add quotes.
24484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24485 ;;
24486 esac |
24487 sort
24488 ) |
24489 sed '
24490 /^ac_cv_env_/b end
24491 t clear
24492 :clear
24493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24494 t end
24495 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24496 :end' >>confcache
24497 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24498 if test -w "$cache_file"; then
24499 test "x$cache_file" != "x/dev/null" &&
24500 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24501 echo "$as_me: updating cache $cache_file" >&6;}
24502 cat confcache >$cache_file
24503 else
24504 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24505 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24506 fi
24507 fi
24508 rm -f confcache
24509
24510 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24511 # Let make expand exec_prefix.
24512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24513
24514 DEFS=-DHAVE_CONFIG_H
24515
24516 ac_libobjs=
24517 ac_ltlibobjs=
24518 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24519 # 1. Remove the extension, and $U if already installed.
24520 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24521 ac_i=`echo "$ac_i" | sed "$ac_script"`
24522 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24523 # will be set to the directory where LIBOBJS objects are built.
24524 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24525 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24526 done
24527 LIBOBJS=$ac_libobjs
24528
24529 LTLIBOBJS=$ac_ltlibobjs
24530
24531
24532
24533 : ${CONFIG_STATUS=./config.status}
24534 ac_clean_files_save=$ac_clean_files
24535 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24536 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24537 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24538 cat >$CONFIG_STATUS <<_ACEOF
24539 #! $SHELL
24540 # Generated by $as_me.
24541 # Run this file to recreate the current configuration.
24542 # Compiler output produced by configure, useful for debugging
24543 # configure, is in config.log if it exists.
24544
24545 debug=false
24546 ac_cs_recheck=false
24547 ac_cs_silent=false
24548 SHELL=\${CONFIG_SHELL-$SHELL}
24549 _ACEOF
24550
24551 cat >>$CONFIG_STATUS <<\_ACEOF
24552 ## --------------------- ##
24553 ## M4sh Initialization. ##
24554 ## --------------------- ##
24555
24556 # Be more Bourne compatible
24557 DUALCASE=1; export DUALCASE # for MKS sh
24558 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24559 emulate sh
24560 NULLCMD=:
24561 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24562 # is contrary to our usage. Disable this feature.
24563 alias -g '${1+"$@"}'='"$@"'
24564 setopt NO_GLOB_SUBST
24565 else
24566 case `(set -o) 2>/dev/null` in
24567 *posix*) set -o posix ;;
24568 esac
24569
24570 fi
24571
24572
24573
24574
24575 # PATH needs CR
24576 # Avoid depending upon Character Ranges.
24577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24580 as_cr_digits='0123456789'
24581 as_cr_alnum=$as_cr_Letters$as_cr_digits
24582
24583 # The user is always right.
24584 if test "${PATH_SEPARATOR+set}" != set; then
24585 echo "#! /bin/sh" >conf$$.sh
24586 echo "exit 0" >>conf$$.sh
24587 chmod +x conf$$.sh
24588 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24589 PATH_SEPARATOR=';'
24590 else
24591 PATH_SEPARATOR=:
24592 fi
24593 rm -f conf$$.sh
24594 fi
24595
24596 # Support unset when possible.
24597 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24598 as_unset=unset
24599 else
24600 as_unset=false
24601 fi
24602
24603
24604 # IFS
24605 # We need space, tab and new line, in precisely that order. Quoting is
24606 # there to prevent editors from complaining about space-tab.
24607 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24608 # splitting by setting IFS to empty value.)
24609 as_nl='
24610 '
24611 IFS=" "" $as_nl"
24612
24613 # Find who we are. Look in the path if we contain no directory separator.
24614 case $0 in
24615 *[\\/]* ) as_myself=$0 ;;
24616 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24617 for as_dir in $PATH
24618 do
24619 IFS=$as_save_IFS
24620 test -z "$as_dir" && as_dir=.
24621 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24622 done
24623 IFS=$as_save_IFS
24624
24625 ;;
24626 esac
24627 # We did not find ourselves, most probably we were run as `sh COMMAND'
24628 # in which case we are not to be found in the path.
24629 if test "x$as_myself" = x; then
24630 as_myself=$0
24631 fi
24632 if test ! -f "$as_myself"; then
24633 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24634 { (exit 1); exit 1; }
24635 fi
24636
24637 # Work around bugs in pre-3.0 UWIN ksh.
24638 for as_var in ENV MAIL MAILPATH
24639 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24640 done
24641 PS1='$ '
24642 PS2='> '
24643 PS4='+ '
24644
24645 # NLS nuisances.
24646 for as_var in \
24647 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24648 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24649 LC_TELEPHONE LC_TIME
24650 do
24651 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24652 eval $as_var=C; export $as_var
24653 else
24654 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24655 fi
24656 done
24657
24658 # Required to use basename.
24659 if expr a : '\(a\)' >/dev/null 2>&1 &&
24660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24661 as_expr=expr
24662 else
24663 as_expr=false
24664 fi
24665
24666 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24667 as_basename=basename
24668 else
24669 as_basename=false
24670 fi
24671
24672
24673 # Name of the executable.
24674 as_me=`$as_basename -- "$0" ||
24675 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24676 X"$0" : 'X\(//\)$' \| \
24677 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24678 echo X/"$0" |
24679 sed '/^.*\/\([^/][^/]*\)\/*$/{
24680 s//\1/
24681 q
24682 }
24683 /^X\/\(\/\/\)$/{
24684 s//\1/
24685 q
24686 }
24687 /^X\/\(\/\).*/{
24688 s//\1/
24689 q
24690 }
24691 s/.*/./; q'`
24692
24693 # CDPATH.
24694 $as_unset CDPATH
24695
24696
24697
24698 as_lineno_1=$LINENO
24699 as_lineno_2=$LINENO
24700 test "x$as_lineno_1" != "x$as_lineno_2" &&
24701 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24702
24703 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24704 # uniformly replaced by the line number. The first 'sed' inserts a
24705 # line-number line after each line using $LINENO; the second 'sed'
24706 # does the real work. The second script uses 'N' to pair each
24707 # line-number line with the line containing $LINENO, and appends
24708 # trailing '-' during substitution so that $LINENO is not a special
24709 # case at line end.
24710 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24711 # scripts with optimization help from Paolo Bonzini. Blame Lee
24712 # E. McMahon (1931-1989) for sed's syntax. :-)
24713 sed -n '
24714 p
24715 /[$]LINENO/=
24716 ' <$as_myself |
24717 sed '
24718 s/[$]LINENO.*/&-/
24719 t lineno
24720 b
24721 :lineno
24722 N
24723 :loop
24724 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24725 t loop
24726 s/-\n.*//
24727 ' >$as_me.lineno &&
24728 chmod +x "$as_me.lineno" ||
24729 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24730 { (exit 1); exit 1; }; }
24731
24732 # Don't try to exec as it changes $[0], causing all sort of problems
24733 # (the dirname of $[0] is not the place where we might find the
24734 # original and so on. Autoconf is especially sensitive to this).
24735 . "./$as_me.lineno"
24736 # Exit status is that of the last command.
24737 exit
24738 }
24739
24740
24741 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24742 as_dirname=dirname
24743 else
24744 as_dirname=false
24745 fi
24746
24747 ECHO_C= ECHO_N= ECHO_T=
24748 case `echo -n x` in
24749 -n*)
24750 case `echo 'x\c'` in
24751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24752 *) ECHO_C='\c';;
24753 esac;;
24754 *)
24755 ECHO_N='-n';;
24756 esac
24757
24758 if expr a : '\(a\)' >/dev/null 2>&1 &&
24759 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24760 as_expr=expr
24761 else
24762 as_expr=false
24763 fi
24764
24765 rm -f conf$$ conf$$.exe conf$$.file
24766 if test -d conf$$.dir; then
24767 rm -f conf$$.dir/conf$$.file
24768 else
24769 rm -f conf$$.dir
24770 mkdir conf$$.dir
24771 fi
24772 echo >conf$$.file
24773 if ln -s conf$$.file conf$$ 2>/dev/null; then
24774 as_ln_s='ln -s'
24775 # ... but there are two gotchas:
24776 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24777 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24778 # In both cases, we have to default to `cp -p'.
24779 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24780 as_ln_s='cp -p'
24781 elif ln conf$$.file conf$$ 2>/dev/null; then
24782 as_ln_s=ln
24783 else
24784 as_ln_s='cp -p'
24785 fi
24786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24787 rmdir conf$$.dir 2>/dev/null
24788
24789 if mkdir -p . 2>/dev/null; then
24790 as_mkdir_p=:
24791 else
24792 test -d ./-p && rmdir ./-p
24793 as_mkdir_p=false
24794 fi
24795
24796 if test -x / >/dev/null 2>&1; then
24797 as_test_x='test -x'
24798 else
24799 if ls -dL / >/dev/null 2>&1; then
24800 as_ls_L_option=L
24801 else
24802 as_ls_L_option=
24803 fi
24804 as_test_x='
24805 eval sh -c '\''
24806 if test -d "$1"; then
24807 test -d "$1/.";
24808 else
24809 case $1 in
24810 -*)set "./$1";;
24811 esac;
24812 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24813 ???[sx]*):;;*)false;;esac;fi
24814 '\'' sh
24815 '
24816 fi
24817 as_executable_p=$as_test_x
24818
24819 # Sed expression to map a string onto a valid CPP name.
24820 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24821
24822 # Sed expression to map a string onto a valid variable name.
24823 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24824
24825
24826 exec 6>&1
24827
24828 # Save the log message, to keep $[0] and so on meaningful, and to
24829 # report actual input values of CONFIG_FILES etc. instead of their
24830 # values after options handling.
24831 ac_log="
24832 This file was extended by emacs $as_me 23.0.60, which was
24833 generated by GNU Autoconf 2.61. Invocation command line was
24834
24835 CONFIG_FILES = $CONFIG_FILES
24836 CONFIG_HEADERS = $CONFIG_HEADERS
24837 CONFIG_LINKS = $CONFIG_LINKS
24838 CONFIG_COMMANDS = $CONFIG_COMMANDS
24839 $ $0 $@
24840
24841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24842 "
24843
24844 _ACEOF
24845
24846 cat >>$CONFIG_STATUS <<_ACEOF
24847 # Files that config.status was made for.
24848 config_files="$ac_config_files"
24849 config_headers="$ac_config_headers"
24850 config_commands="$ac_config_commands"
24851
24852 _ACEOF
24853
24854 cat >>$CONFIG_STATUS <<\_ACEOF
24855 ac_cs_usage="\
24856 \`$as_me' instantiates files from templates according to the
24857 current configuration.
24858
24859 Usage: $0 [OPTIONS] [FILE]...
24860
24861 -h, --help print this help, then exit
24862 -V, --version print version number and configuration settings, then exit
24863 -q, --quiet do not print progress messages
24864 -d, --debug don't remove temporary files
24865 --recheck update $as_me by reconfiguring in the same conditions
24866 --file=FILE[:TEMPLATE]
24867 instantiate the configuration file FILE
24868 --header=FILE[:TEMPLATE]
24869 instantiate the configuration header FILE
24870
24871 Configuration files:
24872 $config_files
24873
24874 Configuration headers:
24875 $config_headers
24876
24877 Configuration commands:
24878 $config_commands
24879
24880 Report bugs to <bug-autoconf@gnu.org>."
24881
24882 _ACEOF
24883 cat >>$CONFIG_STATUS <<_ACEOF
24884 ac_cs_version="\\
24885 emacs config.status 23.0.60
24886 configured by $0, generated by GNU Autoconf 2.61,
24887 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24888
24889 Copyright (C) 2006 Free Software Foundation, Inc.
24890 This config.status script is free software; the Free Software Foundation
24891 gives unlimited permission to copy, distribute and modify it."
24892
24893 ac_pwd='$ac_pwd'
24894 srcdir='$srcdir'
24895 INSTALL='$INSTALL'
24896 _ACEOF
24897
24898 cat >>$CONFIG_STATUS <<\_ACEOF
24899 # If no file are specified by the user, then we need to provide default
24900 # value. By we need to know if files were specified by the user.
24901 ac_need_defaults=:
24902 while test $# != 0
24903 do
24904 case $1 in
24905 --*=*)
24906 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24907 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24908 ac_shift=:
24909 ;;
24910 *)
24911 ac_option=$1
24912 ac_optarg=$2
24913 ac_shift=shift
24914 ;;
24915 esac
24916
24917 case $ac_option in
24918 # Handling of the options.
24919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24920 ac_cs_recheck=: ;;
24921 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24922 echo "$ac_cs_version"; exit ;;
24923 --debug | --debu | --deb | --de | --d | -d )
24924 debug=: ;;
24925 --file | --fil | --fi | --f )
24926 $ac_shift
24927 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24928 ac_need_defaults=false;;
24929 --header | --heade | --head | --hea )
24930 $ac_shift
24931 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24932 ac_need_defaults=false;;
24933 --he | --h)
24934 # Conflict between --help and --header
24935 { echo "$as_me: error: ambiguous option: $1
24936 Try \`$0 --help' for more information." >&2
24937 { (exit 1); exit 1; }; };;
24938 --help | --hel | -h )
24939 echo "$ac_cs_usage"; exit ;;
24940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24941 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24942 ac_cs_silent=: ;;
24943
24944 # This is an error.
24945 -*) { echo "$as_me: error: unrecognized option: $1
24946 Try \`$0 --help' for more information." >&2
24947 { (exit 1); exit 1; }; } ;;
24948
24949 *) ac_config_targets="$ac_config_targets $1"
24950 ac_need_defaults=false ;;
24951
24952 esac
24953 shift
24954 done
24955
24956 ac_configure_extra_args=
24957
24958 if $ac_cs_silent; then
24959 exec 6>/dev/null
24960 ac_configure_extra_args="$ac_configure_extra_args --silent"
24961 fi
24962
24963 _ACEOF
24964 cat >>$CONFIG_STATUS <<_ACEOF
24965 if \$ac_cs_recheck; then
24966 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24967 CONFIG_SHELL=$SHELL
24968 export CONFIG_SHELL
24969 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24970 fi
24971
24972 _ACEOF
24973 cat >>$CONFIG_STATUS <<\_ACEOF
24974 exec 5>>config.log
24975 {
24976 echo
24977 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24978 ## Running $as_me. ##
24979 _ASBOX
24980 echo "$ac_log"
24981 } >&5
24982
24983 _ACEOF
24984 cat >>$CONFIG_STATUS <<_ACEOF
24985 #
24986 # INIT-COMMANDS
24987 #
24988 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24989
24990 _ACEOF
24991
24992 cat >>$CONFIG_STATUS <<\_ACEOF
24993
24994 # Handling of arguments.
24995 for ac_config_target in $ac_config_targets
24996 do
24997 case $ac_config_target in
24998 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24999 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25000 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25001 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25002 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25003 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25004 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25005 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25006 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25007 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25008 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25009 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25010 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25011
25012 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25013 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25014 { (exit 1); exit 1; }; };;
25015 esac
25016 done
25017
25018
25019 # If the user did not use the arguments to specify the items to instantiate,
25020 # then the envvar interface is used. Set only those that are not.
25021 # We use the long form for the default assignment because of an extremely
25022 # bizarre bug on SunOS 4.1.3.
25023 if $ac_need_defaults; then
25024 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25025 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25026 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25027 fi
25028
25029 # Have a temporary directory for convenience. Make it in the build tree
25030 # simply because there is no reason against having it here, and in addition,
25031 # creating and moving files from /tmp can sometimes cause problems.
25032 # Hook for its removal unless debugging.
25033 # Note that there is a small window in which the directory will not be cleaned:
25034 # after its creation but before its name has been assigned to `$tmp'.
25035 $debug ||
25036 {
25037 tmp=
25038 trap 'exit_status=$?
25039 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25040 ' 0
25041 trap '{ (exit 1); exit 1; }' 1 2 13 15
25042 }
25043 # Create a (secure) tmp directory for tmp files.
25044
25045 {
25046 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25047 test -n "$tmp" && test -d "$tmp"
25048 } ||
25049 {
25050 tmp=./conf$$-$RANDOM
25051 (umask 077 && mkdir "$tmp")
25052 } ||
25053 {
25054 echo "$me: cannot create a temporary directory in ." >&2
25055 { (exit 1); exit 1; }
25056 }
25057
25058 #
25059 # Set up the sed scripts for CONFIG_FILES section.
25060 #
25061
25062 # No need to generate the scripts if there are no CONFIG_FILES.
25063 # This happens for instance when ./config.status config.h
25064 if test -n "$CONFIG_FILES"; then
25065
25066 _ACEOF
25067
25068
25069
25070 ac_delim='%!_!# '
25071 for ac_last_try in false false false false false :; do
25072 cat >conf$$subs.sed <<_ACEOF
25073 SHELL!$SHELL$ac_delim
25074 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25075 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25076 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25077 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25078 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25079 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25080 exec_prefix!$exec_prefix$ac_delim
25081 prefix!$prefix$ac_delim
25082 program_transform_name!$program_transform_name$ac_delim
25083 bindir!$bindir$ac_delim
25084 sbindir!$sbindir$ac_delim
25085 libexecdir!$libexecdir$ac_delim
25086 datarootdir!$datarootdir$ac_delim
25087 datadir!$datadir$ac_delim
25088 sysconfdir!$sysconfdir$ac_delim
25089 sharedstatedir!$sharedstatedir$ac_delim
25090 localstatedir!$localstatedir$ac_delim
25091 includedir!$includedir$ac_delim
25092 oldincludedir!$oldincludedir$ac_delim
25093 docdir!$docdir$ac_delim
25094 infodir!$infodir$ac_delim
25095 htmldir!$htmldir$ac_delim
25096 dvidir!$dvidir$ac_delim
25097 pdfdir!$pdfdir$ac_delim
25098 psdir!$psdir$ac_delim
25099 libdir!$libdir$ac_delim
25100 localedir!$localedir$ac_delim
25101 mandir!$mandir$ac_delim
25102 DEFS!$DEFS$ac_delim
25103 ECHO_C!$ECHO_C$ac_delim
25104 ECHO_N!$ECHO_N$ac_delim
25105 ECHO_T!$ECHO_T$ac_delim
25106 LIBS!$LIBS$ac_delim
25107 build_alias!$build_alias$ac_delim
25108 host_alias!$host_alias$ac_delim
25109 target_alias!$target_alias$ac_delim
25110 MAINT!$MAINT$ac_delim
25111 build!$build$ac_delim
25112 build_cpu!$build_cpu$ac_delim
25113 build_vendor!$build_vendor$ac_delim
25114 build_os!$build_os$ac_delim
25115 host!$host$ac_delim
25116 host_cpu!$host_cpu$ac_delim
25117 host_vendor!$host_vendor$ac_delim
25118 host_os!$host_os$ac_delim
25119 CC!$CC$ac_delim
25120 CFLAGS!$CFLAGS$ac_delim
25121 LDFLAGS!$LDFLAGS$ac_delim
25122 CPPFLAGS!$CPPFLAGS$ac_delim
25123 ac_ct_CC!$ac_ct_CC$ac_delim
25124 EXEEXT!$EXEEXT$ac_delim
25125 OBJEXT!$OBJEXT$ac_delim
25126 CPP!$CPP$ac_delim
25127 GREP!$GREP$ac_delim
25128 EGREP!$EGREP$ac_delim
25129 LN_S!$LN_S$ac_delim
25130 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25131 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25132 INSTALL_DATA!$INSTALL_DATA$ac_delim
25133 RANLIB!$RANLIB$ac_delim
25134 INSTALL_INFO!$INSTALL_INFO$ac_delim
25135 GZIP_PROG!$GZIP_PROG$ac_delim
25136 MAKEINFO!$MAKEINFO$ac_delim
25137 LIBSOUND!$LIBSOUND$ac_delim
25138 PKG_CONFIG!$PKG_CONFIG$ac_delim
25139 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25140 ALSA_LIBS!$ALSA_LIBS$ac_delim
25141 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25142 SET_MAKE!$SET_MAKE$ac_delim
25143 XMKMF!$XMKMF$ac_delim
25144 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25145 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25146 RSVG_LIBS!$RSVG_LIBS$ac_delim
25147 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25148 GTK_LIBS!$GTK_LIBS$ac_delim
25149 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25150 DBUS_LIBS!$DBUS_LIBS$ac_delim
25151 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25152 XFT_LIBS!$XFT_LIBS$ac_delim
25153 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25154 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25155 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25156 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25157 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25158 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25159 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25160 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25161 ALLOCA!$ALLOCA$ac_delim
25162 liblockfile!$liblockfile$ac_delim
25163 LIBOBJS!$LIBOBJS$ac_delim
25164 NEED_SETGID!$NEED_SETGID$ac_delim
25165 KMEM_GROUP!$KMEM_GROUP$ac_delim
25166 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25167 GETOPT_H!$GETOPT_H$ac_delim
25168 GETOPTOBJS!$GETOPTOBJS$ac_delim
25169 version!$version$ac_delim
25170 _ACEOF
25171
25172 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25173 break
25174 elif $ac_last_try; then
25175 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25176 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25177 { (exit 1); exit 1; }; }
25178 else
25179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25180 fi
25181 done
25182
25183 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25184 if test -n "$ac_eof"; then
25185 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25186 ac_eof=`expr $ac_eof + 1`
25187 fi
25188
25189 cat >>$CONFIG_STATUS <<_ACEOF
25190 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25192 _ACEOF
25193 sed '
25194 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25195 s/^/s,@/; s/!/@,|#_!!_#|/
25196 :n
25197 t n
25198 s/'"$ac_delim"'$/,g/; t
25199 s/$/\\/; p
25200 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25201 ' >>$CONFIG_STATUS <conf$$subs.sed
25202 rm -f conf$$subs.sed
25203 cat >>$CONFIG_STATUS <<_ACEOF
25204 CEOF$ac_eof
25205 _ACEOF
25206
25207
25208 ac_delim='%!_!# '
25209 for ac_last_try in false false false false false :; do
25210 cat >conf$$subs.sed <<_ACEOF
25211 configuration!$configuration$ac_delim
25212 canonical!$canonical$ac_delim
25213 srcdir!$srcdir$ac_delim
25214 lispdir!$lispdir$ac_delim
25215 locallisppath!$locallisppath$ac_delim
25216 lisppath!$lisppath$ac_delim
25217 x_default_search_path!$x_default_search_path$ac_delim
25218 etcdir!$etcdir$ac_delim
25219 archlibdir!$archlibdir$ac_delim
25220 bitmapdir!$bitmapdir$ac_delim
25221 gamedir!$gamedir$ac_delim
25222 gameuser!$gameuser$ac_delim
25223 c_switch_system!$c_switch_system$ac_delim
25224 c_switch_machine!$c_switch_machine$ac_delim
25225 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25226 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25227 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25228 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25229 machfile!$machfile$ac_delim
25230 opsysfile!$opsysfile$ac_delim
25231 carbon_appdir!$carbon_appdir$ac_delim
25232 ns_appdir!$ns_appdir$ac_delim
25233 ns_appbindir!$ns_appbindir$ac_delim
25234 ns_appresdir!$ns_appresdir$ac_delim
25235 ns_appsrc!$ns_appsrc$ac_delim
25236 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25237 LTLIBOBJS!$LTLIBOBJS$ac_delim
25238 _ACEOF
25239
25240 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
25241 break
25242 elif $ac_last_try; then
25243 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25244 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25245 { (exit 1); exit 1; }; }
25246 else
25247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25248 fi
25249 done
25250
25251 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25252 if test -n "$ac_eof"; then
25253 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25254 ac_eof=`expr $ac_eof + 1`
25255 fi
25256
25257 cat >>$CONFIG_STATUS <<_ACEOF
25258 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25260 _ACEOF
25261 sed '
25262 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25263 s/^/s,@/; s/!/@,|#_!!_#|/
25264 :n
25265 t n
25266 s/'"$ac_delim"'$/,g/; t
25267 s/$/\\/; p
25268 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25269 ' >>$CONFIG_STATUS <conf$$subs.sed
25270 rm -f conf$$subs.sed
25271 cat >>$CONFIG_STATUS <<_ACEOF
25272 :end
25273 s/|#_!!_#|//g
25274 CEOF$ac_eof
25275 _ACEOF
25276
25277
25278 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25279 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25280 # trailing colons and then remove the whole line if VPATH becomes empty
25281 # (actually we leave an empty line to preserve line numbers).
25282 if test "x$srcdir" = x.; then
25283 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25284 s/:*\$(srcdir):*/:/
25285 s/:*\${srcdir}:*/:/
25286 s/:*@srcdir@:*/:/
25287 s/^\([^=]*=[ ]*\):*/\1/
25288 s/:*$//
25289 s/^[^=]*=[ ]*$//
25290 }'
25291 fi
25292
25293 cat >>$CONFIG_STATUS <<\_ACEOF
25294 fi # test -n "$CONFIG_FILES"
25295
25296
25297 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25298 do
25299 case $ac_tag in
25300 :[FHLC]) ac_mode=$ac_tag; continue;;
25301 esac
25302 case $ac_mode$ac_tag in
25303 :[FHL]*:*);;
25304 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25305 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25306 { (exit 1); exit 1; }; };;
25307 :[FH]-) ac_tag=-:-;;
25308 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25309 esac
25310 ac_save_IFS=$IFS
25311 IFS=:
25312 set x $ac_tag
25313 IFS=$ac_save_IFS
25314 shift
25315 ac_file=$1
25316 shift
25317
25318 case $ac_mode in
25319 :L) ac_source=$1;;
25320 :[FH])
25321 ac_file_inputs=
25322 for ac_f
25323 do
25324 case $ac_f in
25325 -) ac_f="$tmp/stdin";;
25326 *) # Look for the file first in the build tree, then in the source tree
25327 # (if the path is not absolute). The absolute path cannot be DOS-style,
25328 # because $ac_f cannot contain `:'.
25329 test -f "$ac_f" ||
25330 case $ac_f in
25331 [\\/$]*) false;;
25332 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25333 esac ||
25334 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25335 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25336 { (exit 1); exit 1; }; };;
25337 esac
25338 ac_file_inputs="$ac_file_inputs $ac_f"
25339 done
25340
25341 # Let's still pretend it is `configure' which instantiates (i.e., don't
25342 # use $as_me), people would be surprised to read:
25343 # /* config.h. Generated by config.status. */
25344 configure_input="Generated from "`IFS=:
25345 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25346 if test x"$ac_file" != x-; then
25347 configure_input="$ac_file. $configure_input"
25348 { echo "$as_me:$LINENO: creating $ac_file" >&5
25349 echo "$as_me: creating $ac_file" >&6;}
25350 fi
25351
25352 case $ac_tag in
25353 *:-:* | *:-) cat >"$tmp/stdin";;
25354 esac
25355 ;;
25356 esac
25357
25358 ac_dir=`$as_dirname -- "$ac_file" ||
25359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25360 X"$ac_file" : 'X\(//\)[^/]' \| \
25361 X"$ac_file" : 'X\(//\)$' \| \
25362 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25363 echo X"$ac_file" |
25364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25365 s//\1/
25366 q
25367 }
25368 /^X\(\/\/\)[^/].*/{
25369 s//\1/
25370 q
25371 }
25372 /^X\(\/\/\)$/{
25373 s//\1/
25374 q
25375 }
25376 /^X\(\/\).*/{
25377 s//\1/
25378 q
25379 }
25380 s/.*/./; q'`
25381 { as_dir="$ac_dir"
25382 case $as_dir in #(
25383 -*) as_dir=./$as_dir;;
25384 esac
25385 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25386 as_dirs=
25387 while :; do
25388 case $as_dir in #(
25389 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25390 *) as_qdir=$as_dir;;
25391 esac
25392 as_dirs="'$as_qdir' $as_dirs"
25393 as_dir=`$as_dirname -- "$as_dir" ||
25394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25395 X"$as_dir" : 'X\(//\)[^/]' \| \
25396 X"$as_dir" : 'X\(//\)$' \| \
25397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25398 echo X"$as_dir" |
25399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25400 s//\1/
25401 q
25402 }
25403 /^X\(\/\/\)[^/].*/{
25404 s//\1/
25405 q
25406 }
25407 /^X\(\/\/\)$/{
25408 s//\1/
25409 q
25410 }
25411 /^X\(\/\).*/{
25412 s//\1/
25413 q
25414 }
25415 s/.*/./; q'`
25416 test -d "$as_dir" && break
25417 done
25418 test -z "$as_dirs" || eval "mkdir $as_dirs"
25419 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25420 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25421 { (exit 1); exit 1; }; }; }
25422 ac_builddir=.
25423
25424 case "$ac_dir" in
25425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25426 *)
25427 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25428 # A ".." for each directory in $ac_dir_suffix.
25429 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25430 case $ac_top_builddir_sub in
25431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25433 esac ;;
25434 esac
25435 ac_abs_top_builddir=$ac_pwd
25436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25437 # for backward compatibility:
25438 ac_top_builddir=$ac_top_build_prefix
25439
25440 case $srcdir in
25441 .) # We are building in place.
25442 ac_srcdir=.
25443 ac_top_srcdir=$ac_top_builddir_sub
25444 ac_abs_top_srcdir=$ac_pwd ;;
25445 [\\/]* | ?:[\\/]* ) # Absolute name.
25446 ac_srcdir=$srcdir$ac_dir_suffix;
25447 ac_top_srcdir=$srcdir
25448 ac_abs_top_srcdir=$srcdir ;;
25449 *) # Relative name.
25450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25451 ac_top_srcdir=$ac_top_build_prefix$srcdir
25452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25453 esac
25454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25455
25456
25457 case $ac_mode in
25458 :F)
25459 #
25460 # CONFIG_FILE
25461 #
25462
25463 case $INSTALL in
25464 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25465 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25466 esac
25467 _ACEOF
25468
25469 cat >>$CONFIG_STATUS <<\_ACEOF
25470 # If the template does not know about datarootdir, expand it.
25471 # FIXME: This hack should be removed a few years after 2.60.
25472 ac_datarootdir_hack=; ac_datarootdir_seen=
25473
25474 case `sed -n '/datarootdir/ {
25475 p
25476 q
25477 }
25478 /@datadir@/p
25479 /@docdir@/p
25480 /@infodir@/p
25481 /@localedir@/p
25482 /@mandir@/p
25483 ' $ac_file_inputs` in
25484 *datarootdir*) ac_datarootdir_seen=yes;;
25485 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25486 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25487 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25488 _ACEOF
25489 cat >>$CONFIG_STATUS <<_ACEOF
25490 ac_datarootdir_hack='
25491 s&@datadir@&$datadir&g
25492 s&@docdir@&$docdir&g
25493 s&@infodir@&$infodir&g
25494 s&@localedir@&$localedir&g
25495 s&@mandir@&$mandir&g
25496 s&\\\${datarootdir}&$datarootdir&g' ;;
25497 esac
25498 _ACEOF
25499
25500 # Neutralize VPATH when `$srcdir' = `.'.
25501 # Shell code in configure.ac might set extrasub.
25502 # FIXME: do we really want to maintain this feature?
25503 cat >>$CONFIG_STATUS <<_ACEOF
25504 sed "$ac_vpsub
25505 $extrasub
25506 _ACEOF
25507 cat >>$CONFIG_STATUS <<\_ACEOF
25508 :t
25509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25510 s&@configure_input@&$configure_input&;t t
25511 s&@top_builddir@&$ac_top_builddir_sub&;t t
25512 s&@srcdir@&$ac_srcdir&;t t
25513 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25514 s&@top_srcdir@&$ac_top_srcdir&;t t
25515 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25516 s&@builddir@&$ac_builddir&;t t
25517 s&@abs_builddir@&$ac_abs_builddir&;t t
25518 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25519 s&@INSTALL@&$ac_INSTALL&;t t
25520 $ac_datarootdir_hack
25521 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25522
25523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25524 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25525 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25526 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25527 which seems to be undefined. Please make sure it is defined." >&5
25528 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25529 which seems to be undefined. Please make sure it is defined." >&2;}
25530
25531 rm -f "$tmp/stdin"
25532 case $ac_file in
25533 -) cat "$tmp/out"; rm -f "$tmp/out";;
25534 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25535 esac
25536 ;;
25537 :H)
25538 #
25539 # CONFIG_HEADER
25540 #
25541 _ACEOF
25542
25543 # Transform confdefs.h into a sed script `conftest.defines', that
25544 # substitutes the proper values into config.h.in to produce config.h.
25545 rm -f conftest.defines conftest.tail
25546 # First, append a space to every undef/define line, to ease matching.
25547 echo 's/$/ /' >conftest.defines
25548 # Then, protect against being on the right side of a sed subst, or in
25549 # an unquoted here document, in config.status. If some macros were
25550 # called several times there might be several #defines for the same
25551 # symbol, which is useless. But do not sort them, since the last
25552 # AC_DEFINE must be honored.
25553 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25554 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25555 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25556 # PARAMS is the parameter list in the macro definition--in most cases, it's
25557 # just an empty string.
25558 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25559 ac_dB='\\)[ (].*,\\1define\\2'
25560 ac_dC=' '
25561 ac_dD=' ,'
25562
25563 uniq confdefs.h |
25564 sed -n '
25565 t rset
25566 :rset
25567 s/^[ ]*#[ ]*define[ ][ ]*//
25568 t ok
25569 d
25570 :ok
25571 s/[\\&,]/\\&/g
25572 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25573 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25574 ' >>conftest.defines
25575
25576 # Remove the space that was appended to ease matching.
25577 # Then replace #undef with comments. This is necessary, for
25578 # example, in the case of _POSIX_SOURCE, which is predefined and required
25579 # on some systems where configure will not decide to define it.
25580 # (The regexp can be short, since the line contains either #define or #undef.)
25581 echo 's/ $//
25582 s,^[ #]*u.*,/* & */,' >>conftest.defines
25583
25584 # Break up conftest.defines:
25585 ac_max_sed_lines=50
25586
25587 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25588 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25589 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25590 # et cetera.
25591 ac_in='$ac_file_inputs'
25592 ac_out='"$tmp/out1"'
25593 ac_nxt='"$tmp/out2"'
25594
25595 while :
25596 do
25597 # Write a here document:
25598 cat >>$CONFIG_STATUS <<_ACEOF
25599 # First, check the format of the line:
25600 cat >"\$tmp/defines.sed" <<\\CEOF
25601 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25602 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25603 b
25604 :def
25605 _ACEOF
25606 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25607 echo 'CEOF
25608 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25609 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25610 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25611 grep . conftest.tail >/dev/null || break
25612 rm -f conftest.defines
25613 mv conftest.tail conftest.defines
25614 done
25615 rm -f conftest.defines conftest.tail
25616
25617 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25618 cat >>$CONFIG_STATUS <<\_ACEOF
25619 if test x"$ac_file" != x-; then
25620 echo "/* $configure_input */" >"$tmp/config.h"
25621 cat "$ac_result" >>"$tmp/config.h"
25622 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25623 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25624 echo "$as_me: $ac_file is unchanged" >&6;}
25625 else
25626 rm -f $ac_file
25627 mv "$tmp/config.h" $ac_file
25628 fi
25629 else
25630 echo "/* $configure_input */"
25631 cat "$ac_result"
25632 fi
25633 rm -f "$tmp/out12"
25634 ;;
25635
25636 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25637 echo "$as_me: executing $ac_file commands" >&6;}
25638 ;;
25639 esac
25640
25641
25642 case $ac_file$ac_mode in
25643 "default":C)
25644
25645 ### Make the necessary directories, if they don't exist.
25646 for dir in etc lisp ; do
25647 test -d ${dir} || mkdir ${dir}
25648 done
25649
25650 # Build src/Makefile from ${srcdir}/src/Makefile.c
25651 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25652 # This must be done after src/config.h is built, since we rely on that file.
25653
25654 echo creating src/epaths.h
25655 ${MAKE-make} epaths-force
25656
25657 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25658 # `..' to `. .' unless invoked with -traditional
25659
25660 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25661 CPPFLAGS="$CPPFLAGS -traditional"
25662 fi
25663
25664 echo creating lib-src/Makefile
25665 ( cd lib-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 echo creating src/Makefile
25681 ( cd src
25682 rm -f junk.c junk1.c junk2.c
25683 sed -e '/start of cpp stuff/q' \
25684 < Makefile.c > junk1.c
25685 sed -e '1,/start of cpp stuff/d'\
25686 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25687 < Makefile.c > junk.c
25688 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25689 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25690 cat junk1.c junk2.c > Makefile.new
25691 rm -f junk.c junk1.c junk2.c
25692 chmod 444 Makefile.new
25693 mv -f Makefile.new Makefile
25694 )
25695
25696 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25697 echo creating src/.gdbinit
25698 echo source $srcdir/src/.gdbinit > src/.gdbinit
25699 fi
25700
25701 ;;
25702
25703 esac
25704 done # for ac_tag
25705
25706
25707 { (exit 0); exit 0; }
25708 _ACEOF
25709 chmod +x $CONFIG_STATUS
25710 ac_clean_files=$ac_clean_files_save
25711
25712
25713 # configure is writing to config.log, and then calls config.status.
25714 # config.status does its own redirection, appending to config.log.
25715 # Unfortunately, on DOS this fails, as config.log is still kept open
25716 # by configure, so config.status won't be able to write to it; its
25717 # output is simply discarded. So we exec the FD to /dev/null,
25718 # effectively closing config.log, so it can be properly (re)opened and
25719 # appended to by config.status. When coming back to configure, we
25720 # need to make the FD available again.
25721 if test "$no_create" != yes; then
25722 ac_cs_success=:
25723 ac_config_status_args=
25724 test "$silent" = yes &&
25725 ac_config_status_args="$ac_config_status_args --quiet"
25726 exec 5>/dev/null
25727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25728 exec 5>>config.log
25729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25730 # would make configure fail if this is the last instruction.
25731 $ac_cs_success || { (exit 1); exit 1; }
25732 fi
25733
25734