Merge from emacs--devo--0
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
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.50'
576 PACKAGE_STRING='emacs 23.0.50'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 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 HAVE_LIBOTF
704 LIBOTF_CFLAGS
705 LIBOTF_LIBS
706 M17N_FLT_CFLAGS
707 M17N_FLT_LIBS
708 ALLOCA
709 liblockfile
710 LIBOBJS
711 NEED_SETGID
712 KMEM_GROUP
713 GETLOADAVG_LIBS
714 GETOPT_H
715 GETOPTOBJS
716 version
717 configuration
718 canonical
719 srcdir
720 lispdir
721 locallisppath
722 lisppath
723 x_default_search_path
724 etcdir
725 archlibdir
726 bitmapdir
727 gamedir
728 gameuser
729 c_switch_system
730 c_switch_machine
731 LD_SWITCH_X_SITE
732 LD_SWITCH_X_SITE_AUX
733 C_SWITCH_X_SITE
734 X_TOOLKIT_TYPE
735 machfile
736 opsysfile
737 carbon_appdir
738 LTLIBOBJS'
739 ac_subst_files=''
740 ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP
749 XMKMF'
750
751
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
771
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
797
798 ac_prev=
799 ac_dashdash=
800 for ac_option
801 do
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
807 fi
808
809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
813
814 # Accept the important Cygnus configure options, so we can diagnose typos.
815
816 case $ac_dashdash$ac_option in
817 --)
818 ac_dashdash=yes ;;
819
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
824
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
829
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
836
837 --config-cache | -C)
838 cache_file=config.cache ;;
839
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
844
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
851
852 -disable-* | --disable-*)
853 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_$ac_feature=no ;;
860
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
865
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
870
871 -enable-* | --enable-*)
872 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_$ac_feature=\$ac_optarg ;;
879
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
888
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
892
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
899
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
904
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
910
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
917
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
922
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
927
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
934
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
939
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
946
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
951
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
955
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
959
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
963
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
972
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
977
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
984
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
991
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1008
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1013
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1018
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1022
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1028
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1039
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1044
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1049
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1056
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1061
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1064
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1067
1068 -with-* | --with-*)
1069 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=\$ac_optarg ;;
1076
1077 -without-* | --without-*)
1078 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_$ac_package=no ;;
1085
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1089
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1096
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1103
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1107 ;;
1108
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1117
1118 *)
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 ;;
1125
1126 esac
1127 done
1128
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1133 fi
1134
1135 # Be sure to have absolute directory names.
1136 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1140 do
1141 eval ac_val=\$$ac_var
1142 case $ac_val in
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 esac
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1148 done
1149
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1153 build=$build_alias
1154 host=$host_alias
1155 target=$target_alias
1156
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159 if test "x$build_alias" = x; then
1160 cross_compiling=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1164 cross_compiling=yes
1165 fi
1166 fi
1167
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170
1171 test "$silent" = yes && exec 6>/dev/null
1172
1173
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1182
1183
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 echo X"$0" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1200 q
1201 }
1202 /^X\(\/\/\)$/{
1203 s//\1/
1204 q
1205 }
1206 /^X\(\/\).*/{
1207 s//\1/
1208 q
1209 }
1210 s/.*/./; q'`
1211 srcdir=$ac_confdir
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 srcdir=..
1214 fi
1215 else
1216 ac_srcdir_defaulted=no
1217 fi
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1222 fi
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 ac_abs_confdir=`(
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1227 pwd)`
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1231 fi
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1235 case $srcdir in
1236 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 esac
1238 for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 done
1244
1245 #
1246 # Report the --help message.
1247 #
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
1252 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1253
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1255
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1258
1259 Defaults for the options are specified in brackets.
1260
1261 Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 [PREFIX]
1277
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1282
1283 For better control, use the options below.
1284
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1305 _ACEOF
1306
1307 cat <<\_ACEOF
1308
1309 Program names:
1310 --program-prefix=PREFIX prepend PREFIX to installed program names
1311 --program-suffix=SUFFIX append SUFFIX to installed program names
1312 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313
1314 X features:
1315 --x-includes=DIR X include files are in DIR
1316 --x-libraries=DIR X library files are in DIR
1317
1318 System types:
1319 --build=BUILD configure for building on BUILD [guessed]
1320 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1321 _ACEOF
1322 fi
1323
1324 if test -n "$ac_init_help"; then
1325 case $ac_init_help in
1326 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1327 esac
1328 cat <<\_ACEOF
1329
1330 Optional Features:
1331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1333 --enable-carbon-app[=DIR]
1334 specify install directory for Emacs.app on Mac OS X
1335 [DIR=/Application]
1336 --enable-font-backend compile code of font-backend support
1337 --enable-asserts compile code with asserts enabled
1338 --enable-maintainer-mode
1339 enable make rules and dependencies not useful (and
1340 sometimes confusing) to the casual installer
1341 --enable-locallisppath=PATH
1342 directories Emacs should search for lisp files
1343 specific to this site
1344 --disable-largefile omit support for large files
1345
1346 Optional Packages:
1347 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1348 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1349 --without-gcc don't use GCC to compile Emacs if GCC is found
1350 --without-pop don't support POP mail retrieval with movemail
1351 --with-kerberos support Kerberos-authenticated POP
1352 --with-kerberos5 support Kerberos version 5 authenticated POP
1353 --with-hesiod support Hesiod to get the POP server host
1354 --without-sound don't compile with sound support
1355 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1356 motif, gtk, no)
1357 --with-xpm use -lXpm for displaying XPM images
1358 --with-jpeg use -ljpeg for displaying JPEG images
1359 --with-tiff use -ltiff for displaying TIFF images
1360 --with-gif use -lgif (or -lungif) for displaying GIF images
1361 --with-png use -lpng for displaying PNG images
1362 --with-freetype use -lfreetype for local fonts support
1363 --with-xft use -lXft for anti aliased fonts
1364 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1365 --with-rsvg use -lrsvg-2 for displaying SVG images
1366 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1367 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1368 --without-toolkit-scroll-bars
1369 don't use Motif or Xaw3d scroll bars
1370 --without-xaw3d don't use Xaw3d
1371 --without-xim don't use X11 XIM
1372 --without-carbon don't use Carbon GUI on Mac OS X
1373 --with-dbus use D-Bus
1374 --with-x use the X Window System
1375
1376 Some influential environment variables:
1377 CC C compiler command
1378 CFLAGS C compiler flags
1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 nonstandard directory <lib dir>
1381 LIBS libraries to pass to the linker, e.g. -l<library>
1382 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1383 you have headers in a nonstandard directory <include dir>
1384 CPP C preprocessor
1385 XMKMF Path to xmkmf, Makefile generator for X Window System
1386
1387 Use these variables to override the choices made by `configure' or to help
1388 it to find libraries and programs with nonstandard names/locations.
1389
1390 _ACEOF
1391 ac_status=$?
1392 fi
1393
1394 if test "$ac_init_help" = "recursive"; then
1395 # If there are subdirs, report their specific --help.
1396 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1397 test -d "$ac_dir" || continue
1398 ac_builddir=.
1399
1400 case "$ac_dir" in
1401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *)
1403 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1404 # A ".." for each directory in $ac_dir_suffix.
1405 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1406 case $ac_top_builddir_sub in
1407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1409 esac ;;
1410 esac
1411 ac_abs_top_builddir=$ac_pwd
1412 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1413 # for backward compatibility:
1414 ac_top_builddir=$ac_top_build_prefix
1415
1416 case $srcdir in
1417 .) # We are building in place.
1418 ac_srcdir=.
1419 ac_top_srcdir=$ac_top_builddir_sub
1420 ac_abs_top_srcdir=$ac_pwd ;;
1421 [\\/]* | ?:[\\/]* ) # Absolute name.
1422 ac_srcdir=$srcdir$ac_dir_suffix;
1423 ac_top_srcdir=$srcdir
1424 ac_abs_top_srcdir=$srcdir ;;
1425 *) # Relative name.
1426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1427 ac_top_srcdir=$ac_top_build_prefix$srcdir
1428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1429 esac
1430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1431
1432 cd "$ac_dir" || { ac_status=$?; continue; }
1433 # Check for guested configure.
1434 if test -f "$ac_srcdir/configure.gnu"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1437 elif test -f "$ac_srcdir/configure"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure" --help=recursive
1440 else
1441 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1442 fi || ac_status=$?
1443 cd "$ac_pwd" || { ac_status=$?; break; }
1444 done
1445 fi
1446
1447 test -n "$ac_init_help" && exit $ac_status
1448 if $ac_init_version; then
1449 cat <<\_ACEOF
1450 emacs configure 23.0.50
1451 generated by GNU Autoconf 2.61
1452
1453 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1454 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1455 This configure script is free software; the Free Software Foundation
1456 gives unlimited permission to copy, distribute and modify it.
1457 _ACEOF
1458 exit
1459 fi
1460 cat >config.log <<_ACEOF
1461 This file contains any messages produced by compilers while
1462 running configure, to aid debugging if configure makes a mistake.
1463
1464 It was created by emacs $as_me 23.0.50, which was
1465 generated by GNU Autoconf 2.61. Invocation command line was
1466
1467 $ $0 $@
1468
1469 _ACEOF
1470 exec 5>>config.log
1471 {
1472 cat <<_ASUNAME
1473 ## --------- ##
1474 ## Platform. ##
1475 ## --------- ##
1476
1477 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1478 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1479 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1480 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1481 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1482
1483 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1484 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1485
1486 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1487 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1488 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1489 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1490 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1491 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1492 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1493
1494 _ASUNAME
1495
1496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 for as_dir in $PATH
1498 do
1499 IFS=$as_save_IFS
1500 test -z "$as_dir" && as_dir=.
1501 echo "PATH: $as_dir"
1502 done
1503 IFS=$as_save_IFS
1504
1505 } >&5
1506
1507 cat >&5 <<_ACEOF
1508
1509
1510 ## ----------- ##
1511 ## Core tests. ##
1512 ## ----------- ##
1513
1514 _ACEOF
1515
1516
1517 # Keep a trace of the command line.
1518 # Strip out --no-create and --no-recursion so they do not pile up.
1519 # Strip out --silent because we don't want to record it for future runs.
1520 # Also quote any args containing shell meta-characters.
1521 # Make two passes to allow for proper duplicate-argument suppression.
1522 ac_configure_args=
1523 ac_configure_args0=
1524 ac_configure_args1=
1525 ac_must_keep_next=false
1526 for ac_pass in 1 2
1527 do
1528 for ac_arg
1529 do
1530 case $ac_arg in
1531 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1533 | -silent | --silent | --silen | --sile | --sil)
1534 continue ;;
1535 *\'*)
1536 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1537 esac
1538 case $ac_pass in
1539 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1540 2)
1541 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1542 if test $ac_must_keep_next = true; then
1543 ac_must_keep_next=false # Got value, back to normal.
1544 else
1545 case $ac_arg in
1546 *=* | --config-cache | -C | -disable-* | --disable-* \
1547 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1548 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1549 | -with-* | --with-* | -without-* | --without-* | --x)
1550 case "$ac_configure_args0 " in
1551 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1552 esac
1553 ;;
1554 -* ) ac_must_keep_next=true ;;
1555 esac
1556 fi
1557 ac_configure_args="$ac_configure_args '$ac_arg'"
1558 ;;
1559 esac
1560 done
1561 done
1562 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1563 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1564
1565 # When interrupted or exit'd, cleanup temporary files, and complete
1566 # config.log. We remove comments because anyway the quotes in there
1567 # would cause problems or look ugly.
1568 # WARNING: Use '\'' to represent an apostrophe within the trap.
1569 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1570 trap 'exit_status=$?
1571 # Save into config.log some information that might help in debugging.
1572 {
1573 echo
1574
1575 cat <<\_ASBOX
1576 ## ---------------- ##
1577 ## Cache variables. ##
1578 ## ---------------- ##
1579 _ASBOX
1580 echo
1581 # The following way of writing the cache mishandles newlines in values,
1582 (
1583 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1584 eval ac_val=\$$ac_var
1585 case $ac_val in #(
1586 *${as_nl}*)
1587 case $ac_var in #(
1588 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1589 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1590 esac
1591 case $ac_var in #(
1592 _ | IFS | as_nl) ;; #(
1593 *) $as_unset $ac_var ;;
1594 esac ;;
1595 esac
1596 done
1597 (set) 2>&1 |
1598 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1599 *${as_nl}ac_space=\ *)
1600 sed -n \
1601 "s/'\''/'\''\\\\'\'''\''/g;
1602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1603 ;; #(
1604 *)
1605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1606 ;;
1607 esac |
1608 sort
1609 )
1610 echo
1611
1612 cat <<\_ASBOX
1613 ## ----------------- ##
1614 ## Output variables. ##
1615 ## ----------------- ##
1616 _ASBOX
1617 echo
1618 for ac_var in $ac_subst_vars
1619 do
1620 eval ac_val=\$$ac_var
1621 case $ac_val in
1622 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1623 esac
1624 echo "$ac_var='\''$ac_val'\''"
1625 done | sort
1626 echo
1627
1628 if test -n "$ac_subst_files"; then
1629 cat <<\_ASBOX
1630 ## ------------------- ##
1631 ## File substitutions. ##
1632 ## ------------------- ##
1633 _ASBOX
1634 echo
1635 for ac_var in $ac_subst_files
1636 do
1637 eval ac_val=\$$ac_var
1638 case $ac_val in
1639 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640 esac
1641 echo "$ac_var='\''$ac_val'\''"
1642 done | sort
1643 echo
1644 fi
1645
1646 if test -s confdefs.h; then
1647 cat <<\_ASBOX
1648 ## ----------- ##
1649 ## confdefs.h. ##
1650 ## ----------- ##
1651 _ASBOX
1652 echo
1653 cat confdefs.h
1654 echo
1655 fi
1656 test "$ac_signal" != 0 &&
1657 echo "$as_me: caught signal $ac_signal"
1658 echo "$as_me: exit $exit_status"
1659 } >&5
1660 rm -f core *.core core.conftest.* &&
1661 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1662 exit $exit_status
1663 ' 0
1664 for ac_signal in 1 2 13 15; do
1665 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1666 done
1667 ac_signal=0
1668
1669 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1670 rm -f -r conftest* confdefs.h
1671
1672 # Predefined preprocessor variables.
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_NAME "$PACKAGE_NAME"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1681 _ACEOF
1682
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1686 _ACEOF
1687
1688
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_STRING "$PACKAGE_STRING"
1691 _ACEOF
1692
1693
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1696 _ACEOF
1697
1698
1699 # Let the site file select an alternate cache file if it wants to.
1700 # Prefer explicitly selected file to automatically selected ones.
1701 if test -n "$CONFIG_SITE"; then
1702 set x "$CONFIG_SITE"
1703 elif test "x$prefix" != xNONE; then
1704 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1705 else
1706 set x "$ac_default_prefix/share/config.site" \
1707 "$ac_default_prefix/etc/config.site"
1708 fi
1709 shift
1710 for ac_site_file
1711 do
1712 if test -r "$ac_site_file"; then
1713 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1714 echo "$as_me: loading site script $ac_site_file" >&6;}
1715 sed 's/^/| /' "$ac_site_file" >&5
1716 . "$ac_site_file"
1717 fi
1718 done
1719
1720 if test -r "$cache_file"; then
1721 # Some versions of bash will fail to source /dev/null (special
1722 # files actually), so we avoid doing that.
1723 if test -f "$cache_file"; then
1724 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1725 echo "$as_me: loading cache $cache_file" >&6;}
1726 case $cache_file in
1727 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1728 *) . "./$cache_file";;
1729 esac
1730 fi
1731 else
1732 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1733 echo "$as_me: creating cache $cache_file" >&6;}
1734 >$cache_file
1735 fi
1736
1737 ac_header_list="$ac_header_list sys/time.h"
1738 ac_header_list="$ac_header_list unistd.h"
1739 ac_func_list="$ac_func_list alarm"
1740 # Check that the precious variables saved in the cache have kept the same
1741 # value.
1742 ac_cache_corrupted=false
1743 for ac_var in $ac_precious_vars; do
1744 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1745 eval ac_new_set=\$ac_env_${ac_var}_set
1746 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1747 eval ac_new_val=\$ac_env_${ac_var}_value
1748 case $ac_old_set,$ac_new_set in
1749 set,)
1750 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1751 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1752 ac_cache_corrupted=: ;;
1753 ,set)
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1755 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1756 ac_cache_corrupted=: ;;
1757 ,);;
1758 *)
1759 if test "x$ac_old_val" != "x$ac_new_val"; then
1760 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1761 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1762 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1763 echo "$as_me: former value: $ac_old_val" >&2;}
1764 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1765 echo "$as_me: current value: $ac_new_val" >&2;}
1766 ac_cache_corrupted=:
1767 fi;;
1768 esac
1769 # Pass precious variables to config.status.
1770 if test "$ac_new_set" = set; then
1771 case $ac_new_val in
1772 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 *) ac_arg=$ac_var=$ac_new_val ;;
1774 esac
1775 case " $ac_configure_args " in
1776 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1777 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1778 esac
1779 fi
1780 done
1781 if $ac_cache_corrupted; then
1782 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1783 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1784 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1785 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1786 { (exit 1); exit 1; }; }
1787 fi
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813 ac_ext=c
1814 ac_cpp='$CPP $CPPFLAGS'
1815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818
1819
1820 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1821
1822
1823
1824 test "$program_prefix" != NONE &&
1825 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1826 # Use a double $ so make ignores it.
1827 test "$program_suffix" != NONE &&
1828 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1829 # Double any \ or $. echo might interpret backslashes.
1830 # By default was `s,x,x', remove it if useless.
1831 cat <<\_ACEOF >conftest.sed
1832 s/[\\$]/&&/g;s/;s,x,x,$//
1833 _ACEOF
1834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1835 rm -f conftest.sed
1836
1837
1838 lispdir='${datadir}/emacs/${version}/lisp'
1839 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1840 '${datadir}/emacs/site-lisp'
1841 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1842 etcdir='${datadir}/emacs/${version}/etc'
1843 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1844 docdir='${datadir}/emacs/${version}/etc'
1845 gamedir='${localstatedir}/games/emacs'
1846
1847 gameuser=games
1848
1849
1850
1851 # Check whether --with-gcc was given.
1852 if test "${with_gcc+set}" = set; then
1853 withval=$with_gcc;
1854 fi
1855
1856
1857
1858 # Check whether --with-pop was given.
1859 if test "${with_pop+set}" = set; then
1860 withval=$with_pop; if test "$withval" = yes; then
1861 cat >>confdefs.h <<\_ACEOF
1862 #define MAIL_USE_POP 1
1863 _ACEOF
1864
1865 else :
1866 fi
1867 else
1868 cat >>confdefs.h <<\_ACEOF
1869 #define MAIL_USE_POP 1
1870 _ACEOF
1871
1872 fi
1873
1874
1875
1876
1877 # Check whether --with-kerberos was given.
1878 if test "${with_kerberos+set}" = set; then
1879 withval=$with_kerberos; if test "$withval" = yes; then
1880 cat >>confdefs.h <<\_ACEOF
1881 #define KERBEROS 1
1882 _ACEOF
1883
1884 fi
1885 fi
1886
1887
1888
1889
1890 # Check whether --with-kerberos5 was given.
1891 if test "${with_kerberos5+set}" = set; then
1892 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1893 if test "${with_kerberos+set}" != set; then
1894 with_kerberos=yes
1895 cat >>confdefs.h <<\_ACEOF
1896 #define KERBEROS 1
1897 _ACEOF
1898
1899 fi
1900
1901 cat >>confdefs.h <<\_ACEOF
1902 #define KERBEROS5 1
1903 _ACEOF
1904
1905 fi
1906 fi
1907
1908
1909
1910 # Check whether --with-hesiod was given.
1911 if test "${with_hesiod+set}" = set; then
1912 withval=$with_hesiod; if test "$withval" = yes; then
1913
1914 cat >>confdefs.h <<\_ACEOF
1915 #define HESIOD 1
1916 _ACEOF
1917
1918 fi
1919 fi
1920
1921
1922
1923 # Check whether --with-sound was given.
1924 if test "${with_sound+set}" = set; then
1925 withval=$with_sound;
1926 fi
1927
1928
1929
1930 # Check whether --with-x-toolkit was given.
1931 if test "${with_x_toolkit+set}" = set; then
1932 withval=$with_x_toolkit; case "${withval}" in
1933 y | ye | yes ) val=gtk ;;
1934 n | no ) val=no ;;
1935 l | lu | luc | luci | lucid ) val=lucid ;;
1936 a | at | ath | athe | athen | athena ) val=athena ;;
1937 m | mo | mot | moti | motif ) val=motif ;;
1938 g | gt | gtk ) val=gtk ;;
1939 * )
1940 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1941 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1942 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1943 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1944 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1945 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1946 { (exit 1); exit 1; }; }
1947 ;;
1948 esac
1949 with_x_toolkit=$val
1950
1951 fi
1952
1953
1954
1955 # Check whether --with-xpm was given.
1956 if test "${with_xpm+set}" = set; then
1957 withval=$with_xpm;
1958 fi
1959
1960
1961 # Check whether --with-jpeg was given.
1962 if test "${with_jpeg+set}" = set; then
1963 withval=$with_jpeg;
1964 fi
1965
1966
1967 # Check whether --with-tiff was given.
1968 if test "${with_tiff+set}" = set; then
1969 withval=$with_tiff;
1970 fi
1971
1972
1973 # Check whether --with-gif was given.
1974 if test "${with_gif+set}" = set; then
1975 withval=$with_gif;
1976 fi
1977
1978
1979 # Check whether --with-png was given.
1980 if test "${with_png+set}" = set; then
1981 withval=$with_png;
1982 fi
1983
1984
1985 # Check whether --with-freetype was given.
1986 if test "${with_freetype+set}" = set; then
1987 withval=$with_freetype;
1988 fi
1989
1990
1991 # Check whether --with-xft was given.
1992 if test "${with_xft+set}" = set; then
1993 withval=$with_xft;
1994 fi
1995
1996
1997 # Check whether --with-gpm was given.
1998 if test "${with_gpm+set}" = set; then
1999 withval=$with_gpm;
2000 fi
2001
2002
2003 # Check whether --with-rsvg was given.
2004 if test "${with_rsvg+set}" = set; then
2005 withval=$with_rsvg;
2006 fi
2007
2008
2009 # Check whether --with-gtk was given.
2010 if test "${with_gtk+set}" = set; then
2011 withval=$with_gtk;
2012 fi
2013
2014
2015 # Check whether --with-pkg-config-prog was given.
2016 if test "${with_pkg_config_prog+set}" = set; then
2017 withval=$with_pkg_config_prog;
2018 fi
2019
2020
2021 # Check whether --with-toolkit-scroll-bars was given.
2022 if test "${with_toolkit_scroll_bars+set}" = set; then
2023 withval=$with_toolkit_scroll_bars;
2024 fi
2025
2026
2027 # Check whether --with-xaw3d was given.
2028 if test "${with_xaw3d+set}" = set; then
2029 withval=$with_xaw3d;
2030 fi
2031
2032
2033 # Check whether --with-xim was given.
2034 if test "${with_xim+set}" = set; then
2035 withval=$with_xim;
2036 fi
2037
2038
2039 # Check whether --with-carbon was given.
2040 if test "${with_carbon+set}" = set; then
2041 withval=$with_carbon;
2042 fi
2043
2044
2045 # Check whether --with-dbus was given.
2046 if test "${with_dbus+set}" = set; then
2047 withval=$with_dbus;
2048 fi
2049
2050
2051 # Check whether --enable-carbon-app was given.
2052 if test "${enable_carbon_app+set}" = set; then
2053 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2054 fi
2055
2056
2057 # Check whether --enable-font-backend was given.
2058 if test "${enable_font_backend+set}" = set; then
2059 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2060 else
2061 USE_FONT_BACKEND=no
2062 fi
2063
2064
2065 # Check whether --enable-asserts was given.
2066 if test "${enable_asserts+set}" = set; then
2067 enableval=$enable_asserts; USE_XASSERTS=$enableval
2068 else
2069 USE_XASSERTS=no
2070 fi
2071
2072
2073 # Check whether --enable-maintainer-mode was given.
2074 if test "${enable_maintainer_mode+set}" = set; then
2075 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2076 else
2077 USE_MAINTAINER_MODE=no
2078 fi
2079
2080 if test $USE_MAINTAINER_MODE = yes; then
2081 MAINT=
2082 else
2083 MAINT=#
2084 fi
2085
2086
2087 # Check whether --enable-locallisppath was given.
2088 if test "${enable_locallisppath+set}" = set; then
2089 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2090 locallisppath=
2091 elif test "${enableval}" != "yes"; then
2092 locallisppath=${enableval}
2093 fi
2094 fi
2095
2096
2097 #### Make srcdir absolute, if it isn't already. It's important to
2098 #### avoid running the path through pwd unnecessarily, since pwd can
2099 #### give you automounter prefixes, which can go away. We do all this
2100 #### so Emacs can find its files when run uninstalled.
2101 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2102 unset CDPATH
2103 case "${srcdir}" in
2104 /* ) ;;
2105 . )
2106 ## We may be able to use the $PWD environment variable to make this
2107 ## absolute. But sometimes PWD is inaccurate.
2108 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2109 ## but that tested only for a well-formed and valid PWD,
2110 ## it did not object when PWD was well-formed and valid but just wrong.
2111 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2112 then
2113 srcdir="$PWD"
2114 else
2115 srcdir="`(cd ${srcdir}; pwd)`"
2116 fi
2117 ;;
2118 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2119 esac
2120
2121 #### Check if the source directory already has a configured system in it.
2122 if test `pwd` != `(cd ${srcdir} && pwd)` \
2123 && test -f "${srcdir}/src/config.h" ; then
2124 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2125 as a build directory right now; it has been configured in its own
2126 right. To configure in another directory as well, you MUST
2127 use GNU make. If you do not have GNU make, then you must
2128 now do \`make distclean' in ${srcdir},
2129 and then run $0 again." >&5
2130 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2131 as a build directory right now; it has been configured in its own
2132 right. To configure in another directory as well, you MUST
2133 use GNU make. If you do not have GNU make, then you must
2134 now do \`make distclean' in ${srcdir},
2135 and then run $0 again." >&2;}
2136 fi
2137
2138 #### Given the configuration name, set machfile and opsysfile to the
2139 #### names of the m/*.h and s/*.h files we should use.
2140
2141 ### Canonicalize the configuration name.
2142
2143 ac_aux_dir=
2144 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2145 if test -f "$ac_dir/install-sh"; then
2146 ac_aux_dir=$ac_dir
2147 ac_install_sh="$ac_aux_dir/install-sh -c"
2148 break
2149 elif test -f "$ac_dir/install.sh"; then
2150 ac_aux_dir=$ac_dir
2151 ac_install_sh="$ac_aux_dir/install.sh -c"
2152 break
2153 elif test -f "$ac_dir/shtool"; then
2154 ac_aux_dir=$ac_dir
2155 ac_install_sh="$ac_aux_dir/shtool install -c"
2156 break
2157 fi
2158 done
2159 if test -z "$ac_aux_dir"; then
2160 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2161 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2162 { (exit 1); exit 1; }; }
2163 fi
2164
2165 # These three variables are undocumented and unsupported,
2166 # and are intended to be withdrawn in a future Autoconf release.
2167 # They can cause serious problems if a builder's source tree is in a directory
2168 # whose full name contains unusual characters.
2169 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2170 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2171 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2172
2173
2174 # Make sure we can run config.sub.
2175 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2176 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2177 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2178 { (exit 1); exit 1; }; }
2179
2180 { echo "$as_me:$LINENO: checking build system type" >&5
2181 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2182 if test "${ac_cv_build+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 ac_build_alias=$build_alias
2186 test "x$ac_build_alias" = x &&
2187 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2188 test "x$ac_build_alias" = x &&
2189 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2190 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2191 { (exit 1); exit 1; }; }
2192 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2193 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2194 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2195 { (exit 1); exit 1; }; }
2196
2197 fi
2198 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2199 echo "${ECHO_T}$ac_cv_build" >&6; }
2200 case $ac_cv_build in
2201 *-*-*) ;;
2202 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2203 echo "$as_me: error: invalid value of canonical build" >&2;}
2204 { (exit 1); exit 1; }; };;
2205 esac
2206 build=$ac_cv_build
2207 ac_save_IFS=$IFS; IFS='-'
2208 set x $ac_cv_build
2209 shift
2210 build_cpu=$1
2211 build_vendor=$2
2212 shift; shift
2213 # Remember, the first character of IFS is used to create $*,
2214 # except with old shells:
2215 build_os=$*
2216 IFS=$ac_save_IFS
2217 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2218
2219
2220 { echo "$as_me:$LINENO: checking host system type" >&5
2221 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2222 if test "${ac_cv_host+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 if test "x$host_alias" = x; then
2226 ac_cv_host=$ac_cv_build
2227 else
2228 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2229 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2230 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2231 { (exit 1); exit 1; }; }
2232 fi
2233
2234 fi
2235 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2236 echo "${ECHO_T}$ac_cv_host" >&6; }
2237 case $ac_cv_host in
2238 *-*-*) ;;
2239 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2240 echo "$as_me: error: invalid value of canonical host" >&2;}
2241 { (exit 1); exit 1; }; };;
2242 esac
2243 host=$ac_cv_host
2244 ac_save_IFS=$IFS; IFS='-'
2245 set x $ac_cv_host
2246 shift
2247 host_cpu=$1
2248 host_vendor=$2
2249 shift; shift
2250 # Remember, the first character of IFS is used to create $*,
2251 # except with old shells:
2252 host_os=$*
2253 IFS=$ac_save_IFS
2254 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2255
2256
2257 canonical=$host
2258 configuration=${host_alias-${build_alias-$host}}
2259
2260
2261
2262 ### If you add support for a new configuration, add code to this
2263 ### switch statement to recognize your configuration name and select
2264 ### the appropriate operating system and machine description files.
2265
2266 ### You would hope that you could choose an m/*.h file pretty much
2267 ### based on the machine portion of the configuration name, and an s-
2268 ### file based on the operating system portion. However, it turns out
2269 ### that each m/*.h file is pretty manufacturer-specific - for
2270 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2271 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2272 ### machines. So we basically have to have a special case for each
2273 ### configuration name.
2274 ###
2275 ### As far as handling version numbers on operating systems is
2276 ### concerned, make sure things will fail in a fixable way. If
2277 ### /etc/MACHINES doesn't say anything about version numbers, be
2278 ### prepared to handle anything reasonably. If version numbers
2279 ### matter, be sure /etc/MACHINES says something about it.
2280 ###
2281 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2282 ### "System V Release 4"; he writes, "The old convention encouraged
2283 ### confusion between `system' and `release' levels'."
2284
2285 machine='' opsys='' unported=no
2286 case "${canonical}" in
2287
2288 ## FreeBSD ports
2289 *-*-freebsd* )
2290 opsys=freebsd
2291 case "${canonical}" in
2292 alpha*-*-freebsd*) machine=alpha ;;
2293 ia64-*-freebsd*) machine=ia64 ;;
2294 sparc64-*-freebsd*) machine=sparc ;;
2295 powerpc-*-freebsd*) machine=macppc ;;
2296 i[3456]86-*-freebsd*) machine=intel386 ;;
2297 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2298 esac
2299 ;;
2300
2301 ## FreeBSD kernel + glibc based userland
2302 *-*-kfreebsd*gnu* )
2303 opsys=gnu-kfreebsd
2304 case "${canonical}" in
2305 alpha*-*-kfreebsd*) machine=alpha ;;
2306 ia64-*-kfreebsd*) machine=ia64 ;;
2307 sparc64-*-kfreebsd*) machine=sparc ;;
2308 powerpc-*-kfreebsd*) machine=macppc ;;
2309 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2310 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2311 esac
2312 ;;
2313
2314 ## NetBSD ports
2315 *-*-netbsd* )
2316 opsys=netbsd
2317 if test -f /usr/lib/crti.o; then
2318
2319 cat >>confdefs.h <<\_ACEOF
2320 #define HAVE_CRTIN
2321 _ACEOF
2322
2323 fi
2324
2325 case "${canonical}" in
2326 alpha*-*-netbsd*) machine=alpha ;;
2327 i[3456]86-*-netbsd*) machine=intel386 ;;
2328 m68k-*-netbsd*)
2329 # This is somewhat bogus.
2330 machine=hp9000s300 ;;
2331 mips-*-netbsd*) machine=pmax ;;
2332 mipsel-*-netbsd*) machine=pmax ;;
2333 mipseb-*-netbsd*) machine=pmax ;;
2334 ns32k-*-netbsd*) machine=ns32000 ;;
2335 powerpc-*-netbsd*) machine=macppc ;;
2336 sparc*-*-netbsd*) machine=sparc ;;
2337 vax-*-netbsd*) machine=vax ;;
2338 arm-*-netbsd*) machine=arm ;;
2339 x86_64-*-netbsd*) machine=amdx86-64 ;;
2340 hppa-*-netbsd*) machine=hp800 ;;
2341 shle-*-netbsd*) machine=sh3el ;;
2342 esac
2343 ;;
2344
2345 ## OpenBSD ports
2346 *-*-openbsd* )
2347 opsys=openbsd
2348 case "${canonical}" in
2349 alpha*-*-openbsd*) machine=alpha ;;
2350 arm-*-openbsd*) machine=arm ;;
2351 hppa-*-openbsd*) machine=hp9000s300 ;;
2352 i386-*-openbsd*) machine=intel386 ;;
2353 m68k-*-openbsd*) machine=hp9000s300 ;;
2354 m88k-*-openbsd*) machine=aviion ;;
2355 mips64-*-openbsd*) machine=mips64 ;;
2356 powerpc-*-openbsd*) machine=macppc ;;
2357 sh-*-openbsd*) machine=sh3el ;;
2358 sparc*-*-openbsd*) machine=sparc ;;
2359 vax-*-openbsd*) machine=vax ;;
2360 x86_64-*-openbsd*) machine=amdx86-64 ;;
2361 esac
2362 ;;
2363
2364 ## LynxOS ports
2365 *-*-lynxos* )
2366 opsys=lynxos
2367 case "${canonical}" in
2368 i[3456]86-*-lynxos*) machine=intel386 ;;
2369 powerpc-*-lynxos*) machine=powerpc ;;
2370 esac
2371 ;;
2372
2373 ## Acorn RISCiX:
2374 arm-acorn-riscix1.1* )
2375 machine=acorn opsys=riscix1-1
2376 ;;
2377 arm-acorn-riscix1.2* | arm-acorn-riscix )
2378 ## This name is riscix12 instead of riscix1.2
2379 ## to avoid a file name conflict on MSDOS.
2380 machine=acorn opsys=riscix12
2381 ;;
2382
2383 ## BSDI ports
2384 *-*-bsdi* )
2385 opsys=bsdi
2386 case "${canonical}" in
2387 i[345]86-*-bsdi*) machine=intel386 ;;
2388 sparc-*-bsdi*) machine=sparc ;;
2389 powerpc-*-bsdi*) machine=macppc ;;
2390 esac
2391 case "${canonical}" in
2392 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2393 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2394 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2395 *-*-bsdi3* ) opsys=bsdos3 ;;
2396 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2397 esac
2398 ;;
2399
2400 ## Alliant machines
2401 ## Strictly speaking, we need the version of the alliant operating
2402 ## system to choose the right machine file, but currently the
2403 ## configuration name doesn't tell us enough to choose the right
2404 ## one; we need to give alliants their own operating system name to
2405 ## do this right. When someone cares, they can help us.
2406 fx80-alliant-* )
2407 machine=alliant4 opsys=bsd4-2
2408 ;;
2409 i860-alliant-* )
2410 machine=alliant-2800 opsys=bsd4-3
2411 ;;
2412
2413 ## Alpha (DEC) machines.
2414 alpha*-dec-osf* )
2415 machine=alpha opsys=osf1
2416 # This is needed to find X11R6.1 libraries for certain tests.
2417 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2418 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2419 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2420 # due to non-traditional preprocessing with the current compiler
2421 # defaults. OSF 4 can also have that compiler version, and there
2422 # seems always to have been a usable /usr/bin/cpp.
2423 NON_GNU_CPP=/usr/bin/cpp
2424 case "${canonical}" in
2425 alpha*-dec-osf[5-9]*)
2426 opsys=osf5-0 ;;
2427 esac
2428 ;;
2429
2430 alpha*-*-linux-gnu* )
2431 machine=alpha opsys=gnu-linux
2432 ;;
2433
2434 arm*-*-linux-gnu* )
2435 machine=arm opsys=gnu-linux
2436 ;;
2437
2438 ## Altos 3068
2439 m68*-altos-sysv* )
2440 machine=altos opsys=usg5-2
2441 ;;
2442
2443 ## Amdahl UTS
2444 580-amdahl-sysv* )
2445 machine=amdahl opsys=usg5-2-2
2446 ;;
2447
2448 ## Apollo, Domain/OS
2449 m68*-apollo-* )
2450 machine=apollo opsys=bsd4-3
2451 ;;
2452
2453 ## Apple Darwin / Mac OS X
2454 *-apple-darwin* )
2455 case "${canonical}" in
2456 i[3456]86-* ) machine=intel386 ;;
2457 powerpc-* ) machine=powermac ;;
2458 * ) unported=yes ;;
2459 esac
2460 opsys=darwin
2461 # Define CPP as follows to make autoconf work correctly.
2462 CPP="${CC-cc} -E -no-cpp-precomp"
2463 # Use fink packages if available.
2464 if test -d /sw/include && test -d /sw/lib; then
2465 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2466 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2467 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2468 fi
2469 ;;
2470
2471 ## AT&T 3b2, 3b5, 3b15, 3b20
2472 we32k-att-sysv* )
2473 machine=att3b opsys=usg5-2-2
2474 ;;
2475
2476 ## AT&T 3b1 - The Mighty Unix PC!
2477 m68*-att-sysv* )
2478 machine=7300 opsys=usg5-2-2
2479 ;;
2480
2481 ## Bull dpx20
2482 rs6000-bull-bosx* )
2483 machine=ibmrs6000 opsys=aix3-2
2484 ;;
2485
2486 ## Bull dpx2
2487 m68*-bull-sysv3* )
2488 machine=dpx2 opsys=usg5-3
2489 ;;
2490
2491 ## Bull sps7
2492 m68*-bull-sysv2* )
2493 machine=sps7 opsys=usg5-2
2494 ;;
2495
2496 ## CCI 5/32, 6/32 -- see "Tahoe".
2497
2498 ## Celerity
2499 ## I don't know what configuration name to use for this; config.sub
2500 ## doesn't seem to know anything about it. Hey, Celerity users, get
2501 ## in touch with us!
2502 celerity-celerity-bsd* )
2503 machine=celerity opsys=bsd4-2
2504 ;;
2505
2506 ## Clipper
2507 ## What operating systems does this chip run that Emacs has been
2508 ## tested on?
2509 clipper-* )
2510 machine=clipper
2511 ## We'll use the catch-all code at the bottom to guess the
2512 ## operating system.
2513 ;;
2514
2515 ## Compaq Nonstop
2516 mips-compaq-nonstopux* )
2517 machine=nonstopux opsys=nonstopux
2518 ;;
2519
2520 ## Convex
2521 *-convex-bsd* | *-convex-convexos* )
2522 machine=convex opsys=bsd4-3
2523 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2524 NON_GNU_CPP="cc -E -P"
2525 ;;
2526
2527 ## Cubix QBx/386
2528 i[3456]86-cubix-sysv* )
2529 machine=intel386 opsys=usg5-3
2530 ;;
2531
2532 ## Cydra 5
2533 cydra*-cydrome-sysv* )
2534 machine=cydra5 opsys=usg5-3
2535 ;;
2536
2537 ## Data General AViiON Machines
2538 ## DG changed naming conventions with the release of 5.4.4.10, they
2539 ## dropped the initial 5.4 but left the intervening R. Because of the
2540 ## R this shouldn't conflict with older versions of the OS (which I
2541 ## think were named like dgux4.*). In addition, DG new AViiONs series
2542 ## uses either Motorola M88k or Intel Pentium CPUs.
2543 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2544 machine=aviion opsys=dgux4
2545 ;;
2546 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2547 ## This name is dgux5-4-3 instead of dgux5-4r3
2548 ## to avoid a file name conflict on MSDOS.
2549 machine=aviion opsys=dgux5-4-3
2550 ;;
2551 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2552 machine=aviion opsys=dgux5-4r2
2553 ;;
2554 m88k-dg-dgux* )
2555 machine=aviion opsys=dgux
2556 ;;
2557
2558 ## Data General AViiON Intel (x86) Machines
2559 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2560 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2561 i[345]86-dg-dguxR4* )
2562 machine=aviion-intel opsys=dgux4
2563 ;;
2564
2565 ## DECstations
2566 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2567 machine=pmax opsys=bsd4-2
2568 ;;
2569 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2570 machine=pmax opsys=bsd4-3
2571 ;;
2572 mips-dec-ultrix* )
2573 machine=pmax opsys=ultrix4-3
2574 ;;
2575 mips-dec-osf* )
2576 machine=pmax opsys=osf1
2577 ;;
2578 mips-dec-mach_bsd4.3* )
2579 machine=pmax opsys=mach-bsd4-3
2580 ;;
2581
2582 ## Motorola Delta machines
2583 m68k-motorola-sysv* | m68000-motorola-sysv* )
2584 machine=delta opsys=usg5-3
2585 if test -z "`type gnucc | grep 'not found'`"
2586 then
2587 if test -s /etc/167config
2588 then CC="gnucc -m68040"
2589 else CC="gnucc -m68881"
2590 fi
2591 else
2592 if test -z "`type gcc | grep 'not found'`"
2593 then CC=gcc
2594 else CC=cc
2595 fi
2596 fi
2597 ;;
2598 m88k-motorola-sysv4* )
2599 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2600 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2601 # I hope there are not other 4.0 versions for this machine
2602 # which really need usg5-4 instead.
2603 machine=delta88k opsys=usg5-4-2
2604 ;;
2605 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2606 machine=delta88k opsys=usg5-3
2607 ;;
2608
2609 ## Dual machines
2610 m68*-dual-sysv* )
2611 machine=dual opsys=usg5-2
2612 ;;
2613 m68*-dual-uniplus* )
2614 machine=dual opsys=unipl5-2
2615 ;;
2616
2617 ## Elxsi 6400
2618 elxsi-elxsi-sysv* )
2619 machine=elxsi opsys=usg5-2
2620 ;;
2621
2622 ## Encore machines
2623 ns16k-encore-bsd* )
2624 machine=ns16000 opsys=umax
2625 ;;
2626
2627 ## The GEC 63 - apparently, this port isn't really finished yet.
2628 # I'm sure we finished off the last of the machines, though. -- fx
2629
2630 ## Gould Power Node and NP1
2631 pn-gould-bsd4.2* )
2632 machine=gould opsys=bsd4-2
2633 ;;
2634 pn-gould-bsd4.3* )
2635 machine=gould opsys=bsd4-3
2636 ;;
2637 np1-gould-bsd* )
2638 machine=gould-np1 opsys=bsd4-3
2639 ;;
2640
2641 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2642 ## as far as Emacs is concerned).
2643 m88k-harris-cxux* )
2644 # Build needs to be different on 7.0 and later releases
2645 case "`uname -r`" in
2646 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2647 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2648 esac
2649 NON_GNU_CPP="/lib/cpp"
2650 ;;
2651 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2652 m68k-harris-cxux* )
2653 machine=nh3000 opsys=cxux
2654 ;;
2655 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2656 powerpc-harris-powerunix )
2657 machine=nh6000 opsys=powerunix
2658 NON_GNU_CPP="cc -Xo -E -P"
2659 ;;
2660 ## SR2001/SR2201 running HI-UX/MPP
2661 hppa1.1-hitachi-hiuxmpp* )
2662 machine=sr2k opsys=hiuxmpp
2663 ;;
2664 hppa1.1-hitachi-hiuxwe2* )
2665 machine=sr2k opsys=hiuxwe2
2666 ;;
2667 ## Honeywell XPS100
2668 xps*-honeywell-sysv* )
2669 machine=xps100 opsys=usg5-2
2670 ;;
2671
2672 ## HP 9000 series 200 or 300
2673 m68*-hp-bsd* )
2674 machine=hp9000s300 opsys=bsd4-3
2675 ;;
2676 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2677 m68*-hp-hpux* )
2678 case "`uname -r`" in
2679 ## Someone's system reports A.B8.05 for this.
2680 ## I wonder what other possibilities there are.
2681 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2682 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2683 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2684 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2685 *) machine=hp9000s300 opsys=hpux ;;
2686 esac
2687 ;;
2688
2689 ## HP 9000 series 700 and 800, running HP/UX
2690 hppa*-hp-hpux7* )
2691 machine=hp800 opsys=hpux
2692 ;;
2693 hppa*-hp-hpux8* )
2694 machine=hp800 opsys=hpux8
2695 ;;
2696 hppa*-hp-hpux9shr* )
2697 machine=hp800 opsys=hpux9shr
2698 ;;
2699 hppa*-hp-hpux9* )
2700 machine=hp800 opsys=hpux9
2701 ;;
2702 hppa*-hp-hpux10.2* )
2703 machine=hp800 opsys=hpux10-20
2704 ;;
2705 hppa*-hp-hpux10* )
2706 machine=hp800 opsys=hpux10
2707 ;;
2708 hppa*-hp-hpux1[1-9]* )
2709 machine=hp800 opsys=hpux11
2710 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2711 ;;
2712
2713 hppa*-*-linux-gnu* )
2714 machine=hp800 opsys=gnu-linux
2715 ;;
2716
2717 ## HP 9000 series 700 and 800, running HP/UX
2718 hppa*-hp-hpux* )
2719 ## Cross-compilation? Nah!
2720 case "`uname -r`" in
2721 ## Someone's system reports A.B8.05 for this.
2722 ## I wonder what other possibilities there are.
2723 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2724 *.08.* ) machine=hp800 opsys=hpux8 ;;
2725 *.09.* ) machine=hp800 opsys=hpux9 ;;
2726 *) machine=hp800 opsys=hpux10 ;;
2727 esac
2728 ;;
2729 hppa*-*-nextstep* )
2730 machine=hp800 opsys=nextstep
2731 ;;
2732
2733 ## Orion machines
2734 orion-orion-bsd* )
2735 machine=orion opsys=bsd4-2
2736 ;;
2737 clipper-orion-bsd* )
2738 machine=orion105 opsys=bsd4-2
2739 ;;
2740
2741 ## IBM machines
2742 i[3456]86-ibm-aix1.1* )
2743 machine=ibmps2-aix opsys=usg5-2-2
2744 ;;
2745 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2746 machine=ibmps2-aix opsys=usg5-3
2747 ;;
2748 i370-ibm-aix*)
2749 machine=ibm370aix opsys=usg5-3
2750 ;;
2751 s390-*-linux-gnu* )
2752 machine=ibms390 opsys=gnu-linux
2753 ;;
2754 s390x-*-linux-gnu* )
2755 machine=ibms390x opsys=gnu-linux
2756 ;;
2757 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2758 machine=ibmrs6000 opsys=aix3-1
2759 ;;
2760 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2761 machine=ibmrs6000 opsys=aix3-2-5
2762 ;;
2763 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2764 machine=ibmrs6000 opsys=aix4-1
2765 ;;
2766 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2767 machine=ibmrs6000 opsys=aix4-2
2768 ;;
2769 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2770 machine=ibmrs6000 opsys=aix4-2
2771 ;;
2772 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2773 machine=ibmrs6000 opsys=aix4-2
2774 ;;
2775 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2776 machine=ibmrs6000 opsys=aix4
2777 ;;
2778 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2779 machine=ibmrs6000 opsys=aix4-1
2780 ;;
2781 rs6000-ibm-aix* | powerpc-ibm-aix* )
2782 machine=ibmrs6000 opsys=aix3-2
2783 ;;
2784 romp-ibm-bsd4.3* )
2785 machine=ibmrt opsys=bsd4-3
2786 ;;
2787 romp-ibm-bsd4.2* )
2788 machine=ibmrt opsys=bsd4-2
2789 ;;
2790 romp-ibm-aos4.3* )
2791 machine=ibmrt opsys=bsd4-3
2792 ;;
2793 romp-ibm-aos4.2* )
2794 machine=ibmrt opsys=bsd4-2
2795 ;;
2796 romp-ibm-aos* )
2797 machine=ibmrt opsys=bsd4-3
2798 ;;
2799 romp-ibm-bsd* )
2800 machine=ibmrt opsys=bsd4-3
2801 ;;
2802 romp-ibm-aix* )
2803 machine=ibmrt-aix opsys=usg5-2-2
2804 ;;
2805
2806 ## Integrated Solutions `Optimum V'
2807 m68*-isi-bsd4.2* )
2808 machine=isi-ov opsys=bsd4-2
2809 ;;
2810 m68*-isi-bsd4.3* )
2811 machine=isi-ov opsys=bsd4-3
2812 ;;
2813
2814 ## Intel 386 machines where we do care about the manufacturer
2815 i[3456]86-intsys-sysv* )
2816 machine=is386 opsys=usg5-2-2
2817 ;;
2818
2819 ## Prime EXL
2820 i[3456]86-prime-sysv* )
2821 machine=i386 opsys=usg5-3
2822 ;;
2823
2824 ## Sequent Symmetry running Dynix
2825 i[3456]86-sequent-bsd* )
2826 machine=symmetry opsys=bsd4-3
2827 ;;
2828
2829 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2830 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2831 machine=sequent-ptx opsys=ptx4
2832 NON_GNU_CPP=/lib/cpp
2833 ;;
2834
2835 ## Sequent Symmetry running DYNIX/ptx
2836 ## Use the old cpp rather than the newer ANSI one.
2837 i[3456]86-sequent-ptx* )
2838 machine=sequent-ptx opsys=ptx
2839 NON_GNU_CPP="/lib/cpp"
2840 ;;
2841
2842 ## ncr machine running svr4.3.
2843 i[3456]86-ncr-sysv4.3 )
2844 machine=ncr386 opsys=usg5-4-3
2845 ;;
2846
2847 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2848 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2849 i[3456]86-ncr-sysv* )
2850 machine=ncr386 opsys=usg5-4-2
2851 ;;
2852
2853 ## Intel Paragon OSF/1
2854 i860-intel-osf1* )
2855 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2856 ;;
2857
2858 ## Intel 860
2859 i860-*-sysv4* )
2860 machine=i860 opsys=usg5-4
2861 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2862 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2863 ;;
2864
2865 ## Macintosh PowerPC
2866 powerpc*-*-linux-gnu* )
2867 machine=macppc opsys=gnu-linux
2868 ;;
2869
2870 ## Masscomp machines
2871 m68*-masscomp-rtu* )
2872 machine=masscomp opsys=rtu
2873 ;;
2874
2875 ## Megatest machines
2876 m68*-megatest-bsd* )
2877 machine=mega68 opsys=bsd4-2
2878 ;;
2879
2880 ## Workstations sold by MIPS
2881 ## This is not necessarily all workstations using the MIPS processor -
2882 ## Irises are produced by SGI, and DECstations by DEC.
2883
2884 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2885 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2886 ## it gives for choosing between the alternatives seems to be "Use
2887 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2888 ## the BSD world." I'll assume that these are instructions for
2889 ## handling two odd situations, and that every other situation
2890 ## should use mips.h and usg5-2-2, they being listed first.
2891 mips-mips-usg* )
2892 machine=mips4
2893 ## Fall through to the general code at the bottom to decide on the OS.
2894 ;;
2895 mips-mips-riscos4* )
2896 machine=mips4 opsys=bsd4-3
2897 NON_GNU_CC="cc -systype bsd43"
2898 NON_GNU_CPP="cc -systype bsd43 -E"
2899 ;;
2900 mips-mips-riscos5* )
2901 machine=mips4 opsys=riscos5
2902 NON_GNU_CC="cc -systype bsd43"
2903 NON_GNU_CPP="cc -systype bsd43 -E"
2904 ;;
2905 mips-mips-bsd* )
2906 machine=mips opsys=bsd4-3
2907 ;;
2908 mips-mips-* )
2909 machine=mips opsys=usg5-2-2
2910 ;;
2911
2912 ## NeXT
2913 m68*-next-* | m68k-*-nextstep* )
2914 machine=m68k opsys=nextstep
2915 ;;
2916
2917 ## The complete machine from National Semiconductor
2918 ns32k-ns-genix* )
2919 machine=ns32000 opsys=usg5-2
2920 ;;
2921
2922 ## NCR machines
2923 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2924 machine=tower32 opsys=usg5-2-2
2925 ;;
2926 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2927 machine=tower32v3 opsys=usg5-3
2928 ;;
2929
2930 ## NEC EWS4800
2931 mips-nec-sysv4*)
2932 machine=ews4800 opsys=ux4800
2933 ;;
2934
2935 ## Nixdorf Targon 31
2936 m68*-nixdorf-sysv* )
2937 machine=targon31 opsys=usg5-2-2
2938 ;;
2939
2940 ## Nu (TI or LMI)
2941 m68*-nu-sysv* )
2942 machine=nu opsys=usg5-2
2943 ;;
2944
2945 ## Plexus
2946 m68*-plexus-sysv* )
2947 machine=plexus opsys=usg5-2
2948 ;;
2949
2950 ## Pyramid machines
2951 ## I don't really have any idea what sort of processor the Pyramid has,
2952 ## so I'm assuming it is its own architecture.
2953 pyramid-pyramid-bsd* )
2954 machine=pyramid opsys=bsd4-2
2955 ;;
2956
2957 ## Sequent Balance
2958 ns32k-sequent-bsd4.2* )
2959 machine=sequent opsys=bsd4-2
2960 ;;
2961 ns32k-sequent-bsd4.3* )
2962 machine=sequent opsys=bsd4-3
2963 ;;
2964
2965 ## Siemens Nixdorf
2966 mips-siemens-sysv* | mips-sni-sysv*)
2967 machine=mips-siemens opsys=usg5-4
2968 NON_GNU_CC=/usr/ccs/bin/cc
2969 NON_GNU_CPP=/usr/ccs/lib/cpp
2970 ;;
2971
2972 ## Silicon Graphics machines
2973 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2974 m68*-sgi-iris3.5* )
2975 machine=irist opsys=iris3-5
2976 ;;
2977 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2978 machine=irist opsys=iris3-6
2979 ;;
2980 ## Iris 4D
2981 mips-sgi-irix3* )
2982 machine=iris4d opsys=irix3-3
2983 ;;
2984 mips-sgi-irix4* )
2985 machine=iris4d opsys=irix4-0
2986 ;;
2987 mips-sgi-irix6.5 )
2988 machine=iris4d opsys=irix6-5
2989 # Without defining _LANGUAGE_C, things get masked out in the headers
2990 # so that, for instance, grepping for `free' in stdlib.h fails and
2991 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2992 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2993 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2994 ;;
2995 mips-sgi-irix6* )
2996 machine=iris4d opsys=irix6-0
2997 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2998 # but presumably it does no harm.
2999 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3000 # -32 probably isn't necessary in later v.6s -- anyone know which?
3001 NON_GCC_TEST_OPTIONS=-32
3002 ;;
3003 mips-sgi-irix5.[01]* )
3004 machine=iris4d opsys=irix5-0
3005 ;;
3006 mips-sgi-irix5* | mips-sgi-irix* )
3007 machine=iris4d opsys=irix5-2
3008 ;;
3009
3010 ## SONY machines
3011 m68*-sony-bsd4.2* )
3012 machine=news opsys=bsd4-2
3013 ;;
3014 m68*-sony-bsd4.3* )
3015 machine=news opsys=bsd4-3
3016 ;;
3017 m68*-sony-newsos3* | m68*-sony-news3*)
3018 machine=news opsys=bsd4-3
3019 ;;
3020 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
3021 machine=news-risc opsys=bsd4-3
3022 ;;
3023 mips-sony-newsos6* )
3024 machine=news-r6 opsys=newsos6
3025 ;;
3026 mips-sony-news* )
3027 machine=news-risc opsys=newsos5
3028 ;;
3029
3030 ## Stride
3031 m68*-stride-sysv* )
3032 machine=stride opsys=usg5-2
3033 ;;
3034
3035 ## Suns
3036 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3037 machine=sparc opsys=gnu-linux
3038 ;;
3039
3040 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
3041 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
3042 | rs6000-*-solaris2*)
3043 case "${canonical}" in
3044 m68*-sunos1* ) machine=sun1 ;;
3045 m68*-sunos2* ) machine=sun2 ;;
3046 m68* ) machine=sun3 ;;
3047 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
3048 i[3456]86-*-* ) machine=intel386 ;;
3049 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3050 powerpcle* ) machine=powerpcle ;;
3051 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3052 sparc* ) machine=sparc ;;
3053 * ) unported=yes ;;
3054 esac
3055 case "${canonical}" in
3056 ## The Sun386 didn't get past 4.0.
3057 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
3058 *-sunos4.0* ) opsys=sunos4-0 ;;
3059 *-sunos4.1.[3-9]*noshare )
3060 ## This name is sunos413 instead of sunos4-1-3
3061 ## to avoid a file name conflict on MSDOS.
3062 opsys=sunos413
3063 NON_GNU_CPP=/usr/lib/cpp
3064 NON_GCC_TEST_OPTIONS=-Bstatic
3065 GCC_TEST_OPTIONS=-static
3066 ;;
3067 *-sunos4.1.[3-9]* | *-sunos4shr*)
3068 opsys=sunos4shr
3069 NON_GNU_CPP=/usr/lib/cpp
3070 ;;
3071 *-sunos4* | *-sunos )
3072 opsys=sunos4-1
3073 NON_GCC_TEST_OPTIONS=-Bstatic
3074 GCC_TEST_OPTIONS=-static
3075 ;;
3076 *-sunos5.3* | *-solaris2.3* )
3077 opsys=sol2-3
3078 NON_GNU_CPP=/usr/ccs/lib/cpp
3079 ;;
3080 *-sunos5.4* | *-solaris2.4* )
3081 opsys=sol2-4
3082 NON_GNU_CPP=/usr/ccs/lib/cpp
3083 RANLIB="ar -ts"
3084 ;;
3085 *-sunos5.5* | *-solaris2.5* )
3086 opsys=sol2-5
3087 NON_GNU_CPP=/usr/ccs/lib/cpp
3088 RANLIB="ar -ts"
3089 ;;
3090 *-sunos5.6* | *-solaris2.6* )
3091 opsys=sol2-6
3092 NON_GNU_CPP=/usr/ccs/lib/cpp
3093 RANLIB="ar -ts"
3094 ;;
3095 *-sunos5* | *-solaris* )
3096 opsys=sol2-6
3097 emacs_check_sunpro_c=yes
3098 NON_GNU_CPP=/usr/ccs/lib/cpp
3099 ;;
3100 * ) opsys=bsd4-2 ;;
3101 esac
3102 ## Watch out for a compiler that we know will not work.
3103 case "${canonical}" in
3104 *-solaris* | *-sunos5* )
3105 if [ "x$CC" = x/usr/ucb/cc ]; then
3106 ## /usr/ucb/cc doesn't work;
3107 ## we should find some other compiler that does work.
3108 unset CC
3109 fi
3110 ;;
3111 *) ;;
3112 esac
3113 ;;
3114 sparc-*-nextstep* )
3115 machine=sparc opsys=nextstep
3116 ;;
3117
3118 ## Tadpole 68k
3119 m68*-tadpole-sysv* )
3120 machine=tad68k opsys=usg5-3
3121 ;;
3122
3123 ## Tahoe machines
3124 tahoe-tahoe-bsd4.2* )
3125 machine=tahoe opsys=bsd4-2
3126 ;;
3127 tahoe-tahoe-bsd4.3* )
3128 machine=tahoe opsys=bsd4-3
3129 ;;
3130
3131 ## Tandem Integrity S2
3132 mips-tandem-sysv* )
3133 machine=tandem-s2 opsys=usg5-3
3134 ;;
3135
3136 ## Tektronix XD88
3137 m88k-tektronix-sysv3* )
3138 machine=tekxd88 opsys=usg5-3
3139 ;;
3140
3141 ## Tektronix 16000 box (6130?)
3142 ns16k-tektronix-bsd* )
3143 machine=ns16000 opsys=bsd4-2
3144 ;;
3145 ## Tektronix 4300
3146 ## src/m/tek4300.h hints that this is a m68k machine.
3147 m68*-tektronix-bsd* )
3148 machine=tek4300 opsys=bsd4-3
3149 ;;
3150
3151 ## Titan P2 or P3
3152 ## We seem to have lost the machine-description file titan.h!
3153 titan-titan-sysv* )
3154 machine=titan opsys=usg5-3
3155 ;;
3156
3157 ## Ustation E30 (SS5E)
3158 m68*-unisys-uniplus* )
3159 machine=ustation opsystem=unipl5-2
3160 ;;
3161
3162 ## Vaxen.
3163 vax-dec-* )
3164 machine=vax
3165 case "${canonical}" in
3166 *-bsd4.1* ) opsys=bsd4-1 ;;
3167 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3168 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3169 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3170 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3171 *-vms* ) opsys=vms ;;
3172 * ) unported=yes
3173 esac
3174 ;;
3175
3176 ## Whitechapel MG1
3177 ns16k-whitechapel-* )
3178 machine=mg1
3179 ## We don't know what sort of OS runs on these; we'll let the
3180 ## operating system guessing code below try.
3181 ;;
3182
3183 ## Wicat
3184 m68*-wicat-sysv* )
3185 machine=wicat opsys=usg5-2
3186 ;;
3187
3188 ## IA-64
3189 ia64*-*-linux* )
3190 machine=ia64 opsys=gnu-linux
3191 ;;
3192
3193 ## Intel 386 machines where we don't care about the manufacturer
3194 i[3456]86-*-* )
3195 machine=intel386
3196 case "${canonical}" in
3197 *-cygwin ) opsys=cygwin ;;
3198 *-darwin* ) opsys=darwin
3199 CPP="${CC-cc} -E -no-cpp-precomp"
3200 ;;
3201 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3202 *-isc2.2* ) opsys=isc2-2 ;;
3203 *-isc4.0* ) opsys=isc4-0 ;;
3204 *-isc4.* ) opsys=isc4-1
3205 GCC_TEST_OPTIONS=-posix
3206 NON_GCC_TEST_OPTIONS=-Xp
3207 ;;
3208 *-isc* ) opsys=isc3-0 ;;
3209 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3210 *-esix* ) opsys=esix ;;
3211 *-xenix* ) opsys=xenix ;;
3212 *-linux-gnu* ) opsys=gnu-linux ;;
3213 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3214 *-sco3.2v5* ) opsys=sco5
3215 NON_GNU_CPP=/lib/cpp
3216 # Prevent -belf from being passed to $CPP.
3217 # /lib/cpp does not accept it.
3218 OVERRIDE_CPPFLAGS=" "
3219 ;;
3220 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3221 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3222 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3223 *-386bsd* ) opsys=386bsd ;;
3224 *-nextstep* ) opsys=nextstep ;;
3225 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3226 esac
3227 ;;
3228
3229 ## m68k Linux-based GNU system
3230 m68k-*-linux-gnu* )
3231 machine=m68k opsys=gnu-linux
3232 ;;
3233
3234 ## Mips Linux-based GNU system
3235 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3236 machine=mips opsys=gnu-linux
3237 ;;
3238
3239 ## UXP/DS
3240 sparc-fujitsu-sysv4* )
3241 machine=sparc opsys=uxpds
3242 NON_GNU_CPP=/usr/ccs/lib/cpp
3243 RANLIB="ar -ts"
3244 ;;
3245
3246 ## UXP/V
3247 f301-fujitsu-uxpv4.1)
3248 machine=f301 opsys=uxpv
3249 ;;
3250
3251 ## AMD x86-64 Linux-based GNU system
3252 x86_64-*-linux-gnu* )
3253 machine=amdx86-64 opsys=gnu-linux
3254 ;;
3255
3256 ## Tensilica Xtensa Linux-based GNU system
3257 xtensa-*-linux-gnu* )
3258 machine=xtensa opsys=gnu-linux
3259 ;;
3260
3261 * )
3262 unported=yes
3263 ;;
3264 esac
3265
3266 ### If the code above didn't choose an operating system, just choose
3267 ### an operating system based on the configuration name. You really
3268 ### only want to use this when you have no idea what the right
3269 ### operating system is; if you know what operating systems a machine
3270 ### runs, it's cleaner to make it explicit in the case statement
3271 ### above.
3272 if test x"${opsys}" = x; then
3273 case "${canonical}" in
3274 *-gnu* ) opsys=gnu ;;
3275 *-bsd4.[01] ) opsys=bsd4-1 ;;
3276 *-bsd4.2 ) opsys=bsd4-2 ;;
3277 *-bsd4.3 ) opsys=bsd4-3 ;;
3278 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3279 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3280 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3281 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3282 *-sysv4.2uw* ) opsys=unixware ;;
3283 *-sysv5uw* ) opsys=unixware ;;
3284 *-sysv5OpenUNIX* ) opsys=unixware ;;
3285 *-sysv4.1* | *-sysvr4.1* )
3286 NON_GNU_CPP=/usr/lib/cpp
3287 opsys=usg5-4 ;;
3288 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3289 if [ x$NON_GNU_CPP = x ]; then
3290 if [ -f /usr/ccs/lib/cpp ]; then
3291 NON_GNU_CPP=/usr/ccs/lib/cpp
3292 else
3293 NON_GNU_CPP=/lib/cpp
3294 fi
3295 fi
3296 opsys=usg5-4-2 ;;
3297 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3298 * )
3299 unported=yes
3300 ;;
3301 esac
3302 fi
3303
3304
3305
3306 if test $unported = yes; then
3307 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3308 Check \`etc/MACHINES' for recognized configuration names." >&5
3309 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3310 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3311 { (exit 1); exit 1; }; }
3312 fi
3313
3314 machfile="m/${machine}.h"
3315 opsysfile="s/${opsys}.h"
3316
3317
3318 #### Choose a compiler.
3319 test -n "$CC" && cc_specified=yes
3320
3321 # Save the value of CFLAGS that the user specified.
3322 SPECIFIED_CFLAGS="$CFLAGS"
3323
3324 case ${with_gcc} in
3325 "yes" ) CC="gcc" GCC=yes ;;
3326 "no" ) : ${CC=cc} ;;
3327 * )
3328 esac
3329 ac_ext=c
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3339 if test "${ac_cv_prog_CC+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 CC=$ac_cv_prog_CC
3363 if test -n "$CC"; then
3364 { echo "$as_me:$LINENO: result: $CC" >&5
3365 echo "${ECHO_T}$CC" >&6; }
3366 else
3367 { echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6; }
3369 fi
3370
3371
3372 fi
3373 if test -z "$ac_cv_prog_CC"; then
3374 ac_ct_CC=$CC
3375 # Extract the first word of "gcc", so it can be a program name with args.
3376 set dummy gcc; ac_word=$2
3377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 if test -n "$ac_ct_CC"; then
3383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392 ac_cv_prog_ac_ct_CC="gcc"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396 done
3397 done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403 if test -n "$ac_ct_CC"; then
3404 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3405 echo "${ECHO_T}$ac_ct_CC" >&6; }
3406 else
3407 { echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6; }
3409 fi
3410
3411 if test "x$ac_ct_CC" = x; then
3412 CC=""
3413 else
3414 case $cross_compiling:$ac_tool_warned in
3415 yes:)
3416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3417 whose name does not start with the host triplet. If you think this
3418 configuration is useful to you, please write to autoconf@gnu.org." >&5
3419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3420 whose name does not start with the host triplet. If you think this
3421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3422 ac_tool_warned=yes ;;
3423 esac
3424 CC=$ac_ct_CC
3425 fi
3426 else
3427 CC="$ac_cv_prog_CC"
3428 fi
3429
3430 if test -z "$CC"; then
3431 if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3433 set dummy ${ac_tool_prefix}cc; ac_word=$2
3434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3436 if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 ac_cv_prog_CC="${ac_tool_prefix}cc"
3450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 break 2
3452 fi
3453 done
3454 done
3455 IFS=$as_save_IFS
3456
3457 fi
3458 fi
3459 CC=$ac_cv_prog_CC
3460 if test -n "$CC"; then
3461 { echo "$as_me:$LINENO: result: $CC" >&5
3462 echo "${ECHO_T}$CC" >&6; }
3463 else
3464 { echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6; }
3466 fi
3467
3468
3469 fi
3470 fi
3471 if test -z "$CC"; then
3472 # Extract the first word of "cc", so it can be a program name with args.
3473 set dummy cc; ac_word=$2
3474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3476 if test "${ac_cv_prog_CC+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479 if test -n "$CC"; then
3480 ac_cv_prog_CC="$CC" # Let the user override the test.
3481 else
3482 ac_prog_rejected=no
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3491 ac_prog_rejected=yes
3492 continue
3493 fi
3494 ac_cv_prog_CC="cc"
3495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498 done
3499 done
3500 IFS=$as_save_IFS
3501
3502 if test $ac_prog_rejected = yes; then
3503 # We found a bogon in the path, so make sure we never use it.
3504 set dummy $ac_cv_prog_CC
3505 shift
3506 if test $# != 0; then
3507 # We chose a different compiler from the bogus one.
3508 # However, it has the same basename, so the bogon will be chosen
3509 # first if we set CC to just the basename; use the full file name.
3510 shift
3511 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3512 fi
3513 fi
3514 fi
3515 fi
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518 { echo "$as_me:$LINENO: result: $CC" >&5
3519 echo "${ECHO_T}$CC" >&6; }
3520 else
3521 { echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6; }
3523 fi
3524
3525
3526 fi
3527 if test -z "$CC"; then
3528 if test -n "$ac_tool_prefix"; then
3529 for ac_prog in cl.exe
3530 do
3531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3535 if test "${ac_cv_prog_CC+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if test -n "$CC"; then
3539 ac_cv_prog_CC="$CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 CC=$ac_cv_prog_CC
3559 if test -n "$CC"; then
3560 { echo "$as_me:$LINENO: result: $CC" >&5
3561 echo "${ECHO_T}$CC" >&6; }
3562 else
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565 fi
3566
3567
3568 test -n "$CC" && break
3569 done
3570 fi
3571 if test -z "$CC"; then
3572 ac_ct_CC=$CC
3573 for ac_prog in cl.exe
3574 do
3575 # Extract the first word of "$ac_prog", so it can be a program name with args.
3576 set dummy $ac_prog; ac_word=$2
3577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_ac_ct_CC="$ac_prog"
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3605 echo "${ECHO_T}$ac_ct_CC" >&6; }
3606 else
3607 { echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6; }
3609 fi
3610
3611
3612 test -n "$ac_ct_CC" && break
3613 done
3614
3615 if test "x$ac_ct_CC" = x; then
3616 CC=""
3617 else
3618 case $cross_compiling:$ac_tool_warned in
3619 yes:)
3620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3621 whose name does not start with the host triplet. If you think this
3622 configuration is useful to you, please write to autoconf@gnu.org." >&5
3623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3624 whose name does not start with the host triplet. If you think this
3625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3626 ac_tool_warned=yes ;;
3627 esac
3628 CC=$ac_ct_CC
3629 fi
3630 fi
3631
3632 fi
3633
3634
3635 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3636 See \`config.log' for more details." >&5
3637 echo "$as_me: error: no acceptable C compiler found in \$PATH
3638 See \`config.log' for more details." >&2;}
3639 { (exit 1); exit 1; }; }
3640
3641 # Provide some information about the compiler.
3642 echo "$as_me:$LINENO: checking for C compiler version" >&5
3643 ac_compiler=`set X $ac_compile; echo $2`
3644 { (ac_try="$ac_compiler --version >&5"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_compiler --version >&5") 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }
3654 { (ac_try="$ac_compiler -v >&5"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_compiler -v >&5") 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }
3664 { (ac_try="$ac_compiler -V >&5"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_compiler -V >&5") 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }
3674
3675 cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h. */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681
3682 int
3683 main ()
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 ac_clean_files_save=$ac_clean_files
3691 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3692 # Try to create an executable without -o first, disregard a.out.
3693 # It will help us diagnose broken compilers, and finding out an intuition
3694 # of exeext.
3695 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3696 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3697 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3698 #
3699 # List of possible output files, starting from the most likely.
3700 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3701 # only as a last resort. b.out is created by i960 compilers.
3702 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3703 #
3704 # The IRIX 6 linker writes into existing files which may not be
3705 # executable, retaining their permissions. Remove them first so a
3706 # subsequent execution test works.
3707 ac_rmfiles=
3708 for ac_file in $ac_files
3709 do
3710 case $ac_file in
3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3712 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3713 esac
3714 done
3715 rm -f $ac_rmfiles
3716
3717 if { (ac_try="$ac_link_default"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_link_default") 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; then
3727 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3728 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3729 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3730 # so that the user can short-circuit this test for compilers unknown to
3731 # Autoconf.
3732 for ac_file in $ac_files ''
3733 do
3734 test -f "$ac_file" || continue
3735 case $ac_file in
3736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3737 ;;
3738 [ab].out )
3739 # We found the default executable, but exeext='' is most
3740 # certainly right.
3741 break;;
3742 *.* )
3743 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3744 then :; else
3745 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3746 fi
3747 # We set ac_cv_exeext here because the later test for it is not
3748 # safe: cross compilers may not add the suffix if given an `-o'
3749 # argument, so we may need to know it at that point already.
3750 # Even if this section looks crufty: it has the advantage of
3751 # actually working.
3752 break;;
3753 * )
3754 break;;
3755 esac
3756 done
3757 test "$ac_cv_exeext" = no && ac_cv_exeext=
3758
3759 else
3760 ac_file=''
3761 fi
3762
3763 { echo "$as_me:$LINENO: result: $ac_file" >&5
3764 echo "${ECHO_T}$ac_file" >&6; }
3765 if test -z "$ac_file"; then
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3770 See \`config.log' for more details." >&5
3771 echo "$as_me: error: C compiler cannot create executables
3772 See \`config.log' for more details." >&2;}
3773 { (exit 77); exit 77; }; }
3774 fi
3775
3776 ac_exeext=$ac_cv_exeext
3777
3778 # Check that the compiler produces executables we can run. If not, either
3779 # the compiler is broken, or we cross compile.
3780 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3783 # If not cross compiling, check that we can run a simple program.
3784 if test "$cross_compiling" != yes; then
3785 if { ac_try='./$ac_file'
3786 { (case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_try") 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; }; then
3795 cross_compiling=no
3796 else
3797 if test "$cross_compiling" = maybe; then
3798 cross_compiling=yes
3799 else
3800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3801 If you meant to cross compile, use \`--host'.
3802 See \`config.log' for more details." >&5
3803 echo "$as_me: error: cannot run C compiled programs.
3804 If you meant to cross compile, use \`--host'.
3805 See \`config.log' for more details." >&2;}
3806 { (exit 1); exit 1; }; }
3807 fi
3808 fi
3809 fi
3810 { echo "$as_me:$LINENO: result: yes" >&5
3811 echo "${ECHO_T}yes" >&6; }
3812
3813 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3814 ac_clean_files=$ac_clean_files_save
3815 # Check that the compiler produces executables we can run. If not, either
3816 # the compiler is broken, or we cross compile.
3817 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3818 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3819 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3820 echo "${ECHO_T}$cross_compiling" >&6; }
3821
3822 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3823 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3824 if { (ac_try="$ac_link"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_link") 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; then
3834 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3835 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3836 # work properly (i.e., refer to `conftest.exe'), while it won't with
3837 # `rm'.
3838 for ac_file in conftest.exe conftest conftest.*; do
3839 test -f "$ac_file" || continue
3840 case $ac_file in
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3842 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843 break;;
3844 * ) break;;
3845 esac
3846 done
3847 else
3848 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3849 See \`config.log' for more details." >&5
3850 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3851 See \`config.log' for more details." >&2;}
3852 { (exit 1); exit 1; }; }
3853 fi
3854
3855 rm -f conftest$ac_cv_exeext
3856 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3857 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3858
3859 rm -f conftest.$ac_ext
3860 EXEEXT=$ac_cv_exeext
3861 ac_exeext=$EXEEXT
3862 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3863 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3864 if test "${ac_cv_objext+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h. */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873
3874 int
3875 main ()
3876 {
3877
3878 ;
3879 return 0;
3880 }
3881 _ACEOF
3882 rm -f conftest.o conftest.obj
3883 if { (ac_try="$ac_compile"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; then
3893 for ac_file in conftest.o conftest.obj conftest.*; do
3894 test -f "$ac_file" || continue;
3895 case $ac_file in
3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3898 break;;
3899 esac
3900 done
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3906 See \`config.log' for more details." >&5
3907 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3908 See \`config.log' for more details." >&2;}
3909 { (exit 1); exit 1; }; }
3910 fi
3911
3912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3913 fi
3914 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3915 echo "${ECHO_T}$ac_cv_objext" >&6; }
3916 OBJEXT=$ac_cv_objext
3917 ac_objext=$OBJEXT
3918 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3919 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3920 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923 cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h. */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929
3930 int
3931 main ()
3932 {
3933 #ifndef __GNUC__
3934 choke me
3935 #endif
3936
3937 ;
3938 return 0;
3939 }
3940 _ACEOF
3941 rm -f conftest.$ac_objext
3942 if { (ac_try="$ac_compile"
3943 case "(($ac_try" in
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3946 esac
3947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3948 (eval "$ac_compile") 2>conftest.er1
3949 ac_status=$?
3950 grep -v '^ *+' conftest.er1 >conftest.err
3951 rm -f conftest.er1
3952 cat conftest.err >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } && {
3955 test -z "$ac_c_werror_flag" ||
3956 test ! -s conftest.err
3957 } && test -s conftest.$ac_objext; then
3958 ac_compiler_gnu=yes
3959 else
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3962
3963 ac_compiler_gnu=no
3964 fi
3965
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3968
3969 fi
3970 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3971 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3972 GCC=`test $ac_compiler_gnu = yes && echo yes`
3973 ac_test_CFLAGS=${CFLAGS+set}
3974 ac_save_CFLAGS=$CFLAGS
3975 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3976 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3977 if test "${ac_cv_prog_cc_g+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 ac_save_c_werror_flag=$ac_c_werror_flag
3981 ac_c_werror_flag=yes
3982 ac_cv_prog_cc_g=no
3983 CFLAGS="-g"
3984 cat >conftest.$ac_ext <<_ACEOF
3985 /* confdefs.h. */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3990
3991 int
3992 main ()
3993 {
3994
3995 ;
3996 return 0;
3997 }
3998 _ACEOF
3999 rm -f conftest.$ac_objext
4000 if { (ac_try="$ac_compile"
4001 case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_compile") 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && {
4013 test -z "$ac_c_werror_flag" ||
4014 test ! -s conftest.err
4015 } && test -s conftest.$ac_objext; then
4016 ac_cv_prog_cc_g=yes
4017 else
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021 CFLAGS=""
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h. */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028
4029 int
4030 main ()
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_compile") 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } && {
4051 test -z "$ac_c_werror_flag" ||
4052 test ! -s conftest.err
4053 } && test -s conftest.$ac_objext; then
4054 :
4055 else
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059 ac_c_werror_flag=$ac_save_c_werror_flag
4060 CFLAGS="-g"
4061 cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h. */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067
4068 int
4069 main ()
4070 {
4071
4072 ;
4073 return 0;
4074 }
4075 _ACEOF
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compile") 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } && {
4090 test -z "$ac_c_werror_flag" ||
4091 test ! -s conftest.err
4092 } && test -s conftest.$ac_objext; then
4093 ac_cv_prog_cc_g=yes
4094 else
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098
4099 fi
4100
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 fi
4103
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 ac_c_werror_flag=$ac_save_c_werror_flag
4109 fi
4110 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4111 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4112 if test "$ac_test_CFLAGS" = set; then
4113 CFLAGS=$ac_save_CFLAGS
4114 elif test $ac_cv_prog_cc_g = yes; then
4115 if test "$GCC" = yes; then
4116 CFLAGS="-g -O2"
4117 else
4118 CFLAGS="-g"
4119 fi
4120 else
4121 if test "$GCC" = yes; then
4122 CFLAGS="-O2"
4123 else
4124 CFLAGS=
4125 fi
4126 fi
4127 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4128 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4129 if test "${ac_cv_prog_cc_c89+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 ac_cv_prog_cc_c89=no
4133 ac_save_CC=$CC
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <stdarg.h>
4141 #include <stdio.h>
4142 #include <sys/types.h>
4143 #include <sys/stat.h>
4144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4145 struct buf { int x; };
4146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4147 static char *e (p, i)
4148 char **p;
4149 int i;
4150 {
4151 return p[i];
4152 }
4153 static char *f (char * (*g) (char **, int), char **p, ...)
4154 {
4155 char *s;
4156 va_list v;
4157 va_start (v,p);
4158 s = g (p, va_arg (v,int));
4159 va_end (v);
4160 return s;
4161 }
4162
4163 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4164 function prototypes and stuff, but not '\xHH' hex character constants.
4165 These don't provoke an error unfortunately, instead are silently treated
4166 as 'x'. The following induces an error, until -std is added to get
4167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4168 array size at least. It's necessary to write '\x00'==0 to get something
4169 that's true only with -std. */
4170 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4171
4172 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4173 inside strings and character constants. */
4174 #define FOO(x) 'x'
4175 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4176
4177 int test (int i, double x);
4178 struct s1 {int (*f) (int a);};
4179 struct s2 {int (*f) (double a);};
4180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4181 int argc;
4182 char **argv;
4183 int
4184 main ()
4185 {
4186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4193 do
4194 CC="$ac_save_CC $ac_arg"
4195 rm -f conftest.$ac_objext
4196 if { (ac_try="$ac_compile"
4197 case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_compile") 2>conftest.er1
4203 ac_status=$?
4204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } && {
4209 test -z "$ac_c_werror_flag" ||
4210 test ! -s conftest.err
4211 } && test -s conftest.$ac_objext; then
4212 ac_cv_prog_cc_c89=$ac_arg
4213 else
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4216
4217
4218 fi
4219
4220 rm -f core conftest.err conftest.$ac_objext
4221 test "x$ac_cv_prog_cc_c89" != "xno" && break
4222 done
4223 rm -f conftest.$ac_ext
4224 CC=$ac_save_CC
4225
4226 fi
4227 # AC_CACHE_VAL
4228 case "x$ac_cv_prog_cc_c89" in
4229 x)
4230 { echo "$as_me:$LINENO: result: none needed" >&5
4231 echo "${ECHO_T}none needed" >&6; } ;;
4232 xno)
4233 { echo "$as_me:$LINENO: result: unsupported" >&5
4234 echo "${ECHO_T}unsupported" >&6; } ;;
4235 *)
4236 CC="$CC $ac_cv_prog_cc_c89"
4237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4238 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4239 esac
4240
4241
4242 ac_ext=c
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248
4249 # On Suns, sometimes $CPP names a directory.
4250 if test -n "$CPP" && test -d "$CPP"; then
4251 CPP=
4252 fi
4253
4254 ## If not using gcc, and on Solaris, and no CPP specified, see if
4255 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4256 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4257 test x"$CPP" = x; then
4258 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4259 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4260
4261 if test "${emacs_cv_sunpro_c+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270
4271 int
4272 main ()
4273 {
4274 #ifndef __SUNPRO_C
4275 fail;
4276 #endif
4277
4278 ;
4279 return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext conftest$ac_exeext
4283 if { (ac_try="$ac_link"
4284 case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_link") 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && {
4296 test -z "$ac_c_werror_flag" ||
4297 test ! -s conftest.err
4298 } && test -s conftest$ac_exeext &&
4299 $as_test_x conftest$ac_exeext; then
4300 emacs_cv_sunpro_c=yes
4301 else
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 emacs_cv_sunpro_c=no
4306 fi
4307
4308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4309 conftest$ac_exeext conftest.$ac_ext
4310 fi
4311
4312 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4313 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4314
4315 if test x"$emacs_cv_sunpro_c" = xyes; then
4316 NON_GNU_CPP="$CC -E -Xs"
4317 fi
4318 fi
4319
4320 #### Some systems specify a CPP to use unless we are using GCC.
4321 #### Now that we know whether we are using GCC, we can decide whether
4322 #### to use that one.
4323 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4324 then
4325 CPP="$NON_GNU_CPP"
4326 fi
4327
4328 #### Some systems specify a CC to use unless we are using GCC.
4329 #### Now that we know whether we are using GCC, we can decide whether
4330 #### to use that one.
4331 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4332 test x$cc_specified != xyes
4333 then
4334 CC="$NON_GNU_CC"
4335 fi
4336
4337 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4338 then
4339 CC="$CC $GCC_TEST_OPTIONS"
4340 fi
4341
4342 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4343 then
4344 CC="$CC $NON_GCC_TEST_OPTIONS"
4345 fi
4346
4347 ac_ext=c
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4353 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4354 # On Suns, sometimes $CPP names a directory.
4355 if test -n "$CPP" && test -d "$CPP"; then
4356 CPP=
4357 fi
4358 if test -z "$CPP"; then
4359 if test "${ac_cv_prog_CPP+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362 # Double quotes because CPP needs to be expanded
4363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4364 do
4365 ac_preproc_ok=false
4366 for ac_c_preproc_warn_flag in '' yes
4367 do
4368 # Use a header file that comes with gcc, so configuring glibc
4369 # with a fresh cross-compiler works.
4370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4371 # <limits.h> exists even on freestanding compilers.
4372 # On the NeXT, cc -E runs the code through the compiler's parser,
4373 # not just through cpp. "Syntax error" is here to catch this case.
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h. */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #ifdef __STDC__
4381 # include <limits.h>
4382 #else
4383 # include <assert.h>
4384 #endif
4385 Syntax error
4386 _ACEOF
4387 if { (ac_try="$ac_cpp conftest.$ac_ext"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } >/dev/null && {
4400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4401 test ! -s conftest.err
4402 }; then
4403 :
4404 else
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 # Broken: fails on valid input.
4409 continue
4410 fi
4411
4412 rm -f conftest.err conftest.$ac_ext
4413
4414 # OK, works on sane cases. Now check whether nonexistent headers
4415 # can be detected and how.
4416 cat >conftest.$ac_ext <<_ACEOF
4417 /* confdefs.h. */
4418 _ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 #include <ac_nonexistent.h>
4423 _ACEOF
4424 if { (ac_try="$ac_cpp conftest.$ac_ext"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } >/dev/null && {
4437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4438 test ! -s conftest.err
4439 }; then
4440 # Broken: success on invalid input.
4441 continue
4442 else
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446 # Passes both tests.
4447 ac_preproc_ok=:
4448 break
4449 fi
4450
4451 rm -f conftest.err conftest.$ac_ext
4452
4453 done
4454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4455 rm -f conftest.err conftest.$ac_ext
4456 if $ac_preproc_ok; then
4457 break
4458 fi
4459
4460 done
4461 ac_cv_prog_CPP=$CPP
4462
4463 fi
4464 CPP=$ac_cv_prog_CPP
4465 else
4466 ac_cv_prog_CPP=$CPP
4467 fi
4468 { echo "$as_me:$LINENO: result: $CPP" >&5
4469 echo "${ECHO_T}$CPP" >&6; }
4470 ac_preproc_ok=false
4471 for ac_c_preproc_warn_flag in '' yes
4472 do
4473 # Use a header file that comes with gcc, so configuring glibc
4474 # with a fresh cross-compiler works.
4475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476 # <limits.h> exists even on freestanding compilers.
4477 # On the NeXT, cc -E runs the code through the compiler's parser,
4478 # not just through cpp. "Syntax error" is here to catch this case.
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 #ifdef __STDC__
4486 # include <limits.h>
4487 #else
4488 # include <assert.h>
4489 #endif
4490 Syntax error
4491 _ACEOF
4492 if { (ac_try="$ac_cpp conftest.$ac_ext"
4493 case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } >/dev/null && {
4505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4506 test ! -s conftest.err
4507 }; then
4508 :
4509 else
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513 # Broken: fails on valid input.
4514 continue
4515 fi
4516
4517 rm -f conftest.err conftest.$ac_ext
4518
4519 # OK, works on sane cases. Now check whether nonexistent headers
4520 # can be detected and how.
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #include <ac_nonexistent.h>
4528 _ACEOF
4529 if { (ac_try="$ac_cpp conftest.$ac_ext"
4530 case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533 esac
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4536 ac_status=$?
4537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } >/dev/null && {
4542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4543 test ! -s conftest.err
4544 }; then
4545 # Broken: success on invalid input.
4546 continue
4547 else
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 # Passes both tests.
4552 ac_preproc_ok=:
4553 break
4554 fi
4555
4556 rm -f conftest.err conftest.$ac_ext
4557
4558 done
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then
4562 :
4563 else
4564 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4565 See \`config.log' for more details." >&5
4566 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4567 See \`config.log' for more details." >&2;}
4568 { (exit 1); exit 1; }; }
4569 fi
4570
4571 ac_ext=c
4572 ac_cpp='$CPP $CPPFLAGS'
4573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576
4577
4578 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4579 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4580 if test "${ac_cv_path_GREP+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 # Extract the first word of "grep ggrep" to use in msg output
4584 if test -z "$GREP"; then
4585 set dummy grep ggrep; ac_prog_name=$2
4586 if test "${ac_cv_path_GREP+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589 ac_path_GREP_found=false
4590 # Loop through the user's path and test for each of PROGNAME-LIST
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_prog in grep ggrep; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4599 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4600 # Check for GNU ac_path_GREP and select it if it is found.
4601 # Check for GNU $ac_path_GREP
4602 case `"$ac_path_GREP" --version 2>&1` in
4603 *GNU*)
4604 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605 *)
4606 ac_count=0
4607 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4608 while :
4609 do
4610 cat "conftest.in" "conftest.in" >"conftest.tmp"
4611 mv "conftest.tmp" "conftest.in"
4612 cp "conftest.in" "conftest.nl"
4613 echo 'GREP' >> "conftest.nl"
4614 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4616 ac_count=`expr $ac_count + 1`
4617 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4618 # Best one so far, save it but keep looking for a better one
4619 ac_cv_path_GREP="$ac_path_GREP"
4620 ac_path_GREP_max=$ac_count
4621 fi
4622 # 10*(2^10) chars as input seems more than enough
4623 test $ac_count -gt 10 && break
4624 done
4625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 esac
4627
4628
4629 $ac_path_GREP_found && break 3
4630 done
4631 done
4632
4633 done
4634 IFS=$as_save_IFS
4635
4636
4637 fi
4638
4639 GREP="$ac_cv_path_GREP"
4640 if test -z "$GREP"; then
4641 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4642 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4643 { (exit 1); exit 1; }; }
4644 fi
4645
4646 else
4647 ac_cv_path_GREP=$GREP
4648 fi
4649
4650
4651 fi
4652 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4653 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4654 GREP="$ac_cv_path_GREP"
4655
4656
4657 { echo "$as_me:$LINENO: checking for egrep" >&5
4658 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4659 if test "${ac_cv_path_EGREP+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4663 then ac_cv_path_EGREP="$GREP -E"
4664 else
4665 # Extract the first word of "egrep" to use in msg output
4666 if test -z "$EGREP"; then
4667 set dummy egrep; ac_prog_name=$2
4668 if test "${ac_cv_path_EGREP+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671 ac_path_EGREP_found=false
4672 # Loop through the user's path and test for each of PROGNAME-LIST
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4675 do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_prog in egrep; do
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4681 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4682 # Check for GNU ac_path_EGREP and select it if it is found.
4683 # Check for GNU $ac_path_EGREP
4684 case `"$ac_path_EGREP" --version 2>&1` in
4685 *GNU*)
4686 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4687 *)
4688 ac_count=0
4689 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4690 while :
4691 do
4692 cat "conftest.in" "conftest.in" >"conftest.tmp"
4693 mv "conftest.tmp" "conftest.in"
4694 cp "conftest.in" "conftest.nl"
4695 echo 'EGREP' >> "conftest.nl"
4696 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698 ac_count=`expr $ac_count + 1`
4699 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4700 # Best one so far, save it but keep looking for a better one
4701 ac_cv_path_EGREP="$ac_path_EGREP"
4702 ac_path_EGREP_max=$ac_count
4703 fi
4704 # 10*(2^10) chars as input seems more than enough
4705 test $ac_count -gt 10 && break
4706 done
4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708 esac
4709
4710
4711 $ac_path_EGREP_found && break 3
4712 done
4713 done
4714
4715 done
4716 IFS=$as_save_IFS
4717
4718
4719 fi
4720
4721 EGREP="$ac_cv_path_EGREP"
4722 if test -z "$EGREP"; then
4723 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4724 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4725 { (exit 1); exit 1; }; }
4726 fi
4727
4728 else
4729 ac_cv_path_EGREP=$EGREP
4730 fi
4731
4732
4733 fi
4734 fi
4735 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4736 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4737 EGREP="$ac_cv_path_EGREP"
4738
4739
4740
4741 { echo "$as_me:$LINENO: checking for AIX" >&5
4742 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 #ifdef _AIX
4750 yes
4751 #endif
4752
4753 _ACEOF
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 $EGREP "yes" >/dev/null 2>&1; then
4756 { echo "$as_me:$LINENO: result: yes" >&5
4757 echo "${ECHO_T}yes" >&6; }
4758 cat >>confdefs.h <<\_ACEOF
4759 #define _ALL_SOURCE 1
4760 _ACEOF
4761
4762 else
4763 { echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; }
4765 fi
4766 rm -f conftest*
4767
4768
4769
4770 cat >>confdefs.h <<\_ACEOF
4771 #define _GNU_SOURCE 1
4772 _ACEOF
4773
4774
4775
4776 ### Use -Wno-pointer-sign if the compiler supports it
4777 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4778 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4779 SAVE_CFLAGS="$CFLAGS"
4780 CFLAGS="$CFLAGS -Wno-pointer-sign"
4781 cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h. */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4787
4788 int
4789 main ()
4790 {
4791
4792 ;
4793 return 0;
4794 }
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (ac_try="$ac_compile"
4798 case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801 esac
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803 (eval "$ac_compile") 2>conftest.er1
4804 ac_status=$?
4805 grep -v '^ *+' conftest.er1 >conftest.err
4806 rm -f conftest.er1
4807 cat conftest.err >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } && {
4810 test -z "$ac_c_werror_flag" ||
4811 test ! -s conftest.err
4812 } && test -s conftest.$ac_objext; then
4813 has_option=yes
4814 else
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4817
4818 has_option=no
4819 fi
4820
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 if test $has_option = yes; then
4823 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4824 fi
4825 { echo "$as_me:$LINENO: result: $has_option" >&5
4826 echo "${ECHO_T}$has_option" >&6; }
4827 CFLAGS="$SAVE_CFLAGS"
4828 unset has_option
4829 unset SAVE_CFLAGS
4830
4831 #### Some other nice autoconf tests.
4832
4833 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4834 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4835 LN_S=$as_ln_s
4836 if test "$LN_S" = "ln -s"; then
4837 { echo "$as_me:$LINENO: result: yes" >&5
4838 echo "${ECHO_T}yes" >&6; }
4839 else
4840 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4841 echo "${ECHO_T}no, using $LN_S" >&6; }
4842 fi
4843
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4850 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4851 # On Suns, sometimes $CPP names a directory.
4852 if test -n "$CPP" && test -d "$CPP"; then
4853 CPP=
4854 fi
4855 if test -z "$CPP"; then
4856 if test "${ac_cv_prog_CPP+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 # Double quotes because CPP needs to be expanded
4860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4861 do
4862 ac_preproc_ok=false
4863 for ac_c_preproc_warn_flag in '' yes
4864 do
4865 # Use a header file that comes with gcc, so configuring glibc
4866 # with a fresh cross-compiler works.
4867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 # <limits.h> exists even on freestanding compilers.
4869 # On the NeXT, cc -E runs the code through the compiler's parser,
4870 # not just through cpp. "Syntax error" is here to catch this case.
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #ifdef __STDC__
4878 # include <limits.h>
4879 #else
4880 # include <assert.h>
4881 #endif
4882 Syntax error
4883 _ACEOF
4884 if { (ac_try="$ac_cpp conftest.$ac_ext"
4885 case "(($ac_try" in
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4888 esac
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } >/dev/null && {
4897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4898 test ! -s conftest.err
4899 }; then
4900 :
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4904
4905 # Broken: fails on valid input.
4906 continue
4907 fi
4908
4909 rm -f conftest.err conftest.$ac_ext
4910
4911 # OK, works on sane cases. Now check whether nonexistent headers
4912 # can be detected and how.
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <ac_nonexistent.h>
4920 _ACEOF
4921 if { (ac_try="$ac_cpp conftest.$ac_ext"
4922 case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925 esac
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } >/dev/null && {
4934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 }; then
4937 # Broken: success on invalid input.
4938 continue
4939 else
4940 echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4942
4943 # Passes both tests.
4944 ac_preproc_ok=:
4945 break
4946 fi
4947
4948 rm -f conftest.err conftest.$ac_ext
4949
4950 done
4951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4952 rm -f conftest.err conftest.$ac_ext
4953 if $ac_preproc_ok; then
4954 break
4955 fi
4956
4957 done
4958 ac_cv_prog_CPP=$CPP
4959
4960 fi
4961 CPP=$ac_cv_prog_CPP
4962 else
4963 ac_cv_prog_CPP=$CPP
4964 fi
4965 { echo "$as_me:$LINENO: result: $CPP" >&5
4966 echo "${ECHO_T}$CPP" >&6; }
4967 ac_preproc_ok=false
4968 for ac_c_preproc_warn_flag in '' yes
4969 do
4970 # Use a header file that comes with gcc, so configuring glibc
4971 # with a fresh cross-compiler works.
4972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4973 # <limits.h> exists even on freestanding compilers.
4974 # On the NeXT, cc -E runs the code through the compiler's parser,
4975 # not just through cpp. "Syntax error" is here to catch this case.
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #ifdef __STDC__
4983 # include <limits.h>
4984 #else
4985 # include <assert.h>
4986 #endif
4987 Syntax error
4988 _ACEOF
4989 if { (ac_try="$ac_cpp conftest.$ac_ext"
4990 case "(($ac_try" in
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4993 esac
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null && {
5002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 }; then
5005 :
5006 else
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010 # Broken: fails on valid input.
5011 continue
5012 fi
5013
5014 rm -f conftest.err conftest.$ac_ext
5015
5016 # OK, works on sane cases. Now check whether nonexistent headers
5017 # can be detected and how.
5018 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 #include <ac_nonexistent.h>
5025 _ACEOF
5026 if { (ac_try="$ac_cpp conftest.$ac_ext"
5027 case "(($ac_try" in
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5030 esac
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5033 ac_status=$?
5034 grep -v '^ *+' conftest.er1 >conftest.err
5035 rm -f conftest.er1
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } >/dev/null && {
5039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5040 test ! -s conftest.err
5041 }; then
5042 # Broken: success on invalid input.
5043 continue
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 # Passes both tests.
5049 ac_preproc_ok=:
5050 break
5051 fi
5052
5053 rm -f conftest.err conftest.$ac_ext
5054
5055 done
5056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5057 rm -f conftest.err conftest.$ac_ext
5058 if $ac_preproc_ok; then
5059 :
5060 else
5061 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5062 See \`config.log' for more details." >&5
5063 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5064 See \`config.log' for more details." >&2;}
5065 { (exit 1); exit 1; }; }
5066 fi
5067
5068 ac_ext=c
5069 ac_cpp='$CPP $CPPFLAGS'
5070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073
5074 # Find a good install program. We prefer a C program (faster),
5075 # so one script is as good as another. But avoid the broken or
5076 # incompatible versions:
5077 # SysV /etc/install, /usr/sbin/install
5078 # SunOS /usr/etc/install
5079 # IRIX /sbin/install
5080 # AIX /bin/install
5081 # AmigaOS /C/install, which installs bootblocks on floppy discs
5082 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5083 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5084 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5085 # OS/2's system install, which has a completely different semantic
5086 # ./install, which can be erroneously created by make from ./install.sh.
5087 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5088 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5089 if test -z "$INSTALL"; then
5090 if test "${ac_cv_path_install+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 # Account for people who put trailing slashes in PATH elements.
5099 case $as_dir/ in
5100 ./ | .// | /cC/* | \
5101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5102 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5103 /usr/ucb/* ) ;;
5104 *)
5105 # OSF1 and SCO ODT 3.0 have their own names for install.
5106 # Don't use installbsd from OSF since it installs stuff as root
5107 # by default.
5108 for ac_prog in ginstall scoinst install; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5111 if test $ac_prog = install &&
5112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5113 # AIX install. It has an incompatible calling convention.
5114 :
5115 elif test $ac_prog = install &&
5116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5117 # program-specific install script used by HP pwplus--don't use.
5118 :
5119 else
5120 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5121 break 3
5122 fi
5123 fi
5124 done
5125 done
5126 ;;
5127 esac
5128 done
5129 IFS=$as_save_IFS
5130
5131
5132 fi
5133 if test "${ac_cv_path_install+set}" = set; then
5134 INSTALL=$ac_cv_path_install
5135 else
5136 # As a last resort, use the slow shell script. Don't cache a
5137 # value for INSTALL within a source directory, because that will
5138 # break other packages using the cache if that directory is
5139 # removed, or if the value is a relative name.
5140 INSTALL=$ac_install_sh
5141 fi
5142 fi
5143 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5144 echo "${ECHO_T}$INSTALL" >&6; }
5145
5146 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5147 # It thinks the first close brace ends the variable substitution.
5148 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5149
5150 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5151
5152 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5153
5154 if test "x$RANLIB" = x; then
5155 if test -n "$ac_tool_prefix"; then
5156 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5157 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5160 if test "${ac_cv_prog_RANLIB+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163 if test -n "$RANLIB"; then
5164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177 done
5178 done
5179 IFS=$as_save_IFS
5180
5181 fi
5182 fi
5183 RANLIB=$ac_cv_prog_RANLIB
5184 if test -n "$RANLIB"; then
5185 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5186 echo "${ECHO_T}$RANLIB" >&6; }
5187 else
5188 { echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6; }
5190 fi
5191
5192
5193 fi
5194 if test -z "$ac_cv_prog_RANLIB"; then
5195 ac_ct_RANLIB=$RANLIB
5196 # Extract the first word of "ranlib", so it can be a program name with args.
5197 set dummy ranlib; ac_word=$2
5198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5200 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 if test -n "$ac_ct_RANLIB"; then
5204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_prog_ac_ct_RANLIB="ranlib"
5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217 done
5218 done
5219 IFS=$as_save_IFS
5220
5221 fi
5222 fi
5223 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5224 if test -n "$ac_ct_RANLIB"; then
5225 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5226 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5227 else
5228 { echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6; }
5230 fi
5231
5232 if test "x$ac_ct_RANLIB" = x; then
5233 RANLIB=":"
5234 else
5235 case $cross_compiling:$ac_tool_warned in
5236 yes:)
5237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5238 whose name does not start with the host triplet. If you think this
5239 configuration is useful to you, please write to autoconf@gnu.org." >&5
5240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5241 whose name does not start with the host triplet. If you think this
5242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5243 ac_tool_warned=yes ;;
5244 esac
5245 RANLIB=$ac_ct_RANLIB
5246 fi
5247 else
5248 RANLIB="$ac_cv_prog_RANLIB"
5249 fi
5250
5251 fi
5252 # Extract the first word of "install-info", so it can be a program name with args.
5253 set dummy install-info; ac_word=$2
5254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5256 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259 case $INSTALL_INFO in
5260 [\\/]* | ?:[\\/]*)
5261 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5262 ;;
5263 *)
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275 done
5276 done
5277 IFS=$as_save_IFS
5278
5279 ;;
5280 esac
5281 fi
5282 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5283 if test -n "$INSTALL_INFO"; then
5284 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5285 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5286 else
5287 { echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6; }
5289 fi
5290
5291
5292 # Extract the first word of "install-info", so it can be a program name with args.
5293 set dummy install-info; ac_word=$2
5294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5296 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299 case $INSTALL_INFO in
5300 [\\/]* | ?:[\\/]*)
5301 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5302 ;;
5303 *)
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in /usr/sbin
5306 do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315 done
5316 done
5317 IFS=$as_save_IFS
5318
5319 ;;
5320 esac
5321 fi
5322 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5323 if test -n "$INSTALL_INFO"; then
5324 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5325 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5326 else
5327 { echo "$as_me:$LINENO: result: no" >&5
5328 echo "${ECHO_T}no" >&6; }
5329 fi
5330
5331
5332 # Extract the first word of "install-info", so it can be a program name with args.
5333 set dummy install-info; ac_word=$2
5334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5336 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 case $INSTALL_INFO in
5340 [\\/]* | ?:[\\/]*)
5341 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5342 ;;
5343 *)
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in /sbin
5346 do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358
5359 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5360 ;;
5361 esac
5362 fi
5363 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5364 if test -n "$INSTALL_INFO"; then
5365 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5366 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5367 else
5368 { echo "$as_me:$LINENO: result: no" >&5
5369 echo "${ECHO_T}no" >&6; }
5370 fi
5371
5372
5373 # Extract the first word of "gzip", so it can be a program name with args.
5374 set dummy gzip; ac_word=$2
5375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5377 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380 case $GZIP_PROG in
5381 [\\/]* | ?:[\\/]*)
5382 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5383 ;;
5384 *)
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5395 fi
5396 done
5397 done
5398 IFS=$as_save_IFS
5399
5400 ;;
5401 esac
5402 fi
5403 GZIP_PROG=$ac_cv_path_GZIP_PROG
5404 if test -n "$GZIP_PROG"; then
5405 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5406 echo "${ECHO_T}$GZIP_PROG" >&6; }
5407 else
5408 { echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6; }
5410 fi
5411
5412
5413
5414
5415 ## Need makeinfo >= 4.6 (?) to build the manuals.
5416 # Extract the first word of "makeinfo", so it can be a program name with args.
5417 set dummy makeinfo; ac_word=$2
5418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5420 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 case $MAKEINFO in
5424 [\\/]* | ?:[\\/]*)
5425 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5426 ;;
5427 *)
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439 done
5440 done
5441 IFS=$as_save_IFS
5442
5443 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5444 ;;
5445 esac
5446 fi
5447 MAKEINFO=$ac_cv_path_MAKEINFO
5448 if test -n "$MAKEINFO"; then
5449 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5450 echo "${ECHO_T}$MAKEINFO" >&6; }
5451 else
5452 { echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6; }
5454 fi
5455
5456
5457 if test "$MAKEINFO" != "no" && \
5458 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
5459 MAKEINFO=no
5460 fi
5461
5462 if test "$MAKEINFO" = "no"; then
5463 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5464 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5465 { (exit 1); exit 1; }; }
5466 fi
5467
5468
5469
5470 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5471 then
5472 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5473 fi
5474
5475 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5476 then
5477 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5478 fi
5479
5480
5481 late_LDFLAGS=$LDFLAGS
5482 if test "$GCC" = yes; then
5483 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5484 else
5485 LDFLAGS="$LDFLAGS -znocombreloc"
5486 fi
5487
5488 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5489 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5490 cat >conftest.$ac_ext <<_ACEOF
5491 main(){return 0;}
5492 _ACEOF
5493 rm -f conftest.$ac_objext conftest$ac_exeext
5494 if { (ac_try="$ac_link"
5495 case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5498 esac
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_link") 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest$ac_exeext &&
5510 $as_test_x conftest$ac_exeext; then
5511 { echo "$as_me:$LINENO: result: yes" >&5
5512 echo "${ECHO_T}yes" >&6; }
5513 else
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 LDFLAGS=$late_LDFLAGS
5518 { echo "$as_me:$LINENO: result: no" >&5
5519 echo "${ECHO_T}no" >&6; }
5520 fi
5521
5522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5523 conftest$ac_exeext conftest.$ac_ext
5524
5525 #### Extract some information from the operating system and machine files.
5526
5527 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5528 - which libraries the lib-src programs will want, and
5529 - whether the GNU malloc routines are usable..." >&5
5530 echo "$as_me: checking the machine- and system-dependent files to find out
5531 - which libraries the lib-src programs will want, and
5532 - whether the GNU malloc routines are usable..." >&6;}
5533
5534 ### First figure out CFLAGS (which we use for running the compiler here)
5535 ### and REAL_CFLAGS (which we use for real compilation).
5536 ### The two are the same except on a few systems, where they are made
5537 ### different to work around various lossages. For example,
5538 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5539 ### as implying static linking.
5540
5541 ### If the CFLAGS env var is specified, we use that value
5542 ### instead of the default.
5543
5544 ### It's not important that this name contain the PID; you can't run
5545 ### two configures in the same directory and have anything work
5546 ### anyway.
5547 tempcname="conftest.c"
5548
5549 echo '
5550 #include "'${srcdir}'/src/'${opsysfile}'"
5551 #include "'${srcdir}'/src/'${machfile}'"
5552 #ifndef LIBS_MACHINE
5553 #define LIBS_MACHINE
5554 #endif
5555 #ifndef LIBS_SYSTEM
5556 #define LIBS_SYSTEM
5557 #endif
5558 #ifndef C_SWITCH_SYSTEM
5559 #define C_SWITCH_SYSTEM
5560 #endif
5561 #ifndef C_SWITCH_MACHINE
5562 #define C_SWITCH_MACHINE
5563 #endif
5564 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5565 configure___ c_switch_system=C_SWITCH_SYSTEM
5566 configure___ c_switch_machine=C_SWITCH_MACHINE
5567
5568 #ifndef LIB_X11_LIB
5569 #define LIB_X11_LIB -lX11
5570 #endif
5571
5572 #ifndef LIBX11_MACHINE
5573 #define LIBX11_MACHINE
5574 #endif
5575
5576 #ifndef LIBX11_SYSTEM
5577 #define LIBX11_SYSTEM
5578 #endif
5579 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5580
5581 #ifdef UNEXEC
5582 configure___ unexec=UNEXEC
5583 #else
5584 configure___ unexec=unexec.o
5585 #endif
5586
5587 #ifdef SYSTEM_MALLOC
5588 configure___ system_malloc=yes
5589 #else
5590 configure___ system_malloc=no
5591 #endif
5592
5593 #ifdef USE_MMAP_FOR_BUFFERS
5594 configure___ use_mmap_for_buffers=yes
5595 #else
5596 configure___ use_mmap_for_buffers=no
5597 #endif
5598
5599 #ifndef C_DEBUG_SWITCH
5600 #define C_DEBUG_SWITCH -g
5601 #endif
5602
5603 #ifndef C_OPTIMIZE_SWITCH
5604 #ifdef __GNUC__
5605 #define C_OPTIMIZE_SWITCH -O2
5606 #else
5607 #define C_OPTIMIZE_SWITCH -O
5608 #endif
5609 #endif
5610
5611 #ifndef C_WARNINGS_SWITCH
5612 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5613 #endif
5614
5615 #ifndef LD_SWITCH_MACHINE
5616 #define LD_SWITCH_MACHINE
5617 #endif
5618
5619 #ifndef LD_SWITCH_SYSTEM
5620 #define LD_SWITCH_SYSTEM
5621 #endif
5622
5623 #ifndef LD_SWITCH_X_SITE_AUX
5624 #define LD_SWITCH_X_SITE_AUX
5625 #endif
5626
5627 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5628 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5629
5630 #ifdef THIS_IS_CONFIGURE
5631
5632 /* Get the CFLAGS for tests in configure. */
5633 #ifdef __GNUC__
5634 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5635 #else
5636 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5637 #endif
5638
5639 #else /* not THIS_IS_CONFIGURE */
5640
5641 /* Get the CFLAGS for real compilation. */
5642 #ifdef __GNUC__
5643 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5644 #else
5645 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5646 #endif
5647
5648 #endif /* not THIS_IS_CONFIGURE */
5649 ' > ${tempcname}
5650
5651 # The value of CPP is a quoted variable reference, so we need to do this
5652 # to get its actual value...
5653 CPP=`eval "echo $CPP"`
5654 eval `${CPP} -Isrc ${tempcname} \
5655 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5656 if test "x$SPECIFIED_CFLAGS" = x; then
5657 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5658 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5659 else
5660 REAL_CFLAGS="$CFLAGS"
5661 fi
5662 rm ${tempcname}
5663
5664 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5665
5666 ### Make sure subsequent tests use flags consistent with the build flags.
5667
5668 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5669 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5670 else
5671 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5672 fi
5673
5674
5675
5676 # Check whether --enable-largefile was given.
5677 if test "${enable_largefile+set}" = set; then
5678 enableval=$enable_largefile;
5679 fi
5680
5681 if test "$enable_largefile" != no; then
5682
5683 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5684 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5685 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688 ac_cv_sys_largefile_CC=no
5689 if test "$GCC" != yes; then
5690 ac_save_CC=$CC
5691 while :; do
5692 # IRIX 6.2 and later do not support large files by default,
5693 # so use the C compiler's -n32 option if that helps.
5694 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h. */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 #include <sys/types.h>
5701 /* Check that off_t can represent 2**63 - 1 correctly.
5702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5703 since some C++ compilers masquerading as C compilers
5704 incorrectly reject 9223372036854775807. */
5705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5707 && LARGE_OFF_T % 2147483647 == 1)
5708 ? 1 : -1];
5709 int
5710 main ()
5711 {
5712
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 break
5735 else
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739
5740 fi
5741
5742 rm -f core conftest.err conftest.$ac_objext
5743 CC="$CC -n32"
5744 rm -f conftest.$ac_objext
5745 if { (ac_try="$ac_compile"
5746 case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compile") 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && {
5758 test -z "$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 } && test -s conftest.$ac_objext; then
5761 ac_cv_sys_largefile_CC=' -n32'; break
5762 else
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5765
5766
5767 fi
5768
5769 rm -f core conftest.err conftest.$ac_objext
5770 break
5771 done
5772 CC=$ac_save_CC
5773 rm -f conftest.$ac_ext
5774 fi
5775 fi
5776 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5777 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5778 if test "$ac_cv_sys_largefile_CC" != no; then
5779 CC=$CC$ac_cv_sys_largefile_CC
5780 fi
5781
5782 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5783 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5784 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 while :; do
5788 cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h. */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794 #include <sys/types.h>
5795 /* Check that off_t can represent 2**63 - 1 correctly.
5796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5797 since some C++ compilers masquerading as C compilers
5798 incorrectly reject 9223372036854775807. */
5799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5801 && LARGE_OFF_T % 2147483647 == 1)
5802 ? 1 : -1];
5803 int
5804 main ()
5805 {
5806
5807 ;
5808 return 0;
5809 }
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (ac_try="$ac_compile"
5813 case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_compile") 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } && {
5825 test -z "$ac_c_werror_flag" ||
5826 test ! -s conftest.err
5827 } && test -s conftest.$ac_objext; then
5828 ac_cv_sys_file_offset_bits=no; break
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833
5834 fi
5835
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 #define _FILE_OFFSET_BITS 64
5844 #include <sys/types.h>
5845 /* Check that off_t can represent 2**63 - 1 correctly.
5846 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5847 since some C++ compilers masquerading as C compilers
5848 incorrectly reject 9223372036854775807. */
5849 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5850 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5851 && LARGE_OFF_T % 2147483647 == 1)
5852 ? 1 : -1];
5853 int
5854 main ()
5855 {
5856
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5863 case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866 esac
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_compile") 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } && {
5875 test -z "$ac_c_werror_flag" ||
5876 test ! -s conftest.err
5877 } && test -s conftest.$ac_objext; then
5878 ac_cv_sys_file_offset_bits=64; break
5879 else
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883
5884 fi
5885
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 ac_cv_sys_file_offset_bits=unknown
5888 break
5889 done
5890 fi
5891 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5892 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5893 case $ac_cv_sys_file_offset_bits in #(
5894 no | unknown) ;;
5895 *)
5896 cat >>confdefs.h <<_ACEOF
5897 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5898 _ACEOF
5899 ;;
5900 esac
5901 rm -f conftest*
5902 if test $ac_cv_sys_file_offset_bits = unknown; then
5903 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5904 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5905 if test "${ac_cv_sys_large_files+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 while :; do
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 #include <sys/types.h>
5916 /* Check that off_t can represent 2**63 - 1 correctly.
5917 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5918 since some C++ compilers masquerading as C compilers
5919 incorrectly reject 9223372036854775807. */
5920 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5921 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5922 && LARGE_OFF_T % 2147483647 == 1)
5923 ? 1 : -1];
5924 int
5925 main ()
5926 {
5927
5928 ;
5929 return 0;
5930 }
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (ac_try="$ac_compile"
5934 case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compile") 2>conftest.er1
5940 ac_status=$?
5941 grep -v '^ *+' conftest.er1 >conftest.err
5942 rm -f conftest.er1
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } && {
5946 test -z "$ac_c_werror_flag" ||
5947 test ! -s conftest.err
5948 } && test -s conftest.$ac_objext; then
5949 ac_cv_sys_large_files=no; break
5950 else
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954
5955 fi
5956
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h. */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #define _LARGE_FILES 1
5965 #include <sys/types.h>
5966 /* Check that off_t can represent 2**63 - 1 correctly.
5967 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5968 since some C++ compilers masquerading as C compilers
5969 incorrectly reject 9223372036854775807. */
5970 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5971 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5972 && LARGE_OFF_T % 2147483647 == 1)
5973 ? 1 : -1];
5974 int
5975 main ()
5976 {
5977
5978 ;
5979 return 0;
5980 }
5981 _ACEOF
5982 rm -f conftest.$ac_objext
5983 if { (ac_try="$ac_compile"
5984 case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_compile") 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && {
5996 test -z "$ac_c_werror_flag" ||
5997 test ! -s conftest.err
5998 } && test -s conftest.$ac_objext; then
5999 ac_cv_sys_large_files=1; break
6000 else
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6003
6004
6005 fi
6006
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 ac_cv_sys_large_files=unknown
6009 break
6010 done
6011 fi
6012 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6013 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6014 case $ac_cv_sys_large_files in #(
6015 no | unknown) ;;
6016 *)
6017 cat >>confdefs.h <<_ACEOF
6018 #define _LARGE_FILES $ac_cv_sys_large_files
6019 _ACEOF
6020 ;;
6021 esac
6022 rm -f conftest*
6023 fi
6024 fi
6025
6026
6027
6028 ### The standard library on x86-64 GNU/Linux distributions can
6029 ### be located in either /usr/lib64 or /usr/lib.
6030 case "${canonical}" in
6031 x86_64-*-linux-gnu* )
6032 if test -d /usr/lib64; then
6033
6034 cat >>confdefs.h <<\_ACEOF
6035 #define HAVE_X86_64_LIB64_DIR 1
6036 _ACEOF
6037
6038 fi
6039 esac
6040
6041
6042
6043
6044 if test "${with_sound}" != "no"; then
6045 # Sound support for GNU/Linux and the free BSDs.
6046 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6047 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6048 if test "${ac_cv_header_stdc+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #include <stdlib.h>
6058 #include <stdarg.h>
6059 #include <string.h>
6060 #include <float.h>
6061
6062 int
6063 main ()
6064 {
6065
6066 ;
6067 return 0;
6068 }
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6072 case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compile") 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } && {
6084 test -z "$ac_c_werror_flag" ||
6085 test ! -s conftest.err
6086 } && test -s conftest.$ac_objext; then
6087 ac_cv_header_stdc=yes
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 ac_cv_header_stdc=no
6093 fi
6094
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096
6097 if test $ac_cv_header_stdc = yes; then
6098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <string.h>
6106
6107 _ACEOF
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109 $EGREP "memchr" >/dev/null 2>&1; then
6110 :
6111 else
6112 ac_cv_header_stdc=no
6113 fi
6114 rm -f conftest*
6115
6116 fi
6117
6118 if test $ac_cv_header_stdc = yes; then
6119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 #include <stdlib.h>
6127
6128 _ACEOF
6129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130 $EGREP "free" >/dev/null 2>&1; then
6131 :
6132 else
6133 ac_cv_header_stdc=no
6134 fi
6135 rm -f conftest*
6136
6137 fi
6138
6139 if test $ac_cv_header_stdc = yes; then
6140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6141 if test "$cross_compiling" = yes; then
6142 :
6143 else
6144 cat >conftest.$ac_ext <<_ACEOF
6145 /* confdefs.h. */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150 #include <ctype.h>
6151 #include <stdlib.h>
6152 #if ((' ' & 0x0FF) == 0x020)
6153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6155 #else
6156 # define ISLOWER(c) \
6157 (('a' <= (c) && (c) <= 'i') \
6158 || ('j' <= (c) && (c) <= 'r') \
6159 || ('s' <= (c) && (c) <= 'z'))
6160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6161 #endif
6162
6163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6164 int
6165 main ()
6166 {
6167 int i;
6168 for (i = 0; i < 256; i++)
6169 if (XOR (islower (i), ISLOWER (i))
6170 || toupper (i) != TOUPPER (i))
6171 return 2;
6172 return 0;
6173 }
6174 _ACEOF
6175 rm -f conftest$ac_exeext
6176 if { (ac_try="$ac_link"
6177 case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_link") 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6186 { (case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_try") 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 :
6196 else
6197 echo "$as_me: program exited with status $ac_status" >&5
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 ( exit $ac_status )
6202 ac_cv_header_stdc=no
6203 fi
6204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6205 fi
6206
6207
6208 fi
6209 fi
6210 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6211 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6212 if test $ac_cv_header_stdc = yes; then
6213
6214 cat >>confdefs.h <<\_ACEOF
6215 #define STDC_HEADERS 1
6216 _ACEOF
6217
6218 fi
6219
6220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6231 inttypes.h stdint.h unistd.h
6232 do
6233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h. */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 $ac_includes_default
6246
6247 #include <$ac_header>
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 eval "$as_ac_Header=yes"
6267 else
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6270
6271 eval "$as_ac_Header=no"
6272 fi
6273
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 fi
6276 ac_res=`eval echo '${'$as_ac_Header'}'`
6277 { echo "$as_me:$LINENO: result: $ac_res" >&5
6278 echo "${ECHO_T}$ac_res" >&6; }
6279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6280 cat >>confdefs.h <<_ACEOF
6281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6282 _ACEOF
6283
6284 fi
6285
6286 done
6287
6288
6289
6290
6291
6292 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6293 do
6294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 fi
6301 ac_res=`eval echo '${'$as_ac_Header'}'`
6302 { echo "$as_me:$LINENO: result: $ac_res" >&5
6303 echo "${ECHO_T}$ac_res" >&6; }
6304 else
6305 # Is the header compilable?
6306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6308 cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h. */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 $ac_includes_default
6315 #include <$ac_header>
6316 _ACEOF
6317 rm -f conftest.$ac_objext
6318 if { (ac_try="$ac_compile"
6319 case "(($ac_try" in
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6322 esac
6323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324 (eval "$ac_compile") 2>conftest.er1
6325 ac_status=$?
6326 grep -v '^ *+' conftest.er1 >conftest.err
6327 rm -f conftest.er1
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } && {
6331 test -z "$ac_c_werror_flag" ||
6332 test ! -s conftest.err
6333 } && test -s conftest.$ac_objext; then
6334 ac_header_compiler=yes
6335 else
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 ac_header_compiler=no
6340 fi
6341
6342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6344 echo "${ECHO_T}$ac_header_compiler" >&6; }
6345
6346 # Is the header present?
6347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #include <$ac_header>
6356 _ACEOF
6357 if { (ac_try="$ac_cpp conftest.$ac_ext"
6358 case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361 esac
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6364 ac_status=$?
6365 grep -v '^ *+' conftest.er1 >conftest.err
6366 rm -f conftest.er1
6367 cat conftest.err >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } >/dev/null && {
6370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6371 test ! -s conftest.err
6372 }; then
6373 ac_header_preproc=yes
6374 else
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378 ac_header_preproc=no
6379 fi
6380
6381 rm -f conftest.err conftest.$ac_ext
6382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6383 echo "${ECHO_T}$ac_header_preproc" >&6; }
6384
6385 # So? What about this header?
6386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6387 yes:no: )
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6392 ac_header_preproc=yes
6393 ;;
6394 no:yes:* )
6395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6407
6408 ;;
6409 esac
6410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415 eval "$as_ac_Header=\$ac_header_preproc"
6416 fi
6417 ac_res=`eval echo '${'$as_ac_Header'}'`
6418 { echo "$as_me:$LINENO: result: $ac_res" >&5
6419 echo "${ECHO_T}$ac_res" >&6; }
6420
6421 fi
6422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423 cat >>confdefs.h <<_ACEOF
6424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6425 _ACEOF
6426
6427 fi
6428
6429 done
6430
6431 # Emulation library used on NetBSD.
6432 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6433 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6434 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437 ac_check_lib_save_LIBS=$LIBS
6438 LIBS="-lossaudio $LIBS"
6439 cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h. */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445
6446 /* Override any GCC internal prototype to avoid an error.
6447 Use char because int might match the return type of a GCC
6448 builtin and then its argument prototype would still apply. */
6449 #ifdef __cplusplus
6450 extern "C"
6451 #endif
6452 char _oss_ioctl ();
6453 int
6454 main ()
6455 {
6456 return _oss_ioctl ();
6457 ;
6458 return 0;
6459 }
6460 _ACEOF
6461 rm -f conftest.$ac_objext conftest$ac_exeext
6462 if { (ac_try="$ac_link"
6463 case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_link") 2>conftest.er1
6469 ac_status=$?
6470 grep -v '^ *+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } && {
6475 test -z "$ac_c_werror_flag" ||
6476 test ! -s conftest.err
6477 } && test -s conftest$ac_exeext &&
6478 $as_test_x conftest$ac_exeext; then
6479 ac_cv_lib_ossaudio__oss_ioctl=yes
6480 else
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 ac_cv_lib_ossaudio__oss_ioctl=no
6485 fi
6486
6487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6488 conftest$ac_exeext conftest.$ac_ext
6489 LIBS=$ac_check_lib_save_LIBS
6490 fi
6491 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6492 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6493 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6494 LIBSOUND=-lossaudio
6495 else
6496 LIBSOUND=
6497 fi
6498
6499
6500
6501 ALSA_REQUIRED=1.0.0
6502 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6503 if test "X${with_pkg_config_prog}" != X; then
6504 PKG_CONFIG="${with_pkg_config_prog}"
6505 fi
6506
6507 succeeded=no
6508
6509 if test -z "$PKG_CONFIG"; then
6510 # Extract the first word of "pkg-config", so it can be a program name with args.
6511 set dummy pkg-config; ac_word=$2
6512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517 case $PKG_CONFIG in
6518 [\\/]* | ?:[\\/]*)
6519 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6520 ;;
6521 *)
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6532 fi
6533 done
6534 done
6535 IFS=$as_save_IFS
6536
6537 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6538 ;;
6539 esac
6540 fi
6541 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6542 if test -n "$PKG_CONFIG"; then
6543 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6544 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6545 else
6546 { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6548 fi
6549
6550
6551 fi
6552
6553 if test "$PKG_CONFIG" = "no" ; then
6554 HAVE_ALSA=no
6555 else
6556 PKG_CONFIG_MIN_VERSION=0.9.0
6557 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6558 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6559 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6560
6561 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6562 { echo "$as_me:$LINENO: result: yes" >&5
6563 echo "${ECHO_T}yes" >&6; }
6564 succeeded=yes
6565
6566 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6567 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6568 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6569 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6570 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6571
6572 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6573 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6574 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6575 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6576 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6577 else
6578 { echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6; }
6580 ALSA_CFLAGS=""
6581 ALSA_LIBS=""
6582 ## If we have a custom action on failure, don't print errors, but
6583 ## do set a variable so people can do so.
6584 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6585
6586 fi
6587
6588
6589
6590 else
6591 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6592 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6593 fi
6594 fi
6595
6596 if test $succeeded = yes; then
6597 HAVE_ALSA=yes
6598 else
6599 HAVE_ALSA=no
6600 fi
6601
6602 if test $HAVE_ALSA = yes; then
6603 SAVE_CFLAGS="$CFLAGS"
6604 SAVE_LDFLAGS="$LDFLAGS"
6605 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6606 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h. */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 #include <asoundlib.h>
6614 int
6615 main ()
6616 {
6617 snd_lib_error_set_handler (0);
6618 ;
6619 return 0;
6620 }
6621 _ACEOF
6622 rm -f conftest.$ac_objext
6623 if { (ac_try="$ac_compile"
6624 case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627 esac
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_compile") 2>conftest.er1
6630 ac_status=$?
6631 grep -v '^ *+' conftest.er1 >conftest.err
6632 rm -f conftest.er1
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && {
6636 test -z "$ac_c_werror_flag" ||
6637 test ! -s conftest.err
6638 } && test -s conftest.$ac_objext; then
6639 emacs_alsa_normal=yes
6640 else
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644 emacs_alsa_normal=no
6645 fi
6646
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 if test "$emacs_alsa_normal" != yes; then
6649 cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h. */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 #include <alsa/asoundlib.h>
6656 int
6657 main ()
6658 {
6659 snd_lib_error_set_handler (0);
6660 ;
6661 return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (ac_try="$ac_compile"
6666 case "(($ac_try" in
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6669 esac
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_compile") 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } && {
6678 test -z "$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 } && test -s conftest.$ac_objext; then
6681 emacs_alsa_subdir=yes
6682 else
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686 emacs_alsa_subdir=no
6687 fi
6688
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 if test "$emacs_alsa_subdir" != yes; then
6691 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6692 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6693 { (exit 1); exit 1; }; }
6694 fi
6695 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6696 fi
6697
6698 CFLAGS="$SAVE_CFLAGS"
6699 LDFLAGS="$SAVE_LDFLAGS"
6700 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6701 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6702
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_ALSA 1
6705 _ACEOF
6706
6707 fi
6708
6709 fi
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6737 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6738 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6739 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6740 sys/utsname.h pwd.h
6741 do
6742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 fi
6749 ac_res=`eval echo '${'$as_ac_Header'}'`
6750 { echo "$as_me:$LINENO: result: $ac_res" >&5
6751 echo "${ECHO_T}$ac_res" >&6; }
6752 else
6753 # Is the header compilable?
6754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6763 #include <$ac_header>
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (ac_try="$ac_compile"
6767 case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6770 esac
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772 (eval "$ac_compile") 2>conftest.er1
6773 ac_status=$?
6774 grep -v '^ *+' conftest.er1 >conftest.err
6775 rm -f conftest.er1
6776 cat conftest.err >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && {
6779 test -z "$ac_c_werror_flag" ||
6780 test ! -s conftest.err
6781 } && test -s conftest.$ac_objext; then
6782 ac_header_compiler=yes
6783 else
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6786
6787 ac_header_compiler=no
6788 fi
6789
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6792 echo "${ECHO_T}$ac_header_compiler" >&6; }
6793
6794 # Is the header present?
6795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h. */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 #include <$ac_header>
6804 _ACEOF
6805 if { (ac_try="$ac_cpp conftest.$ac_ext"
6806 case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809 esac
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } >/dev/null && {
6818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 }; then
6821 ac_header_preproc=yes
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 ac_header_preproc=no
6827 fi
6828
6829 rm -f conftest.err conftest.$ac_ext
6830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6831 echo "${ECHO_T}$ac_header_preproc" >&6; }
6832
6833 # So? What about this header?
6834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6835 yes:no: )
6836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6840 ac_header_preproc=yes
6841 ;;
6842 no:yes:* )
6843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6855
6856 ;;
6857 esac
6858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863 eval "$as_ac_Header=\$ac_header_preproc"
6864 fi
6865 ac_res=`eval echo '${'$as_ac_Header'}'`
6866 { echo "$as_me:$LINENO: result: $ac_res" >&5
6867 echo "${ECHO_T}$ac_res" >&6; }
6868
6869 fi
6870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6871 cat >>confdefs.h <<_ACEOF
6872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6873 _ACEOF
6874
6875 fi
6876
6877 done
6878
6879
6880 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6881 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6882 cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 #include <sys/personality.h>
6889 int
6890 main ()
6891 {
6892 personality (PER_LINUX32)
6893 ;
6894 return 0;
6895 }
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (ac_try="$ac_compile"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.$ac_objext; then
6914 emacs_cv_personality_linux32=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6918
6919 emacs_cv_personality_linux32=no
6920 fi
6921
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6924 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6925
6926 if test $emacs_cv_personality_linux32 = yes; then
6927
6928 cat >>confdefs.h <<\_ACEOF
6929 #define HAVE_PERSONALITY_LINUX32 1
6930 _ACEOF
6931
6932 fi
6933
6934
6935 for ac_header in term.h
6936 do
6937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 #include <$ac_header>
6950 _ACEOF
6951 if { (ac_try="$ac_cpp conftest.$ac_ext"
6952 case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955 esac
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } >/dev/null && {
6964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 }; then
6967 eval "$as_ac_Header=yes"
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 eval "$as_ac_Header=no"
6973 fi
6974
6975 rm -f conftest.err conftest.$ac_ext
6976 fi
6977 ac_res=`eval echo '${'$as_ac_Header'}'`
6978 { echo "$as_me:$LINENO: result: $ac_res" >&5
6979 echo "${ECHO_T}$ac_res" >&6; }
6980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6981 cat >>confdefs.h <<_ACEOF
6982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6983 _ACEOF
6984
6985 fi
6986
6987 done
6988
6989 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6990 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6991 if test "${ac_cv_header_stdc+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 #include <stdlib.h>
7001 #include <stdarg.h>
7002 #include <string.h>
7003 #include <float.h>
7004
7005 int
7006 main ()
7007 {
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 rm -f conftest.$ac_objext
7014 if { (ac_try="$ac_compile"
7015 case "(($ac_try" in
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7018 esac
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020 (eval "$ac_compile") 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && {
7027 test -z "$ac_c_werror_flag" ||
7028 test ! -s conftest.err
7029 } && test -s conftest.$ac_objext; then
7030 ac_cv_header_stdc=yes
7031 else
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035 ac_cv_header_stdc=no
7036 fi
7037
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039
7040 if test $ac_cv_header_stdc = yes; then
7041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7042 cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h. */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 #include <string.h>
7049
7050 _ACEOF
7051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052 $EGREP "memchr" >/dev/null 2>&1; then
7053 :
7054 else
7055 ac_cv_header_stdc=no
7056 fi
7057 rm -f conftest*
7058
7059 fi
7060
7061 if test $ac_cv_header_stdc = yes; then
7062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7063 cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h. */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 #include <stdlib.h>
7070
7071 _ACEOF
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "free" >/dev/null 2>&1; then
7074 :
7075 else
7076 ac_cv_header_stdc=no
7077 fi
7078 rm -f conftest*
7079
7080 fi
7081
7082 if test $ac_cv_header_stdc = yes; then
7083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7084 if test "$cross_compiling" = yes; then
7085 :
7086 else
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 #include <ctype.h>
7094 #include <stdlib.h>
7095 #if ((' ' & 0x0FF) == 0x020)
7096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7098 #else
7099 # define ISLOWER(c) \
7100 (('a' <= (c) && (c) <= 'i') \
7101 || ('j' <= (c) && (c) <= 'r') \
7102 || ('s' <= (c) && (c) <= 'z'))
7103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7104 #endif
7105
7106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7107 int
7108 main ()
7109 {
7110 int i;
7111 for (i = 0; i < 256; i++)
7112 if (XOR (islower (i), ISLOWER (i))
7113 || toupper (i) != TOUPPER (i))
7114 return 2;
7115 return 0;
7116 }
7117 _ACEOF
7118 rm -f conftest$ac_exeext
7119 if { (ac_try="$ac_link"
7120 case "(($ac_try" in
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7123 esac
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_link") 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7129 { (case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132 esac
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_try") 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 :
7139 else
7140 echo "$as_me: program exited with status $ac_status" >&5
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7143
7144 ( exit $ac_status )
7145 ac_cv_header_stdc=no
7146 fi
7147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7148 fi
7149
7150
7151 fi
7152 fi
7153 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7154 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7155 if test $ac_cv_header_stdc = yes; then
7156
7157 cat >>confdefs.h <<\_ACEOF
7158 #define STDC_HEADERS 1
7159 _ACEOF
7160
7161 fi
7162
7163 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7164 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7165 if test "${ac_cv_header_time+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 #include <sys/types.h>
7175 #include <sys/time.h>
7176 #include <time.h>
7177
7178 int
7179 main ()
7180 {
7181 if ((struct tm *) 0)
7182 return 0;
7183 ;
7184 return 0;
7185 }
7186 _ACEOF
7187 rm -f conftest.$ac_objext
7188 if { (ac_try="$ac_compile"
7189 case "(($ac_try" in
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7192 esac
7193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194 (eval "$ac_compile") 2>conftest.er1
7195 ac_status=$?
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest.$ac_objext; then
7204 ac_cv_header_time=yes
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7208
7209 ac_cv_header_time=no
7210 fi
7211
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213 fi
7214 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7215 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7216 if test $ac_cv_header_time = yes; then
7217
7218 cat >>confdefs.h <<\_ACEOF
7219 #define TIME_WITH_SYS_TIME 1
7220 _ACEOF
7221
7222 fi
7223
7224 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7225 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7226 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h. */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7235 $ac_includes_default
7236 int
7237 main ()
7238 {
7239 #ifndef sys_siglist
7240 (void) sys_siglist;
7241 #endif
7242
7243 ;
7244 return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.$ac_objext; then
7264 ac_cv_have_decl_sys_siglist=yes
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_cv_have_decl_sys_siglist=no
7270 fi
7271
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 fi
7274 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7275 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7276 if test $ac_cv_have_decl_sys_siglist = yes; then
7277
7278 cat >>confdefs.h <<_ACEOF
7279 #define HAVE_DECL_SYS_SIGLIST 1
7280 _ACEOF
7281
7282
7283 else
7284 cat >>confdefs.h <<_ACEOF
7285 #define HAVE_DECL_SYS_SIGLIST 0
7286 _ACEOF
7287
7288
7289 fi
7290
7291
7292 if test $ac_cv_have_decl_sys_siglist != yes; then
7293 # For Tru64, at least:
7294 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7295 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7296 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 $ac_includes_default
7306 int
7307 main ()
7308 {
7309 #ifndef __sys_siglist
7310 (void) __sys_siglist;
7311 #endif
7312
7313 ;
7314 return 0;
7315 }
7316 _ACEOF
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7319 case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7322 esac
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.$ac_objext; then
7334 ac_cv_have_decl___sys_siglist=yes
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7338
7339 ac_cv_have_decl___sys_siglist=no
7340 fi
7341
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 fi
7344 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7345 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7346 if test $ac_cv_have_decl___sys_siglist = yes; then
7347
7348 cat >>confdefs.h <<_ACEOF
7349 #define HAVE_DECL___SYS_SIGLIST 1
7350 _ACEOF
7351
7352
7353 else
7354 cat >>confdefs.h <<_ACEOF
7355 #define HAVE_DECL___SYS_SIGLIST 0
7356 _ACEOF
7357
7358
7359 fi
7360
7361
7362 if test $ac_cv_have_decl___sys_siglist = yes; then
7363
7364 cat >>confdefs.h <<\_ACEOF
7365 #define sys_siglist __sys_siglist
7366 _ACEOF
7367
7368 fi
7369 fi
7370 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7371 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7372 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h. */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7381 #include <sys/types.h>
7382 #include <sys/wait.h>
7383 #ifndef WEXITSTATUS
7384 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7385 #endif
7386 #ifndef WIFEXITED
7387 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7388 #endif
7389
7390 int
7391 main ()
7392 {
7393 int s;
7394 wait (&s);
7395 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7396 ;
7397 return 0;
7398 }
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_cv_header_sys_wait_h=yes
7418 else
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422 ac_cv_header_sys_wait_h=no
7423 fi
7424
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 fi
7427 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7428 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7429 if test $ac_cv_header_sys_wait_h = yes; then
7430
7431 cat >>confdefs.h <<\_ACEOF
7432 #define HAVE_SYS_WAIT_H 1
7433 _ACEOF
7434
7435 fi
7436
7437
7438 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7439 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7440 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 #ifdef TIME_WITH_SYS_TIME
7450 #include <sys/time.h>
7451 #include <time.h>
7452 #else
7453 #ifdef HAVE_SYS_TIME_H
7454 #include <sys/time.h>
7455 #else
7456 #include <time.h>
7457 #endif
7458 #endif
7459 #ifdef HAVE_UTIME_H
7460 #include <utime.h>
7461 #endif
7462 int
7463 main ()
7464 {
7465 static struct utimbuf x; x.actime = x.modtime;
7466 ;
7467 return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest.$ac_objext
7471 if { (ac_try="$ac_compile"
7472 case "(($ac_try" in
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7475 esac
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_compile") 2>conftest.er1
7478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest.$ac_objext; then
7487 emacs_cv_struct_utimbuf=yes
7488 else
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7491
7492 emacs_cv_struct_utimbuf=no
7493 fi
7494
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 fi
7497 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7498 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7499 if test $emacs_cv_struct_utimbuf = yes; then
7500
7501 cat >>confdefs.h <<\_ACEOF
7502 #define HAVE_STRUCT_UTIMBUF 1
7503 _ACEOF
7504
7505 fi
7506
7507 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7508 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7509 if test "${ac_cv_type_signal+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h. */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 #include <sys/types.h>
7519 #include <signal.h>
7520
7521 int
7522 main ()
7523 {
7524 return *(signal (0, 0)) (0) == 1;
7525 ;
7526 return 0;
7527 }
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7531 case "(($ac_try" in
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7534 esac
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_compile") 2>conftest.er1
7537 ac_status=$?
7538 grep -v '^ *+' conftest.er1 >conftest.err
7539 rm -f conftest.er1
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest.$ac_objext; then
7546 ac_cv_type_signal=int
7547 else
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7550
7551 ac_cv_type_signal=void
7552 fi
7553
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555 fi
7556 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7557 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7558
7559 cat >>confdefs.h <<_ACEOF
7560 #define RETSIGTYPE $ac_cv_type_signal
7561 _ACEOF
7562
7563
7564
7565 { echo "$as_me:$LINENO: checking for speed_t" >&5
7566 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7567 if test "${emacs_cv_speed_t+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h. */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7576 #include <termios.h>
7577 int
7578 main ()
7579 {
7580 speed_t x = 1;
7581 ;
7582 return 0;
7583 }
7584 _ACEOF
7585 rm -f conftest.$ac_objext
7586 if { (ac_try="$ac_compile"
7587 case "(($ac_try" in
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7590 esac
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592 (eval "$ac_compile") 2>conftest.er1
7593 ac_status=$?
7594 grep -v '^ *+' conftest.er1 >conftest.err
7595 rm -f conftest.er1
7596 cat conftest.err >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest.$ac_objext; then
7602 emacs_cv_speed_t=yes
7603 else
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7606
7607 emacs_cv_speed_t=no
7608 fi
7609
7610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611 fi
7612 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7613 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7614 if test $emacs_cv_speed_t = yes; then
7615
7616 cat >>confdefs.h <<\_ACEOF
7617 #define HAVE_SPEED_T 1
7618 _ACEOF
7619
7620 fi
7621
7622 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7623 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7624 if test "${emacs_cv_struct_timeval+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 #ifdef TIME_WITH_SYS_TIME
7634 #include <sys/time.h>
7635 #include <time.h>
7636 #else
7637 #ifdef HAVE_SYS_TIME_H
7638 #include <sys/time.h>
7639 #else
7640 #include <time.h>
7641 #endif
7642 #endif
7643 int
7644 main ()
7645 {
7646 static struct timeval x; x.tv_sec = x.tv_usec;
7647 ;
7648 return 0;
7649 }
7650 _ACEOF
7651 rm -f conftest.$ac_objext
7652 if { (ac_try="$ac_compile"
7653 case "(($ac_try" in
7654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655 *) ac_try_echo=$ac_try;;
7656 esac
7657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7658 (eval "$ac_compile") 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } && {
7665 test -z "$ac_c_werror_flag" ||
7666 test ! -s conftest.err
7667 } && test -s conftest.$ac_objext; then
7668 emacs_cv_struct_timeval=yes
7669 else
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 emacs_cv_struct_timeval=no
7674 fi
7675
7676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677 fi
7678 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7679 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7680 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7681 if test $emacs_cv_struct_timeval = yes; then
7682
7683 cat >>confdefs.h <<\_ACEOF
7684 #define HAVE_TIMEVAL 1
7685 _ACEOF
7686
7687 fi
7688
7689 { echo "$as_me:$LINENO: checking for struct exception" >&5
7690 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7691 if test "${emacs_cv_struct_exception+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694 cat >conftest.$ac_ext <<_ACEOF
7695 /* confdefs.h. */
7696 _ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h. */
7700 #include <math.h>
7701 int
7702 main ()
7703 {
7704 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7705 ;
7706 return 0;
7707 }
7708 _ACEOF
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7711 case "(($ac_try" in
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7714 esac
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716 (eval "$ac_compile") 2>conftest.er1
7717 ac_status=$?
7718 grep -v '^ *+' conftest.er1 >conftest.err
7719 rm -f conftest.er1
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } && {
7723 test -z "$ac_c_werror_flag" ||
7724 test ! -s conftest.err
7725 } && test -s conftest.$ac_objext; then
7726 emacs_cv_struct_exception=yes
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7730
7731 emacs_cv_struct_exception=no
7732 fi
7733
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735 fi
7736 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7737 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7738 HAVE_EXCEPTION=$emacs_cv_struct_exception
7739 if test $emacs_cv_struct_exception != yes; then
7740
7741 cat >>confdefs.h <<\_ACEOF
7742 #define NO_MATHERR 1
7743 _ACEOF
7744
7745 fi
7746
7747
7748 for ac_header in sys/socket.h
7749 do
7750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 fi
7757 ac_res=`eval echo '${'$as_ac_Header'}'`
7758 { echo "$as_me:$LINENO: result: $ac_res" >&5
7759 echo "${ECHO_T}$ac_res" >&6; }
7760 else
7761 # Is the header compilable?
7762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h. */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 $ac_includes_default
7771 #include <$ac_header>
7772 _ACEOF
7773 rm -f conftest.$ac_objext
7774 if { (ac_try="$ac_compile"
7775 case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7778 esac
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_compile") 2>conftest.er1
7781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.$ac_objext; then
7790 ac_header_compiler=yes
7791 else
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 ac_header_compiler=no
7796 fi
7797
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7800 echo "${ECHO_T}$ac_header_compiler" >&6; }
7801
7802 # Is the header present?
7803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h. */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 #include <$ac_header>
7812 _ACEOF
7813 if { (ac_try="$ac_cpp conftest.$ac_ext"
7814 case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7817 esac
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7820 ac_status=$?
7821 grep -v '^ *+' conftest.er1 >conftest.err
7822 rm -f conftest.er1
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } >/dev/null && {
7826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7827 test ! -s conftest.err
7828 }; then
7829 ac_header_preproc=yes
7830 else
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7833
7834 ac_header_preproc=no
7835 fi
7836
7837 rm -f conftest.err conftest.$ac_ext
7838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7839 echo "${ECHO_T}$ac_header_preproc" >&6; }
7840
7841 # So? What about this header?
7842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7843 yes:no: )
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7848 ac_header_preproc=yes
7849 ;;
7850 no:yes:* )
7851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7863
7864 ;;
7865 esac
7866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871 eval "$as_ac_Header=\$ac_header_preproc"
7872 fi
7873 ac_res=`eval echo '${'$as_ac_Header'}'`
7874 { echo "$as_me:$LINENO: result: $ac_res" >&5
7875 echo "${ECHO_T}$ac_res" >&6; }
7876
7877 fi
7878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7879 cat >>confdefs.h <<_ACEOF
7880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7881 _ACEOF
7882
7883 fi
7884
7885 done
7886
7887
7888 for ac_header in net/if.h
7889 do
7890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896 cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h. */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902 $ac_includes_default
7903 #if HAVE_SYS_SOCKET_H
7904 #include <sys/socket.h>
7905 #endif
7906
7907 #include <$ac_header>
7908 _ACEOF
7909 rm -f conftest.$ac_objext
7910 if { (ac_try="$ac_compile"
7911 case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914 esac
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_compile") 2>conftest.er1
7917 ac_status=$?
7918 grep -v '^ *+' conftest.er1 >conftest.err
7919 rm -f conftest.er1
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && {
7923 test -z "$ac_c_werror_flag" ||
7924 test ! -s conftest.err
7925 } && test -s conftest.$ac_objext; then
7926 eval "$as_ac_Header=yes"
7927 else
7928 echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7930
7931 eval "$as_ac_Header=no"
7932 fi
7933
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 fi
7936 ac_res=`eval echo '${'$as_ac_Header'}'`
7937 { echo "$as_me:$LINENO: result: $ac_res" >&5
7938 echo "${ECHO_T}$ac_res" >&6; }
7939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7940 cat >>confdefs.h <<_ACEOF
7941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7942 _ACEOF
7943
7944 fi
7945
7946 done
7947
7948
7949 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7950 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7951 if test "${ac_cv_struct_tm+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954 cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h. */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7960 #include <sys/types.h>
7961 #include <time.h>
7962
7963 int
7964 main ()
7965 {
7966 struct tm tm;
7967 int *p = &tm.tm_sec;
7968 return !p;
7969 ;
7970 return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7975 case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_compile") 2>conftest.er1
7981 ac_status=$?
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest.$ac_objext; then
7990 ac_cv_struct_tm=time.h
7991 else
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995 ac_cv_struct_tm=sys/time.h
7996 fi
7997
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 fi
8000 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8001 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
8002 if test $ac_cv_struct_tm = sys/time.h; then
8003
8004 cat >>confdefs.h <<\_ACEOF
8005 #define TM_IN_SYS_TIME 1
8006 _ACEOF
8007
8008 fi
8009
8010 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8011 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
8012 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h. */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 #include <sys/types.h>
8022 #include <$ac_cv_struct_tm>
8023
8024
8025 int
8026 main ()
8027 {
8028 static struct tm ac_aggr;
8029 if (ac_aggr.tm_zone)
8030 return 0;
8031 ;
8032 return 0;
8033 }
8034 _ACEOF
8035 rm -f conftest.$ac_objext
8036 if { (ac_try="$ac_compile"
8037 case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_compile") 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest.$ac_objext; then
8052 ac_cv_member_struct_tm_tm_zone=yes
8053 else
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h. */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 #include <sys/types.h>
8064 #include <$ac_cv_struct_tm>
8065
8066
8067 int
8068 main ()
8069 {
8070 static struct tm ac_aggr;
8071 if (sizeof ac_aggr.tm_zone)
8072 return 0;
8073 ;
8074 return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8079 case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 ac_cv_member_struct_tm_tm_zone=yes
8095 else
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099 ac_cv_member_struct_tm_tm_zone=no
8100 fi
8101
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 fi
8104
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 fi
8107 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8108 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8109 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8110
8111 cat >>confdefs.h <<_ACEOF
8112 #define HAVE_STRUCT_TM_TM_ZONE 1
8113 _ACEOF
8114
8115
8116 fi
8117
8118 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8119
8120 cat >>confdefs.h <<\_ACEOF
8121 #define HAVE_TM_ZONE 1
8122 _ACEOF
8123
8124 else
8125 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8126 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8127 if test "${ac_cv_have_decl_tzname+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h. */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 #include <time.h>
8137
8138 int
8139 main ()
8140 {
8141 #ifndef tzname
8142 (void) tzname;
8143 #endif
8144
8145 ;
8146 return 0;
8147 }
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8151 case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_compile") 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest.$ac_objext; then
8166 ac_cv_have_decl_tzname=yes
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171 ac_cv_have_decl_tzname=no
8172 fi
8173
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 fi
8176 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8177 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8178 if test $ac_cv_have_decl_tzname = yes; then
8179
8180 cat >>confdefs.h <<_ACEOF
8181 #define HAVE_DECL_TZNAME 1
8182 _ACEOF
8183
8184
8185 else
8186 cat >>confdefs.h <<_ACEOF
8187 #define HAVE_DECL_TZNAME 0
8188 _ACEOF
8189
8190
8191 fi
8192
8193
8194 { echo "$as_me:$LINENO: checking for tzname" >&5
8195 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8196 if test "${ac_cv_var_tzname+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199 cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h. */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8205 #include <time.h>
8206 #if !HAVE_DECL_TZNAME
8207 extern char *tzname[];
8208 #endif
8209
8210 int
8211 main ()
8212 {
8213 return tzname[0][0];
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (ac_try="$ac_link"
8220 case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223 esac
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_link") 2>conftest.er1
8226 ac_status=$?
8227 grep -v '^ *+' conftest.er1 >conftest.err
8228 rm -f conftest.er1
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } && {
8232 test -z "$ac_c_werror_flag" ||
8233 test ! -s conftest.err
8234 } && test -s conftest$ac_exeext &&
8235 $as_test_x conftest$ac_exeext; then
8236 ac_cv_var_tzname=yes
8237 else
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ac_cv_var_tzname=no
8242 fi
8243
8244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8245 conftest$ac_exeext conftest.$ac_ext
8246 fi
8247 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8248 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8249 if test $ac_cv_var_tzname = yes; then
8250
8251 cat >>confdefs.h <<\_ACEOF
8252 #define HAVE_TZNAME 1
8253 _ACEOF
8254
8255 fi
8256 fi
8257
8258 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8259 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8260 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263 cat >conftest.$ac_ext <<_ACEOF
8264 /* confdefs.h. */
8265 _ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8269 #include <time.h>
8270
8271 int
8272 main ()
8273 {
8274 static struct tm ac_aggr;
8275 if (ac_aggr.tm_gmtoff)
8276 return 0;
8277 ;
8278 return 0;
8279 }
8280 _ACEOF
8281 rm -f conftest.$ac_objext
8282 if { (ac_try="$ac_compile"
8283 case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_compile") 2>conftest.er1
8289 ac_status=$?
8290 grep -v '^ *+' conftest.er1 >conftest.err
8291 rm -f conftest.er1
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } && {
8295 test -z "$ac_c_werror_flag" ||
8296 test ! -s conftest.err
8297 } && test -s conftest.$ac_objext; then
8298 ac_cv_member_struct_tm_tm_gmtoff=yes
8299 else
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8302
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h. */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8309 #include <time.h>
8310
8311 int
8312 main ()
8313 {
8314 static struct tm ac_aggr;
8315 if (sizeof ac_aggr.tm_gmtoff)
8316 return 0;
8317 ;
8318 return 0;
8319 }
8320 _ACEOF
8321 rm -f conftest.$ac_objext
8322 if { (ac_try="$ac_compile"
8323 case "(($ac_try" in
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8326 esac
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328 (eval "$ac_compile") 2>conftest.er1
8329 ac_status=$?
8330 grep -v '^ *+' conftest.er1 >conftest.err
8331 rm -f conftest.er1
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && {
8335 test -z "$ac_c_werror_flag" ||
8336 test ! -s conftest.err
8337 } && test -s conftest.$ac_objext; then
8338 ac_cv_member_struct_tm_tm_gmtoff=yes
8339 else
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343 ac_cv_member_struct_tm_tm_gmtoff=no
8344 fi
8345
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 fi
8348
8349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350 fi
8351 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8352 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8353 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8354
8355 cat >>confdefs.h <<\_ACEOF
8356 #define HAVE_TM_GMTOFF 1
8357 _ACEOF
8358
8359 fi
8360
8361 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8362 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8363 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366 cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h. */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8372 $ac_includes_default
8373 #if HAVE_SYS_SOCKET_H
8374 #include <sys/socket.h>
8375 #endif
8376 #if HAVE_NET_IF_H
8377 #include <net/if.h>
8378 #endif
8379
8380 int
8381 main ()
8382 {
8383 static struct ifreq ac_aggr;
8384 if (ac_aggr.ifr_flags)
8385 return 0;
8386 ;
8387 return 0;
8388 }
8389 _ACEOF
8390 rm -f conftest.$ac_objext
8391 if { (ac_try="$ac_compile"
8392 case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_compile") 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest.$ac_objext; then
8407 ac_cv_member_struct_ifreq_ifr_flags=yes
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 $ac_includes_default
8419 #if HAVE_SYS_SOCKET_H
8420 #include <sys/socket.h>
8421 #endif
8422 #if HAVE_NET_IF_H
8423 #include <net/if.h>
8424 #endif
8425
8426 int
8427 main ()
8428 {
8429 static struct ifreq ac_aggr;
8430 if (sizeof ac_aggr.ifr_flags)
8431 return 0;
8432 ;
8433 return 0;
8434 }
8435 _ACEOF
8436 rm -f conftest.$ac_objext
8437 if { (ac_try="$ac_compile"
8438 case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441 esac
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_compile") 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } && {
8450 test -z "$ac_c_werror_flag" ||
8451 test ! -s conftest.err
8452 } && test -s conftest.$ac_objext; then
8453 ac_cv_member_struct_ifreq_ifr_flags=yes
8454 else
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458 ac_cv_member_struct_ifreq_ifr_flags=no
8459 fi
8460
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 fi
8463
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 fi
8466 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8467 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8468 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8469
8470 cat >>confdefs.h <<_ACEOF
8471 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8472 _ACEOF
8473
8474
8475 fi
8476 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8477 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8478 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8488 #if HAVE_SYS_SOCKET_H
8489 #include <sys/socket.h>
8490 #endif
8491 #if HAVE_NET_IF_H
8492 #include <net/if.h>
8493 #endif
8494
8495 int
8496 main ()
8497 {
8498 static struct ifreq ac_aggr;
8499 if (ac_aggr.ifr_hwaddr)
8500 return 0;
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (ac_try="$ac_compile"
8507 case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510 esac
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_compile") 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } && {
8519 test -z "$ac_c_werror_flag" ||
8520 test ! -s conftest.err
8521 } && test -s conftest.$ac_objext; then
8522 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8523 else
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 $ac_includes_default
8534 #if HAVE_SYS_SOCKET_H
8535 #include <sys/socket.h>
8536 #endif
8537 #if HAVE_NET_IF_H
8538 #include <net/if.h>
8539 #endif
8540
8541 int
8542 main ()
8543 {
8544 static struct ifreq ac_aggr;
8545 if (sizeof ac_aggr.ifr_hwaddr)
8546 return 0;
8547 ;
8548 return 0;
8549 }
8550 _ACEOF
8551 rm -f conftest.$ac_objext
8552 if { (ac_try="$ac_compile"
8553 case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556 esac
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_compile") 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } && {
8565 test -z "$ac_c_werror_flag" ||
8566 test ! -s conftest.err
8567 } && test -s conftest.$ac_objext; then
8568 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8569 else
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8574 fi
8575
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 fi
8578
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 fi
8581 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8582 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8583 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8584
8585 cat >>confdefs.h <<_ACEOF
8586 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8587 _ACEOF
8588
8589
8590 fi
8591 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8592 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8593 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h. */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 $ac_includes_default
8603 #if HAVE_SYS_SOCKET_H
8604 #include <sys/socket.h>
8605 #endif
8606 #if HAVE_NET_IF_H
8607 #include <net/if.h>
8608 #endif
8609
8610 int
8611 main ()
8612 {
8613 static struct ifreq ac_aggr;
8614 if (ac_aggr.ifr_netmask)
8615 return 0;
8616 ;
8617 return 0;
8618 }
8619 _ACEOF
8620 rm -f conftest.$ac_objext
8621 if { (ac_try="$ac_compile"
8622 case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625 esac
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_compile") 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } && {
8634 test -z "$ac_c_werror_flag" ||
8635 test ! -s conftest.err
8636 } && test -s conftest.$ac_objext; then
8637 ac_cv_member_struct_ifreq_ifr_netmask=yes
8638 else
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8641
8642 cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h. */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8648 $ac_includes_default
8649 #if HAVE_SYS_SOCKET_H
8650 #include <sys/socket.h>
8651 #endif
8652 #if HAVE_NET_IF_H
8653 #include <net/if.h>
8654 #endif
8655
8656 int
8657 main ()
8658 {
8659 static struct ifreq ac_aggr;
8660 if (sizeof ac_aggr.ifr_netmask)
8661 return 0;
8662 ;
8663 return 0;
8664 }
8665 _ACEOF
8666 rm -f conftest.$ac_objext
8667 if { (ac_try="$ac_compile"
8668 case "(($ac_try" in
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8671 esac
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_compile") 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } && {
8680 test -z "$ac_c_werror_flag" ||
8681 test ! -s conftest.err
8682 } && test -s conftest.$ac_objext; then
8683 ac_cv_member_struct_ifreq_ifr_netmask=yes
8684 else
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688 ac_cv_member_struct_ifreq_ifr_netmask=no
8689 fi
8690
8691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8692 fi
8693
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 fi
8696 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8697 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8698 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8699
8700 cat >>confdefs.h <<_ACEOF
8701 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8702 _ACEOF
8703
8704
8705 fi
8706 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8707 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8708 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h. */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 $ac_includes_default
8718 #if HAVE_SYS_SOCKET_H
8719 #include <sys/socket.h>
8720 #endif
8721 #if HAVE_NET_IF_H
8722 #include <net/if.h>
8723 #endif
8724
8725 int
8726 main ()
8727 {
8728 static struct ifreq ac_aggr;
8729 if (ac_aggr.ifr_broadaddr)
8730 return 0;
8731 ;
8732 return 0;
8733 }
8734 _ACEOF
8735 rm -f conftest.$ac_objext
8736 if { (ac_try="$ac_compile"
8737 case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_compile") 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } && {
8749 test -z "$ac_c_werror_flag" ||
8750 test ! -s conftest.err
8751 } && test -s conftest.$ac_objext; then
8752 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8753 else
8754 echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8756
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 $ac_includes_default
8764 #if HAVE_SYS_SOCKET_H
8765 #include <sys/socket.h>
8766 #endif
8767 #if HAVE_NET_IF_H
8768 #include <net/if.h>
8769 #endif
8770
8771 int
8772 main ()
8773 {
8774 static struct ifreq ac_aggr;
8775 if (sizeof ac_aggr.ifr_broadaddr)
8776 return 0;
8777 ;
8778 return 0;
8779 }
8780 _ACEOF
8781 rm -f conftest.$ac_objext
8782 if { (ac_try="$ac_compile"
8783 case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8786 esac
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_compile") 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && {
8795 test -z "$ac_c_werror_flag" ||
8796 test ! -s conftest.err
8797 } && test -s conftest.$ac_objext; then
8798 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8799 else
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8804 fi
8805
8806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807 fi
8808
8809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 fi
8811 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8812 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8813 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8814
8815 cat >>confdefs.h <<_ACEOF
8816 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8817 _ACEOF
8818
8819
8820 fi
8821 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8822 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8823 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 $ac_includes_default
8833 #if HAVE_SYS_SOCKET_H
8834 #include <sys/socket.h>
8835 #endif
8836 #if HAVE_NET_IF_H
8837 #include <net/if.h>
8838 #endif
8839
8840 int
8841 main ()
8842 {
8843 static struct ifreq ac_aggr;
8844 if (ac_aggr.ifr_addr)
8845 return 0;
8846 ;
8847 return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (ac_try="$ac_compile"
8852 case "(($ac_try" in
8853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854 *) ac_try_echo=$ac_try;;
8855 esac
8856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8857 (eval "$ac_compile") 2>conftest.er1
8858 ac_status=$?
8859 grep -v '^ *+' conftest.er1 >conftest.err
8860 rm -f conftest.er1
8861 cat conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } && {
8864 test -z "$ac_c_werror_flag" ||
8865 test ! -s conftest.err
8866 } && test -s conftest.$ac_objext; then
8867 ac_cv_member_struct_ifreq_ifr_addr=yes
8868 else
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8871
8872 cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h. */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8878 $ac_includes_default
8879 #if HAVE_SYS_SOCKET_H
8880 #include <sys/socket.h>
8881 #endif
8882 #if HAVE_NET_IF_H
8883 #include <net/if.h>
8884 #endif
8885
8886 int
8887 main ()
8888 {
8889 static struct ifreq ac_aggr;
8890 if (sizeof ac_aggr.ifr_addr)
8891 return 0;
8892 ;
8893 return 0;
8894 }
8895 _ACEOF
8896 rm -f conftest.$ac_objext
8897 if { (ac_try="$ac_compile"
8898 case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901 esac
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_compile") 2>conftest.er1
8904 ac_status=$?
8905 grep -v '^ *+' conftest.er1 >conftest.err
8906 rm -f conftest.er1
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && {
8910 test -z "$ac_c_werror_flag" ||
8911 test ! -s conftest.err
8912 } && test -s conftest.$ac_objext; then
8913 ac_cv_member_struct_ifreq_ifr_addr=yes
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8917
8918 ac_cv_member_struct_ifreq_ifr_addr=no
8919 fi
8920
8921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 fi
8923
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 fi
8926 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8927 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8928 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8929
8930 cat >>confdefs.h <<_ACEOF
8931 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8932 _ACEOF
8933
8934
8935 fi
8936
8937
8938
8939 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8940 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8941 if test "$ac_cv_prog_cc_c89" != no; then
8942 { echo "$as_me:$LINENO: result: yes" >&5
8943 echo "${ECHO_T}yes" >&6; }
8944
8945 cat >>confdefs.h <<\_ACEOF
8946 #define PROTOTYPES 1
8947 _ACEOF
8948
8949
8950 cat >>confdefs.h <<\_ACEOF
8951 #define __PROTOTYPES 1
8952 _ACEOF
8953
8954 else
8955 { echo "$as_me:$LINENO: result: no" >&5
8956 echo "${ECHO_T}no" >&6; }
8957 fi
8958
8959 { echo "$as_me:$LINENO: checking for working volatile" >&5
8960 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8961 if test "${ac_cv_c_volatile+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 else
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h. */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970
8971 int
8972 main ()
8973 {
8974
8975 volatile int x;
8976 int * volatile y = (int *) 0;
8977 return !x && !y;
8978 ;
8979 return 0;
8980 }
8981 _ACEOF
8982 rm -f conftest.$ac_objext
8983 if { (ac_try="$ac_compile"
8984 case "(($ac_try" in
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8987 esac
8988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989 (eval "$ac_compile") 2>conftest.er1
8990 ac_status=$?
8991 grep -v '^ *+' conftest.er1 >conftest.err
8992 rm -f conftest.er1
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } && {
8996 test -z "$ac_c_werror_flag" ||
8997 test ! -s conftest.err
8998 } && test -s conftest.$ac_objext; then
8999 ac_cv_c_volatile=yes
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9003
9004 ac_cv_c_volatile=no
9005 fi
9006
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 fi
9009 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9010 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9011 if test $ac_cv_c_volatile = no; then
9012
9013 cat >>confdefs.h <<\_ACEOF
9014 #define volatile
9015 _ACEOF
9016
9017 fi
9018
9019 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9020 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9021 if test "${ac_cv_c_const+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h. */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030
9031 int
9032 main ()
9033 {
9034 /* FIXME: Include the comments suggested by Paul. */
9035 #ifndef __cplusplus
9036 /* Ultrix mips cc rejects this. */
9037 typedef int charset[2];
9038 const charset cs;
9039 /* SunOS 4.1.1 cc rejects this. */
9040 char const *const *pcpcc;
9041 char **ppc;
9042 /* NEC SVR4.0.2 mips cc rejects this. */
9043 struct point {int x, y;};
9044 static struct point const zero = {0,0};
9045 /* AIX XL C 1.02.0.0 rejects this.
9046 It does not let you subtract one const X* pointer from another in
9047 an arm of an if-expression whose if-part is not a constant
9048 expression */
9049 const char *g = "string";
9050 pcpcc = &g + (g ? g-g : 0);
9051 /* HPUX 7.0 cc rejects these. */
9052 ++pcpcc;
9053 ppc = (char**) pcpcc;
9054 pcpcc = (char const *const *) ppc;
9055 { /* SCO 3.2v4 cc rejects this. */
9056 char *t;
9057 char const *s = 0 ? (char *) 0 : (char const *) 0;
9058
9059 *t++ = 0;
9060 if (s) return 0;
9061 }
9062 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9063 int x[] = {25, 17};
9064 const int *foo = &x[0];
9065 ++foo;
9066 }
9067 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9068 typedef const int *iptr;
9069 iptr p = 0;
9070 ++p;
9071 }
9072 { /* AIX XL C 1.02.0.0 rejects this saying
9073 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9074 struct s { int j; const int *ap[3]; };
9075 struct s *b; b->j = 5;
9076 }
9077 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9078 const int foo = 10;
9079 if (!foo) return 0;
9080 }
9081 return !cs[0] && !zero.x;
9082 #endif
9083
9084 ;
9085 return 0;
9086 }
9087 _ACEOF
9088 rm -f conftest.$ac_objext
9089 if { (ac_try="$ac_compile"
9090 case "(($ac_try" in
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9093 esac
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_compile") 2>conftest.er1
9096 ac_status=$?
9097 grep -v '^ *+' conftest.er1 >conftest.err
9098 rm -f conftest.er1
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } && {
9102 test -z "$ac_c_werror_flag" ||
9103 test ! -s conftest.err
9104 } && test -s conftest.$ac_objext; then
9105 ac_cv_c_const=yes
9106 else
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110 ac_cv_c_const=no
9111 fi
9112
9113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114 fi
9115 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9116 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9117 if test $ac_cv_c_const = no; then
9118
9119 cat >>confdefs.h <<\_ACEOF
9120 #define const
9121 _ACEOF
9122
9123 fi
9124
9125 { echo "$as_me:$LINENO: checking for void * support" >&5
9126 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9127 if test "${emacs_cv_void_star+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130 cat >conftest.$ac_ext <<_ACEOF
9131 /* confdefs.h. */
9132 _ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h. */
9136
9137 int
9138 main ()
9139 {
9140 void * foo;
9141 ;
9142 return 0;
9143 }
9144 _ACEOF
9145 rm -f conftest.$ac_objext
9146 if { (ac_try="$ac_compile"
9147 case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150 esac
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_compile") 2>conftest.er1
9153 ac_status=$?
9154 grep -v '^ *+' conftest.er1 >conftest.err
9155 rm -f conftest.er1
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } && {
9159 test -z "$ac_c_werror_flag" ||
9160 test ! -s conftest.err
9161 } && test -s conftest.$ac_objext; then
9162 emacs_cv_void_star=yes
9163 else
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167 emacs_cv_void_star=no
9168 fi
9169
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171 fi
9172 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9173 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9174 if test $emacs_cv_void_star = yes; then
9175 cat >>confdefs.h <<\_ACEOF
9176 #define POINTER_TYPE void
9177 _ACEOF
9178
9179 else
9180 cat >>confdefs.h <<\_ACEOF
9181 #define POINTER_TYPE char
9182 _ACEOF
9183
9184 fi
9185
9186
9187
9188
9189
9190 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9191 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9192 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9193 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196 cat >conftest.make <<\_ACEOF
9197 SHELL = /bin/sh
9198 all:
9199 @echo '@@@%%%=$(MAKE)=@@@%%%'
9200 _ACEOF
9201 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9202 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9203 *@@@%%%=?*=@@@%%%*)
9204 eval ac_cv_prog_make_${ac_make}_set=yes;;
9205 *)
9206 eval ac_cv_prog_make_${ac_make}_set=no;;
9207 esac
9208 rm -f conftest.make
9209 fi
9210 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9211 { echo "$as_me:$LINENO: result: yes" >&5
9212 echo "${ECHO_T}yes" >&6; }
9213 SET_MAKE=
9214 else
9215 { echo "$as_me:$LINENO: result: no" >&5
9216 echo "${ECHO_T}no" >&6; }
9217 SET_MAKE="MAKE=${MAKE-make}"
9218 fi
9219
9220
9221 { echo "$as_me:$LINENO: checking for long file names" >&5
9222 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9223 if test "${ac_cv_sys_long_file_names+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226 ac_cv_sys_long_file_names=yes
9227 # Test for long file names in all the places we know might matter:
9228 # . the current directory, where building will happen
9229 # $prefix/lib where we will be installing things
9230 # $exec_prefix/lib likewise
9231 # $TMPDIR if set, where it might want to write temporary files
9232 # /tmp where it might want to write temporary files
9233 # /var/tmp likewise
9234 # /usr/tmp likewise
9235 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9236 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9237 # in the usual case where exec_prefix is '${prefix}'.
9238 case $ac_dir in #(
9239 . | /* | ?:[\\/]*) ;; #(
9240 *) continue;;
9241 esac
9242 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9243 ac_xdir=$ac_dir/cf$$
9244 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9245 ac_tf1=$ac_xdir/conftest9012345
9246 ac_tf2=$ac_xdir/conftest9012346
9247 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9248 ac_cv_sys_long_file_names=no
9249 rm -f -r "$ac_xdir" 2>/dev/null
9250 test $ac_cv_sys_long_file_names = no && break
9251 done
9252 fi
9253 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9254 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9255 if test $ac_cv_sys_long_file_names = yes; then
9256
9257 cat >>confdefs.h <<\_ACEOF
9258 #define HAVE_LONG_FILE_NAMES 1
9259 _ACEOF
9260
9261 fi
9262
9263
9264 #### Choose a window system.
9265
9266 { echo "$as_me:$LINENO: checking for X" >&5
9267 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9268
9269
9270 # Check whether --with-x was given.
9271 if test "${with_x+set}" = set; then
9272 withval=$with_x;
9273 fi
9274
9275 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9276 if test "x$with_x" = xno; then
9277 # The user explicitly disabled X.
9278 have_x=disabled
9279 else
9280 case $x_includes,$x_libraries in #(
9281 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9282 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9283 { (exit 1); exit 1; }; };; #(
9284 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287 # One or both of the vars are not set, and there is no cached value.
9288 ac_x_includes=no ac_x_libraries=no
9289 rm -f -r conftest.dir
9290 if mkdir conftest.dir; then
9291 cd conftest.dir
9292 cat >Imakefile <<'_ACEOF'
9293 incroot:
9294 @echo incroot='${INCROOT}'
9295 usrlibdir:
9296 @echo usrlibdir='${USRLIBDIR}'
9297 libdir:
9298 @echo libdir='${LIBDIR}'
9299 _ACEOF
9300 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9301 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9302 for ac_var in incroot usrlibdir libdir; do
9303 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9304 done
9305 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9306 for ac_extension in a so sl; do
9307 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9308 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9309 ac_im_usrlibdir=$ac_im_libdir; break
9310 fi
9311 done
9312 # Screen out bogus values from the imake configuration. They are
9313 # bogus both because they are the default anyway, and because
9314 # using them would break gcc on systems where it needs fixed includes.
9315 case $ac_im_incroot in
9316 /usr/include) ac_x_includes= ;;
9317 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9318 esac
9319 case $ac_im_usrlibdir in
9320 /usr/lib | /lib) ;;
9321 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9322 esac
9323 fi
9324 cd ..
9325 rm -f -r conftest.dir
9326 fi
9327
9328 # Standard set of common directories for X headers.
9329 # Check X11 before X11Rn because it is often a symlink to the current release.
9330 ac_x_header_dirs='
9331 /usr/X11/include
9332 /usr/X11R6/include
9333 /usr/X11R5/include
9334 /usr/X11R4/include
9335
9336 /usr/include/X11
9337 /usr/include/X11R6
9338 /usr/include/X11R5
9339 /usr/include/X11R4
9340
9341 /usr/local/X11/include
9342 /usr/local/X11R6/include
9343 /usr/local/X11R5/include
9344 /usr/local/X11R4/include
9345
9346 /usr/local/include/X11
9347 /usr/local/include/X11R6
9348 /usr/local/include/X11R5
9349 /usr/local/include/X11R4
9350
9351 /usr/X386/include
9352 /usr/x386/include
9353 /usr/XFree86/include/X11
9354
9355 /usr/include
9356 /usr/local/include
9357 /usr/unsupported/include
9358 /usr/athena/include
9359 /usr/local/x11r5/include
9360 /usr/lpp/Xamples/include
9361
9362 /usr/openwin/include
9363 /usr/openwin/share/include'
9364
9365 if test "$ac_x_includes" = no; then
9366 # Guess where to find include files, by looking for Xlib.h.
9367 # First, try using that file with no special directory specified.
9368 cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h. */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 #include <X11/Xlib.h>
9375 _ACEOF
9376 if { (ac_try="$ac_cpp conftest.$ac_ext"
9377 case "(($ac_try" in
9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379 *) ac_try_echo=$ac_try;;
9380 esac
9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } >/dev/null && {
9389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9390 test ! -s conftest.err
9391 }; then
9392 # We can compile using X headers with no special include directory.
9393 ac_x_includes=
9394 else
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9397
9398 for ac_dir in $ac_x_header_dirs; do
9399 if test -r "$ac_dir/X11/Xlib.h"; then
9400 ac_x_includes=$ac_dir
9401 break
9402 fi
9403 done
9404 fi
9405
9406 rm -f conftest.err conftest.$ac_ext
9407 fi # $ac_x_includes = no
9408
9409 if test "$ac_x_libraries" = no; then
9410 # Check for the libraries.
9411 # See if we find them without any special options.
9412 # Don't add to $LIBS permanently.
9413 ac_save_LIBS=$LIBS
9414 LIBS="-lX11 $LIBS"
9415 cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h. */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9421 #include <X11/Xlib.h>
9422 int
9423 main ()
9424 {
9425 XrmInitialize ()
9426 ;
9427 return 0;
9428 }
9429 _ACEOF
9430 rm -f conftest.$ac_objext conftest$ac_exeext
9431 if { (ac_try="$ac_link"
9432 case "(($ac_try" in
9433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9435 esac
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437 (eval "$ac_link") 2>conftest.er1
9438 ac_status=$?
9439 grep -v '^ *+' conftest.er1 >conftest.err
9440 rm -f conftest.er1
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && {
9444 test -z "$ac_c_werror_flag" ||
9445 test ! -s conftest.err
9446 } && test -s conftest$ac_exeext &&
9447 $as_test_x conftest$ac_exeext; then
9448 LIBS=$ac_save_LIBS
9449 # We can link X programs with no special library path.
9450 ac_x_libraries=
9451 else
9452 echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9454
9455 LIBS=$ac_save_LIBS
9456 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9457 do
9458 # Don't even attempt the hair of trying to link an X program!
9459 for ac_extension in a so sl; do
9460 if test -r "$ac_dir/libX11.$ac_extension"; then
9461 ac_x_libraries=$ac_dir
9462 break 2
9463 fi
9464 done
9465 done
9466 fi
9467
9468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9469 conftest$ac_exeext conftest.$ac_ext
9470 fi # $ac_x_libraries = no
9471
9472 case $ac_x_includes,$ac_x_libraries in #(
9473 no,* | *,no | *\'*)
9474 # Didn't find X, or a directory has "'" in its name.
9475 ac_cv_have_x="have_x=no";; #(
9476 *)
9477 # Record where we found X for the cache.
9478 ac_cv_have_x="have_x=yes\
9479 ac_x_includes='$ac_x_includes'\
9480 ac_x_libraries='$ac_x_libraries'"
9481 esac
9482 fi
9483 ;; #(
9484 *) have_x=yes;;
9485 esac
9486 eval "$ac_cv_have_x"
9487 fi # $with_x != no
9488
9489 if test "$have_x" != yes; then
9490 { echo "$as_me:$LINENO: result: $have_x" >&5
9491 echo "${ECHO_T}$have_x" >&6; }
9492 no_x=yes
9493 else
9494 # If each of the values was on the command line, it overrides each guess.
9495 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9496 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9497 # Update the cache value to reflect the command line values.
9498 ac_cv_have_x="have_x=yes\
9499 ac_x_includes='$x_includes'\
9500 ac_x_libraries='$x_libraries'"
9501 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9502 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9503 fi
9504
9505 if test "$no_x" = yes; then
9506 window_system=none
9507 else
9508 window_system=x11
9509 fi
9510
9511 if test "${x_libraries}" != NONE; then
9512 if test -n "${x_libraries}"; then
9513 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9514 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9515 fi
9516 x_default_search_path=""
9517 x_search_path=${x_libraries}
9518 if test -z "${x_search_path}"; then
9519 x_search_path=/usr/lib
9520 fi
9521 for x_library in `echo ${x_search_path}: | \
9522 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9523 x_search_path="\
9524 ${x_library}/X11/%L/%T/%N%C%S:\
9525 ${x_library}/X11/%l/%T/%N%C%S:\
9526 ${x_library}/X11/%T/%N%C%S:\
9527 ${x_library}/X11/%L/%T/%N%S:\
9528 ${x_library}/X11/%l/%T/%N%S:\
9529 ${x_library}/X11/%T/%N%S"
9530 if test x"${x_default_search_path}" = x; then
9531 x_default_search_path=${x_search_path}
9532 else
9533 x_default_search_path="${x_search_path}:${x_default_search_path}"
9534 fi
9535 done
9536 fi
9537 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9538 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9539 fi
9540
9541 if test x"${x_includes}" = x; then
9542 bitmapdir=/usr/include/X11/bitmaps
9543 else
9544 # accumulate include directories that have X11 bitmap subdirectories
9545 bmd_acc="dummyval"
9546 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9547 if test -d "${bmd}/X11/bitmaps"; then
9548 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9549 fi
9550 if test -d "${bmd}/bitmaps"; then
9551 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9552 fi
9553 done
9554 if test ${bmd_acc} != "dummyval"; then
9555 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9556 fi
9557 fi
9558
9559 HAVE_CARBON=no
9560 if test "${with_carbon}" != no; then
9561 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9562 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9563 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9564 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 fi
9567 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9568 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9569 else
9570 # Is the header compilable?
9571 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9572 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9573 cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h. */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 $ac_includes_default
9580 #include <Carbon/Carbon.h>
9581 _ACEOF
9582 rm -f conftest.$ac_objext
9583 if { (ac_try="$ac_compile"
9584 case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_compile") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest.$ac_objext; then
9599 ac_header_compiler=yes
9600 else
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 ac_header_compiler=no
9605 fi
9606
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9609 echo "${ECHO_T}$ac_header_compiler" >&6; }
9610
9611 # Is the header present?
9612 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9613 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h. */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 #include <Carbon/Carbon.h>
9621 _ACEOF
9622 if { (ac_try="$ac_cpp conftest.$ac_ext"
9623 case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626 esac
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } >/dev/null && {
9635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9636 test ! -s conftest.err
9637 }; then
9638 ac_header_preproc=yes
9639 else
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9642
9643 ac_header_preproc=no
9644 fi
9645
9646 rm -f conftest.err conftest.$ac_ext
9647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9648 echo "${ECHO_T}$ac_header_preproc" >&6; }
9649
9650 # So? What about this header?
9651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9652 yes:no: )
9653 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9654 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9656 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9657 ac_header_preproc=yes
9658 ;;
9659 no:yes:* )
9660 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9661 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9662 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9663 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9664 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9665 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9666 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9667 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9668 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9669 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9671 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9672
9673 ;;
9674 esac
9675 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9676 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9677 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9681 fi
9682 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9683 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9684
9685 fi
9686 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9687 HAVE_CARBON=yes
9688 fi
9689
9690
9691 fi
9692 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9693 if test "${with_carbon+set}" != set \
9694 && test "${carbon_appdir_x+set}" != set; then
9695 for var in with_x with_x_toolkit with_gtk with_xim \
9696 with_xpm with_jpeg with_tiff with_gif with_png; do
9697 if eval test \"\${$var+set}\" = set; then
9698 HAVE_CARBON=no
9699 break
9700 fi
9701 done
9702 fi
9703 fi
9704 if test "${HAVE_CARBON}" = yes; then
9705 window_system=mac
9706 fi
9707
9708 case "${window_system}" in
9709 x11 )
9710 HAVE_X_WINDOWS=yes
9711 HAVE_X11=yes
9712 case "${with_x_toolkit}" in
9713 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9714 motif ) USE_X_TOOLKIT=MOTIF ;;
9715 gtk ) with_gtk=yes
9716 USE_X_TOOLKIT=none ;;
9717 no ) USE_X_TOOLKIT=none ;;
9718 * )
9719 if test x"$with_gtk" = xyes; then
9720 USE_X_TOOLKIT=none
9721 else
9722 USE_X_TOOLKIT=maybe
9723 fi
9724 ;;
9725 esac
9726 ;;
9727 mac | none )
9728 HAVE_X_WINDOWS=no
9729 HAVE_X11=no
9730 USE_X_TOOLKIT=none
9731 ;;
9732 esac
9733
9734 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9735 # Extract the first word of "X", so it can be a program name with args.
9736 set dummy X; ac_word=$2
9737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9739 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 if test -n "$HAVE_XSERVER"; then
9743 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9744 else
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9747 do
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9752 ac_cv_prog_HAVE_XSERVER="true"
9753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9755 fi
9756 done
9757 done
9758 IFS=$as_save_IFS
9759
9760 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9761 fi
9762 fi
9763 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9764 if test -n "$HAVE_XSERVER"; then
9765 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9766 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9767 else
9768 { echo "$as_me:$LINENO: result: no" >&5
9769 echo "${ECHO_T}no" >&6; }
9770 fi
9771
9772
9773 if test "$HAVE_XSERVER" = true ||
9774 test -n "$DISPLAY" ||
9775 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9776 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9777 were found. You should install the relevant development files for X
9778 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9779 sure you have development files for image handling, i.e.
9780 tiff, gif, jpeg, png and xpm.
9781 If you are sure you want Emacs compiled without X window support, pass
9782 --without-x
9783 to configure." >&5
9784 echo "$as_me: error: You seem to be running X, but no X development libraries
9785 were found. You should install the relevant development files for X
9786 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9787 sure you have development files for image handling, i.e.
9788 tiff, gif, jpeg, png and xpm.
9789 If you are sure you want Emacs compiled without X window support, pass
9790 --without-x
9791 to configure." >&2;}
9792 { (exit 1); exit 1; }; }
9793 fi
9794 fi
9795
9796 ### If we're using X11, we should use the X menu package.
9797 HAVE_MENUS=no
9798 case ${HAVE_X11} in
9799 yes ) HAVE_MENUS=yes ;;
9800 esac
9801
9802 if test "${opsys}" = "hpux9"; then
9803 case "${x_libraries}" in
9804 *X11R4* )
9805 opsysfile="s/hpux9-x11r4.h"
9806 ;;
9807 esac
9808 fi
9809
9810 if test "${opsys}" = "hpux9shr"; then
9811 case "${x_libraries}" in
9812 *X11R4* )
9813 opsysfile="s/hpux9shxr4.h"
9814 ;;
9815 esac
9816 fi
9817
9818 ### Compute the unexec source name from the object name.
9819 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9820
9821 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9822 # Assume not, until told otherwise.
9823 GNU_MALLOC=yes
9824 doug_lea_malloc=yes
9825 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9826 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9827 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h. */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9838 #define malloc_get_state innocuous_malloc_get_state
9839
9840 /* System header to define __stub macros and hopefully few prototypes,
9841 which can conflict with char malloc_get_state (); below.
9842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9843 <limits.h> exists even on freestanding compilers. */
9844
9845 #ifdef __STDC__
9846 # include <limits.h>
9847 #else
9848 # include <assert.h>
9849 #endif
9850
9851 #undef malloc_get_state
9852
9853 /* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9856 #ifdef __cplusplus
9857 extern "C"
9858 #endif
9859 char malloc_get_state ();
9860 /* The GNU C library defines this for functions which it implements
9861 to always fail with ENOSYS. Some functions are actually named
9862 something starting with __ and the normal name is an alias. */
9863 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9864 choke me
9865 #endif
9866
9867 int
9868 main ()
9869 {
9870 return malloc_get_state ();
9871 ;
9872 return 0;
9873 }
9874 _ACEOF
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9877 case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest$ac_exeext &&
9892 $as_test_x conftest$ac_exeext; then
9893 ac_cv_func_malloc_get_state=yes
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_cv_func_malloc_get_state=no
9899 fi
9900
9901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9902 conftest$ac_exeext conftest.$ac_ext
9903 fi
9904 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9905 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9906 if test $ac_cv_func_malloc_get_state = yes; then
9907 :
9908 else
9909 doug_lea_malloc=no
9910 fi
9911
9912 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9913 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9914 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h. */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9925 #define malloc_set_state innocuous_malloc_set_state
9926
9927 /* System header to define __stub macros and hopefully few prototypes,
9928 which can conflict with char malloc_set_state (); below.
9929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9930 <limits.h> exists even on freestanding compilers. */
9931
9932 #ifdef __STDC__
9933 # include <limits.h>
9934 #else
9935 # include <assert.h>
9936 #endif
9937
9938 #undef malloc_set_state
9939
9940 /* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 char malloc_set_state ();
9947 /* The GNU C library defines this for functions which it implements
9948 to always fail with ENOSYS. Some functions are actually named
9949 something starting with __ and the normal name is an alias. */
9950 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9951 choke me
9952 #endif
9953
9954 int
9955 main ()
9956 {
9957 return malloc_set_state ();
9958 ;
9959 return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (ac_try="$ac_link"
9964 case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_link") 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } && {
9976 test -z "$ac_c_werror_flag" ||
9977 test ! -s conftest.err
9978 } && test -s conftest$ac_exeext &&
9979 $as_test_x conftest$ac_exeext; then
9980 ac_cv_func_malloc_set_state=yes
9981 else
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_cv_func_malloc_set_state=no
9986 fi
9987
9988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9989 conftest$ac_exeext conftest.$ac_ext
9990 fi
9991 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9992 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9993 if test $ac_cv_func_malloc_set_state = yes; then
9994 :
9995 else
9996 doug_lea_malloc=no
9997 fi
9998
9999 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10000 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
10001 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 extern void (* __after_morecore_hook)();
10011 int
10012 main ()
10013 {
10014 __after_morecore_hook = 0
10015 ;
10016 return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (ac_try="$ac_link"
10021 case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_link") 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } && {
10033 test -z "$ac_c_werror_flag" ||
10034 test ! -s conftest.err
10035 } && test -s conftest$ac_exeext &&
10036 $as_test_x conftest$ac_exeext; then
10037 emacs_cv_var___after_morecore_hook=yes
10038 else
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042 emacs_cv_var___after_morecore_hook=no
10043 fi
10044
10045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10046 conftest$ac_exeext conftest.$ac_ext
10047 fi
10048 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10049 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10050 if test $emacs_cv_var___after_morecore_hook = no; then
10051 doug_lea_malloc=no
10052 fi
10053 if test "${system_malloc}" = "yes"; then
10054 GNU_MALLOC=no
10055 GNU_MALLOC_reason="
10056 (The GNU allocators don't work with this system configuration.)"
10057 fi
10058 if test "$doug_lea_malloc" = "yes" ; then
10059 if test "$GNU_MALLOC" = yes ; then
10060 GNU_MALLOC_reason="
10061 (Using Doug Lea's new malloc from the GNU C Library.)"
10062 fi
10063
10064 cat >>confdefs.h <<\_ACEOF
10065 #define DOUG_LEA_MALLOC 1
10066 _ACEOF
10067
10068 fi
10069
10070 if test x"${REL_ALLOC}" = x; then
10071 REL_ALLOC=${GNU_MALLOC}
10072 fi
10073
10074
10075
10076
10077 for ac_header in stdlib.h unistd.h
10078 do
10079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 fi
10086 ac_res=`eval echo '${'$as_ac_Header'}'`
10087 { echo "$as_me:$LINENO: result: $ac_res" >&5
10088 echo "${ECHO_T}$ac_res" >&6; }
10089 else
10090 # Is the header compilable?
10091 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10093 cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h. */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10099 $ac_includes_default
10100 #include <$ac_header>
10101 _ACEOF
10102 rm -f conftest.$ac_objext
10103 if { (ac_try="$ac_compile"
10104 case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107 esac
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_compile") 2>conftest.er1
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
10112 rm -f conftest.er1
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } && {
10116 test -z "$ac_c_werror_flag" ||
10117 test ! -s conftest.err
10118 } && test -s conftest.$ac_objext; then
10119 ac_header_compiler=yes
10120 else
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124 ac_header_compiler=no
10125 fi
10126
10127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10129 echo "${ECHO_T}$ac_header_compiler" >&6; }
10130
10131 # Is the header present?
10132 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10134 cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h. */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140 #include <$ac_header>
10141 _ACEOF
10142 if { (ac_try="$ac_cpp conftest.$ac_ext"
10143 case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146 esac
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10149 ac_status=$?
10150 grep -v '^ *+' conftest.er1 >conftest.err
10151 rm -f conftest.er1
10152 cat conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } >/dev/null && {
10155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10156 test ! -s conftest.err
10157 }; then
10158 ac_header_preproc=yes
10159 else
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163 ac_header_preproc=no
10164 fi
10165
10166 rm -f conftest.err conftest.$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10168 echo "${ECHO_T}$ac_header_preproc" >&6; }
10169
10170 # So? What about this header?
10171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10172 yes:no: )
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10177 ac_header_preproc=yes
10178 ;;
10179 no:yes:* )
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10192
10193 ;;
10194 esac
10195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200 eval "$as_ac_Header=\$ac_header_preproc"
10201 fi
10202 ac_res=`eval echo '${'$as_ac_Header'}'`
10203 { echo "$as_me:$LINENO: result: $ac_res" >&5
10204 echo "${ECHO_T}$ac_res" >&6; }
10205
10206 fi
10207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10208 cat >>confdefs.h <<_ACEOF
10209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10210 _ACEOF
10211
10212 fi
10213
10214 done
10215
10216
10217 for ac_func in getpagesize
10218 do
10219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225 cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h. */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10233 #define $ac_func innocuous_$ac_func
10234
10235 /* System header to define __stub macros and hopefully few prototypes,
10236 which can conflict with char $ac_func (); below.
10237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10238 <limits.h> exists even on freestanding compilers. */
10239
10240 #ifdef __STDC__
10241 # include <limits.h>
10242 #else
10243 # include <assert.h>
10244 #endif
10245
10246 #undef $ac_func
10247
10248 /* Override any GCC internal prototype to avoid an error.
10249 Use char because int might match the return type of a GCC
10250 builtin and then its argument prototype would still apply. */
10251 #ifdef __cplusplus
10252 extern "C"
10253 #endif
10254 char $ac_func ();
10255 /* The GNU C library defines this for functions which it implements
10256 to always fail with ENOSYS. Some functions are actually named
10257 something starting with __ and the normal name is an alias. */
10258 #if defined __stub_$ac_func || defined __stub___$ac_func
10259 choke me
10260 #endif
10261
10262 int
10263 main ()
10264 {
10265 return $ac_func ();
10266 ;
10267 return 0;
10268 }
10269 _ACEOF
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (ac_try="$ac_link"
10272 case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10275 esac
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_link") 2>conftest.er1
10278 ac_status=$?
10279 grep -v '^ *+' conftest.er1 >conftest.err
10280 rm -f conftest.er1
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } && {
10284 test -z "$ac_c_werror_flag" ||
10285 test ! -s conftest.err
10286 } && test -s conftest$ac_exeext &&
10287 $as_test_x conftest$ac_exeext; then
10288 eval "$as_ac_var=yes"
10289 else
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293 eval "$as_ac_var=no"
10294 fi
10295
10296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10297 conftest$ac_exeext conftest.$ac_ext
10298 fi
10299 ac_res=`eval echo '${'$as_ac_var'}'`
10300 { echo "$as_me:$LINENO: result: $ac_res" >&5
10301 echo "${ECHO_T}$ac_res" >&6; }
10302 if test `eval echo '${'$as_ac_var'}'` = yes; then
10303 cat >>confdefs.h <<_ACEOF
10304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10305 _ACEOF
10306
10307 fi
10308 done
10309
10310 { echo "$as_me:$LINENO: checking for working mmap" >&5
10311 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10312 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315 if test "$cross_compiling" = yes; then
10316 ac_cv_func_mmap_fixed_mapped=no
10317 else
10318 cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h. */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10325 /* malloc might have been renamed as rpl_malloc. */
10326 #undef malloc
10327
10328 /* Thanks to Mike Haertel and Jim Avera for this test.
10329 Here is a matrix of mmap possibilities:
10330 mmap private not fixed
10331 mmap private fixed at somewhere currently unmapped
10332 mmap private fixed at somewhere already mapped
10333 mmap shared not fixed
10334 mmap shared fixed at somewhere currently unmapped
10335 mmap shared fixed at somewhere already mapped
10336 For private mappings, we should verify that changes cannot be read()
10337 back from the file, nor mmap's back from the file at a different
10338 address. (There have been systems where private was not correctly
10339 implemented like the infamous i386 svr4.0, and systems where the
10340 VM page cache was not coherent with the file system buffer cache
10341 like early versions of FreeBSD and possibly contemporary NetBSD.)
10342 For shared mappings, we should conversely verify that changes get
10343 propagated back to all the places they're supposed to be.
10344
10345 Grep wants private fixed already mapped.
10346 The main things grep needs to know about mmap are:
10347 * does it exist and is it safe to write into the mmap'd area
10348 * how to use it (BSD variants) */
10349
10350 #include <fcntl.h>
10351 #include <sys/mman.h>
10352
10353 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10354 char *malloc ();
10355 #endif
10356
10357 /* This mess was copied from the GNU getpagesize.h. */
10358 #ifndef HAVE_GETPAGESIZE
10359 /* Assume that all systems that can run configure have sys/param.h. */
10360 # ifndef HAVE_SYS_PARAM_H
10361 # define HAVE_SYS_PARAM_H 1
10362 # endif
10363
10364 # ifdef _SC_PAGESIZE
10365 # define getpagesize() sysconf(_SC_PAGESIZE)
10366 # else /* no _SC_PAGESIZE */
10367 # ifdef HAVE_SYS_PARAM_H
10368 # include <sys/param.h>
10369 # ifdef EXEC_PAGESIZE
10370 # define getpagesize() EXEC_PAGESIZE
10371 # else /* no EXEC_PAGESIZE */
10372 # ifdef NBPG
10373 # define getpagesize() NBPG * CLSIZE
10374 # ifndef CLSIZE
10375 # define CLSIZE 1
10376 # endif /* no CLSIZE */
10377 # else /* no NBPG */
10378 # ifdef NBPC
10379 # define getpagesize() NBPC
10380 # else /* no NBPC */
10381 # ifdef PAGESIZE
10382 # define getpagesize() PAGESIZE
10383 # endif /* PAGESIZE */
10384 # endif /* no NBPC */
10385 # endif /* no NBPG */
10386 # endif /* no EXEC_PAGESIZE */
10387 # else /* no HAVE_SYS_PARAM_H */
10388 # define getpagesize() 8192 /* punt totally */
10389 # endif /* no HAVE_SYS_PARAM_H */
10390 # endif /* no _SC_PAGESIZE */
10391
10392 #endif /* no HAVE_GETPAGESIZE */
10393
10394 int
10395 main ()
10396 {
10397 char *data, *data2, *data3;
10398 int i, pagesize;
10399 int fd;
10400
10401 pagesize = getpagesize ();
10402
10403 /* First, make a file with some known garbage in it. */
10404 data = (char *) malloc (pagesize);
10405 if (!data)
10406 return 1;
10407 for (i = 0; i < pagesize; ++i)
10408 *(data + i) = rand ();
10409 umask (0);
10410 fd = creat ("conftest.mmap", 0600);
10411 if (fd < 0)
10412 return 1;
10413 if (write (fd, data, pagesize) != pagesize)
10414 return 1;
10415 close (fd);
10416
10417 /* Next, try to mmap the file at a fixed address which already has
10418 something else allocated at it. If we can, also make sure that
10419 we see the same garbage. */
10420 fd = open ("conftest.mmap", O_RDWR);
10421 if (fd < 0)
10422 return 1;
10423 data2 = (char *) malloc (2 * pagesize);
10424 if (!data2)
10425 return 1;
10426 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10427 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10428 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10429 return 1;
10430 for (i = 0; i < pagesize; ++i)
10431 if (*(data + i) != *(data2 + i))
10432 return 1;
10433
10434 /* Finally, make sure that changes to the mapped area do not
10435 percolate back to the file as seen by read(). (This is a bug on
10436 some variants of i386 svr4.0.) */
10437 for (i = 0; i < pagesize; ++i)
10438 *(data2 + i) = *(data2 + i) + 1;
10439 data3 = (char *) malloc (pagesize);
10440 if (!data3)
10441 return 1;
10442 if (read (fd, data3, pagesize) != pagesize)
10443 return 1;
10444 for (i = 0; i < pagesize; ++i)
10445 if (*(data + i) != *(data3 + i))
10446 return 1;
10447 close (fd);
10448 return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10462 { (case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10465 esac
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_try") 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_func_mmap_fixed_mapped=yes
10472 else
10473 echo "$as_me: program exited with status $ac_status" >&5
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10476
10477 ( exit $ac_status )
10478 ac_cv_func_mmap_fixed_mapped=no
10479 fi
10480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10481 fi
10482
10483
10484 fi
10485 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10486 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10487 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10488
10489 cat >>confdefs.h <<\_ACEOF
10490 #define HAVE_MMAP 1
10491 _ACEOF
10492
10493 fi
10494 rm -f conftest.mmap
10495
10496 if test $use_mmap_for_buffers = yes; then
10497 REL_ALLOC=no
10498 fi
10499
10500 LIBS="$libsrc_libs $LIBS"
10501
10502
10503 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10504 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10505 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508 ac_check_lib_save_LIBS=$LIBS
10509 LIBS="-ldnet $LIBS"
10510 cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h. */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516
10517 /* Override any GCC internal prototype to avoid an error.
10518 Use char because int might match the return type of a GCC
10519 builtin and then its argument prototype would still apply. */
10520 #ifdef __cplusplus
10521 extern "C"
10522 #endif
10523 char dnet_ntoa ();
10524 int
10525 main ()
10526 {
10527 return dnet_ntoa ();
10528 ;
10529 return 0;
10530 }
10531 _ACEOF
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (ac_try="$ac_link"
10534 case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_link") 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest$ac_exeext &&
10549 $as_test_x conftest$ac_exeext; then
10550 ac_cv_lib_dnet_dnet_ntoa=yes
10551 else
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10554
10555 ac_cv_lib_dnet_dnet_ntoa=no
10556 fi
10557
10558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10561 fi
10562 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10563 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10564 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10565 cat >>confdefs.h <<_ACEOF
10566 #define HAVE_LIBDNET 1
10567 _ACEOF
10568
10569 LIBS="-ldnet $LIBS"
10570
10571 fi
10572
10573
10574 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10575 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10576 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579 ac_check_lib_save_LIBS=$LIBS
10580 LIBS="-lXbsd $LIBS"
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h. */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587
10588
10589 int
10590 main ()
10591 {
10592 return main ();
10593 ;
10594 return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (ac_try="$ac_link"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_link") 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest$ac_exeext &&
10614 $as_test_x conftest$ac_exeext; then
10615 ac_cv_lib_Xbsd_main=yes
10616 else
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_cv_lib_Xbsd_main=no
10621 fi
10622
10623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10624 conftest$ac_exeext conftest.$ac_ext
10625 LIBS=$ac_check_lib_save_LIBS
10626 fi
10627 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10628 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10629 if test $ac_cv_lib_Xbsd_main = yes; then
10630 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10631 fi
10632
10633
10634
10635 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10636 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10637 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640 ac_check_lib_save_LIBS=$LIBS
10641 LIBS="-lpthreads $LIBS"
10642 cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h. */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648
10649 /* Override any GCC internal prototype to avoid an error.
10650 Use char because int might match the return type of a GCC
10651 builtin and then its argument prototype would still apply. */
10652 #ifdef __cplusplus
10653 extern "C"
10654 #endif
10655 char cma_open ();
10656 int
10657 main ()
10658 {
10659 return cma_open ();
10660 ;
10661 return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (ac_try="$ac_link"
10666 case "(($ac_try" in
10667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668 *) ac_try_echo=$ac_try;;
10669 esac
10670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671 (eval "$ac_link") 2>conftest.er1
10672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && {
10678 test -z "$ac_c_werror_flag" ||
10679 test ! -s conftest.err
10680 } && test -s conftest$ac_exeext &&
10681 $as_test_x conftest$ac_exeext; then
10682 ac_cv_lib_pthreads_cma_open=yes
10683 else
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 ac_cv_lib_pthreads_cma_open=no
10688 fi
10689
10690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10691 conftest$ac_exeext conftest.$ac_ext
10692 LIBS=$ac_check_lib_save_LIBS
10693 fi
10694 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10695 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10696 if test $ac_cv_lib_pthreads_cma_open = yes; then
10697 cat >>confdefs.h <<_ACEOF
10698 #define HAVE_LIBPTHREADS 1
10699 _ACEOF
10700
10701 LIBS="-lpthreads $LIBS"
10702
10703 fi
10704
10705
10706 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10707 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10708 if test -d /usr/X386/include; then
10709 HAVE_XFREE386=yes
10710 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10711 else
10712 HAVE_XFREE386=no
10713 fi
10714 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10715 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10716
10717
10718 case ${host_os} in
10719 aix*)
10720 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10721 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10722 if test "${gdb_cv_bigtoc+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725
10726 case $GCC in
10727 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10728 *) gdb_cv_bigtoc=-bbigtoc ;;
10729 esac
10730
10731 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10732 cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h. */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738
10739 int
10740 main ()
10741 {
10742 int i;
10743 ;
10744 return 0;
10745 }
10746 _ACEOF
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (ac_try="$ac_link"
10749 case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10752 esac
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_link") 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest$ac_exeext &&
10764 $as_test_x conftest$ac_exeext; then
10765 :
10766 else
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 gdb_cv_bigtoc=
10771 fi
10772
10773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10774 conftest$ac_exeext conftest.$ac_ext
10775
10776 fi
10777 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10778 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10779 ;;
10780 esac
10781
10782 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10783 # used for the tests that follow. We set them back to REAL_CFLAGS and
10784 # REAL_CPPFLAGS later on.
10785
10786 REAL_CPPFLAGS="$CPPFLAGS"
10787
10788 if test "${HAVE_X11}" = "yes"; then
10789 DEFS="$C_SWITCH_X_SITE $DEFS"
10790 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10791 LIBS="$LIBX $LIBS"
10792 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10793 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10794
10795 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10796 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10797 # but it's more convenient here to set LD_RUN_PATH
10798 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10799 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10800 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10801 export LD_RUN_PATH
10802 fi
10803
10804 if test "${opsys}" = "gnu-linux"; then
10805 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10806 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h. */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813
10814 int
10815 main ()
10816 {
10817 XOpenDisplay ("foo");
10818 ;
10819 return 0;
10820 }
10821 _ACEOF
10822 rm -f conftest.$ac_objext conftest$ac_exeext
10823 if { (ac_try="$ac_link"
10824 case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10827 esac
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_link") 2>conftest.er1
10830 ac_status=$?
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest$ac_exeext &&
10839 $as_test_x conftest$ac_exeext; then
10840 xlinux_first_failure=no
10841 else
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10844
10845 xlinux_first_failure=yes
10846 fi
10847
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10850 if test "${xlinux_first_failure}" = "yes"; then
10851 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10852 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10853 OLD_CPPFLAGS="$CPPFLAGS"
10854 OLD_LIBS="$LIBS"
10855 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10856 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10857 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10858 LIBS="$LIBS -b i486-linuxaout"
10859 cat >conftest.$ac_ext <<_ACEOF
10860 /* confdefs.h. */
10861 _ACEOF
10862 cat confdefs.h >>conftest.$ac_ext
10863 cat >>conftest.$ac_ext <<_ACEOF
10864 /* end confdefs.h. */
10865
10866 int
10867 main ()
10868 {
10869 XOpenDisplay ("foo");
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (ac_try="$ac_link"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_link") 2>conftest.er1
10882 ac_status=$?
10883 grep -v '^ *+' conftest.er1 >conftest.err
10884 rm -f conftest.er1
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } && {
10888 test -z "$ac_c_werror_flag" ||
10889 test ! -s conftest.err
10890 } && test -s conftest$ac_exeext &&
10891 $as_test_x conftest$ac_exeext; then
10892 xlinux_second_failure=no
10893 else
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 xlinux_second_failure=yes
10898 fi
10899
10900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10901 conftest$ac_exeext conftest.$ac_ext
10902 if test "${xlinux_second_failure}" = "yes"; then
10903 # If we get the same failure with -b, there is no use adding -b.
10904 # So take it out. This plays safe.
10905 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10906 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10907 CPPFLAGS="$OLD_CPPFLAGS"
10908 LIBS="$OLD_LIBS"
10909 { echo "$as_me:$LINENO: result: no" >&5
10910 echo "${ECHO_T}no" >&6; }
10911 else
10912 { echo "$as_me:$LINENO: result: yes" >&5
10913 echo "${ECHO_T}yes" >&6; }
10914 fi
10915 else
10916 { echo "$as_me:$LINENO: result: no" >&5
10917 echo "${ECHO_T}no" >&6; }
10918 fi
10919 fi
10920
10921 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10922 # header files included from there.
10923 { echo "$as_me:$LINENO: checking for Xkb" >&5
10924 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 #include <X11/Xlib.h>
10932 #include <X11/XKBlib.h>
10933 int
10934 main ()
10935 {
10936 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10937 ;
10938 return 0;
10939 }
10940 _ACEOF
10941 rm -f conftest.$ac_objext conftest$ac_exeext
10942 if { (ac_try="$ac_link"
10943 case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_link") 2>conftest.er1
10949 ac_status=$?
10950 grep -v '^ *+' conftest.er1 >conftest.err
10951 rm -f conftest.er1
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } && {
10955 test -z "$ac_c_werror_flag" ||
10956 test ! -s conftest.err
10957 } && test -s conftest$ac_exeext &&
10958 $as_test_x conftest$ac_exeext; then
10959 emacs_xkb=yes
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964 emacs_xkb=no
10965 fi
10966
10967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10968 conftest$ac_exeext conftest.$ac_ext
10969 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10970 echo "${ECHO_T}$emacs_xkb" >&6; }
10971 if test $emacs_xkb = yes; then
10972
10973 cat >>confdefs.h <<\_ACEOF
10974 #define HAVE_XKBGETKEYBOARD 1
10975 _ACEOF
10976
10977 fi
10978
10979
10980
10981
10982
10983 for ac_func in XrmSetDatabase XScreenResourceString \
10984 XScreenNumberOfScreen XSetWMProtocols
10985 do
10986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11000 #define $ac_func innocuous_$ac_func
11001
11002 /* System header to define __stub macros and hopefully few prototypes,
11003 which can conflict with char $ac_func (); below.
11004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11005 <limits.h> exists even on freestanding compilers. */
11006
11007 #ifdef __STDC__
11008 # include <limits.h>
11009 #else
11010 # include <assert.h>
11011 #endif
11012
11013 #undef $ac_func
11014
11015 /* Override any GCC internal prototype to avoid an error.
11016 Use char because int might match the return type of a GCC
11017 builtin and then its argument prototype would still apply. */
11018 #ifdef __cplusplus
11019 extern "C"
11020 #endif
11021 char $ac_func ();
11022 /* The GNU C library defines this for functions which it implements
11023 to always fail with ENOSYS. Some functions are actually named
11024 something starting with __ and the normal name is an alias. */
11025 #if defined __stub_$ac_func || defined __stub___$ac_func
11026 choke me
11027 #endif
11028
11029 int
11030 main ()
11031 {
11032 return $ac_func ();
11033 ;
11034 return 0;
11035 }
11036 _ACEOF
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (ac_try="$ac_link"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext &&
11054 $as_test_x conftest$ac_exeext; then
11055 eval "$as_ac_var=yes"
11056 else
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060 eval "$as_ac_var=no"
11061 fi
11062
11063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11064 conftest$ac_exeext conftest.$ac_ext
11065 fi
11066 ac_res=`eval echo '${'$as_ac_var'}'`
11067 { echo "$as_me:$LINENO: result: $ac_res" >&5
11068 echo "${ECHO_T}$ac_res" >&6; }
11069 if test `eval echo '${'$as_ac_var'}'` = yes; then
11070 cat >>confdefs.h <<_ACEOF
11071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11072 _ACEOF
11073
11074 fi
11075 done
11076
11077 fi
11078
11079 if test "${window_system}" = "x11"; then
11080 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11081 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11082 if test "${emacs_cv_x11_version_6+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 #include <X11/Xlib.h>
11092 int
11093 main ()
11094 {
11095 #if XlibSpecificationRelease < 6
11096 fail;
11097 #endif
11098
11099 ;
11100 return 0;
11101 }
11102 _ACEOF
11103 rm -f conftest.$ac_objext conftest$ac_exeext
11104 if { (ac_try="$ac_link"
11105 case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108 esac
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_link") 2>conftest.er1
11111 ac_status=$?
11112 grep -v '^ *+' conftest.er1 >conftest.err
11113 rm -f conftest.er1
11114 cat conftest.err >&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } && {
11117 test -z "$ac_c_werror_flag" ||
11118 test ! -s conftest.err
11119 } && test -s conftest$ac_exeext &&
11120 $as_test_x conftest$ac_exeext; then
11121 emacs_cv_x11_version_6=yes
11122 else
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11125
11126 emacs_cv_x11_version_6=no
11127 fi
11128
11129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11130 conftest$ac_exeext conftest.$ac_ext
11131 fi
11132
11133 if test $emacs_cv_x11_version_6 = yes; then
11134 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11135 echo "${ECHO_T}6 or newer" >&6; }
11136
11137 cat >>confdefs.h <<\_ACEOF
11138 #define HAVE_X11R6 1
11139 _ACEOF
11140
11141 else
11142 { echo "$as_me:$LINENO: result: before 6" >&5
11143 echo "${ECHO_T}before 6" >&6; }
11144 fi
11145 fi
11146
11147
11148 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11149 HAVE_RSVG=no
11150 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11151 if test "${with_rsvg}" != "no"; then
11152 if test "X${with_pkg_config_prog}" != X; then
11153 PKG_CONFIG="${with_pkg_config_prog}"
11154 fi
11155
11156 RSVG_REQUIRED=2.0.0
11157 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11158
11159
11160 succeeded=no
11161
11162 if test -z "$PKG_CONFIG"; then
11163 # Extract the first word of "pkg-config", so it can be a program name with args.
11164 set dummy pkg-config; ac_word=$2
11165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11167 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170 case $PKG_CONFIG in
11171 [\\/]* | ?:[\\/]*)
11172 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11173 ;;
11174 *)
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11177 do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11182 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186 done
11187 done
11188 IFS=$as_save_IFS
11189
11190 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11191 ;;
11192 esac
11193 fi
11194 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11195 if test -n "$PKG_CONFIG"; then
11196 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11197 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11198 else
11199 { echo "$as_me:$LINENO: result: no" >&5
11200 echo "${ECHO_T}no" >&6; }
11201 fi
11202
11203
11204 fi
11205
11206 if test "$PKG_CONFIG" = "no" ; then
11207 :
11208 else
11209 PKG_CONFIG_MIN_VERSION=0.9.0
11210 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11211 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11212 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11213
11214 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11215 { echo "$as_me:$LINENO: result: yes" >&5
11216 echo "${ECHO_T}yes" >&6; }
11217 succeeded=yes
11218
11219 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11220 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11221 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11222 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11223 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11224
11225 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11226 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11227 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11228 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11229 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11230 else
11231 { echo "$as_me:$LINENO: result: no" >&5
11232 echo "${ECHO_T}no" >&6; }
11233 RSVG_CFLAGS=""
11234 RSVG_LIBS=""
11235 ## If we have a custom action on failure, don't print errors, but
11236 ## do set a variable so people can do so.
11237 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11238
11239 fi
11240
11241
11242
11243 else
11244 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11245 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11246 fi
11247 fi
11248
11249 if test $succeeded = yes; then
11250 :
11251 else
11252 :
11253 fi
11254
11255
11256
11257
11258 if test ".${RSVG_CFLAGS}" != "."; then
11259 HAVE_RSVG=yes
11260
11261 cat >>confdefs.h <<\_ACEOF
11262 #define HAVE_RSVG 1
11263 _ACEOF
11264
11265 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11266 LIBS="$RSVG_LIBS $LIBS"
11267 fi
11268 fi
11269 fi
11270
11271
11272 HAVE_GTK=no
11273 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11274 USE_X_TOOLKIT=none
11275 fi
11276 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11277 test "$USE_X_TOOLKIT" = "maybe"; then
11278 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11279 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11280 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11281 { (exit 1); exit 1; }; };
11282 fi
11283 GLIB_REQUIRED=2.6
11284 GTK_REQUIRED=2.6
11285 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11286
11287 if test "X${with_pkg_config_prog}" != X; then
11288 PKG_CONFIG="${with_pkg_config_prog}"
11289 fi
11290
11291 succeeded=no
11292
11293 if test -z "$PKG_CONFIG"; then
11294 # Extract the first word of "pkg-config", so it can be a program name with args.
11295 set dummy pkg-config; ac_word=$2
11296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11298 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301 case $PKG_CONFIG in
11302 [\\/]* | ?:[\\/]*)
11303 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11304 ;;
11305 *)
11306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307 for as_dir in $PATH
11308 do
11309 IFS=$as_save_IFS
11310 test -z "$as_dir" && as_dir=.
11311 for ac_exec_ext in '' $ac_executable_extensions; do
11312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11313 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 break 2
11316 fi
11317 done
11318 done
11319 IFS=$as_save_IFS
11320
11321 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11322 ;;
11323 esac
11324 fi
11325 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11326 if test -n "$PKG_CONFIG"; then
11327 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11328 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11329 else
11330 { echo "$as_me:$LINENO: result: no" >&5
11331 echo "${ECHO_T}no" >&6; }
11332 fi
11333
11334
11335 fi
11336
11337 if test "$PKG_CONFIG" = "no" ; then
11338 pkg_check_gtk=no
11339 else
11340 PKG_CONFIG_MIN_VERSION=0.9.0
11341 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11342 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11343 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11344
11345 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11346 { echo "$as_me:$LINENO: result: yes" >&5
11347 echo "${ECHO_T}yes" >&6; }
11348 succeeded=yes
11349
11350 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11351 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11352 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11353 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11354 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11355
11356 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11357 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11358 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11359 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11360 echo "${ECHO_T}$GTK_LIBS" >&6; }
11361 else
11362 { echo "$as_me:$LINENO: result: no" >&5
11363 echo "${ECHO_T}no" >&6; }
11364 GTK_CFLAGS=""
11365 GTK_LIBS=""
11366 ## If we have a custom action on failure, don't print errors, but
11367 ## do set a variable so people can do so.
11368 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11369
11370 fi
11371
11372
11373
11374 else
11375 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11376 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11377 fi
11378 fi
11379
11380 if test $succeeded = yes; then
11381 pkg_check_gtk=yes
11382 else
11383 pkg_check_gtk=no
11384 fi
11385
11386 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11387 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11388 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11389 { (exit 1); exit 1; }; }
11390 fi
11391 fi
11392
11393
11394 if test x"$pkg_check_gtk" = xyes; then
11395
11396
11397
11398 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11399 CFLAGS="$CFLAGS $GTK_CFLAGS"
11400 LIBS="$GTK_LIBS $LIBS"
11401 GTK_COMPILES=no
11402
11403 for ac_func in gtk_main
11404 do
11405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411 cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h. */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11419 #define $ac_func innocuous_$ac_func
11420
11421 /* System header to define __stub macros and hopefully few prototypes,
11422 which can conflict with char $ac_func (); below.
11423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11424 <limits.h> exists even on freestanding compilers. */
11425
11426 #ifdef __STDC__
11427 # include <limits.h>
11428 #else
11429 # include <assert.h>
11430 #endif
11431
11432 #undef $ac_func
11433
11434 /* Override any GCC internal prototype to avoid an error.
11435 Use char because int might match the return type of a GCC
11436 builtin and then its argument prototype would still apply. */
11437 #ifdef __cplusplus
11438 extern "C"
11439 #endif
11440 char $ac_func ();
11441 /* The GNU C library defines this for functions which it implements
11442 to always fail with ENOSYS. Some functions are actually named
11443 something starting with __ and the normal name is an alias. */
11444 #if defined __stub_$ac_func || defined __stub___$ac_func
11445 choke me
11446 #endif
11447
11448 int
11449 main ()
11450 {
11451 return $ac_func ();
11452 ;
11453 return 0;
11454 }
11455 _ACEOF
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (ac_try="$ac_link"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_link") 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && {
11470 test -z "$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 } && test -s conftest$ac_exeext &&
11473 $as_test_x conftest$ac_exeext; then
11474 eval "$as_ac_var=yes"
11475 else
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11478
11479 eval "$as_ac_var=no"
11480 fi
11481
11482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11483 conftest$ac_exeext conftest.$ac_ext
11484 fi
11485 ac_res=`eval echo '${'$as_ac_var'}'`
11486 { echo "$as_me:$LINENO: result: $ac_res" >&5
11487 echo "${ECHO_T}$ac_res" >&6; }
11488 if test `eval echo '${'$as_ac_var'}'` = yes; then
11489 cat >>confdefs.h <<_ACEOF
11490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11491 _ACEOF
11492 GTK_COMPILES=yes
11493 fi
11494 done
11495
11496 if test "${GTK_COMPILES}" != "yes"; then
11497 if test "$USE_X_TOOLKIT" != "maybe"; then
11498 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11499 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11500 { (exit 1); exit 1; }; };
11501 fi
11502 else
11503 HAVE_GTK=yes
11504
11505 cat >>confdefs.h <<\_ACEOF
11506 #define HAVE_GTK 1
11507 _ACEOF
11508
11509 USE_X_TOOLKIT=none
11510 fi
11511
11512 fi
11513
11514
11515 if test "${HAVE_GTK}" = "yes"; then
11516
11517 if test "$with_toolkit_scroll_bars" != no; then
11518 with_toolkit_scroll_bars=yes
11519 fi
11520
11521 HAVE_GTK_MULTIDISPLAY=no
11522
11523 for ac_func in gdk_display_open
11524 do
11525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h. */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11539 #define $ac_func innocuous_$ac_func
11540
11541 /* System header to define __stub macros and hopefully few prototypes,
11542 which can conflict with char $ac_func (); below.
11543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11544 <limits.h> exists even on freestanding compilers. */
11545
11546 #ifdef __STDC__
11547 # include <limits.h>
11548 #else
11549 # include <assert.h>
11550 #endif
11551
11552 #undef $ac_func
11553
11554 /* Override any GCC internal prototype to avoid an error.
11555 Use char because int might match the return type of a GCC
11556 builtin and then its argument prototype would still apply. */
11557 #ifdef __cplusplus
11558 extern "C"
11559 #endif
11560 char $ac_func ();
11561 /* The GNU C library defines this for functions which it implements
11562 to always fail with ENOSYS. Some functions are actually named
11563 something starting with __ and the normal name is an alias. */
11564 #if defined __stub_$ac_func || defined __stub___$ac_func
11565 choke me
11566 #endif
11567
11568 int
11569 main ()
11570 {
11571 return $ac_func ();
11572 ;
11573 return 0;
11574 }
11575 _ACEOF
11576 rm -f conftest.$ac_objext conftest$ac_exeext
11577 if { (ac_try="$ac_link"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_link") 2>conftest.er1
11584 ac_status=$?
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } && {
11590 test -z "$ac_c_werror_flag" ||
11591 test ! -s conftest.err
11592 } && test -s conftest$ac_exeext &&
11593 $as_test_x conftest$ac_exeext; then
11594 eval "$as_ac_var=yes"
11595 else
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 eval "$as_ac_var=no"
11600 fi
11601
11602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11603 conftest$ac_exeext conftest.$ac_ext
11604 fi
11605 ac_res=`eval echo '${'$as_ac_var'}'`
11606 { echo "$as_me:$LINENO: result: $ac_res" >&5
11607 echo "${ECHO_T}$ac_res" >&6; }
11608 if test `eval echo '${'$as_ac_var'}'` = yes; then
11609 cat >>confdefs.h <<_ACEOF
11610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11611 _ACEOF
11612 HAVE_GTK_MULTIDISPLAY=yes
11613 fi
11614 done
11615
11616 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11617
11618 cat >>confdefs.h <<\_ACEOF
11619 #define HAVE_GTK_MULTIDISPLAY 1
11620 _ACEOF
11621
11622 fi
11623
11624 HAVE_GTK_FILE_SELECTION=no
11625
11626 for ac_func in gtk_file_selection_new
11627 do
11628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634 cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h. */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11642 #define $ac_func innocuous_$ac_func
11643
11644 /* System header to define __stub macros and hopefully few prototypes,
11645 which can conflict with char $ac_func (); below.
11646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647 <limits.h> exists even on freestanding compilers. */
11648
11649 #ifdef __STDC__
11650 # include <limits.h>
11651 #else
11652 # include <assert.h>
11653 #endif
11654
11655 #undef $ac_func
11656
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11660 #ifdef __cplusplus
11661 extern "C"
11662 #endif
11663 char $ac_func ();
11664 /* The GNU C library defines this for functions which it implements
11665 to always fail with ENOSYS. Some functions are actually named
11666 something starting with __ and the normal name is an alias. */
11667 #if defined __stub_$ac_func || defined __stub___$ac_func
11668 choke me
11669 #endif
11670
11671 int
11672 main ()
11673 {
11674 return $ac_func ();
11675 ;
11676 return 0;
11677 }
11678 _ACEOF
11679 rm -f conftest.$ac_objext conftest$ac_exeext
11680 if { (ac_try="$ac_link"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_link") 2>conftest.er1
11687 ac_status=$?
11688 grep -v '^ *+' conftest.er1 >conftest.err
11689 rm -f conftest.er1
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } && {
11693 test -z "$ac_c_werror_flag" ||
11694 test ! -s conftest.err
11695 } && test -s conftest$ac_exeext &&
11696 $as_test_x conftest$ac_exeext; then
11697 eval "$as_ac_var=yes"
11698 else
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702 eval "$as_ac_var=no"
11703 fi
11704
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706 conftest$ac_exeext conftest.$ac_ext
11707 fi
11708 ac_res=`eval echo '${'$as_ac_var'}'`
11709 { echo "$as_me:$LINENO: result: $ac_res" >&5
11710 echo "${ECHO_T}$ac_res" >&6; }
11711 if test `eval echo '${'$as_ac_var'}'` = yes; then
11712 cat >>confdefs.h <<_ACEOF
11713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11714 _ACEOF
11715 HAVE_GTK_FILE_SELECTION=yes
11716 fi
11717 done
11718
11719
11720 HAVE_GTK_FILE_CHOOSER=no
11721
11722 for ac_func in gtk_file_chooser_dialog_new
11723 do
11724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730 cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h. */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11738 #define $ac_func innocuous_$ac_func
11739
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func (); below.
11742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11743 <limits.h> exists even on freestanding compilers. */
11744
11745 #ifdef __STDC__
11746 # include <limits.h>
11747 #else
11748 # include <assert.h>
11749 #endif
11750
11751 #undef $ac_func
11752
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11756 #ifdef __cplusplus
11757 extern "C"
11758 #endif
11759 char $ac_func ();
11760 /* The GNU C library defines this for functions which it implements
11761 to always fail with ENOSYS. Some functions are actually named
11762 something starting with __ and the normal name is an alias. */
11763 #if defined __stub_$ac_func || defined __stub___$ac_func
11764 choke me
11765 #endif
11766
11767 int
11768 main ()
11769 {
11770 return $ac_func ();
11771 ;
11772 return 0;
11773 }
11774 _ACEOF
11775 rm -f conftest.$ac_objext conftest$ac_exeext
11776 if { (ac_try="$ac_link"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_link") 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } && {
11789 test -z "$ac_c_werror_flag" ||
11790 test ! -s conftest.err
11791 } && test -s conftest$ac_exeext &&
11792 $as_test_x conftest$ac_exeext; then
11793 eval "$as_ac_var=yes"
11794 else
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798 eval "$as_ac_var=no"
11799 fi
11800
11801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11802 conftest$ac_exeext conftest.$ac_ext
11803 fi
11804 ac_res=`eval echo '${'$as_ac_var'}'`
11805 { echo "$as_me:$LINENO: result: $ac_res" >&5
11806 echo "${ECHO_T}$ac_res" >&6; }
11807 if test `eval echo '${'$as_ac_var'}'` = yes; then
11808 cat >>confdefs.h <<_ACEOF
11809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11810 _ACEOF
11811 HAVE_GTK_FILE_CHOOSER=yes
11812 fi
11813 done
11814
11815
11816 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11817 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11818
11819 cat >>confdefs.h <<\_ACEOF
11820 #define HAVE_GTK_FILE_BOTH 1
11821 _ACEOF
11822
11823 fi
11824
11825 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11826 HAVE_GTK_AND_PTHREAD=no
11827
11828 for ac_header in pthread.h
11829 do
11830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 fi
11837 ac_res=`eval echo '${'$as_ac_Header'}'`
11838 { echo "$as_me:$LINENO: result: $ac_res" >&5
11839 echo "${ECHO_T}$ac_res" >&6; }
11840 else
11841 # Is the header compilable?
11842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h. */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 $ac_includes_default
11851 #include <$ac_header>
11852 _ACEOF
11853 rm -f conftest.$ac_objext
11854 if { (ac_try="$ac_compile"
11855 case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11858 esac
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860 (eval "$ac_compile") 2>conftest.er1
11861 ac_status=$?
11862 grep -v '^ *+' conftest.er1 >conftest.err
11863 rm -f conftest.er1
11864 cat conftest.err >&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } && {
11867 test -z "$ac_c_werror_flag" ||
11868 test ! -s conftest.err
11869 } && test -s conftest.$ac_objext; then
11870 ac_header_compiler=yes
11871 else
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 ac_header_compiler=no
11876 fi
11877
11878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11880 echo "${ECHO_T}$ac_header_compiler" >&6; }
11881
11882 # Is the header present?
11883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h. */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 #include <$ac_header>
11892 _ACEOF
11893 if { (ac_try="$ac_cpp conftest.$ac_ext"
11894 case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897 esac
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11900 ac_status=$?
11901 grep -v '^ *+' conftest.er1 >conftest.err
11902 rm -f conftest.er1
11903 cat conftest.err >&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } >/dev/null && {
11906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11907 test ! -s conftest.err
11908 }; then
11909 ac_header_preproc=yes
11910 else
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 ac_header_preproc=no
11915 fi
11916
11917 rm -f conftest.err conftest.$ac_ext
11918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11919 echo "${ECHO_T}$ac_header_preproc" >&6; }
11920
11921 # So? What about this header?
11922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11923 yes:no: )
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11928 ac_header_preproc=yes
11929 ;;
11930 no:yes:* )
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11943
11944 ;;
11945 esac
11946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951 eval "$as_ac_Header=\$ac_header_preproc"
11952 fi
11953 ac_res=`eval echo '${'$as_ac_Header'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956
11957 fi
11958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11959 cat >>confdefs.h <<_ACEOF
11960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11961 _ACEOF
11962
11963 fi
11964
11965 done
11966
11967 if test "$ac_cv_header_pthread_h"; then
11968 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11969 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11970 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 else
11973 ac_check_lib_save_LIBS=$LIBS
11974 LIBS="-lpthread $LIBS"
11975 cat >conftest.$ac_ext <<_ACEOF
11976 /* confdefs.h. */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11985 #ifdef __cplusplus
11986 extern "C"
11987 #endif
11988 char pthread_self ();
11989 int
11990 main ()
11991 {
11992 return pthread_self ();
11993 ;
11994 return 0;
11995 }
11996 _ACEOF
11997 rm -f conftest.$ac_objext conftest$ac_exeext
11998 if { (ac_try="$ac_link"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002 esac
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_link") 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest$ac_exeext &&
12014 $as_test_x conftest$ac_exeext; then
12015 ac_cv_lib_pthread_pthread_self=yes
12016 else
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12019
12020 ac_cv_lib_pthread_pthread_self=no
12021 fi
12022
12023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12024 conftest$ac_exeext conftest.$ac_ext
12025 LIBS=$ac_check_lib_save_LIBS
12026 fi
12027 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12028 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12029 if test $ac_cv_lib_pthread_pthread_self = yes; then
12030 HAVE_GTK_AND_PTHREAD=yes
12031 fi
12032
12033 fi
12034 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12035 case "${canonical}" in
12036 *-hpux*) ;;
12037 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12038 esac
12039
12040 cat >>confdefs.h <<\_ACEOF
12041 #define HAVE_GTK_AND_PTHREAD 1
12042 _ACEOF
12043
12044 fi
12045 fi
12046 fi
12047
12048 HAVE_DBUS=no
12049 if test "${with_dbus}" = "yes"; then
12050
12051 succeeded=no
12052
12053 if test -z "$PKG_CONFIG"; then
12054 # Extract the first word of "pkg-config", so it can be a program name with args.
12055 set dummy pkg-config; ac_word=$2
12056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12058 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061 case $PKG_CONFIG in
12062 [\\/]* | ?:[\\/]*)
12063 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12064 ;;
12065 *)
12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067 for as_dir in $PATH
12068 do
12069 IFS=$as_save_IFS
12070 test -z "$as_dir" && as_dir=.
12071 for ac_exec_ext in '' $ac_executable_extensions; do
12072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12073 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 break 2
12076 fi
12077 done
12078 done
12079 IFS=$as_save_IFS
12080
12081 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12082 ;;
12083 esac
12084 fi
12085 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12086 if test -n "$PKG_CONFIG"; then
12087 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12088 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12089 else
12090 { echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6; }
12092 fi
12093
12094
12095 fi
12096
12097 if test "$PKG_CONFIG" = "no" ; then
12098 HAVE_DBUS=no
12099 else
12100 PKG_CONFIG_MIN_VERSION=0.9.0
12101 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12102 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12103 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
12104
12105 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12106 { echo "$as_me:$LINENO: result: yes" >&5
12107 echo "${ECHO_T}yes" >&6; }
12108 succeeded=yes
12109
12110 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12111 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
12112 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12113 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12114 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
12115
12116 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12117 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
12118 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12119 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12120 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12121 else
12122 { echo "$as_me:$LINENO: result: no" >&5
12123 echo "${ECHO_T}no" >&6; }
12124 DBUS_CFLAGS=""
12125 DBUS_LIBS=""
12126 ## If we have a custom action on failure, don't print errors, but
12127 ## do set a variable so people can do so.
12128 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12129
12130 fi
12131
12132
12133
12134 else
12135 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12136 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12137 fi
12138 fi
12139
12140 if test $succeeded = yes; then
12141 HAVE_DBUS=yes
12142 else
12143 HAVE_DBUS=no
12144 fi
12145
12146 if test "$HAVE_DBUS" = yes; then
12147
12148 cat >>confdefs.h <<\_ACEOF
12149 #define HAVE_DBUS 1
12150 _ACEOF
12151
12152 fi
12153 fi
12154
12155 HAVE_XAW3D=no
12156 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12157 if test "$with_xaw3d" != no; then
12158 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12159 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12160 if test "${emacs_cv_xaw3d+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h. */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169
12170 #include <X11/Intrinsic.h>
12171 #include <X11/Xaw3d/Simple.h>
12172 int
12173 main ()
12174 {
12175
12176 ;
12177 return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext conftest$ac_exeext
12181 if { (ac_try="$ac_link"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_link") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && {
12194 test -z "$ac_c_werror_flag" ||
12195 test ! -s conftest.err
12196 } && test -s conftest$ac_exeext &&
12197 $as_test_x conftest$ac_exeext; then
12198 emacs_cv_xaw3d=yes
12199 else
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203 emacs_cv_xaw3d=no
12204 fi
12205
12206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12207 conftest$ac_exeext conftest.$ac_ext
12208 fi
12209
12210 else
12211 emacs_cv_xaw3d=no
12212 fi
12213 if test $emacs_cv_xaw3d = yes; then
12214 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12215 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12216 USE_X_TOOLKIT=LUCID
12217 HAVE_XAW3D=yes
12218
12219 cat >>confdefs.h <<\_ACEOF
12220 #define HAVE_XAW3D 1
12221 _ACEOF
12222
12223 else
12224 { echo "$as_me:$LINENO: result: no" >&5
12225 echo "${ECHO_T}no" >&6; }
12226 { echo "$as_me:$LINENO: checking for libXaw" >&5
12227 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12228 if test "${emacs_cv_xaw+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231 cat >conftest.$ac_ext <<_ACEOF
12232 /* confdefs.h. */
12233 _ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h. */
12237
12238 #include <X11/Intrinsic.h>
12239 #include <X11/Xaw/Simple.h>
12240 int
12241 main ()
12242 {
12243
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (ac_try="$ac_link"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_link") 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } && {
12262 test -z "$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12264 } && test -s conftest$ac_exeext &&
12265 $as_test_x conftest$ac_exeext; then
12266 emacs_cv_xaw=yes
12267 else
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 emacs_cv_xaw=no
12272 fi
12273
12274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12275 conftest$ac_exeext conftest.$ac_ext
12276 fi
12277
12278 if test $emacs_cv_xaw = yes; then
12279 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12280 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12281 USE_X_TOOLKIT=LUCID
12282 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12283 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12284 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12285 { (exit 1); exit 1; }; }
12286 else
12287 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12288 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12289 USE_X_TOOLKIT=none
12290 fi
12291 fi
12292 fi
12293
12294 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12295
12296 if test "${USE_X_TOOLKIT}" != "none"; then
12297 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12298 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12299 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302 cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h. */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 #include <X11/Intrinsic.h>
12309 int
12310 main ()
12311 {
12312 #if XtSpecificationRelease < 6
12313 fail;
12314 #endif
12315
12316 ;
12317 return 0;
12318 }
12319 _ACEOF
12320 rm -f conftest.$ac_objext conftest$ac_exeext
12321 if { (ac_try="$ac_link"
12322 case "(($ac_try" in
12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12325 esac
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327 (eval "$ac_link") 2>conftest.er1
12328 ac_status=$?
12329 grep -v '^ *+' conftest.er1 >conftest.err
12330 rm -f conftest.er1
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } && {
12334 test -z "$ac_c_werror_flag" ||
12335 test ! -s conftest.err
12336 } && test -s conftest$ac_exeext &&
12337 $as_test_x conftest$ac_exeext; then
12338 emacs_cv_x11_toolkit_version_6=yes
12339 else
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343 emacs_cv_x11_toolkit_version_6=no
12344 fi
12345
12346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12347 conftest$ac_exeext conftest.$ac_ext
12348 fi
12349
12350 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12351 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12352 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12353 echo "${ECHO_T}6 or newer" >&6; }
12354
12355 cat >>confdefs.h <<\_ACEOF
12356 #define HAVE_X11XTR6 1
12357 _ACEOF
12358
12359 else
12360 { echo "$as_me:$LINENO: result: before 6" >&5
12361 echo "${ECHO_T}before 6" >&6; }
12362 fi
12363
12364 OLDLIBS="$LIBS"
12365 if test x$HAVE_X11XTR6 = xyes; then
12366 LIBS="-lXt -lSM -lICE $LIBS"
12367 else
12368 LIBS="-lXt $LIBS"
12369 fi
12370
12371 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12372 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12373 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 else
12376 ac_check_lib_save_LIBS=$LIBS
12377 LIBS="-lXmu $LIBS"
12378 cat >conftest.$ac_ext <<_ACEOF
12379 /* confdefs.h. */
12380 _ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12384
12385 /* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 char XmuConvertStandardSelection ();
12392 int
12393 main ()
12394 {
12395 return XmuConvertStandardSelection ();
12396 ;
12397 return 0;
12398 }
12399 _ACEOF
12400 rm -f conftest.$ac_objext conftest$ac_exeext
12401 if { (ac_try="$ac_link"
12402 case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12405 esac
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_link") 2>conftest.er1
12408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } && {
12414 test -z "$ac_c_werror_flag" ||
12415 test ! -s conftest.err
12416 } && test -s conftest$ac_exeext &&
12417 $as_test_x conftest$ac_exeext; then
12418 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12419 else
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12422
12423 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12424 fi
12425
12426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12427 conftest$ac_exeext conftest.$ac_ext
12428 LIBS=$ac_check_lib_save_LIBS
12429 fi
12430 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12431 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12432 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12433 cat >>confdefs.h <<_ACEOF
12434 #define HAVE_LIBXMU 1
12435 _ACEOF
12436
12437 LIBS="-lXmu $LIBS"
12438
12439 fi
12440
12441 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12442 fi
12443
12444 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12445 if test "${HAVE_X11}" = "yes"; then
12446 if test "${USE_X_TOOLKIT}" != "none"; then
12447
12448 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12449 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12450 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453 ac_check_lib_save_LIBS=$LIBS
12454 LIBS="-lXext $LIBS"
12455 cat >conftest.$ac_ext <<_ACEOF
12456 /* confdefs.h. */
12457 _ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h. */
12461
12462 /* Override any GCC internal prototype to avoid an error.
12463 Use char because int might match the return type of a GCC
12464 builtin and then its argument prototype would still apply. */
12465 #ifdef __cplusplus
12466 extern "C"
12467 #endif
12468 char XShapeQueryExtension ();
12469 int
12470 main ()
12471 {
12472 return XShapeQueryExtension ();
12473 ;
12474 return 0;
12475 }
12476 _ACEOF
12477 rm -f conftest.$ac_objext conftest$ac_exeext
12478 if { (ac_try="$ac_link"
12479 case "(($ac_try" in
12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12482 esac
12483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484 (eval "$ac_link") 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } && {
12491 test -z "$ac_c_werror_flag" ||
12492 test ! -s conftest.err
12493 } && test -s conftest$ac_exeext &&
12494 $as_test_x conftest$ac_exeext; then
12495 ac_cv_lib_Xext_XShapeQueryExtension=yes
12496 else
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12499
12500 ac_cv_lib_Xext_XShapeQueryExtension=no
12501 fi
12502
12503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12504 conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_lib_save_LIBS
12506 fi
12507 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12508 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12509 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12510 cat >>confdefs.h <<_ACEOF
12511 #define HAVE_LIBXEXT 1
12512 _ACEOF
12513
12514 LIBS="-lXext $LIBS"
12515
12516 fi
12517
12518 fi
12519 fi
12520
12521 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12522 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12523 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12524 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 else
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 #include <Xm/Xm.h>
12534 int
12535 main ()
12536 {
12537 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12538 int x = 5;
12539 #else
12540 Motif version prior to 2.1.
12541 #endif
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext
12547 if { (ac_try="$ac_compile"
12548 case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12551 esac
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_compile") 2>conftest.er1
12554 ac_status=$?
12555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && {
12560 test -z "$ac_c_werror_flag" ||
12561 test ! -s conftest.err
12562 } && test -s conftest.$ac_objext; then
12563 emacs_cv_motif_version_2_1=yes
12564 else
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 emacs_cv_motif_version_2_1=no
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 fi
12573 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12574 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12575 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12576 if test $emacs_cv_motif_version_2_1 = yes; then
12577 HAVE_LIBXP=no
12578
12579 cat >>confdefs.h <<\_ACEOF
12580 #define HAVE_MOTIF_2_1 1
12581 _ACEOF
12582
12583 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12584 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12585 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588 ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-lXp $LIBS"
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h. */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596
12597 /* Override any GCC internal prototype to avoid an error.
12598 Use char because int might match the return type of a GCC
12599 builtin and then its argument prototype would still apply. */
12600 #ifdef __cplusplus
12601 extern "C"
12602 #endif
12603 char XpCreateContext ();
12604 int
12605 main ()
12606 {
12607 return XpCreateContext ();
12608 ;
12609 return 0;
12610 }
12611 _ACEOF
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_link") 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && {
12626 test -z "$ac_c_werror_flag" ||
12627 test ! -s conftest.err
12628 } && test -s conftest$ac_exeext &&
12629 $as_test_x conftest$ac_exeext; then
12630 ac_cv_lib_Xp_XpCreateContext=yes
12631 else
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635 ac_cv_lib_Xp_XpCreateContext=no
12636 fi
12637
12638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12641 fi
12642 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12643 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12644 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12645 HAVE_LIBXP=yes
12646 fi
12647
12648 if test ${HAVE_LIBXP} = yes; then
12649
12650 cat >>confdefs.h <<\_ACEOF
12651 #define HAVE_LIBXP 1
12652 _ACEOF
12653
12654 fi
12655 else
12656 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12657 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12658 if test "${emacs_cv_lesstif+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661 # We put this in CFLAGS temporarily to precede other -I options
12662 # that might be in CFLAGS temporarily.
12663 # We put this in CPPFLAGS where it precedes the other -I options.
12664 OLD_CPPFLAGS=$CPPFLAGS
12665 OLD_CFLAGS=$CFLAGS
12666 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12667 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12668 cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h. */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12675 int
12676 main ()
12677 {
12678 int x = 5;
12679 ;
12680 return 0;
12681 }
12682 _ACEOF
12683 rm -f conftest.$ac_objext
12684 if { (ac_try="$ac_compile"
12685 case "(($ac_try" in
12686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687 *) ac_try_echo=$ac_try;;
12688 esac
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_compile") 2>conftest.er1
12691 ac_status=$?
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } && {
12697 test -z "$ac_c_werror_flag" ||
12698 test ! -s conftest.err
12699 } && test -s conftest.$ac_objext; then
12700 emacs_cv_lesstif=yes
12701 else
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12704
12705 emacs_cv_lesstif=no
12706 fi
12707
12708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12709 fi
12710 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12711 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12712 if test $emacs_cv_lesstif = yes; then
12713 # Make sure this -I option remains in CPPFLAGS after it is set
12714 # back to REAL_CPPFLAGS.
12715 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12716 # have those other -I options anyway. Ultimately, having this
12717 # directory ultimately in CPPFLAGS will be enough.
12718 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12719 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12720 else
12721 CFLAGS=$OLD_CFLAGS
12722 CPPFLAGS=$OLD_CPPFLAGS
12723 fi
12724 fi
12725 fi
12726
12727
12728
12729 USE_TOOLKIT_SCROLL_BARS=no
12730 if test "${with_toolkit_scroll_bars}" != "no"; then
12731 if test "${USE_X_TOOLKIT}" != "none"; then
12732 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12733 cat >>confdefs.h <<\_ACEOF
12734 #define USE_TOOLKIT_SCROLL_BARS 1
12735 _ACEOF
12736
12737 HAVE_XAW3D=no
12738 USE_TOOLKIT_SCROLL_BARS=yes
12739 elif test "${HAVE_XAW3D}" = "yes"; then
12740 cat >>confdefs.h <<\_ACEOF
12741 #define USE_TOOLKIT_SCROLL_BARS 1
12742 _ACEOF
12743
12744 USE_TOOLKIT_SCROLL_BARS=yes
12745 fi
12746 elif test "${HAVE_GTK}" = "yes"; then
12747 cat >>confdefs.h <<\_ACEOF
12748 #define USE_TOOLKIT_SCROLL_BARS 1
12749 _ACEOF
12750
12751 USE_TOOLKIT_SCROLL_BARS=yes
12752 elif test "${HAVE_CARBON}" = "yes"; then
12753 cat >>confdefs.h <<\_ACEOF
12754 #define USE_TOOLKIT_SCROLL_BARS 1
12755 _ACEOF
12756
12757 USE_TOOLKIT_SCROLL_BARS=yes
12758 fi
12759 fi
12760
12761 cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h. */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12767
12768 #include <X11/Xlib.h>
12769 #include <X11/Xresource.h>
12770 int
12771 main ()
12772 {
12773 XIMProc callback;
12774 ;
12775 return 0;
12776 }
12777 _ACEOF
12778 rm -f conftest.$ac_objext
12779 if { (ac_try="$ac_compile"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_compile") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } && {
12792 test -z "$ac_c_werror_flag" ||
12793 test ! -s conftest.err
12794 } && test -s conftest.$ac_objext; then
12795 HAVE_XIM=yes
12796
12797 cat >>confdefs.h <<\_ACEOF
12798 #define HAVE_XIM 1
12799 _ACEOF
12800
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805 HAVE_XIM=no
12806 fi
12807
12808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12809
12810
12811 if test "${with_xim}" != "no"; then
12812
12813 cat >>confdefs.h <<\_ACEOF
12814 #define USE_XIM 1
12815 _ACEOF
12816
12817 fi
12818
12819
12820 if test "${HAVE_XIM}" != "no"; then
12821 late_CFLAGS=$CFLAGS
12822 if test "$GCC" = yes; then
12823 CFLAGS="$CFLAGS --pedantic-errors"
12824 fi
12825 cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h. */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12831
12832 #include <X11/Xlib.h>
12833 #include <X11/Xresource.h>
12834 int
12835 main ()
12836 {
12837 Display *display;
12838 XrmDatabase db;
12839 char *res_name;
12840 char *res_class;
12841 XIMProc callback;
12842 XPointer *client_data;
12843 #ifndef __GNUC__
12844 /* If we're not using GCC, it's probably not XFree86, and this is
12845 probably right, but we can't use something like --pedantic-errors. */
12846 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12847 char*, XIMProc, XPointer*);
12848 #endif
12849 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12850 client_data);
12851 ;
12852 return 0;
12853 }
12854 _ACEOF
12855 rm -f conftest.$ac_objext
12856 if { (ac_try="$ac_compile"
12857 case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_compile") 2>conftest.er1
12863 ac_status=$?
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } && {
12869 test -z "$ac_c_werror_flag" ||
12870 test ! -s conftest.err
12871 } && test -s conftest.$ac_objext; then
12872 emacs_cv_arg6_star=yes
12873 else
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12876
12877
12878 fi
12879
12880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12881
12882 if test "$emacs_cv_arg6_star" = yes; then
12883 cat >>confdefs.h <<\_ACEOF
12884 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12885 _ACEOF
12886
12887 else
12888 cat >>confdefs.h <<\_ACEOF
12889 #define XRegisterIMInstantiateCallback_arg6 XPointer
12890 _ACEOF
12891
12892 fi
12893 CFLAGS=$late_CFLAGS
12894 fi
12895
12896 ### For font-backend
12897 if test "${USE_FONT_BACKEND}" = "yes"; then
12898
12899
12900 cat >>confdefs.h <<\_ACEOF
12901 #define USE_FONT_BACKEND 1
12902 _ACEOF
12903
12904
12905 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12906 HAVE_XFT=maybe
12907 if test "${HAVE_X11}" = "yes"; then
12908 if test "x${with_freetype}" = "xno"; then
12909 with_xft="no";
12910 fi
12911 if test "x${with_xft}" != "xno"; then
12912
12913 if test "X${with_pkg_config_prog}" != X; then
12914 PKG_CONFIG="${with_pkg_config_prog}"
12915 fi
12916
12917
12918 succeeded=no
12919
12920 if test -z "$PKG_CONFIG"; then
12921 # Extract the first word of "pkg-config", so it can be a program name with args.
12922 set dummy pkg-config; ac_word=$2
12923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12925 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 else
12928 case $PKG_CONFIG in
12929 [\\/]* | ?:[\\/]*)
12930 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12931 ;;
12932 *)
12933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934 for as_dir in $PATH
12935 do
12936 IFS=$as_save_IFS
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
12939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12940 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 break 2
12943 fi
12944 done
12945 done
12946 IFS=$as_save_IFS
12947
12948 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12949 ;;
12950 esac
12951 fi
12952 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12953 if test -n "$PKG_CONFIG"; then
12954 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12955 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12956 else
12957 { echo "$as_me:$LINENO: result: no" >&5
12958 echo "${ECHO_T}no" >&6; }
12959 fi
12960
12961
12962 fi
12963
12964 if test "$PKG_CONFIG" = "no" ; then
12965 HAVE_XFT=no
12966 else
12967 PKG_CONFIG_MIN_VERSION=0.9.0
12968 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12969 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12970 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12971
12972 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12973 { echo "$as_me:$LINENO: result: yes" >&5
12974 echo "${ECHO_T}yes" >&6; }
12975 succeeded=yes
12976
12977 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12978 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12979 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12980 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12981 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12982
12983 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12984 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12985 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12986 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12987 echo "${ECHO_T}$XFT_LIBS" >&6; }
12988 else
12989 { echo "$as_me:$LINENO: result: no" >&5
12990 echo "${ECHO_T}no" >&6; }
12991 XFT_CFLAGS=""
12992 XFT_LIBS=""
12993 ## If we have a custom action on failure, don't print errors, but
12994 ## do set a variable so people can do so.
12995 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12996
12997 fi
12998
12999
13000
13001 else
13002 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13003 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13004 fi
13005 fi
13006
13007 if test $succeeded = yes; then
13008 :
13009 else
13010 HAVE_XFT=no
13011 fi
13012
13013 if test "$HAVE_XFT" != no; then
13014 OLD_CPPFLAGS="$CPPFLAGS"
13015 OLD_CFLAGS="$CFLAGS"
13016 OLD_LIBS="$LIBS"
13017 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13018 CFLAGS="$CFLAGS $XFT_CFLAGS"
13019 LIBS="$XFT_LIBS $LIBS"
13020 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13021 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13022 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
13023 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 fi
13026 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13027 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13028 else
13029 # Is the header compilable?
13030 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13031 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
13032 cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h. */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13038 $ac_includes_default
13039 #include <X11/Xft/Xft.h>
13040 _ACEOF
13041 rm -f conftest.$ac_objext
13042 if { (ac_try="$ac_compile"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_compile") 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } && {
13055 test -z "$ac_c_werror_flag" ||
13056 test ! -s conftest.err
13057 } && test -s conftest.$ac_objext; then
13058 ac_header_compiler=yes
13059 else
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13062
13063 ac_header_compiler=no
13064 fi
13065
13066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13068 echo "${ECHO_T}$ac_header_compiler" >&6; }
13069
13070 # Is the header present?
13071 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13072 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h. */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 #include <X11/Xft/Xft.h>
13080 _ACEOF
13081 if { (ac_try="$ac_cpp conftest.$ac_ext"
13082 case "(($ac_try" in
13083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13084 *) ac_try_echo=$ac_try;;
13085 esac
13086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13088 ac_status=$?
13089 grep -v '^ *+' conftest.er1 >conftest.err
13090 rm -f conftest.er1
13091 cat conftest.err >&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } >/dev/null && {
13094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13095 test ! -s conftest.err
13096 }; then
13097 ac_header_preproc=yes
13098 else
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13101
13102 ac_header_preproc=no
13103 fi
13104
13105 rm -f conftest.err conftest.$ac_ext
13106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13107 echo "${ECHO_T}$ac_header_preproc" >&6; }
13108
13109 # So? What about this header?
13110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13111 yes:no: )
13112 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13113 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13114 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13115 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13116 ac_header_preproc=yes
13117 ;;
13118 no:yes:* )
13119 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13120 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13121 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13122 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13123 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13124 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13125 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13126 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13128 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13130 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13131
13132 ;;
13133 esac
13134 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13135 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
13136 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13138 else
13139 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13140 fi
13141 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13142 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13143
13144 fi
13145 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13146 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13147 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
13148 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151 ac_check_lib_save_LIBS=$LIBS
13152 LIBS="-lXft $XFT_LIBS $LIBS"
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159
13160 /* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13163 #ifdef __cplusplus
13164 extern "C"
13165 #endif
13166 char XftFontOpen ();
13167 int
13168 main ()
13169 {
13170 return XftFontOpen ();
13171 ;
13172 return 0;
13173 }
13174 _ACEOF
13175 rm -f conftest.$ac_objext conftest$ac_exeext
13176 if { (ac_try="$ac_link"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_link") 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } && {
13189 test -z "$ac_c_werror_flag" ||
13190 test ! -s conftest.err
13191 } && test -s conftest$ac_exeext &&
13192 $as_test_x conftest$ac_exeext; then
13193 ac_cv_lib_Xft_XftFontOpen=yes
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13197
13198 ac_cv_lib_Xft_XftFontOpen=no
13199 fi
13200
13201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13204 fi
13205 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13206 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
13207 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13208 HAVE_XFT=yes
13209 fi
13210
13211 fi
13212
13213
13214
13215 if test "${HAVE_XFT}" = "yes"; then
13216
13217 cat >>confdefs.h <<\_ACEOF
13218 #define HAVE_XFT 1
13219 _ACEOF
13220
13221
13222 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13223 else
13224 CFLAGS="$OLD_CPPFLAGS"
13225 CFLAGS="$OLD_CFLAGS"
13226 LIBS="$OLD_LIBS"
13227 fi
13228 fi
13229 fi
13230 fi
13231
13232 HAVE_FREETYPE=no
13233 ### Use -lfreetype if available, unless `--with-freetype=no'.
13234 if test "${HAVE_XFT}" = "yes"; then
13235 HAVE_FREETYPE=yes
13236 elif test "x${with_freetype}" != "xno"; then
13237 if test "X${with_pkg_config_prog}" != X; then
13238 PKG_CONFIG="${with_pkg_config_prog}"
13239 fi
13240
13241
13242 succeeded=no
13243
13244 if test -z "$PKG_CONFIG"; then
13245 # Extract the first word of "pkg-config", so it can be a program name with args.
13246 set dummy pkg-config; ac_word=$2
13247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13249 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 else
13252 case $PKG_CONFIG in
13253 [\\/]* | ?:[\\/]*)
13254 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13255 ;;
13256 *)
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13259 do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
13263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13264 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268 done
13269 done
13270 IFS=$as_save_IFS
13271
13272 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13273 ;;
13274 esac
13275 fi
13276 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13277 if test -n "$PKG_CONFIG"; then
13278 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13279 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13280 else
13281 { echo "$as_me:$LINENO: result: no" >&5
13282 echo "${ECHO_T}no" >&6; }
13283 fi
13284
13285
13286 fi
13287
13288 if test "$PKG_CONFIG" = "no" ; then
13289 HAVE_FREETYPE=no
13290 else
13291 PKG_CONFIG_MIN_VERSION=0.9.0
13292 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13293 { echo "$as_me:$LINENO: checking for freetype2" >&5
13294 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13295
13296 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13297 { echo "$as_me:$LINENO: result: yes" >&5
13298 echo "${ECHO_T}yes" >&6; }
13299 succeeded=yes
13300
13301 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13302 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13303 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13304 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13305 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13306
13307 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13308 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13309 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13310 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13311 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13312 else
13313 { echo "$as_me:$LINENO: result: no" >&5
13314 echo "${ECHO_T}no" >&6; }
13315 FREETYPE_CFLAGS=""
13316 FREETYPE_LIBS=""
13317 ## If we have a custom action on failure, don't print errors, but
13318 ## do set a variable so people can do so.
13319 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13320
13321 fi
13322
13323
13324
13325 else
13326 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13327 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13328 fi
13329 fi
13330
13331 if test $succeeded = yes; then
13332 HAVE_FREETYPE=yes
13333 else
13334 HAVE_FREETYPE=no
13335 fi
13336
13337 if test "${HAVE_FREETYPE}" = "yes"; then
13338
13339 succeeded=no
13340
13341 if test -z "$PKG_CONFIG"; then
13342 # Extract the first word of "pkg-config", so it can be a program name with args.
13343 set dummy pkg-config; ac_word=$2
13344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13346 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349 case $PKG_CONFIG in
13350 [\\/]* | ?:[\\/]*)
13351 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13352 ;;
13353 *)
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $PATH
13356 do
13357 IFS=$as_save_IFS
13358 test -z "$as_dir" && as_dir=.
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13361 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13363 break 2
13364 fi
13365 done
13366 done
13367 IFS=$as_save_IFS
13368
13369 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13370 ;;
13371 esac
13372 fi
13373 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13374 if test -n "$PKG_CONFIG"; then
13375 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13376 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13377 else
13378 { echo "$as_me:$LINENO: result: no" >&5
13379 echo "${ECHO_T}no" >&6; }
13380 fi
13381
13382
13383 fi
13384
13385 if test "$PKG_CONFIG" = "no" ; then
13386 HAVE_FC=no
13387 else
13388 PKG_CONFIG_MIN_VERSION=0.9.0
13389 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13390 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13391 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13392
13393 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13394 { echo "$as_me:$LINENO: result: yes" >&5
13395 echo "${ECHO_T}yes" >&6; }
13396 succeeded=yes
13397
13398 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13399 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13400 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13401 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13402 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13403
13404 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13405 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13406 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13407 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13408 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13409 else
13410 { echo "$as_me:$LINENO: result: no" >&5
13411 echo "${ECHO_T}no" >&6; }
13412 FONTCONFIG_CFLAGS=""
13413 FONTCONFIG_LIBS=""
13414 ## If we have a custom action on failure, don't print errors, but
13415 ## do set a variable so people can do so.
13416 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13417
13418 fi
13419
13420
13421
13422 else
13423 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13424 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13425 fi
13426 fi
13427
13428 if test $succeeded = yes; then
13429 HAVE_FC=yes
13430 else
13431 HAVE_FC=no
13432 fi
13433
13434 if test "${HAVE_FC}" = "no"; then
13435 HAVE_FREETYPE=no
13436 fi
13437 fi
13438 fi
13439 if test "${HAVE_FREETYPE}" = "yes"; then
13440
13441 cat >>confdefs.h <<\_ACEOF
13442 #define HAVE_FREETYPE 1
13443 _ACEOF
13444
13445 # Extract the first word of "libotf-config", so it can be a program name with args.
13446 set dummy libotf-config; ac_word=$2
13447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13449 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452 if test -n "$HAVE_LIBOTF"; then
13453 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13454 else
13455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456 for as_dir in $PATH
13457 do
13458 IFS=$as_save_IFS
13459 test -z "$as_dir" && as_dir=.
13460 for ac_exec_ext in '' $ac_executable_extensions; do
13461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13462 ac_cv_prog_HAVE_LIBOTF="yes"
13463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13464 break 2
13465 fi
13466 done
13467 done
13468 IFS=$as_save_IFS
13469
13470 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13471 fi
13472 fi
13473 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13474 if test -n "$HAVE_LIBOTF"; then
13475 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13476 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13477 else
13478 { echo "$as_me:$LINENO: result: no" >&5
13479 echo "${ECHO_T}no" >&6; }
13480 fi
13481
13482
13483 if test "${HAVE_LIBOTF}" = "yes"; then
13484
13485 { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
13486 echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
13487 if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490 ac_check_lib_save_LIBS=$LIBS
13491 LIBS="-lotf $LIBS"
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h. */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498
13499 /* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13502 #ifdef __cplusplus
13503 extern "C"
13504 #endif
13505 char OTF_get_features ();
13506 int
13507 main ()
13508 {
13509 return OTF_get_features ();
13510 ;
13511 return 0;
13512 }
13513 _ACEOF
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (ac_try="$ac_link"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_link") 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } && {
13528 test -z "$ac_c_werror_flag" ||
13529 test ! -s conftest.err
13530 } && test -s conftest$ac_exeext &&
13531 $as_test_x conftest$ac_exeext; then
13532 ac_cv_lib_otf_OTF_get_features=yes
13533 else
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13536
13537 ac_cv_lib_otf_OTF_get_features=no
13538 fi
13539
13540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13541 conftest$ac_exeext conftest.$ac_ext
13542 LIBS=$ac_check_lib_save_LIBS
13543 fi
13544 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
13545 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
13546 if test $ac_cv_lib_otf_OTF_get_features = yes; then
13547 cat >>confdefs.h <<_ACEOF
13548 #define HAVE_LIBOTF 1
13549 _ACEOF
13550
13551 LIBS="-lotf $LIBS"
13552
13553 else
13554 HAVE_LIBOTF=no
13555 fi
13556
13557 if test "${HAVE_LIBOTF}" = "yes"; then
13558
13559 cat >>confdefs.h <<\_ACEOF
13560 #define HAVE_LIBOTF 1
13561 _ACEOF
13562
13563 LIBOTF_CFLAGS=`libotf-config --cflags`
13564 LIBOTF_LIBS=`libotf-config --libs`
13565 fi
13566 fi
13567 fi
13568
13569
13570
13571
13572
13573
13574
13575 if test "X${with_pkg_config_prog}" != X; then
13576 PKG_CONFIG="${with_pkg_config_prog}"
13577 fi
13578
13579 succeeded=no
13580
13581 if test -z "$PKG_CONFIG"; then
13582 # Extract the first word of "pkg-config", so it can be a program name with args.
13583 set dummy pkg-config; ac_word=$2
13584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13586 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589 case $PKG_CONFIG in
13590 [\\/]* | ?:[\\/]*)
13591 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13592 ;;
13593 *)
13594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595 for as_dir in $PATH
13596 do
13597 IFS=$as_save_IFS
13598 test -z "$as_dir" && as_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
13600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13601 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13603 break 2
13604 fi
13605 done
13606 done
13607 IFS=$as_save_IFS
13608
13609 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13610 ;;
13611 esac
13612 fi
13613 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13614 if test -n "$PKG_CONFIG"; then
13615 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13616 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13617 else
13618 { echo "$as_me:$LINENO: result: no" >&5
13619 echo "${ECHO_T}no" >&6; }
13620 fi
13621
13622
13623 fi
13624
13625 if test "$PKG_CONFIG" = "no" ; then
13626 pkg_check_m17n_flt=no
13627 else
13628 PKG_CONFIG_MIN_VERSION=0.9.0
13629 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13630 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13631 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13632
13633 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13634 { echo "$as_me:$LINENO: result: yes" >&5
13635 echo "${ECHO_T}yes" >&6; }
13636 succeeded=yes
13637
13638 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13639 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13640 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13641 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13642 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13643
13644 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13645 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13646 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13647 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13648 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13649 else
13650 { echo "$as_me:$LINENO: result: no" >&5
13651 echo "${ECHO_T}no" >&6; }
13652 M17N_FLT_CFLAGS=""
13653 M17N_FLT_LIBS=""
13654 ## If we have a custom action on failure, don't print errors, but
13655 ## do set a variable so people can do so.
13656 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13657
13658 fi
13659
13660
13661
13662 else
13663 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13664 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13665 fi
13666 fi
13667
13668 if test $succeeded = yes; then
13669 pkg_check_m17n_flt=yes
13670 else
13671 pkg_check_m17n_flt=no
13672 fi
13673
13674 if test "$pkg_check_m17n_flt" = "yes"; then
13675
13676 cat >>confdefs.h <<\_ACEOF
13677 #define HAVE_M17N_FLT 1
13678 _ACEOF
13679
13680
13681
13682 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $M17N_FLT_CFLAGS"
13683 CFLAGS="$CFLAGS $M17N_FLT_CFLAGS"
13684 LIBS="$LIBS $M17N_FLT_LIBS"
13685 fi
13686
13687 fi
13688
13689 ### Use -lXpm if available, unless `--with-xpm=no'.
13690 HAVE_XPM=no
13691 if test "${HAVE_X11}" = "yes"; then
13692 if test "${with_xpm}" != "no"; then
13693 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13694 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13695 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13696 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 fi
13699 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13700 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13701 else
13702 # Is the header compilable?
13703 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13704 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13705 cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h. */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13711 $ac_includes_default
13712 #include <X11/xpm.h>
13713 _ACEOF
13714 rm -f conftest.$ac_objext
13715 if { (ac_try="$ac_compile"
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_compile") 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); } && {
13728 test -z "$ac_c_werror_flag" ||
13729 test ! -s conftest.err
13730 } && test -s conftest.$ac_objext; then
13731 ac_header_compiler=yes
13732 else
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13735
13736 ac_header_compiler=no
13737 fi
13738
13739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13741 echo "${ECHO_T}$ac_header_compiler" >&6; }
13742
13743 # Is the header present?
13744 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13745 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13746 cat >conftest.$ac_ext <<_ACEOF
13747 /* confdefs.h. */
13748 _ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13752 #include <X11/xpm.h>
13753 _ACEOF
13754 if { (ac_try="$ac_cpp conftest.$ac_ext"
13755 case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } >/dev/null && {
13767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13768 test ! -s conftest.err
13769 }; then
13770 ac_header_preproc=yes
13771 else
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13774
13775 ac_header_preproc=no
13776 fi
13777
13778 rm -f conftest.err conftest.$ac_ext
13779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13780 echo "${ECHO_T}$ac_header_preproc" >&6; }
13781
13782 # So? What about this header?
13783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13784 yes:no: )
13785 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13786 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13788 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13789 ac_header_preproc=yes
13790 ;;
13791 no:yes:* )
13792 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13793 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13794 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13795 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13797 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13799 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13801 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13803 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13804
13805 ;;
13806 esac
13807 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13808 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13809 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 else
13812 ac_cv_header_X11_xpm_h=$ac_header_preproc
13813 fi
13814 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13815 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13816
13817 fi
13818 if test $ac_cv_header_X11_xpm_h = yes; then
13819 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13820 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13821 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824 ac_check_lib_save_LIBS=$LIBS
13825 LIBS="-lXpm -lX11 $LIBS"
13826 cat >conftest.$ac_ext <<_ACEOF
13827 /* confdefs.h. */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13832
13833 /* Override any GCC internal prototype to avoid an error.
13834 Use char because int might match the return type of a GCC
13835 builtin and then its argument prototype would still apply. */
13836 #ifdef __cplusplus
13837 extern "C"
13838 #endif
13839 char XpmReadFileToPixmap ();
13840 int
13841 main ()
13842 {
13843 return XpmReadFileToPixmap ();
13844 ;
13845 return 0;
13846 }
13847 _ACEOF
13848 rm -f conftest.$ac_objext conftest$ac_exeext
13849 if { (ac_try="$ac_link"
13850 case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13853 esac
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_link") 2>conftest.er1
13856 ac_status=$?
13857 grep -v '^ *+' conftest.er1 >conftest.err
13858 rm -f conftest.er1
13859 cat conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } && {
13862 test -z "$ac_c_werror_flag" ||
13863 test ! -s conftest.err
13864 } && test -s conftest$ac_exeext &&
13865 $as_test_x conftest$ac_exeext; then
13866 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13867 else
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13872 fi
13873
13874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13875 conftest$ac_exeext conftest.$ac_ext
13876 LIBS=$ac_check_lib_save_LIBS
13877 fi
13878 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13879 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13880 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13881 HAVE_XPM=yes
13882 fi
13883
13884 fi
13885
13886
13887 if test "${HAVE_XPM}" = "yes"; then
13888 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13889 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13890 cat >conftest.$ac_ext <<_ACEOF
13891 /* confdefs.h. */
13892 _ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13896 #include "X11/xpm.h"
13897 #ifndef XpmReturnAllocPixels
13898 no_return_alloc_pixels
13899 #endif
13900
13901 _ACEOF
13902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13903 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13904 HAVE_XPM=no
13905 else
13906 HAVE_XPM=yes
13907 fi
13908 rm -f conftest*
13909
13910
13911 if test "${HAVE_XPM}" = "yes"; then
13912 { echo "$as_me:$LINENO: result: yes" >&5
13913 echo "${ECHO_T}yes" >&6; }
13914 else
13915 { echo "$as_me:$LINENO: result: no" >&5
13916 echo "${ECHO_T}no" >&6; }
13917 fi
13918 fi
13919 fi
13920
13921 if test "${HAVE_XPM}" = "yes"; then
13922
13923 cat >>confdefs.h <<\_ACEOF
13924 #define HAVE_XPM 1
13925 _ACEOF
13926
13927 fi
13928 fi
13929
13930 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13931 HAVE_JPEG=no
13932 if test "${HAVE_X11}" = "yes"; then
13933 if test "${with_jpeg}" != "no"; then
13934 if test "${ac_cv_header_jerror_h+set}" = set; then
13935 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13936 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13937 if test "${ac_cv_header_jerror_h+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 fi
13940 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13941 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13942 else
13943 # Is the header compilable?
13944 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13945 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13946 cat >conftest.$ac_ext <<_ACEOF
13947 /* confdefs.h. */
13948 _ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13952 $ac_includes_default
13953 #include <jerror.h>
13954 _ACEOF
13955 rm -f conftest.$ac_objext
13956 if { (ac_try="$ac_compile"
13957 case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960 esac
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_compile") 2>conftest.er1
13963 ac_status=$?
13964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && {
13969 test -z "$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13971 } && test -s conftest.$ac_objext; then
13972 ac_header_compiler=yes
13973 else
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977 ac_header_compiler=no
13978 fi
13979
13980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13982 echo "${ECHO_T}$ac_header_compiler" >&6; }
13983
13984 # Is the header present?
13985 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13986 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13987 cat >conftest.$ac_ext <<_ACEOF
13988 /* confdefs.h. */
13989 _ACEOF
13990 cat confdefs.h >>conftest.$ac_ext
13991 cat >>conftest.$ac_ext <<_ACEOF
13992 /* end confdefs.h. */
13993 #include <jerror.h>
13994 _ACEOF
13995 if { (ac_try="$ac_cpp conftest.$ac_ext"
13996 case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999 esac
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14002 ac_status=$?
14003 grep -v '^ *+' conftest.er1 >conftest.err
14004 rm -f conftest.er1
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } >/dev/null && {
14008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14009 test ! -s conftest.err
14010 }; then
14011 ac_header_preproc=yes
14012 else
14013 echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14015
14016 ac_header_preproc=no
14017 fi
14018
14019 rm -f conftest.err conftest.$ac_ext
14020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14021 echo "${ECHO_T}$ac_header_preproc" >&6; }
14022
14023 # So? What about this header?
14024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14025 yes:no: )
14026 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14027 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14029 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14030 ac_header_preproc=yes
14031 ;;
14032 no:yes:* )
14033 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14034 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14036 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14038 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14040 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14042 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14044 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14045
14046 ;;
14047 esac
14048 { echo "$as_me:$LINENO: checking for jerror.h" >&5
14049 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
14050 if test "${ac_cv_header_jerror_h+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053 ac_cv_header_jerror_h=$ac_header_preproc
14054 fi
14055 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14056 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
14057
14058 fi
14059 if test $ac_cv_header_jerror_h = yes; then
14060 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14061 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
14062 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 else
14065 ac_check_lib_save_LIBS=$LIBS
14066 LIBS="-ljpeg $LIBS"
14067 cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h. */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073
14074 /* Override any GCC internal prototype to avoid an error.
14075 Use char because int might match the return type of a GCC
14076 builtin and then its argument prototype would still apply. */
14077 #ifdef __cplusplus
14078 extern "C"
14079 #endif
14080 char jpeg_destroy_compress ();
14081 int
14082 main ()
14083 {
14084 return jpeg_destroy_compress ();
14085 ;
14086 return 0;
14087 }
14088 _ACEOF
14089 rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (ac_try="$ac_link"
14091 case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14094 esac
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_link") 2>conftest.er1
14097 ac_status=$?
14098 grep -v '^ *+' conftest.er1 >conftest.err
14099 rm -f conftest.er1
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } && {
14103 test -z "$ac_c_werror_flag" ||
14104 test ! -s conftest.err
14105 } && test -s conftest$ac_exeext &&
14106 $as_test_x conftest$ac_exeext; then
14107 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14108 else
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14111
14112 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14113 fi
14114
14115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14116 conftest$ac_exeext conftest.$ac_ext
14117 LIBS=$ac_check_lib_save_LIBS
14118 fi
14119 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14120 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14121 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14122 HAVE_JPEG=yes
14123 fi
14124
14125 fi
14126
14127
14128 fi
14129
14130
14131 if test "${HAVE_JPEG}" = "yes"; then
14132 cat >>confdefs.h <<\_ACEOF
14133 #define HAVE_JPEG 1
14134 _ACEOF
14135
14136 cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h. */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 #include <jpeglib.h>
14143 version=JPEG_LIB_VERSION
14144
14145 _ACEOF
14146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14147 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14148 cat >>confdefs.h <<\_ACEOF
14149 #define HAVE_JPEG 1
14150 _ACEOF
14151
14152 else
14153 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14154 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14155 HAVE_JPEG=no
14156 fi
14157 rm -f conftest*
14158
14159 fi
14160 fi
14161
14162 ### Use -lpng if available, unless `--with-png=no'.
14163 HAVE_PNG=no
14164 if test "${HAVE_X11}" = "yes"; then
14165 if test "${with_png}" != "no"; then
14166 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14167 # in /usr/include/libpng.
14168
14169
14170 for ac_header in png.h libpng/png.h
14171 do
14172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 fi
14179 ac_res=`eval echo '${'$as_ac_Header'}'`
14180 { echo "$as_me:$LINENO: result: $ac_res" >&5
14181 echo "${ECHO_T}$ac_res" >&6; }
14182 else
14183 # Is the header compilable?
14184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14186 cat >conftest.$ac_ext <<_ACEOF
14187 /* confdefs.h. */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 $ac_includes_default
14193 #include <$ac_header>
14194 _ACEOF
14195 rm -f conftest.$ac_objext
14196 if { (ac_try="$ac_compile"
14197 case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200 esac
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_compile") 2>conftest.er1
14203 ac_status=$?
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && {
14209 test -z "$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 } && test -s conftest.$ac_objext; then
14212 ac_header_compiler=yes
14213 else
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217 ac_header_compiler=no
14218 fi
14219
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14222 echo "${ECHO_T}$ac_header_compiler" >&6; }
14223
14224 # Is the header present?
14225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14227 cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h. */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 #include <$ac_header>
14234 _ACEOF
14235 if { (ac_try="$ac_cpp conftest.$ac_ext"
14236 case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239 esac
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } >/dev/null && {
14248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14249 test ! -s conftest.err
14250 }; then
14251 ac_header_preproc=yes
14252 else
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14255
14256 ac_header_preproc=no
14257 fi
14258
14259 rm -f conftest.err conftest.$ac_ext
14260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14261 echo "${ECHO_T}$ac_header_preproc" >&6; }
14262
14263 # So? What about this header?
14264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14265 yes:no: )
14266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14270 ac_header_preproc=yes
14271 ;;
14272 no:yes:* )
14273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14285
14286 ;;
14287 esac
14288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293 eval "$as_ac_Header=\$ac_header_preproc"
14294 fi
14295 ac_res=`eval echo '${'$as_ac_Header'}'`
14296 { echo "$as_me:$LINENO: result: $ac_res" >&5
14297 echo "${ECHO_T}$ac_res" >&6; }
14298
14299 fi
14300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14301 cat >>confdefs.h <<_ACEOF
14302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14303 _ACEOF
14304
14305 fi
14306
14307 done
14308
14309 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14310 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14311 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14312 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315 ac_check_lib_save_LIBS=$LIBS
14316 LIBS="-lpng -lz -lm $LIBS"
14317 cat >conftest.$ac_ext <<_ACEOF
14318 /* confdefs.h. */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323
14324 /* Override any GCC internal prototype to avoid an error.
14325 Use char because int might match the return type of a GCC
14326 builtin and then its argument prototype would still apply. */
14327 #ifdef __cplusplus
14328 extern "C"
14329 #endif
14330 char png_get_channels ();
14331 int
14332 main ()
14333 {
14334 return png_get_channels ();
14335 ;
14336 return 0;
14337 }
14338 _ACEOF
14339 rm -f conftest.$ac_objext conftest$ac_exeext
14340 if { (ac_try="$ac_link"
14341 case "(($ac_try" in
14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14344 esac
14345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346 (eval "$ac_link") 2>conftest.er1
14347 ac_status=$?
14348 grep -v '^ *+' conftest.er1 >conftest.err
14349 rm -f conftest.er1
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } && {
14353 test -z "$ac_c_werror_flag" ||
14354 test ! -s conftest.err
14355 } && test -s conftest$ac_exeext &&
14356 $as_test_x conftest$ac_exeext; then
14357 ac_cv_lib_png_png_get_channels=yes
14358 else
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362 ac_cv_lib_png_png_get_channels=no
14363 fi
14364
14365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS
14368 fi
14369 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14370 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14371 if test $ac_cv_lib_png_png_get_channels = yes; then
14372 HAVE_PNG=yes
14373 fi
14374
14375 fi
14376 fi
14377
14378 if test "${HAVE_PNG}" = "yes"; then
14379
14380 cat >>confdefs.h <<\_ACEOF
14381 #define HAVE_PNG 1
14382 _ACEOF
14383
14384 fi
14385 fi
14386
14387 ### Use -ltiff if available, unless `--with-tiff=no'.
14388 HAVE_TIFF=no
14389 if test "${HAVE_X11}" = "yes"; then
14390 if test "${with_tiff}" != "no"; then
14391 if test "${ac_cv_header_tiffio_h+set}" = set; then
14392 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14393 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14394 if test "${ac_cv_header_tiffio_h+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396 fi
14397 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14398 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14399 else
14400 # Is the header compilable?
14401 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14402 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14403 cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h. */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14409 $ac_includes_default
14410 #include <tiffio.h>
14411 _ACEOF
14412 rm -f conftest.$ac_objext
14413 if { (ac_try="$ac_compile"
14414 case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_compile") 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } && {
14426 test -z "$ac_c_werror_flag" ||
14427 test ! -s conftest.err
14428 } && test -s conftest.$ac_objext; then
14429 ac_header_compiler=yes
14430 else
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14433
14434 ac_header_compiler=no
14435 fi
14436
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14439 echo "${ECHO_T}$ac_header_compiler" >&6; }
14440
14441 # Is the header present?
14442 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14443 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14444 cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h. */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 #include <tiffio.h>
14451 _ACEOF
14452 if { (ac_try="$ac_cpp conftest.$ac_ext"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456 esac
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14459 ac_status=$?
14460 grep -v '^ *+' conftest.er1 >conftest.err
14461 rm -f conftest.er1
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } >/dev/null && {
14465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14466 test ! -s conftest.err
14467 }; then
14468 ac_header_preproc=yes
14469 else
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ac_header_preproc=no
14474 fi
14475
14476 rm -f conftest.err conftest.$ac_ext
14477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14478 echo "${ECHO_T}$ac_header_preproc" >&6; }
14479
14480 # So? What about this header?
14481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14482 yes:no: )
14483 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14484 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14486 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14487 ac_header_preproc=yes
14488 ;;
14489 no:yes:* )
14490 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14491 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14493 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14495 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14497 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14499 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14501 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14502
14503 ;;
14504 esac
14505 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14506 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14507 if test "${ac_cv_header_tiffio_h+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510 ac_cv_header_tiffio_h=$ac_header_preproc
14511 fi
14512 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14513 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14514
14515 fi
14516 if test $ac_cv_header_tiffio_h = yes; then
14517 tifflibs="-lz -lm"
14518 # At least one tiff package requires the jpeg library.
14519 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14520 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14521 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14522 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 else
14525 ac_check_lib_save_LIBS=$LIBS
14526 LIBS="-ltiff $tifflibs $LIBS"
14527 cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h. */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533
14534 /* Override any GCC internal prototype to avoid an error.
14535 Use char because int might match the return type of a GCC
14536 builtin and then its argument prototype would still apply. */
14537 #ifdef __cplusplus
14538 extern "C"
14539 #endif
14540 char TIFFGetVersion ();
14541 int
14542 main ()
14543 {
14544 return TIFFGetVersion ();
14545 ;
14546 return 0;
14547 }
14548 _ACEOF
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (ac_try="$ac_link"
14551 case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_link") 2>conftest.er1
14557 ac_status=$?
14558 grep -v '^ *+' conftest.er1 >conftest.err
14559 rm -f conftest.er1
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } && {
14563 test -z "$ac_c_werror_flag" ||
14564 test ! -s conftest.err
14565 } && test -s conftest$ac_exeext &&
14566 $as_test_x conftest$ac_exeext; then
14567 ac_cv_lib_tiff_TIFFGetVersion=yes
14568 else
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572 ac_cv_lib_tiff_TIFFGetVersion=no
14573 fi
14574
14575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14576 conftest$ac_exeext conftest.$ac_ext
14577 LIBS=$ac_check_lib_save_LIBS
14578 fi
14579 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14580 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14581 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14582 HAVE_TIFF=yes
14583 fi
14584
14585 fi
14586
14587
14588 fi
14589
14590 if test "${HAVE_TIFF}" = "yes"; then
14591
14592 cat >>confdefs.h <<\_ACEOF
14593 #define HAVE_TIFF 1
14594 _ACEOF
14595
14596 fi
14597 fi
14598
14599 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14600 HAVE_GIF=no
14601 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14602 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14603 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14604 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14605 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 fi
14608 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14609 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14610 else
14611 # Is the header compilable?
14612 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14613 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h. */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 $ac_includes_default
14621 #include <gif_lib.h>
14622 _ACEOF
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14628 esac
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14631 ac_status=$?
14632 grep -v '^ *+' conftest.er1 >conftest.err
14633 rm -f conftest.er1
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } && {
14637 test -z "$ac_c_werror_flag" ||
14638 test ! -s conftest.err
14639 } && test -s conftest.$ac_objext; then
14640 ac_header_compiler=yes
14641 else
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14644
14645 ac_header_compiler=no
14646 fi
14647
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14650 echo "${ECHO_T}$ac_header_compiler" >&6; }
14651
14652 # Is the header present?
14653 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14654 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14655 cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h. */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661 #include <gif_lib.h>
14662 _ACEOF
14663 if { (ac_try="$ac_cpp conftest.$ac_ext"
14664 case "(($ac_try" in
14665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14666 *) ac_try_echo=$ac_try;;
14667 esac
14668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14670 ac_status=$?
14671 grep -v '^ *+' conftest.er1 >conftest.err
14672 rm -f conftest.er1
14673 cat conftest.err >&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } >/dev/null && {
14676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14677 test ! -s conftest.err
14678 }; then
14679 ac_header_preproc=yes
14680 else
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14683
14684 ac_header_preproc=no
14685 fi
14686
14687 rm -f conftest.err conftest.$ac_ext
14688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14689 echo "${ECHO_T}$ac_header_preproc" >&6; }
14690
14691 # So? What about this header?
14692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14693 yes:no: )
14694 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14695 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14696 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14697 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14698 ac_header_preproc=yes
14699 ;;
14700 no:yes:* )
14701 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14702 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14704 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14706 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14708 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14709 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14710 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14711 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14712 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14713
14714 ;;
14715 esac
14716 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14717 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14718 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721 ac_cv_header_gif_lib_h=$ac_header_preproc
14722 fi
14723 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14724 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14725
14726 fi
14727 if test $ac_cv_header_gif_lib_h = yes; then
14728 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14729 # Earlier versions can crash Emacs.
14730 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14731 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14732 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lgif $LIBS"
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h. */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743
14744 /* Override any GCC internal prototype to avoid an error.
14745 Use char because int might match the return type of a GCC
14746 builtin and then its argument prototype would still apply. */
14747 #ifdef __cplusplus
14748 extern "C"
14749 #endif
14750 char EGifPutExtensionLast ();
14751 int
14752 main ()
14753 {
14754 return EGifPutExtensionLast ();
14755 ;
14756 return 0;
14757 }
14758 _ACEOF
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (ac_try="$ac_link"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_link") 2>conftest.er1
14767 ac_status=$?
14768 grep -v '^ *+' conftest.er1 >conftest.err
14769 rm -f conftest.er1
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } && {
14773 test -z "$ac_c_werror_flag" ||
14774 test ! -s conftest.err
14775 } && test -s conftest$ac_exeext &&
14776 $as_test_x conftest$ac_exeext; then
14777 ac_cv_lib_gif_EGifPutExtensionLast=yes
14778 else
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14781
14782 ac_cv_lib_gif_EGifPutExtensionLast=no
14783 fi
14784
14785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14786 conftest$ac_exeext conftest.$ac_ext
14787 LIBS=$ac_check_lib_save_LIBS
14788 fi
14789 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14790 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14791 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14792 HAVE_GIF=yes
14793 else
14794 try_libungif=yes
14795 fi
14796
14797 fi
14798
14799
14800
14801 if test "$HAVE_GIF" = yes; then
14802 ac_gif_lib_name="-lgif"
14803 fi
14804
14805 # If gif_lib.h but no libgif, try libungif.
14806 if test x"$try_libungif" = xyes; then
14807 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14808 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14809 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 else
14812 ac_check_lib_save_LIBS=$LIBS
14813 LIBS="-lungif $LIBS"
14814 cat >conftest.$ac_ext <<_ACEOF
14815 /* confdefs.h. */
14816 _ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h. */
14820
14821 /* Override any GCC internal prototype to avoid an error.
14822 Use char because int might match the return type of a GCC
14823 builtin and then its argument prototype would still apply. */
14824 #ifdef __cplusplus
14825 extern "C"
14826 #endif
14827 char EGifPutExtensionLast ();
14828 int
14829 main ()
14830 {
14831 return EGifPutExtensionLast ();
14832 ;
14833 return 0;
14834 }
14835 _ACEOF
14836 rm -f conftest.$ac_objext conftest$ac_exeext
14837 if { (ac_try="$ac_link"
14838 case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14841 esac
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_link") 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } && {
14850 test -z "$ac_c_werror_flag" ||
14851 test ! -s conftest.err
14852 } && test -s conftest$ac_exeext &&
14853 $as_test_x conftest$ac_exeext; then
14854 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14855 else
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859 ac_cv_lib_ungif_EGifPutExtensionLast=no
14860 fi
14861
14862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14863 conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14865 fi
14866 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14867 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14868 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14869 HAVE_GIF=yes
14870 fi
14871
14872
14873 if test "$HAVE_GIF" = yes; then
14874
14875 cat >>confdefs.h <<\_ACEOF
14876 #define LIBGIF -lungif
14877 _ACEOF
14878
14879 ac_gif_lib_name="-lungif"
14880 fi
14881 fi
14882
14883 if test "${HAVE_GIF}" = "yes"; then
14884
14885 cat >>confdefs.h <<\_ACEOF
14886 #define HAVE_GIF 1
14887 _ACEOF
14888
14889 fi
14890 fi
14891
14892 if test "${HAVE_X11}" = "yes"; then
14893 MISSING=""
14894 WITH_NO=""
14895 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14896 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14897 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14898 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14899 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14900 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14901 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14902 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14903 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14904 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14905
14906 if test "X${MISSING}" != X; then
14907 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14908 $MISSING
14909 Maybe some development libraries/packages are missing?
14910 If you don't want to link with them give
14911 $WITH_NO
14912 as options to configure" >&5
14913 echo "$as_me: error: The following required libraries were not found:
14914 $MISSING
14915 Maybe some development libraries/packages are missing?
14916 If you don't want to link with them give
14917 $WITH_NO
14918 as options to configure" >&2;}
14919 { (exit 1); exit 1; }; }
14920 fi
14921 fi
14922
14923 ### Use -lgpm if available, unless `--with-gpm=no'.
14924 HAVE_GPM=no
14925 if test "${with_gpm}" != "no"; then
14926 if test "${ac_cv_header_gpm_h+set}" = set; then
14927 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14928 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14929 if test "${ac_cv_header_gpm_h+set}" = set; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 fi
14932 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14933 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14934 else
14935 # Is the header compilable?
14936 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14937 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 $ac_includes_default
14945 #include <gpm.h>
14946 _ACEOF
14947 rm -f conftest.$ac_objext
14948 if { (ac_try="$ac_compile"
14949 case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14952 esac
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_compile") 2>conftest.er1
14955 ac_status=$?
14956 grep -v '^ *+' conftest.er1 >conftest.err
14957 rm -f conftest.er1
14958 cat conftest.err >&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } && {
14961 test -z "$ac_c_werror_flag" ||
14962 test ! -s conftest.err
14963 } && test -s conftest.$ac_objext; then
14964 ac_header_compiler=yes
14965 else
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 ac_header_compiler=no
14970 fi
14971
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14974 echo "${ECHO_T}$ac_header_compiler" >&6; }
14975
14976 # Is the header present?
14977 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14978 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14979 cat >conftest.$ac_ext <<_ACEOF
14980 /* confdefs.h. */
14981 _ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 #include <gpm.h>
14986 _ACEOF
14987 if { (ac_try="$ac_cpp conftest.$ac_ext"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } >/dev/null && {
15000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 }; then
15003 ac_header_preproc=yes
15004 else
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15007
15008 ac_header_preproc=no
15009 fi
15010
15011 rm -f conftest.err conftest.$ac_ext
15012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15013 echo "${ECHO_T}$ac_header_preproc" >&6; }
15014
15015 # So? What about this header?
15016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15017 yes:no: )
15018 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15019 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15020 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15021 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15022 ac_header_preproc=yes
15023 ;;
15024 no:yes:* )
15025 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15026 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15028 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15030 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15032 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15034 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15036 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15037
15038 ;;
15039 esac
15040 { echo "$as_me:$LINENO: checking for gpm.h" >&5
15041 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
15042 if test "${ac_cv_header_gpm_h+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045 ac_cv_header_gpm_h=$ac_header_preproc
15046 fi
15047 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15048 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
15049
15050 fi
15051 if test $ac_cv_header_gpm_h = yes; then
15052 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15053 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
15054 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057 ac_check_lib_save_LIBS=$LIBS
15058 LIBS="-lgpm $LIBS"
15059 cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h. */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065
15066 /* Override any GCC internal prototype to avoid an error.
15067 Use char because int might match the return type of a GCC
15068 builtin and then its argument prototype would still apply. */
15069 #ifdef __cplusplus
15070 extern "C"
15071 #endif
15072 char Gpm_Open ();
15073 int
15074 main ()
15075 {
15076 return Gpm_Open ();
15077 ;
15078 return 0;
15079 }
15080 _ACEOF
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15086 esac
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_link") 2>conftest.er1
15089 ac_status=$?
15090 grep -v '^ *+' conftest.er1 >conftest.err
15091 rm -f conftest.er1
15092 cat conftest.err >&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } && {
15095 test -z "$ac_c_werror_flag" ||
15096 test ! -s conftest.err
15097 } && test -s conftest$ac_exeext &&
15098 $as_test_x conftest$ac_exeext; then
15099 ac_cv_lib_gpm_Gpm_Open=yes
15100 else
15101 echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15103
15104 ac_cv_lib_gpm_Gpm_Open=no
15105 fi
15106
15107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15108 conftest$ac_exeext conftest.$ac_ext
15109 LIBS=$ac_check_lib_save_LIBS
15110 fi
15111 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15112 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
15113 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15114 HAVE_GPM=yes
15115 fi
15116
15117 fi
15118
15119
15120 fi
15121
15122 if test "${HAVE_GPM}" = "yes"; then
15123
15124 cat >>confdefs.h <<\_ACEOF
15125 #define HAVE_GPM 1
15126 _ACEOF
15127
15128 fi
15129
15130 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15131 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15132 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15133 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 fi
15136 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15137 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15138 else
15139 # Is the header compilable?
15140 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15141 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
15142 cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h. */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 $ac_includes_default
15149 #include <malloc/malloc.h>
15150 _ACEOF
15151 rm -f conftest.$ac_objext
15152 if { (ac_try="$ac_compile"
15153 case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15156 esac
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_compile") 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } && {
15165 test -z "$ac_c_werror_flag" ||
15166 test ! -s conftest.err
15167 } && test -s conftest.$ac_objext; then
15168 ac_header_compiler=yes
15169 else
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15172
15173 ac_header_compiler=no
15174 fi
15175
15176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15178 echo "${ECHO_T}$ac_header_compiler" >&6; }
15179
15180 # Is the header present?
15181 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15182 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
15183 cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h. */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 #include <malloc/malloc.h>
15190 _ACEOF
15191 if { (ac_try="$ac_cpp conftest.$ac_ext"
15192 case "(($ac_try" in
15193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194 *) ac_try_echo=$ac_try;;
15195 esac
15196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15198 ac_status=$?
15199 grep -v '^ *+' conftest.er1 >conftest.err
15200 rm -f conftest.er1
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } >/dev/null && {
15204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15205 test ! -s conftest.err
15206 }; then
15207 ac_header_preproc=yes
15208 else
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15211
15212 ac_header_preproc=no
15213 fi
15214
15215 rm -f conftest.err conftest.$ac_ext
15216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15217 echo "${ECHO_T}$ac_header_preproc" >&6; }
15218
15219 # So? What about this header?
15220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15221 yes:no: )
15222 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15223 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15224 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15225 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15226 ac_header_preproc=yes
15227 ;;
15228 no:yes:* )
15229 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15230 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15231 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15232 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15234 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15236 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15238 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15240 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15241
15242 ;;
15243 esac
15244 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15245 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15246 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15250 fi
15251 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15252 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15253
15254 fi
15255 if test $ac_cv_header_malloc_malloc_h = yes; then
15256
15257 cat >>confdefs.h <<\_ACEOF
15258 #define HAVE_MALLOC_MALLOC_H 1
15259 _ACEOF
15260
15261 fi
15262
15263
15264
15265 ### Use Mac OS X Carbon API to implement GUI.
15266 if test "${HAVE_CARBON}" = "yes"; then
15267
15268 cat >>confdefs.h <<\_ACEOF
15269 #define HAVE_CARBON 1
15270 _ACEOF
15271
15272 ## Specify the install directory
15273 carbon_appdir=
15274 if test "${carbon_appdir_x}" != ""; then
15275 case ${carbon_appdir_x} in
15276 y | ye | yes) carbon_appdir=/Applications ;;
15277 * ) carbon_appdir=${carbon_appdir_x} ;;
15278 esac
15279 fi
15280 # We also have mouse menus.
15281 HAVE_MENUS=yes
15282 fi
15283
15284 ### Use session management (-lSM -lICE) if available
15285 HAVE_X_SM=no
15286 if test "${HAVE_X11}" = "yes"; then
15287 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15288 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15289 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15290 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15292 fi
15293 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15294 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15295 else
15296 # Is the header compilable?
15297 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15298 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15299 cat >conftest.$ac_ext <<_ACEOF
15300 /* confdefs.h. */
15301 _ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h. */
15305 $ac_includes_default
15306 #include <X11/SM/SMlib.h>
15307 _ACEOF
15308 rm -f conftest.$ac_objext
15309 if { (ac_try="$ac_compile"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_compile") 2>conftest.er1
15316 ac_status=$?
15317 grep -v '^ *+' conftest.er1 >conftest.err
15318 rm -f conftest.er1
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } && {
15322 test -z "$ac_c_werror_flag" ||
15323 test ! -s conftest.err
15324 } && test -s conftest.$ac_objext; then
15325 ac_header_compiler=yes
15326 else
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330 ac_header_compiler=no
15331 fi
15332
15333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15335 echo "${ECHO_T}$ac_header_compiler" >&6; }
15336
15337 # Is the header present?
15338 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15339 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15340 cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h. */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15346 #include <X11/SM/SMlib.h>
15347 _ACEOF
15348 if { (ac_try="$ac_cpp conftest.$ac_ext"
15349 case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15352 esac
15353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15355 ac_status=$?
15356 grep -v '^ *+' conftest.er1 >conftest.err
15357 rm -f conftest.er1
15358 cat conftest.err >&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } >/dev/null && {
15361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15362 test ! -s conftest.err
15363 }; then
15364 ac_header_preproc=yes
15365 else
15366 echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15368
15369 ac_header_preproc=no
15370 fi
15371
15372 rm -f conftest.err conftest.$ac_ext
15373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15374 echo "${ECHO_T}$ac_header_preproc" >&6; }
15375
15376 # So? What about this header?
15377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15378 yes:no: )
15379 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15380 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15382 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15383 ac_header_preproc=yes
15384 ;;
15385 no:yes:* )
15386 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15387 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15388 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15389 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15391 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15392 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15393 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15395 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15397 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15398
15399 ;;
15400 esac
15401 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15402 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15403 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6
15405 else
15406 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15407 fi
15408 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15409 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15410
15411 fi
15412 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15413 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15414 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15415 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15417 else
15418 ac_check_lib_save_LIBS=$LIBS
15419 LIBS="-lSM -lICE $LIBS"
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h. */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426
15427 /* Override any GCC internal prototype to avoid an error.
15428 Use char because int might match the return type of a GCC
15429 builtin and then its argument prototype would still apply. */
15430 #ifdef __cplusplus
15431 extern "C"
15432 #endif
15433 char SmcOpenConnection ();
15434 int
15435 main ()
15436 {
15437 return SmcOpenConnection ();
15438 ;
15439 return 0;
15440 }
15441 _ACEOF
15442 rm -f conftest.$ac_objext conftest$ac_exeext
15443 if { (ac_try="$ac_link"
15444 case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447 esac
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_link") 2>conftest.er1
15450 ac_status=$?
15451 grep -v '^ *+' conftest.er1 >conftest.err
15452 rm -f conftest.er1
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } && {
15456 test -z "$ac_c_werror_flag" ||
15457 test ! -s conftest.err
15458 } && test -s conftest$ac_exeext &&
15459 $as_test_x conftest$ac_exeext; then
15460 ac_cv_lib_SM_SmcOpenConnection=yes
15461 else
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15464
15465 ac_cv_lib_SM_SmcOpenConnection=no
15466 fi
15467
15468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15469 conftest$ac_exeext conftest.$ac_ext
15470 LIBS=$ac_check_lib_save_LIBS
15471 fi
15472 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15473 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15474 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15475 HAVE_X_SM=yes
15476 fi
15477
15478 fi
15479
15480
15481
15482 if test "${HAVE_X_SM}" = "yes"; then
15483
15484 cat >>confdefs.h <<\_ACEOF
15485 #define HAVE_X_SM 1
15486 _ACEOF
15487
15488 case "$LIBS" in
15489 *-lSM*) ;;
15490 *) LIBS="-lSM -lICE $LIBS" ;;
15491 esac
15492 fi
15493 fi
15494
15495 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15496 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15497 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15498 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h. */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 #include <netdb.h>
15508 int
15509 main ()
15510 {
15511 return h_errno;
15512 ;
15513 return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext conftest$ac_exeext
15517 if { (ac_try="$ac_link"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_link") 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } && {
15530 test -z "$ac_c_werror_flag" ||
15531 test ! -s conftest.err
15532 } && test -s conftest$ac_exeext &&
15533 $as_test_x conftest$ac_exeext; then
15534 emacs_cv_netdb_declares_h_errno=yes
15535 else
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 emacs_cv_netdb_declares_h_errno=no
15540 fi
15541
15542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15543 conftest$ac_exeext conftest.$ac_ext
15544 fi
15545 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15546 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15547 if test $emacs_cv_netdb_declares_h_errno = yes; then
15548
15549 cat >>confdefs.h <<\_ACEOF
15550 #define HAVE_H_ERRNO 1
15551 _ACEOF
15552
15553 fi
15554
15555 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15556 # for constant arguments. Useless!
15557 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15558 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15559 if test "${ac_cv_working_alloca_h+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15561 else
15562 cat >conftest.$ac_ext <<_ACEOF
15563 /* confdefs.h. */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 #include <alloca.h>
15569 int
15570 main ()
15571 {
15572 char *p = (char *) alloca (2 * sizeof (int));
15573 if (p) return 0;
15574 ;
15575 return 0;
15576 }
15577 _ACEOF
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (ac_try="$ac_link"
15580 case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_link") 2>conftest.er1
15586 ac_status=$?
15587 grep -v '^ *+' conftest.er1 >conftest.err
15588 rm -f conftest.er1
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } && {
15592 test -z "$ac_c_werror_flag" ||
15593 test ! -s conftest.err
15594 } && test -s conftest$ac_exeext &&
15595 $as_test_x conftest$ac_exeext; then
15596 ac_cv_working_alloca_h=yes
15597 else
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 ac_cv_working_alloca_h=no
15602 fi
15603
15604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15605 conftest$ac_exeext conftest.$ac_ext
15606 fi
15607 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15608 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15609 if test $ac_cv_working_alloca_h = yes; then
15610
15611 cat >>confdefs.h <<\_ACEOF
15612 #define HAVE_ALLOCA_H 1
15613 _ACEOF
15614
15615 fi
15616
15617 { echo "$as_me:$LINENO: checking for alloca" >&5
15618 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15619 if test "${ac_cv_func_alloca_works+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622 cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h. */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 #ifdef __GNUC__
15629 # define alloca __builtin_alloca
15630 #else
15631 # ifdef _MSC_VER
15632 # include <malloc.h>
15633 # define alloca _alloca
15634 # else
15635 # ifdef HAVE_ALLOCA_H
15636 # include <alloca.h>
15637 # else
15638 # ifdef _AIX
15639 #pragma alloca
15640 # else
15641 # ifndef alloca /* predefined by HP cc +Olibcalls */
15642 char *alloca ();
15643 # endif
15644 # endif
15645 # endif
15646 # endif
15647 #endif
15648
15649 int
15650 main ()
15651 {
15652 char *p = (char *) alloca (1);
15653 if (p) return 0;
15654 ;
15655 return 0;
15656 }
15657 _ACEOF
15658 rm -f conftest.$ac_objext conftest$ac_exeext
15659 if { (ac_try="$ac_link"
15660 case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15663 esac
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_link") 2>conftest.er1
15666 ac_status=$?
15667 grep -v '^ *+' conftest.er1 >conftest.err
15668 rm -f conftest.er1
15669 cat conftest.err >&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } && {
15672 test -z "$ac_c_werror_flag" ||
15673 test ! -s conftest.err
15674 } && test -s conftest$ac_exeext &&
15675 $as_test_x conftest$ac_exeext; then
15676 ac_cv_func_alloca_works=yes
15677 else
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15680
15681 ac_cv_func_alloca_works=no
15682 fi
15683
15684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15685 conftest$ac_exeext conftest.$ac_ext
15686 fi
15687 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15688 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15689
15690 if test $ac_cv_func_alloca_works = yes; then
15691
15692 cat >>confdefs.h <<\_ACEOF
15693 #define HAVE_ALLOCA 1
15694 _ACEOF
15695
15696 else
15697 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15698 # that cause trouble. Some versions do not even contain alloca or
15699 # contain a buggy version. If you still want to use their alloca,
15700 # use ar to extract alloca.o from them instead of compiling alloca.c.
15701
15702 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15703
15704 cat >>confdefs.h <<\_ACEOF
15705 #define C_ALLOCA 1
15706 _ACEOF
15707
15708
15709 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15710 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15711 if test "${ac_cv_os_cray+set}" = set; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 else
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 #if defined CRAY && ! defined CRAY2
15721 webecray
15722 #else
15723 wenotbecray
15724 #endif
15725
15726 _ACEOF
15727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15728 $EGREP "webecray" >/dev/null 2>&1; then
15729 ac_cv_os_cray=yes
15730 else
15731 ac_cv_os_cray=no
15732 fi
15733 rm -f conftest*
15734
15735 fi
15736 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15737 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15738 if test $ac_cv_os_cray = yes; then
15739 for ac_func in _getb67 GETB67 getb67; do
15740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h. */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15754 #define $ac_func innocuous_$ac_func
15755
15756 /* System header to define __stub macros and hopefully few prototypes,
15757 which can conflict with char $ac_func (); below.
15758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15759 <limits.h> exists even on freestanding compilers. */
15760
15761 #ifdef __STDC__
15762 # include <limits.h>
15763 #else
15764 # include <assert.h>
15765 #endif
15766
15767 #undef $ac_func
15768
15769 /* Override any GCC internal prototype to avoid an error.
15770 Use char because int might match the return type of a GCC
15771 builtin and then its argument prototype would still apply. */
15772 #ifdef __cplusplus
15773 extern "C"
15774 #endif
15775 char $ac_func ();
15776 /* The GNU C library defines this for functions which it implements
15777 to always fail with ENOSYS. Some functions are actually named
15778 something starting with __ and the normal name is an alias. */
15779 #if defined __stub_$ac_func || defined __stub___$ac_func
15780 choke me
15781 #endif
15782
15783 int
15784 main ()
15785 {
15786 return $ac_func ();
15787 ;
15788 return 0;
15789 }
15790 _ACEOF
15791 rm -f conftest.$ac_objext conftest$ac_exeext
15792 if { (ac_try="$ac_link"
15793 case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15796 esac
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_link") 2>conftest.er1
15799 ac_status=$?
15800 grep -v '^ *+' conftest.er1 >conftest.err
15801 rm -f conftest.er1
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } && {
15805 test -z "$ac_c_werror_flag" ||
15806 test ! -s conftest.err
15807 } && test -s conftest$ac_exeext &&
15808 $as_test_x conftest$ac_exeext; then
15809 eval "$as_ac_var=yes"
15810 else
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 eval "$as_ac_var=no"
15815 fi
15816
15817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15818 conftest$ac_exeext conftest.$ac_ext
15819 fi
15820 ac_res=`eval echo '${'$as_ac_var'}'`
15821 { echo "$as_me:$LINENO: result: $ac_res" >&5
15822 echo "${ECHO_T}$ac_res" >&6; }
15823 if test `eval echo '${'$as_ac_var'}'` = yes; then
15824
15825 cat >>confdefs.h <<_ACEOF
15826 #define CRAY_STACKSEG_END $ac_func
15827 _ACEOF
15828
15829 break
15830 fi
15831
15832 done
15833 fi
15834
15835 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15836 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15837 if test "${ac_cv_c_stack_direction+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 else
15840 if test "$cross_compiling" = yes; then
15841 ac_cv_c_stack_direction=0
15842 else
15843 cat >conftest.$ac_ext <<_ACEOF
15844 /* confdefs.h. */
15845 _ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 $ac_includes_default
15850 int
15851 find_stack_direction ()
15852 {
15853 static char *addr = 0;
15854 auto char dummy;
15855 if (addr == 0)
15856 {
15857 addr = &dummy;
15858 return find_stack_direction ();
15859 }
15860 else
15861 return (&dummy > addr) ? 1 : -1;
15862 }
15863
15864 int
15865 main ()
15866 {
15867 return find_stack_direction () < 0;
15868 }
15869 _ACEOF
15870 rm -f conftest$ac_exeext
15871 if { (ac_try="$ac_link"
15872 case "(($ac_try" in
15873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874 *) ac_try_echo=$ac_try;;
15875 esac
15876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15877 (eval "$ac_link") 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15881 { (case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15884 esac
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886 (eval "$ac_try") 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 ac_cv_c_stack_direction=1
15891 else
15892 echo "$as_me: program exited with status $ac_status" >&5
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896 ( exit $ac_status )
15897 ac_cv_c_stack_direction=-1
15898 fi
15899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15900 fi
15901
15902
15903 fi
15904 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15905 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15906
15907 cat >>confdefs.h <<_ACEOF
15908 #define STACK_DIRECTION $ac_cv_c_stack_direction
15909 _ACEOF
15910
15911
15912 fi
15913
15914
15915 if test x"$ac_cv_func_alloca_works" != xyes; then
15916 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15917 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15918 { (exit 1); exit 1; }; }
15919 fi
15920
15921 # fmod, logb, and frexp are found in -lm on most systems.
15922 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15923
15924 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15925 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15926 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929 ac_check_lib_save_LIBS=$LIBS
15930 LIBS="-lm $LIBS"
15931 cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h. */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937
15938 /* Override any GCC internal prototype to avoid an error.
15939 Use char because int might match the return type of a GCC
15940 builtin and then its argument prototype would still apply. */
15941 #ifdef __cplusplus
15942 extern "C"
15943 #endif
15944 char sqrt ();
15945 int
15946 main ()
15947 {
15948 return sqrt ();
15949 ;
15950 return 0;
15951 }
15952 _ACEOF
15953 rm -f conftest.$ac_objext conftest$ac_exeext
15954 if { (ac_try="$ac_link"
15955 case "(($ac_try" in
15956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957 *) ac_try_echo=$ac_try;;
15958 esac
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960 (eval "$ac_link") 2>conftest.er1
15961 ac_status=$?
15962 grep -v '^ *+' conftest.er1 >conftest.err
15963 rm -f conftest.er1
15964 cat conftest.err >&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } && {
15967 test -z "$ac_c_werror_flag" ||
15968 test ! -s conftest.err
15969 } && test -s conftest$ac_exeext &&
15970 $as_test_x conftest$ac_exeext; then
15971 ac_cv_lib_m_sqrt=yes
15972 else
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15975
15976 ac_cv_lib_m_sqrt=no
15977 fi
15978
15979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15980 conftest$ac_exeext conftest.$ac_ext
15981 LIBS=$ac_check_lib_save_LIBS
15982 fi
15983 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15984 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15985 if test $ac_cv_lib_m_sqrt = yes; then
15986 cat >>confdefs.h <<_ACEOF
15987 #define HAVE_LIBM 1
15988 _ACEOF
15989
15990 LIBS="-lm $LIBS"
15991
15992 fi
15993
15994
15995 # Check for mail-locking functions in a "mail" library. Probably this should
15996 # have the same check as for liblockfile below.
15997
15998 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15999 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
16000 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 else
16003 ac_check_lib_save_LIBS=$LIBS
16004 LIBS="-lmail $LIBS"
16005 cat >conftest.$ac_ext <<_ACEOF
16006 /* confdefs.h. */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011
16012 /* Override any GCC internal prototype to avoid an error.
16013 Use char because int might match the return type of a GCC
16014 builtin and then its argument prototype would still apply. */
16015 #ifdef __cplusplus
16016 extern "C"
16017 #endif
16018 char maillock ();
16019 int
16020 main ()
16021 {
16022 return maillock ();
16023 ;
16024 return 0;
16025 }
16026 _ACEOF
16027 rm -f conftest.$ac_objext conftest$ac_exeext
16028 if { (ac_try="$ac_link"
16029 case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16032 esac
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_link") 2>conftest.er1
16035 ac_status=$?
16036 grep -v '^ *+' conftest.er1 >conftest.err
16037 rm -f conftest.er1
16038 cat conftest.err >&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } && {
16041 test -z "$ac_c_werror_flag" ||
16042 test ! -s conftest.err
16043 } && test -s conftest$ac_exeext &&
16044 $as_test_x conftest$ac_exeext; then
16045 ac_cv_lib_mail_maillock=yes
16046 else
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16049
16050 ac_cv_lib_mail_maillock=no
16051 fi
16052
16053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16054 conftest$ac_exeext conftest.$ac_ext
16055 LIBS=$ac_check_lib_save_LIBS
16056 fi
16057 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16058 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
16059 if test $ac_cv_lib_mail_maillock = yes; then
16060 cat >>confdefs.h <<_ACEOF
16061 #define HAVE_LIBMAIL 1
16062 _ACEOF
16063
16064 LIBS="-lmail $LIBS"
16065
16066 fi
16067
16068
16069 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16070 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
16071 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074 ac_check_lib_save_LIBS=$LIBS
16075 LIBS="-llockfile $LIBS"
16076 cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h. */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082
16083 /* Override any GCC internal prototype to avoid an error.
16084 Use char because int might match the return type of a GCC
16085 builtin and then its argument prototype would still apply. */
16086 #ifdef __cplusplus
16087 extern "C"
16088 #endif
16089 char maillock ();
16090 int
16091 main ()
16092 {
16093 return maillock ();
16094 ;
16095 return 0;
16096 }
16097 _ACEOF
16098 rm -f conftest.$ac_objext conftest$ac_exeext
16099 if { (ac_try="$ac_link"
16100 case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16103 esac
16104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 (eval "$ac_link") 2>conftest.er1
16106 ac_status=$?
16107 grep -v '^ *+' conftest.er1 >conftest.err
16108 rm -f conftest.er1
16109 cat conftest.err >&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } && {
16112 test -z "$ac_c_werror_flag" ||
16113 test ! -s conftest.err
16114 } && test -s conftest$ac_exeext &&
16115 $as_test_x conftest$ac_exeext; then
16116 ac_cv_lib_lockfile_maillock=yes
16117 else
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16120
16121 ac_cv_lib_lockfile_maillock=no
16122 fi
16123
16124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16125 conftest$ac_exeext conftest.$ac_ext
16126 LIBS=$ac_check_lib_save_LIBS
16127 fi
16128 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16129 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16130 if test $ac_cv_lib_lockfile_maillock = yes; then
16131 cat >>confdefs.h <<_ACEOF
16132 #define HAVE_LIBLOCKFILE 1
16133 _ACEOF
16134
16135 LIBS="-llockfile $LIBS"
16136
16137 fi
16138
16139 # If we have the shared liblockfile, assume we must use it for mail
16140 # locking (e.g. Debian). If we couldn't link against liblockfile
16141 # (no liblockfile.a installed), ensure that we don't need to.
16142 if test "$ac_cv_lib_lockfile_maillock" = no; then
16143 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16144 set dummy liblockfile.so; ac_word=$2
16145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16147 if test "${ac_cv_prog_liblockfile+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150 if test -n "$liblockfile"; then
16151 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16152 else
16153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16154 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16155 for as_dir in $as_dummy
16156 do
16157 IFS=$as_save_IFS
16158 test -z "$as_dir" && as_dir=.
16159 for ac_exec_ext in '' $ac_executable_extensions; do
16160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16161 ac_cv_prog_liblockfile="yes"
16162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16163 break 2
16164 fi
16165 done
16166 done
16167 IFS=$as_save_IFS
16168
16169 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16170 fi
16171 fi
16172 liblockfile=$ac_cv_prog_liblockfile
16173 if test -n "$liblockfile"; then
16174 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16175 echo "${ECHO_T}$liblockfile" >&6; }
16176 else
16177 { echo "$as_me:$LINENO: result: no" >&5
16178 echo "${ECHO_T}no" >&6; }
16179 fi
16180
16181
16182 if test $ac_cv_prog_liblockfile = yes; then
16183 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16184 This probably means that movemail could lose mail.
16185 There may be a \`development' package to install containing liblockfile." >&5
16186 echo "$as_me: error: Shared liblockfile found but can't link against it.
16187 This probably means that movemail could lose mail.
16188 There may be a \`development' package to install containing liblockfile." >&2;}
16189 { (exit 1); exit 1; }; }
16190 else :
16191 fi
16192 fi
16193
16194 for ac_func in touchlock
16195 do
16196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202 cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h. */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16210 #define $ac_func innocuous_$ac_func
16211
16212 /* System header to define __stub macros and hopefully few prototypes,
16213 which can conflict with char $ac_func (); below.
16214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16215 <limits.h> exists even on freestanding compilers. */
16216
16217 #ifdef __STDC__
16218 # include <limits.h>
16219 #else
16220 # include <assert.h>
16221 #endif
16222
16223 #undef $ac_func
16224
16225 /* Override any GCC internal prototype to avoid an error.
16226 Use char because int might match the return type of a GCC
16227 builtin and then its argument prototype would still apply. */
16228 #ifdef __cplusplus
16229 extern "C"
16230 #endif
16231 char $ac_func ();
16232 /* The GNU C library defines this for functions which it implements
16233 to always fail with ENOSYS. Some functions are actually named
16234 something starting with __ and the normal name is an alias. */
16235 #if defined __stub_$ac_func || defined __stub___$ac_func
16236 choke me
16237 #endif
16238
16239 int
16240 main ()
16241 {
16242 return $ac_func ();
16243 ;
16244 return 0;
16245 }
16246 _ACEOF
16247 rm -f conftest.$ac_objext conftest$ac_exeext
16248 if { (ac_try="$ac_link"
16249 case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16252 esac
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_link") 2>conftest.er1
16255 ac_status=$?
16256 grep -v '^ *+' conftest.er1 >conftest.err
16257 rm -f conftest.er1
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } && {
16261 test -z "$ac_c_werror_flag" ||
16262 test ! -s conftest.err
16263 } && test -s conftest$ac_exeext &&
16264 $as_test_x conftest$ac_exeext; then
16265 eval "$as_ac_var=yes"
16266 else
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16269
16270 eval "$as_ac_var=no"
16271 fi
16272
16273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16274 conftest$ac_exeext conftest.$ac_ext
16275 fi
16276 ac_res=`eval echo '${'$as_ac_var'}'`
16277 { echo "$as_me:$LINENO: result: $ac_res" >&5
16278 echo "${ECHO_T}$ac_res" >&6; }
16279 if test `eval echo '${'$as_ac_var'}'` = yes; then
16280 cat >>confdefs.h <<_ACEOF
16281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16282 _ACEOF
16283
16284 fi
16285 done
16286
16287
16288 for ac_header in maillock.h
16289 do
16290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16295 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 fi
16297 ac_res=`eval echo '${'$as_ac_Header'}'`
16298 { echo "$as_me:$LINENO: result: $ac_res" >&5
16299 echo "${ECHO_T}$ac_res" >&6; }
16300 else
16301 # Is the header compilable?
16302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16304 cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h. */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 $ac_includes_default
16311 #include <$ac_header>
16312 _ACEOF
16313 rm -f conftest.$ac_objext
16314 if { (ac_try="$ac_compile"
16315 case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318 esac
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_compile") 2>conftest.er1
16321 ac_status=$?
16322 grep -v '^ *+' conftest.er1 >conftest.err
16323 rm -f conftest.er1
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } && {
16327 test -z "$ac_c_werror_flag" ||
16328 test ! -s conftest.err
16329 } && test -s conftest.$ac_objext; then
16330 ac_header_compiler=yes
16331 else
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 ac_header_compiler=no
16336 fi
16337
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16340 echo "${ECHO_T}$ac_header_compiler" >&6; }
16341
16342 # Is the header present?
16343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16345 cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h. */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 #include <$ac_header>
16352 _ACEOF
16353 if { (ac_try="$ac_cpp conftest.$ac_ext"
16354 case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16360 ac_status=$?
16361 grep -v '^ *+' conftest.er1 >conftest.err
16362 rm -f conftest.er1
16363 cat conftest.err >&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } >/dev/null && {
16366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16367 test ! -s conftest.err
16368 }; then
16369 ac_header_preproc=yes
16370 else
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374 ac_header_preproc=no
16375 fi
16376
16377 rm -f conftest.err conftest.$ac_ext
16378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16379 echo "${ECHO_T}$ac_header_preproc" >&6; }
16380
16381 # So? What about this header?
16382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16383 yes:no: )
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16388 ac_header_preproc=yes
16389 ;;
16390 no:yes:* )
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16403
16404 ;;
16405 esac
16406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411 eval "$as_ac_Header=\$ac_header_preproc"
16412 fi
16413 ac_res=`eval echo '${'$as_ac_Header'}'`
16414 { echo "$as_me:$LINENO: result: $ac_res" >&5
16415 echo "${ECHO_T}$ac_res" >&6; }
16416
16417 fi
16418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16419 cat >>confdefs.h <<_ACEOF
16420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16421 _ACEOF
16422
16423 fi
16424
16425 done
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496 for ac_func in gethostname getdomainname dup2 \
16497 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16498 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16499 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16500 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16501 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16502 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16503 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16504 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16505 do
16506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16507 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h. */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16520 #define $ac_func innocuous_$ac_func
16521
16522 /* System header to define __stub macros and hopefully few prototypes,
16523 which can conflict with char $ac_func (); below.
16524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16525 <limits.h> exists even on freestanding compilers. */
16526
16527 #ifdef __STDC__
16528 # include <limits.h>
16529 #else
16530 # include <assert.h>
16531 #endif
16532
16533 #undef $ac_func
16534
16535 /* Override any GCC internal prototype to avoid an error.
16536 Use char because int might match the return type of a GCC
16537 builtin and then its argument prototype would still apply. */
16538 #ifdef __cplusplus
16539 extern "C"
16540 #endif
16541 char $ac_func ();
16542 /* The GNU C library defines this for functions which it implements
16543 to always fail with ENOSYS. Some functions are actually named
16544 something starting with __ and the normal name is an alias. */
16545 #if defined __stub_$ac_func || defined __stub___$ac_func
16546 choke me
16547 #endif
16548
16549 int
16550 main ()
16551 {
16552 return $ac_func ();
16553 ;
16554 return 0;
16555 }
16556 _ACEOF
16557 rm -f conftest.$ac_objext conftest$ac_exeext
16558 if { (ac_try="$ac_link"
16559 case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16562 esac
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_link") 2>conftest.er1
16565 ac_status=$?
16566 grep -v '^ *+' conftest.er1 >conftest.err
16567 rm -f conftest.er1
16568 cat conftest.err >&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } && {
16571 test -z "$ac_c_werror_flag" ||
16572 test ! -s conftest.err
16573 } && test -s conftest$ac_exeext &&
16574 $as_test_x conftest$ac_exeext; then
16575 eval "$as_ac_var=yes"
16576 else
16577 echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16579
16580 eval "$as_ac_var=no"
16581 fi
16582
16583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16584 conftest$ac_exeext conftest.$ac_ext
16585 fi
16586 ac_res=`eval echo '${'$as_ac_var'}'`
16587 { echo "$as_me:$LINENO: result: $ac_res" >&5
16588 echo "${ECHO_T}$ac_res" >&6; }
16589 if test `eval echo '${'$as_ac_var'}'` = yes; then
16590 cat >>confdefs.h <<_ACEOF
16591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16592 _ACEOF
16593
16594 fi
16595 done
16596
16597
16598
16599 for ac_header in sys/un.h
16600 do
16601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16607 fi
16608 ac_res=`eval echo '${'$as_ac_Header'}'`
16609 { echo "$as_me:$LINENO: result: $ac_res" >&5
16610 echo "${ECHO_T}$ac_res" >&6; }
16611 else
16612 # Is the header compilable?
16613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h. */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 $ac_includes_default
16622 #include <$ac_header>
16623 _ACEOF
16624 rm -f conftest.$ac_objext
16625 if { (ac_try="$ac_compile"
16626 case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16629 esac
16630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631 (eval "$ac_compile") 2>conftest.er1
16632 ac_status=$?
16633 grep -v '^ *+' conftest.er1 >conftest.err
16634 rm -f conftest.er1
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } && {
16638 test -z "$ac_c_werror_flag" ||
16639 test ! -s conftest.err
16640 } && test -s conftest.$ac_objext; then
16641 ac_header_compiler=yes
16642 else
16643 echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16645
16646 ac_header_compiler=no
16647 fi
16648
16649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16651 echo "${ECHO_T}$ac_header_compiler" >&6; }
16652
16653 # Is the header present?
16654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16656 cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h. */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 #include <$ac_header>
16663 _ACEOF
16664 if { (ac_try="$ac_cpp conftest.$ac_ext"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16671 ac_status=$?
16672 grep -v '^ *+' conftest.er1 >conftest.err
16673 rm -f conftest.er1
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } >/dev/null && {
16677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16678 test ! -s conftest.err
16679 }; then
16680 ac_header_preproc=yes
16681 else
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16684
16685 ac_header_preproc=no
16686 fi
16687
16688 rm -f conftest.err conftest.$ac_ext
16689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16690 echo "${ECHO_T}$ac_header_preproc" >&6; }
16691
16692 # So? What about this header?
16693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16694 yes:no: )
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16699 ac_header_preproc=yes
16700 ;;
16701 no:yes:* )
16702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16714
16715 ;;
16716 esac
16717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 else
16722 eval "$as_ac_Header=\$ac_header_preproc"
16723 fi
16724 ac_res=`eval echo '${'$as_ac_Header'}'`
16725 { echo "$as_me:$LINENO: result: $ac_res" >&5
16726 echo "${ECHO_T}$ac_res" >&6; }
16727
16728 fi
16729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16730 cat >>confdefs.h <<_ACEOF
16731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16732 _ACEOF
16733
16734 fi
16735
16736 done
16737
16738
16739
16740
16741
16742
16743 for ac_header in $ac_header_list
16744 do
16745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 fi
16752 ac_res=`eval echo '${'$as_ac_Header'}'`
16753 { echo "$as_me:$LINENO: result: $ac_res" >&5
16754 echo "${ECHO_T}$ac_res" >&6; }
16755 else
16756 # Is the header compilable?
16757 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h. */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 $ac_includes_default
16766 #include <$ac_header>
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (ac_try="$ac_compile"
16770 case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16773 esac
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_compile") 2>conftest.er1
16776 ac_status=$?
16777 grep -v '^ *+' conftest.er1 >conftest.err
16778 rm -f conftest.er1
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } && {
16782 test -z "$ac_c_werror_flag" ||
16783 test ! -s conftest.err
16784 } && test -s conftest.$ac_objext; then
16785 ac_header_compiler=yes
16786 else
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790 ac_header_compiler=no
16791 fi
16792
16793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16795 echo "${ECHO_T}$ac_header_compiler" >&6; }
16796
16797 # Is the header present?
16798 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h. */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 #include <$ac_header>
16807 _ACEOF
16808 if { (ac_try="$ac_cpp conftest.$ac_ext"
16809 case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } >/dev/null && {
16821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16822 test ! -s conftest.err
16823 }; then
16824 ac_header_preproc=yes
16825 else
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16828
16829 ac_header_preproc=no
16830 fi
16831
16832 rm -f conftest.err conftest.$ac_ext
16833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16834 echo "${ECHO_T}$ac_header_preproc" >&6; }
16835
16836 # So? What about this header?
16837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16838 yes:no: )
16839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16843 ac_header_preproc=yes
16844 ;;
16845 no:yes:* )
16846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16858
16859 ;;
16860 esac
16861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866 eval "$as_ac_Header=\$ac_header_preproc"
16867 fi
16868 ac_res=`eval echo '${'$as_ac_Header'}'`
16869 { echo "$as_me:$LINENO: result: $ac_res" >&5
16870 echo "${ECHO_T}$ac_res" >&6; }
16871
16872 fi
16873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16874 cat >>confdefs.h <<_ACEOF
16875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16876 _ACEOF
16877
16878 fi
16879
16880 done
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890 for ac_func in $ac_func_list
16891 do
16892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16897 else
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16906 #define $ac_func innocuous_$ac_func
16907
16908 /* System header to define __stub macros and hopefully few prototypes,
16909 which can conflict with char $ac_func (); below.
16910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16911 <limits.h> exists even on freestanding compilers. */
16912
16913 #ifdef __STDC__
16914 # include <limits.h>
16915 #else
16916 # include <assert.h>
16917 #endif
16918
16919 #undef $ac_func
16920
16921 /* Override any GCC internal prototype to avoid an error.
16922 Use char because int might match the return type of a GCC
16923 builtin and then its argument prototype would still apply. */
16924 #ifdef __cplusplus
16925 extern "C"
16926 #endif
16927 char $ac_func ();
16928 /* The GNU C library defines this for functions which it implements
16929 to always fail with ENOSYS. Some functions are actually named
16930 something starting with __ and the normal name is an alias. */
16931 #if defined __stub_$ac_func || defined __stub___$ac_func
16932 choke me
16933 #endif
16934
16935 int
16936 main ()
16937 {
16938 return $ac_func ();
16939 ;
16940 return 0;
16941 }
16942 _ACEOF
16943 rm -f conftest.$ac_objext conftest$ac_exeext
16944 if { (ac_try="$ac_link"
16945 case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16948 esac
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_link") 2>conftest.er1
16951 ac_status=$?
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest$ac_exeext &&
16960 $as_test_x conftest$ac_exeext; then
16961 eval "$as_ac_var=yes"
16962 else
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16965
16966 eval "$as_ac_var=no"
16967 fi
16968
16969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16970 conftest$ac_exeext conftest.$ac_ext
16971 fi
16972 ac_res=`eval echo '${'$as_ac_var'}'`
16973 { echo "$as_me:$LINENO: result: $ac_res" >&5
16974 echo "${ECHO_T}$ac_res" >&6; }
16975 if test `eval echo '${'$as_ac_var'}'` = yes; then
16976 cat >>confdefs.h <<_ACEOF
16977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16978 _ACEOF
16979
16980 fi
16981 done
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999 { echo "$as_me:$LINENO: checking for working mktime" >&5
17000 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
17001 if test "${ac_cv_func_working_mktime+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 else
17004 if test "$cross_compiling" = yes; then
17005 ac_cv_func_working_mktime=no
17006 else
17007 cat >conftest.$ac_ext <<_ACEOF
17008 /* confdefs.h. */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17013 /* Test program from Paul Eggert and Tony Leneis. */
17014 #ifdef TIME_WITH_SYS_TIME
17015 # include <sys/time.h>
17016 # include <time.h>
17017 #else
17018 # ifdef HAVE_SYS_TIME_H
17019 # include <sys/time.h>
17020 # else
17021 # include <time.h>
17022 # endif
17023 #endif
17024
17025 #include <stdlib.h>
17026
17027 #ifdef HAVE_UNISTD_H
17028 # include <unistd.h>
17029 #endif
17030
17031 #ifndef HAVE_ALARM
17032 # define alarm(X) /* empty */
17033 #endif
17034
17035 /* Work around redefinition to rpl_putenv by other config tests. */
17036 #undef putenv
17037
17038 static time_t time_t_max;
17039 static time_t time_t_min;
17040
17041 /* Values we'll use to set the TZ environment variable. */
17042 static char *tz_strings[] = {
17043 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17044 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17045 };
17046 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17047
17048 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17049 Based on a problem report from Andreas Jaeger. */
17050 static int
17051 spring_forward_gap ()
17052 {
17053 /* glibc (up to about 1998-10-07) failed this test. */
17054 struct tm tm;
17055
17056 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17057 instead of "TZ=America/Vancouver" in order to detect the bug even
17058 on systems that don't support the Olson extension, or don't have the
17059 full zoneinfo tables installed. */
17060 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17061
17062 tm.tm_year = 98;
17063 tm.tm_mon = 3;
17064 tm.tm_mday = 5;
17065 tm.tm_hour = 2;
17066 tm.tm_min = 0;
17067 tm.tm_sec = 0;
17068 tm.tm_isdst = -1;
17069 return mktime (&tm) != (time_t) -1;
17070 }
17071
17072 static int
17073 mktime_test1 (now)
17074 time_t now;
17075 {
17076 struct tm *lt;
17077 return ! (lt = localtime (&now)) || mktime (lt) == now;
17078 }
17079
17080 static int
17081 mktime_test (now)
17082 time_t now;
17083 {
17084 return (mktime_test1 (now)
17085 && mktime_test1 ((time_t) (time_t_max - now))
17086 && mktime_test1 ((time_t) (time_t_min + now)));
17087 }
17088
17089 static int
17090 irix_6_4_bug ()
17091 {
17092 /* Based on code from Ariel Faigon. */
17093 struct tm tm;
17094 tm.tm_year = 96;
17095 tm.tm_mon = 3;
17096 tm.tm_mday = 0;
17097 tm.tm_hour = 0;
17098 tm.tm_min = 0;
17099 tm.tm_sec = 0;
17100 tm.tm_isdst = -1;
17101 mktime (&tm);
17102 return tm.tm_mon == 2 && tm.tm_mday == 31;
17103 }
17104
17105 static int
17106 bigtime_test (j)
17107 int j;
17108 {
17109 struct tm tm;
17110 time_t now;
17111 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17112 now = mktime (&tm);
17113 if (now != (time_t) -1)
17114 {
17115 struct tm *lt = localtime (&now);
17116 if (! (lt
17117 && lt->tm_year == tm.tm_year
17118 && lt->tm_mon == tm.tm_mon
17119 && lt->tm_mday == tm.tm_mday
17120 && lt->tm_hour == tm.tm_hour
17121 && lt->tm_min == tm.tm_min
17122 && lt->tm_sec == tm.tm_sec
17123 && lt->tm_yday == tm.tm_yday
17124 && lt->tm_wday == tm.tm_wday
17125 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17126 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17127 return 0;
17128 }
17129 return 1;
17130 }
17131
17132 static int
17133 year_2050_test ()
17134 {
17135 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17136 ignoring leap seconds. */
17137 unsigned long int answer = 2527315200UL;
17138
17139 struct tm tm;
17140 time_t t;
17141 tm.tm_year = 2050 - 1900;
17142 tm.tm_mon = 2 - 1;
17143 tm.tm_mday = 1;
17144 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17145 tm.tm_isdst = -1;
17146
17147 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17148 instead of "TZ=America/Vancouver" in order to detect the bug even
17149 on systems that don't support the Olson extension, or don't have the
17150 full zoneinfo tables installed. */
17151 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17152
17153 t = mktime (&tm);
17154
17155 /* Check that the result is either a failure, or close enough
17156 to the correct answer that we can assume the discrepancy is
17157 due to leap seconds. */
17158 return (t == (time_t) -1
17159 || (0 < t && answer - 120 <= t && t <= answer + 120));
17160 }
17161
17162 int
17163 main ()
17164 {
17165 time_t t, delta;
17166 int i, j;
17167
17168 /* This test makes some buggy mktime implementations loop.
17169 Give up after 60 seconds; a mktime slower than that
17170 isn't worth using anyway. */
17171 alarm (60);
17172
17173 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17174 continue;
17175 time_t_max--;
17176 if ((time_t) -1 < 0)
17177 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17178 continue;
17179 delta = time_t_max / 997; /* a suitable prime number */
17180 for (i = 0; i < N_STRINGS; i++)
17181 {
17182 if (tz_strings[i])
17183 putenv (tz_strings[i]);
17184
17185 for (t = 0; t <= time_t_max - delta; t += delta)
17186 if (! mktime_test (t))
17187 return 1;
17188 if (! (mktime_test ((time_t) 1)
17189 && mktime_test ((time_t) (60 * 60))
17190 && mktime_test ((time_t) (60 * 60 * 24))))
17191 return 1;
17192
17193 for (j = 1; 0 < j; j *= 2)
17194 if (! bigtime_test (j))
17195 return 1;
17196 if (! bigtime_test (j - 1))
17197 return 1;
17198 }
17199 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17200 }
17201 _ACEOF
17202 rm -f conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_link") 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17213 { (case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_try") 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 ac_cv_func_working_mktime=yes
17223 else
17224 echo "$as_me: program exited with status $ac_status" >&5
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17227
17228 ( exit $ac_status )
17229 ac_cv_func_working_mktime=no
17230 fi
17231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17232 fi
17233
17234
17235 fi
17236 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17237 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17238 if test $ac_cv_func_working_mktime = no; then
17239 case " $LIBOBJS " in
17240 *" mktime.$ac_objext "* ) ;;
17241 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17242 ;;
17243 esac
17244
17245 fi
17246
17247 if test "$ac_cv_func_working_mktime" = no; then
17248
17249 cat >>confdefs.h <<\_ACEOF
17250 #define BROKEN_MKTIME 1
17251 _ACEOF
17252
17253 fi
17254
17255 ac_have_func=no # yes means we've found a way to get the load average.
17256
17257 # Make sure getloadavg.c is where it belongs, at configure-time.
17258 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17259 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17260 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17261 { (exit 1); exit 1; }; }
17262
17263 ac_save_LIBS=$LIBS
17264
17265 # Check for getloadavg, but be sure not to touch the cache variable.
17266 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17267 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17268 if test "${ac_cv_func_getloadavg+set}" = set; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17270 else
17271 cat >conftest.$ac_ext <<_ACEOF
17272 /* confdefs.h. */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17277 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17279 #define getloadavg innocuous_getloadavg
17280
17281 /* System header to define __stub macros and hopefully few prototypes,
17282 which can conflict with char getloadavg (); below.
17283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17284 <limits.h> exists even on freestanding compilers. */
17285
17286 #ifdef __STDC__
17287 # include <limits.h>
17288 #else
17289 # include <assert.h>
17290 #endif
17291
17292 #undef getloadavg
17293
17294 /* Override any GCC internal prototype to avoid an error.
17295 Use char because int might match the return type of a GCC
17296 builtin and then its argument prototype would still apply. */
17297 #ifdef __cplusplus
17298 extern "C"
17299 #endif
17300 char getloadavg ();
17301 /* The GNU C library defines this for functions which it implements
17302 to always fail with ENOSYS. Some functions are actually named
17303 something starting with __ and the normal name is an alias. */
17304 #if defined __stub_getloadavg || defined __stub___getloadavg
17305 choke me
17306 #endif
17307
17308 int
17309 main ()
17310 {
17311 return getloadavg ();
17312 ;
17313 return 0;
17314 }
17315 _ACEOF
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (ac_try="$ac_link"
17318 case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_link") 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } && {
17330 test -z "$ac_c_werror_flag" ||
17331 test ! -s conftest.err
17332 } && test -s conftest$ac_exeext &&
17333 $as_test_x conftest$ac_exeext; then
17334 ac_cv_func_getloadavg=yes
17335 else
17336 echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17338
17339 ac_cv_func_getloadavg=no
17340 fi
17341
17342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17343 conftest$ac_exeext conftest.$ac_ext
17344 fi
17345 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17346 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17347 if test $ac_cv_func_getloadavg = yes; then
17348 exit 0
17349 else
17350 exit 1
17351 fi
17352 ) && ac_have_func=yes
17353
17354 # On HPUX9, an unprivileged user can get load averages through this function.
17355
17356 for ac_func in pstat_getdynamic
17357 do
17358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 else
17364 cat >conftest.$ac_ext <<_ACEOF
17365 /* confdefs.h. */
17366 _ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h. */
17370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17372 #define $ac_func innocuous_$ac_func
17373
17374 /* System header to define __stub macros and hopefully few prototypes,
17375 which can conflict with char $ac_func (); below.
17376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17377 <limits.h> exists even on freestanding compilers. */
17378
17379 #ifdef __STDC__
17380 # include <limits.h>
17381 #else
17382 # include <assert.h>
17383 #endif
17384
17385 #undef $ac_func
17386
17387 /* Override any GCC internal prototype to avoid an error.
17388 Use char because int might match the return type of a GCC
17389 builtin and then its argument prototype would still apply. */
17390 #ifdef __cplusplus
17391 extern "C"
17392 #endif
17393 char $ac_func ();
17394 /* The GNU C library defines this for functions which it implements
17395 to always fail with ENOSYS. Some functions are actually named
17396 something starting with __ and the normal name is an alias. */
17397 #if defined __stub_$ac_func || defined __stub___$ac_func
17398 choke me
17399 #endif
17400
17401 int
17402 main ()
17403 {
17404 return $ac_func ();
17405 ;
17406 return 0;
17407 }
17408 _ACEOF
17409 rm -f conftest.$ac_objext conftest$ac_exeext
17410 if { (ac_try="$ac_link"
17411 case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17414 esac
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_link") 2>conftest.er1
17417 ac_status=$?
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && {
17423 test -z "$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17425 } && test -s conftest$ac_exeext &&
17426 $as_test_x conftest$ac_exeext; then
17427 eval "$as_ac_var=yes"
17428 else
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17431
17432 eval "$as_ac_var=no"
17433 fi
17434
17435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17436 conftest$ac_exeext conftest.$ac_ext
17437 fi
17438 ac_res=`eval echo '${'$as_ac_var'}'`
17439 { echo "$as_me:$LINENO: result: $ac_res" >&5
17440 echo "${ECHO_T}$ac_res" >&6; }
17441 if test `eval echo '${'$as_ac_var'}'` = yes; then
17442 cat >>confdefs.h <<_ACEOF
17443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17444 _ACEOF
17445
17446 fi
17447 done
17448
17449
17450 # Solaris has libkstat which does not require root.
17451
17452 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17453 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17454 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457 ac_check_lib_save_LIBS=$LIBS
17458 LIBS="-lkstat $LIBS"
17459 cat >conftest.$ac_ext <<_ACEOF
17460 /* confdefs.h. */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17465
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17469 #ifdef __cplusplus
17470 extern "C"
17471 #endif
17472 char kstat_open ();
17473 int
17474 main ()
17475 {
17476 return kstat_open ();
17477 ;
17478 return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_link") 2>conftest.er1
17489 ac_status=$?
17490 grep -v '^ *+' conftest.er1 >conftest.err
17491 rm -f conftest.er1
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } && {
17495 test -z "$ac_c_werror_flag" ||
17496 test ! -s conftest.err
17497 } && test -s conftest$ac_exeext &&
17498 $as_test_x conftest$ac_exeext; then
17499 ac_cv_lib_kstat_kstat_open=yes
17500 else
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17503
17504 ac_cv_lib_kstat_kstat_open=no
17505 fi
17506
17507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17508 conftest$ac_exeext conftest.$ac_ext
17509 LIBS=$ac_check_lib_save_LIBS
17510 fi
17511 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17512 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17513 if test $ac_cv_lib_kstat_kstat_open = yes; then
17514 cat >>confdefs.h <<_ACEOF
17515 #define HAVE_LIBKSTAT 1
17516 _ACEOF
17517
17518 LIBS="-lkstat $LIBS"
17519
17520 fi
17521
17522 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17523
17524 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17525 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17526 # to get the right answer into the cache.
17527 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17528 if test $ac_have_func = no; then
17529 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17530 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17531 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534 ac_check_lib_save_LIBS=$LIBS
17535 LIBS="-lelf $LIBS"
17536 cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h. */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542
17543 /* Override any GCC internal prototype to avoid an error.
17544 Use char because int might match the return type of a GCC
17545 builtin and then its argument prototype would still apply. */
17546 #ifdef __cplusplus
17547 extern "C"
17548 #endif
17549 char elf_begin ();
17550 int
17551 main ()
17552 {
17553 return elf_begin ();
17554 ;
17555 return 0;
17556 }
17557 _ACEOF
17558 rm -f conftest.$ac_objext conftest$ac_exeext
17559 if { (ac_try="$ac_link"
17560 case "(($ac_try" in
17561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562 *) ac_try_echo=$ac_try;;
17563 esac
17564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565 (eval "$ac_link") 2>conftest.er1
17566 ac_status=$?
17567 grep -v '^ *+' conftest.er1 >conftest.err
17568 rm -f conftest.er1
17569 cat conftest.err >&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } && {
17572 test -z "$ac_c_werror_flag" ||
17573 test ! -s conftest.err
17574 } && test -s conftest$ac_exeext &&
17575 $as_test_x conftest$ac_exeext; then
17576 ac_cv_lib_elf_elf_begin=yes
17577 else
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17580
17581 ac_cv_lib_elf_elf_begin=no
17582 fi
17583
17584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17585 conftest$ac_exeext conftest.$ac_ext
17586 LIBS=$ac_check_lib_save_LIBS
17587 fi
17588 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17589 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17590 if test $ac_cv_lib_elf_elf_begin = yes; then
17591 LIBS="-lelf $LIBS"
17592 fi
17593
17594 fi
17595 if test $ac_have_func = no; then
17596 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17597 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17598 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17600 else
17601 ac_check_lib_save_LIBS=$LIBS
17602 LIBS="-lkvm $LIBS"
17603 cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h. */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17609
17610 /* Override any GCC internal prototype to avoid an error.
17611 Use char because int might match the return type of a GCC
17612 builtin and then its argument prototype would still apply. */
17613 #ifdef __cplusplus
17614 extern "C"
17615 #endif
17616 char kvm_open ();
17617 int
17618 main ()
17619 {
17620 return kvm_open ();
17621 ;
17622 return 0;
17623 }
17624 _ACEOF
17625 rm -f conftest.$ac_objext conftest$ac_exeext
17626 if { (ac_try="$ac_link"
17627 case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17630 esac
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_link") 2>conftest.er1
17633 ac_status=$?
17634 grep -v '^ *+' conftest.er1 >conftest.err
17635 rm -f conftest.er1
17636 cat conftest.err >&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); } && {
17639 test -z "$ac_c_werror_flag" ||
17640 test ! -s conftest.err
17641 } && test -s conftest$ac_exeext &&
17642 $as_test_x conftest$ac_exeext; then
17643 ac_cv_lib_kvm_kvm_open=yes
17644 else
17645 echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17647
17648 ac_cv_lib_kvm_kvm_open=no
17649 fi
17650
17651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17652 conftest$ac_exeext conftest.$ac_ext
17653 LIBS=$ac_check_lib_save_LIBS
17654 fi
17655 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17656 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17657 if test $ac_cv_lib_kvm_kvm_open = yes; then
17658 LIBS="-lkvm $LIBS"
17659 fi
17660
17661 # Check for the 4.4BSD definition of getloadavg.
17662 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17663 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17664 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667 ac_check_lib_save_LIBS=$LIBS
17668 LIBS="-lutil $LIBS"
17669 cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h. */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17675
17676 /* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17679 #ifdef __cplusplus
17680 extern "C"
17681 #endif
17682 char getloadavg ();
17683 int
17684 main ()
17685 {
17686 return getloadavg ();
17687 ;
17688 return 0;
17689 }
17690 _ACEOF
17691 rm -f conftest.$ac_objext conftest$ac_exeext
17692 if { (ac_try="$ac_link"
17693 case "(($ac_try" in
17694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695 *) ac_try_echo=$ac_try;;
17696 esac
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698 (eval "$ac_link") 2>conftest.er1
17699 ac_status=$?
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } && {
17705 test -z "$ac_c_werror_flag" ||
17706 test ! -s conftest.err
17707 } && test -s conftest$ac_exeext &&
17708 $as_test_x conftest$ac_exeext; then
17709 ac_cv_lib_util_getloadavg=yes
17710 else
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17713
17714 ac_cv_lib_util_getloadavg=no
17715 fi
17716
17717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17718 conftest$ac_exeext conftest.$ac_ext
17719 LIBS=$ac_check_lib_save_LIBS
17720 fi
17721 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17722 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17723 if test $ac_cv_lib_util_getloadavg = yes; then
17724 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17725 fi
17726
17727 fi
17728
17729 if test $ac_have_func = no; then
17730 # There is a commonly available library for RS/6000 AIX.
17731 # Since it is not a standard part of AIX, it might be installed locally.
17732 ac_getloadavg_LIBS=$LIBS
17733 LIBS="-L/usr/local/lib $LIBS"
17734 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17735 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17736 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 else
17739 ac_check_lib_save_LIBS=$LIBS
17740 LIBS="-lgetloadavg $LIBS"
17741 cat >conftest.$ac_ext <<_ACEOF
17742 /* confdefs.h. */
17743 _ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h. */
17747
17748 /* Override any GCC internal prototype to avoid an error.
17749 Use char because int might match the return type of a GCC
17750 builtin and then its argument prototype would still apply. */
17751 #ifdef __cplusplus
17752 extern "C"
17753 #endif
17754 char getloadavg ();
17755 int
17756 main ()
17757 {
17758 return getloadavg ();
17759 ;
17760 return 0;
17761 }
17762 _ACEOF
17763 rm -f conftest.$ac_objext conftest$ac_exeext
17764 if { (ac_try="$ac_link"
17765 case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17768 esac
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_link") 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest$ac_exeext &&
17780 $as_test_x conftest$ac_exeext; then
17781 ac_cv_lib_getloadavg_getloadavg=yes
17782 else
17783 echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17785
17786 ac_cv_lib_getloadavg_getloadavg=no
17787 fi
17788
17789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17790 conftest$ac_exeext conftest.$ac_ext
17791 LIBS=$ac_check_lib_save_LIBS
17792 fi
17793 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17794 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17795 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17796 LIBS="-lgetloadavg $LIBS"
17797 else
17798 LIBS=$ac_getloadavg_LIBS
17799 fi
17800
17801 fi
17802
17803 # Make sure it is really in the library, if we think we found it,
17804 # otherwise set up the replacement function.
17805
17806 for ac_func in getloadavg
17807 do
17808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 else
17814 cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h. */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17822 #define $ac_func innocuous_$ac_func
17823
17824 /* System header to define __stub macros and hopefully few prototypes,
17825 which can conflict with char $ac_func (); below.
17826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17827 <limits.h> exists even on freestanding compilers. */
17828
17829 #ifdef __STDC__
17830 # include <limits.h>
17831 #else
17832 # include <assert.h>
17833 #endif
17834
17835 #undef $ac_func
17836
17837 /* Override any GCC internal prototype to avoid an error.
17838 Use char because int might match the return type of a GCC
17839 builtin and then its argument prototype would still apply. */
17840 #ifdef __cplusplus
17841 extern "C"
17842 #endif
17843 char $ac_func ();
17844 /* The GNU C library defines this for functions which it implements
17845 to always fail with ENOSYS. Some functions are actually named
17846 something starting with __ and the normal name is an alias. */
17847 #if defined __stub_$ac_func || defined __stub___$ac_func
17848 choke me
17849 #endif
17850
17851 int
17852 main ()
17853 {
17854 return $ac_func ();
17855 ;
17856 return 0;
17857 }
17858 _ACEOF
17859 rm -f conftest.$ac_objext conftest$ac_exeext
17860 if { (ac_try="$ac_link"
17861 case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864 esac
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_link") 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } && {
17873 test -z "$ac_c_werror_flag" ||
17874 test ! -s conftest.err
17875 } && test -s conftest$ac_exeext &&
17876 $as_test_x conftest$ac_exeext; then
17877 eval "$as_ac_var=yes"
17878 else
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882 eval "$as_ac_var=no"
17883 fi
17884
17885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17886 conftest$ac_exeext conftest.$ac_ext
17887 fi
17888 ac_res=`eval echo '${'$as_ac_var'}'`
17889 { echo "$as_me:$LINENO: result: $ac_res" >&5
17890 echo "${ECHO_T}$ac_res" >&6; }
17891 if test `eval echo '${'$as_ac_var'}'` = yes; then
17892 cat >>confdefs.h <<_ACEOF
17893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17894 _ACEOF
17895
17896 else
17897 case " $LIBOBJS " in
17898 *" getloadavg.$ac_objext "* ) ;;
17899 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17900 ;;
17901 esac
17902
17903
17904 cat >>confdefs.h <<\_ACEOF
17905 #define C_GETLOADAVG 1
17906 _ACEOF
17907
17908 # Figure out what our getloadavg.c needs.
17909 ac_have_func=no
17910 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17911 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17912 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17913 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 fi
17916 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17917 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17918 else
17919 # Is the header compilable?
17920 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17921 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17922 cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h. */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17928 $ac_includes_default
17929 #include <sys/dg_sys_info.h>
17930 _ACEOF
17931 rm -f conftest.$ac_objext
17932 if { (ac_try="$ac_compile"
17933 case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17936 esac
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_compile") 2>conftest.er1
17939 ac_status=$?
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } && {
17945 test -z "$ac_c_werror_flag" ||
17946 test ! -s conftest.err
17947 } && test -s conftest.$ac_objext; then
17948 ac_header_compiler=yes
17949 else
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17952
17953 ac_header_compiler=no
17954 fi
17955
17956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17958 echo "${ECHO_T}$ac_header_compiler" >&6; }
17959
17960 # Is the header present?
17961 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17962 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17963 cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h. */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 #include <sys/dg_sys_info.h>
17970 _ACEOF
17971 if { (ac_try="$ac_cpp conftest.$ac_ext"
17972 case "(($ac_try" in
17973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974 *) ac_try_echo=$ac_try;;
17975 esac
17976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17978 ac_status=$?
17979 grep -v '^ *+' conftest.er1 >conftest.err
17980 rm -f conftest.er1
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } >/dev/null && {
17984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17985 test ! -s conftest.err
17986 }; then
17987 ac_header_preproc=yes
17988 else
17989 echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17991
17992 ac_header_preproc=no
17993 fi
17994
17995 rm -f conftest.err conftest.$ac_ext
17996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17997 echo "${ECHO_T}$ac_header_preproc" >&6; }
17998
17999 # So? What about this header?
18000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18001 yes:no: )
18002 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18003 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18004 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18005 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18006 ac_header_preproc=yes
18007 ;;
18008 no:yes:* )
18009 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18010 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18011 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18012 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18013 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18014 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18015 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18016 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18017 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18018 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18019 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18020 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18021
18022 ;;
18023 esac
18024 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18025 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
18026 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18028 else
18029 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18030 fi
18031 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18032 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
18033
18034 fi
18035 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18036 ac_have_func=yes
18037
18038 cat >>confdefs.h <<\_ACEOF
18039 #define DGUX 1
18040 _ACEOF
18041
18042
18043 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18044 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
18045 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048 ac_check_lib_save_LIBS=$LIBS
18049 LIBS="-ldgc $LIBS"
18050 cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h. */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056
18057 /* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply. */
18060 #ifdef __cplusplus
18061 extern "C"
18062 #endif
18063 char dg_sys_info ();
18064 int
18065 main ()
18066 {
18067 return dg_sys_info ();
18068 ;
18069 return 0;
18070 }
18071 _ACEOF
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (ac_try="$ac_link"
18074 case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18077 esac
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_link") 2>conftest.er1
18080 ac_status=$?
18081 grep -v '^ *+' conftest.er1 >conftest.err
18082 rm -f conftest.er1
18083 cat conftest.err >&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } && {
18086 test -z "$ac_c_werror_flag" ||
18087 test ! -s conftest.err
18088 } && test -s conftest$ac_exeext &&
18089 $as_test_x conftest$ac_exeext; then
18090 ac_cv_lib_dgc_dg_sys_info=yes
18091 else
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18094
18095 ac_cv_lib_dgc_dg_sys_info=no
18096 fi
18097
18098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18099 conftest$ac_exeext conftest.$ac_ext
18100 LIBS=$ac_check_lib_save_LIBS
18101 fi
18102 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18103 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18104 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18105 cat >>confdefs.h <<_ACEOF
18106 #define HAVE_LIBDGC 1
18107 _ACEOF
18108
18109 LIBS="-ldgc $LIBS"
18110
18111 fi
18112
18113 fi
18114
18115
18116
18117 if test "${ac_cv_header_locale_h+set}" = set; then
18118 { echo "$as_me:$LINENO: checking for locale.h" >&5
18119 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18120 if test "${ac_cv_header_locale_h+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 fi
18123 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18124 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18125 else
18126 # Is the header compilable?
18127 { echo "$as_me:$LINENO: checking locale.h usability" >&5
18128 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h. */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18135 $ac_includes_default
18136 #include <locale.h>
18137 _ACEOF
18138 rm -f conftest.$ac_objext
18139 if { (ac_try="$ac_compile"
18140 case "(($ac_try" in
18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18143 esac
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_compile") 2>conftest.er1
18146 ac_status=$?
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest.$ac_objext; then
18155 ac_header_compiler=yes
18156 else
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18159
18160 ac_header_compiler=no
18161 fi
18162
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18165 echo "${ECHO_T}$ac_header_compiler" >&6; }
18166
18167 # Is the header present?
18168 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18169 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18170 cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h. */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 #include <locale.h>
18177 _ACEOF
18178 if { (ac_try="$ac_cpp conftest.$ac_ext"
18179 case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18185 ac_status=$?
18186 grep -v '^ *+' conftest.er1 >conftest.err
18187 rm -f conftest.er1
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } >/dev/null && {
18191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18192 test ! -s conftest.err
18193 }; then
18194 ac_header_preproc=yes
18195 else
18196 echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199 ac_header_preproc=no
18200 fi
18201
18202 rm -f conftest.err conftest.$ac_ext
18203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18204 echo "${ECHO_T}$ac_header_preproc" >&6; }
18205
18206 # So? What about this header?
18207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18208 yes:no: )
18209 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18210 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18211 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18212 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18213 ac_header_preproc=yes
18214 ;;
18215 no:yes:* )
18216 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18217 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18218 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18219 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18220 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18221 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18222 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18223 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18224 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18225 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18226 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18227 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18228
18229 ;;
18230 esac
18231 { echo "$as_me:$LINENO: checking for locale.h" >&5
18232 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18233 if test "${ac_cv_header_locale_h+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236 ac_cv_header_locale_h=$ac_header_preproc
18237 fi
18238 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18239 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18240
18241 fi
18242
18243
18244
18245 for ac_func in setlocale
18246 do
18247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 else
18253 cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h. */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18261 #define $ac_func innocuous_$ac_func
18262
18263 /* System header to define __stub macros and hopefully few prototypes,
18264 which can conflict with char $ac_func (); below.
18265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18266 <limits.h> exists even on freestanding compilers. */
18267
18268 #ifdef __STDC__
18269 # include <limits.h>
18270 #else
18271 # include <assert.h>
18272 #endif
18273
18274 #undef $ac_func
18275
18276 /* Override any GCC internal prototype to avoid an error.
18277 Use char because int might match the return type of a GCC
18278 builtin and then its argument prototype would still apply. */
18279 #ifdef __cplusplus
18280 extern "C"
18281 #endif
18282 char $ac_func ();
18283 /* The GNU C library defines this for functions which it implements
18284 to always fail with ENOSYS. Some functions are actually named
18285 something starting with __ and the normal name is an alias. */
18286 #if defined __stub_$ac_func || defined __stub___$ac_func
18287 choke me
18288 #endif
18289
18290 int
18291 main ()
18292 {
18293 return $ac_func ();
18294 ;
18295 return 0;
18296 }
18297 _ACEOF
18298 rm -f conftest.$ac_objext conftest$ac_exeext
18299 if { (ac_try="$ac_link"
18300 case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18303 esac
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_link") 2>conftest.er1
18306 ac_status=$?
18307 grep -v '^ *+' conftest.er1 >conftest.err
18308 rm -f conftest.er1
18309 cat conftest.err >&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } && {
18312 test -z "$ac_c_werror_flag" ||
18313 test ! -s conftest.err
18314 } && test -s conftest$ac_exeext &&
18315 $as_test_x conftest$ac_exeext; then
18316 eval "$as_ac_var=yes"
18317 else
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18320
18321 eval "$as_ac_var=no"
18322 fi
18323
18324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18325 conftest$ac_exeext conftest.$ac_ext
18326 fi
18327 ac_res=`eval echo '${'$as_ac_var'}'`
18328 { echo "$as_me:$LINENO: result: $ac_res" >&5
18329 echo "${ECHO_T}$ac_res" >&6; }
18330 if test `eval echo '${'$as_ac_var'}'` = yes; then
18331 cat >>confdefs.h <<_ACEOF
18332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18333 _ACEOF
18334
18335 fi
18336 done
18337
18338
18339 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18340 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18341 # Irix 4.0.5F has the header but not the library.
18342 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18343 ac_have_func=yes
18344
18345 cat >>confdefs.h <<\_ACEOF
18346 #define SVR4 1
18347 _ACEOF
18348
18349 fi
18350
18351 if test $ac_have_func = no; then
18352 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18353 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18354 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18355 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 fi
18358 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18359 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18360 else
18361 # Is the header compilable?
18362 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18363 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h. */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18370 $ac_includes_default
18371 #include <inq_stats/cpustats.h>
18372 _ACEOF
18373 rm -f conftest.$ac_objext
18374 if { (ac_try="$ac_compile"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_compile") 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } && {
18387 test -z "$ac_c_werror_flag" ||
18388 test ! -s conftest.err
18389 } && test -s conftest.$ac_objext; then
18390 ac_header_compiler=yes
18391 else
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 ac_header_compiler=no
18396 fi
18397
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18400 echo "${ECHO_T}$ac_header_compiler" >&6; }
18401
18402 # Is the header present?
18403 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18404 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18405 cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h. */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18411 #include <inq_stats/cpustats.h>
18412 _ACEOF
18413 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
18426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18427 test ! -s conftest.err
18428 }; then
18429 ac_header_preproc=yes
18430 else
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18433
18434 ac_header_preproc=no
18435 fi
18436
18437 rm -f conftest.err conftest.$ac_ext
18438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18439 echo "${ECHO_T}$ac_header_preproc" >&6; }
18440
18441 # So? What about this header?
18442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18443 yes:no: )
18444 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18445 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18447 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18448 ac_header_preproc=yes
18449 ;;
18450 no:yes:* )
18451 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18452 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18453 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18454 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18456 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18458 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18460 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18462 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18463
18464 ;;
18465 esac
18466 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18467 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18468 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18469 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 else
18471 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18472 fi
18473 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18474 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18475
18476 fi
18477 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18478 ac_have_func=yes
18479
18480 cat >>confdefs.h <<\_ACEOF
18481 #define UMAX 1
18482 _ACEOF
18483
18484
18485 cat >>confdefs.h <<\_ACEOF
18486 #define UMAX4_3 1
18487 _ACEOF
18488
18489 fi
18490
18491
18492 fi
18493
18494 if test $ac_have_func = no; then
18495 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18496 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18497 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18498 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 fi
18501 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18502 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18503 else
18504 # Is the header compilable?
18505 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18506 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18507 cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h. */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 $ac_includes_default
18514 #include <sys/cpustats.h>
18515 _ACEOF
18516 rm -f conftest.$ac_objext
18517 if { (ac_try="$ac_compile"
18518 case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521 esac
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_compile") 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } && {
18530 test -z "$ac_c_werror_flag" ||
18531 test ! -s conftest.err
18532 } && test -s conftest.$ac_objext; then
18533 ac_header_compiler=yes
18534 else
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538 ac_header_compiler=no
18539 fi
18540
18541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18543 echo "${ECHO_T}$ac_header_compiler" >&6; }
18544
18545 # Is the header present?
18546 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18547 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18548 cat >conftest.$ac_ext <<_ACEOF
18549 /* confdefs.h. */
18550 _ACEOF
18551 cat confdefs.h >>conftest.$ac_ext
18552 cat >>conftest.$ac_ext <<_ACEOF
18553 /* end confdefs.h. */
18554 #include <sys/cpustats.h>
18555 _ACEOF
18556 if { (ac_try="$ac_cpp conftest.$ac_ext"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18560 esac
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18563 ac_status=$?
18564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } >/dev/null && {
18569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18570 test ! -s conftest.err
18571 }; then
18572 ac_header_preproc=yes
18573 else
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18576
18577 ac_header_preproc=no
18578 fi
18579
18580 rm -f conftest.err conftest.$ac_ext
18581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18582 echo "${ECHO_T}$ac_header_preproc" >&6; }
18583
18584 # So? What about this header?
18585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18586 yes:no: )
18587 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18588 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18589 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18590 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18591 ac_header_preproc=yes
18592 ;;
18593 no:yes:* )
18594 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18595 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18596 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18597 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18598 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18599 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18600 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18601 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18602 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18603 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18604 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18605 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18606
18607 ;;
18608 esac
18609 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18610 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18611 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18613 else
18614 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18615 fi
18616 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18617 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18618
18619 fi
18620 if test $ac_cv_header_sys_cpustats_h = yes; then
18621 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18622 #define UMAX 1
18623 _ACEOF
18624
18625 fi
18626
18627
18628 fi
18629
18630 if test $ac_have_func = no; then
18631
18632 for ac_header in mach/mach.h
18633 do
18634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18640 fi
18641 ac_res=`eval echo '${'$as_ac_Header'}'`
18642 { echo "$as_me:$LINENO: result: $ac_res" >&5
18643 echo "${ECHO_T}$ac_res" >&6; }
18644 else
18645 # Is the header compilable?
18646 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18648 cat >conftest.$ac_ext <<_ACEOF
18649 /* confdefs.h. */
18650 _ACEOF
18651 cat confdefs.h >>conftest.$ac_ext
18652 cat >>conftest.$ac_ext <<_ACEOF
18653 /* end confdefs.h. */
18654 $ac_includes_default
18655 #include <$ac_header>
18656 _ACEOF
18657 rm -f conftest.$ac_objext
18658 if { (ac_try="$ac_compile"
18659 case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18662 esac
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_compile") 2>conftest.er1
18665 ac_status=$?
18666 grep -v '^ *+' conftest.er1 >conftest.err
18667 rm -f conftest.er1
18668 cat conftest.err >&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } && {
18671 test -z "$ac_c_werror_flag" ||
18672 test ! -s conftest.err
18673 } && test -s conftest.$ac_objext; then
18674 ac_header_compiler=yes
18675 else
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18678
18679 ac_header_compiler=no
18680 fi
18681
18682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18684 echo "${ECHO_T}$ac_header_compiler" >&6; }
18685
18686 # Is the header present?
18687 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18689 cat >conftest.$ac_ext <<_ACEOF
18690 /* confdefs.h. */
18691 _ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18695 #include <$ac_header>
18696 _ACEOF
18697 if { (ac_try="$ac_cpp conftest.$ac_ext"
18698 case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18704 ac_status=$?
18705 grep -v '^ *+' conftest.er1 >conftest.err
18706 rm -f conftest.er1
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } >/dev/null && {
18710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18711 test ! -s conftest.err
18712 }; then
18713 ac_header_preproc=yes
18714 else
18715 echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18717
18718 ac_header_preproc=no
18719 fi
18720
18721 rm -f conftest.err conftest.$ac_ext
18722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18723 echo "${ECHO_T}$ac_header_preproc" >&6; }
18724
18725 # So? What about this header?
18726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18727 yes:no: )
18728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18732 ac_header_preproc=yes
18733 ;;
18734 no:yes:* )
18735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18747
18748 ;;
18749 esac
18750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 else
18755 eval "$as_ac_Header=\$ac_header_preproc"
18756 fi
18757 ac_res=`eval echo '${'$as_ac_Header'}'`
18758 { echo "$as_me:$LINENO: result: $ac_res" >&5
18759 echo "${ECHO_T}$ac_res" >&6; }
18760
18761 fi
18762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18763 cat >>confdefs.h <<_ACEOF
18764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18765 _ACEOF
18766
18767 fi
18768
18769 done
18770
18771 fi
18772
18773
18774 for ac_header in nlist.h
18775 do
18776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18782 fi
18783 ac_res=`eval echo '${'$as_ac_Header'}'`
18784 { echo "$as_me:$LINENO: result: $ac_res" >&5
18785 echo "${ECHO_T}$ac_res" >&6; }
18786 else
18787 # Is the header compilable?
18788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18790 cat >conftest.$ac_ext <<_ACEOF
18791 /* confdefs.h. */
18792 _ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18796 $ac_includes_default
18797 #include <$ac_header>
18798 _ACEOF
18799 rm -f conftest.$ac_objext
18800 if { (ac_try="$ac_compile"
18801 case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_compile") 2>conftest.er1
18807 ac_status=$?
18808 grep -v '^ *+' conftest.er1 >conftest.err
18809 rm -f conftest.er1
18810 cat conftest.err >&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } && {
18813 test -z "$ac_c_werror_flag" ||
18814 test ! -s conftest.err
18815 } && test -s conftest.$ac_objext; then
18816 ac_header_compiler=yes
18817 else
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18820
18821 ac_header_compiler=no
18822 fi
18823
18824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18826 echo "${ECHO_T}$ac_header_compiler" >&6; }
18827
18828 # Is the header present?
18829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h. */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 #include <$ac_header>
18838 _ACEOF
18839 if { (ac_try="$ac_cpp conftest.$ac_ext"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } >/dev/null && {
18852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 }; then
18855 ac_header_preproc=yes
18856 else
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18859
18860 ac_header_preproc=no
18861 fi
18862
18863 rm -f conftest.err conftest.$ac_ext
18864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18865 echo "${ECHO_T}$ac_header_preproc" >&6; }
18866
18867 # So? What about this header?
18868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18869 yes:no: )
18870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18874 ac_header_preproc=yes
18875 ;;
18876 no:yes:* )
18877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18889
18890 ;;
18891 esac
18892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18895 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 else
18897 eval "$as_ac_Header=\$ac_header_preproc"
18898 fi
18899 ac_res=`eval echo '${'$as_ac_Header'}'`
18900 { echo "$as_me:$LINENO: result: $ac_res" >&5
18901 echo "${ECHO_T}$ac_res" >&6; }
18902
18903 fi
18904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18905 cat >>confdefs.h <<_ACEOF
18906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18907 _ACEOF
18908 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18909 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18910 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913 cat >conftest.$ac_ext <<_ACEOF
18914 /* confdefs.h. */
18915 _ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18919 #include <nlist.h>
18920
18921 int
18922 main ()
18923 {
18924 static struct nlist ac_aggr;
18925 if (ac_aggr.n_un.n_name)
18926 return 0;
18927 ;
18928 return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest.$ac_objext
18932 if { (ac_try="$ac_compile"
18933 case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_compile") 2>conftest.er1
18939 ac_status=$?
18940 grep -v '^ *+' conftest.er1 >conftest.err
18941 rm -f conftest.er1
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } && {
18945 test -z "$ac_c_werror_flag" ||
18946 test ! -s conftest.err
18947 } && test -s conftest.$ac_objext; then
18948 ac_cv_member_struct_nlist_n_un_n_name=yes
18949 else
18950 echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18952
18953 cat >conftest.$ac_ext <<_ACEOF
18954 /* confdefs.h. */
18955 _ACEOF
18956 cat confdefs.h >>conftest.$ac_ext
18957 cat >>conftest.$ac_ext <<_ACEOF
18958 /* end confdefs.h. */
18959 #include <nlist.h>
18960
18961 int
18962 main ()
18963 {
18964 static struct nlist ac_aggr;
18965 if (sizeof ac_aggr.n_un.n_name)
18966 return 0;
18967 ;
18968 return 0;
18969 }
18970 _ACEOF
18971 rm -f conftest.$ac_objext
18972 if { (ac_try="$ac_compile"
18973 case "(($ac_try" in
18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975 *) ac_try_echo=$ac_try;;
18976 esac
18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978 (eval "$ac_compile") 2>conftest.er1
18979 ac_status=$?
18980 grep -v '^ *+' conftest.er1 >conftest.err
18981 rm -f conftest.er1
18982 cat conftest.err >&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } && {
18985 test -z "$ac_c_werror_flag" ||
18986 test ! -s conftest.err
18987 } && test -s conftest.$ac_objext; then
18988 ac_cv_member_struct_nlist_n_un_n_name=yes
18989 else
18990 echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18992
18993 ac_cv_member_struct_nlist_n_un_n_name=no
18994 fi
18995
18996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18997 fi
18998
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 fi
19001 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19002 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19003 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19004
19005 cat >>confdefs.h <<_ACEOF
19006 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19007 _ACEOF
19008
19009
19010 cat >>confdefs.h <<\_ACEOF
19011 #define NLIST_NAME_UNION 1
19012 _ACEOF
19013
19014 fi
19015
19016
19017 fi
19018
19019 done
19020
19021 fi
19022 done
19023
19024
19025 # Some definitions of getloadavg require that the program be installed setgid.
19026 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19027 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
19028 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19030 else
19031 cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h. */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19038 #ifdef LDAV_PRIVILEGED
19039 Yowza Am I SETGID yet
19040 #endif
19041 _ACEOF
19042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19043 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19044 ac_cv_func_getloadavg_setgid=yes
19045 else
19046 ac_cv_func_getloadavg_setgid=no
19047 fi
19048 rm -f conftest*
19049
19050 fi
19051 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19052 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
19053 if test $ac_cv_func_getloadavg_setgid = yes; then
19054 NEED_SETGID=true
19055
19056 cat >>confdefs.h <<\_ACEOF
19057 #define GETLOADAVG_PRIVILEGED 1
19058 _ACEOF
19059
19060 else
19061 NEED_SETGID=false
19062 fi
19063
19064 if test $ac_cv_func_getloadavg_setgid = yes; then
19065 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19066 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
19067 if test "${ac_cv_group_kmem+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19071 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19072 # If we got an error (system does not support symlinks), try without -L.
19073 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19074 ac_cv_group_kmem=`echo $ac_ls_output \
19075 | sed -ne 's/[ ][ ]*/ /g;
19076 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19077 / /s/.* //;p;'`
19078
19079 fi
19080 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19081 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
19082 KMEM_GROUP=$ac_cv_group_kmem
19083 fi
19084 if test "x$ac_save_LIBS" = x; then
19085 GETLOADAVG_LIBS=$LIBS
19086 else
19087 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
19088 fi
19089 LIBS=$ac_save_LIBS
19090
19091
19092
19093 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19094 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19095 if test "${ac_cv_sys_largefile_source+set}" = set; then
19096 echo $ECHO_N "(cached) $ECHO_C" >&6
19097 else
19098 while :; do
19099 cat >conftest.$ac_ext <<_ACEOF
19100 /* confdefs.h. */
19101 _ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19105 #include <stdio.h>
19106 int
19107 main ()
19108 {
19109 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19110 ;
19111 return 0;
19112 }
19113 _ACEOF
19114 rm -f conftest.$ac_objext conftest$ac_exeext
19115 if { (ac_try="$ac_link"
19116 case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19119 esac
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_link") 2>conftest.er1
19122 ac_status=$?
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } && {
19128 test -z "$ac_c_werror_flag" ||
19129 test ! -s conftest.err
19130 } && test -s conftest$ac_exeext &&
19131 $as_test_x conftest$ac_exeext; then
19132 ac_cv_sys_largefile_source=no; break
19133 else
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19136
19137
19138 fi
19139
19140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19141 conftest$ac_exeext conftest.$ac_ext
19142 cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h. */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 #define _LARGEFILE_SOURCE 1
19149 #include <stdio.h>
19150 int
19151 main ()
19152 {
19153 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19154 ;
19155 return 0;
19156 }
19157 _ACEOF
19158 rm -f conftest.$ac_objext conftest$ac_exeext
19159 if { (ac_try="$ac_link"
19160 case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_link") 2>conftest.er1
19166 ac_status=$?
19167 grep -v '^ *+' conftest.er1 >conftest.err
19168 rm -f conftest.er1
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } && {
19172 test -z "$ac_c_werror_flag" ||
19173 test ! -s conftest.err
19174 } && test -s conftest$ac_exeext &&
19175 $as_test_x conftest$ac_exeext; then
19176 ac_cv_sys_largefile_source=1; break
19177 else
19178 echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19180
19181
19182 fi
19183
19184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19185 conftest$ac_exeext conftest.$ac_ext
19186 ac_cv_sys_largefile_source=unknown
19187 break
19188 done
19189 fi
19190 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19191 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19192 case $ac_cv_sys_largefile_source in #(
19193 no | unknown) ;;
19194 *)
19195 cat >>confdefs.h <<_ACEOF
19196 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19197 _ACEOF
19198 ;;
19199 esac
19200 rm -f conftest*
19201
19202 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19203 # in glibc 2.1.3, but that breaks too many other things.
19204 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19205 if test $ac_cv_sys_largefile_source != unknown; then
19206
19207 cat >>confdefs.h <<\_ACEOF
19208 #define HAVE_FSEEKO 1
19209 _ACEOF
19210
19211 fi
19212
19213
19214 # Configure getopt.
19215 # getopt.m4 serial 10
19216
19217 # The getopt module assume you want GNU getopt, with getopt_long etc,
19218 # rather than vanilla POSIX getopt. This means your your code should
19219 # always include <getopt.h> for the getopt prototypes.
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231 # Prerequisites of lib/getopt*.
19232
19233
19234
19235
19236 GETOPT_H=
19237
19238 for ac_header in getopt.h
19239 do
19240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19246 fi
19247 ac_res=`eval echo '${'$as_ac_Header'}'`
19248 { echo "$as_me:$LINENO: result: $ac_res" >&5
19249 echo "${ECHO_T}$ac_res" >&6; }
19250 else
19251 # Is the header compilable?
19252 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19254 cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h. */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 $ac_includes_default
19261 #include <$ac_header>
19262 _ACEOF
19263 rm -f conftest.$ac_objext
19264 if { (ac_try="$ac_compile"
19265 case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19268 esac
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_compile") 2>conftest.er1
19271 ac_status=$?
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } && {
19277 test -z "$ac_c_werror_flag" ||
19278 test ! -s conftest.err
19279 } && test -s conftest.$ac_objext; then
19280 ac_header_compiler=yes
19281 else
19282 echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19284
19285 ac_header_compiler=no
19286 fi
19287
19288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19290 echo "${ECHO_T}$ac_header_compiler" >&6; }
19291
19292 # Is the header present?
19293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19295 cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h. */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 #include <$ac_header>
19302 _ACEOF
19303 if { (ac_try="$ac_cpp conftest.$ac_ext"
19304 case "(($ac_try" in
19305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306 *) ac_try_echo=$ac_try;;
19307 esac
19308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19310 ac_status=$?
19311 grep -v '^ *+' conftest.er1 >conftest.err
19312 rm -f conftest.er1
19313 cat conftest.err >&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } >/dev/null && {
19316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19317 test ! -s conftest.err
19318 }; then
19319 ac_header_preproc=yes
19320 else
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 ac_header_preproc=no
19325 fi
19326
19327 rm -f conftest.err conftest.$ac_ext
19328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19329 echo "${ECHO_T}$ac_header_preproc" >&6; }
19330
19331 # So? What about this header?
19332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19333 yes:no: )
19334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19338 ac_header_preproc=yes
19339 ;;
19340 no:yes:* )
19341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19353
19354 ;;
19355 esac
19356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361 eval "$as_ac_Header=\$ac_header_preproc"
19362 fi
19363 ac_res=`eval echo '${'$as_ac_Header'}'`
19364 { echo "$as_me:$LINENO: result: $ac_res" >&5
19365 echo "${ECHO_T}$ac_res" >&6; }
19366
19367 fi
19368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19369 cat >>confdefs.h <<_ACEOF
19370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19371 _ACEOF
19372
19373 else
19374 GETOPT_H=getopt.h
19375 fi
19376
19377 done
19378
19379 if test -z "$GETOPT_H"; then
19380
19381 for ac_func in getopt_long_only
19382 do
19383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389 cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h. */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19397 #define $ac_func innocuous_$ac_func
19398
19399 /* System header to define __stub macros and hopefully few prototypes,
19400 which can conflict with char $ac_func (); below.
19401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19402 <limits.h> exists even on freestanding compilers. */
19403
19404 #ifdef __STDC__
19405 # include <limits.h>
19406 #else
19407 # include <assert.h>
19408 #endif
19409
19410 #undef $ac_func
19411
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 char $ac_func ();
19419 /* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
19422 #if defined __stub_$ac_func || defined __stub___$ac_func
19423 choke me
19424 #endif
19425
19426 int
19427 main ()
19428 {
19429 return $ac_func ();
19430 ;
19431 return 0;
19432 }
19433 _ACEOF
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (ac_try="$ac_link"
19436 case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19439 esac
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_link") 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } && {
19448 test -z "$ac_c_werror_flag" ||
19449 test ! -s conftest.err
19450 } && test -s conftest$ac_exeext &&
19451 $as_test_x conftest$ac_exeext; then
19452 eval "$as_ac_var=yes"
19453 else
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457 eval "$as_ac_var=no"
19458 fi
19459
19460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19461 conftest$ac_exeext conftest.$ac_ext
19462 fi
19463 ac_res=`eval echo '${'$as_ac_var'}'`
19464 { echo "$as_me:$LINENO: result: $ac_res" >&5
19465 echo "${ECHO_T}$ac_res" >&6; }
19466 if test `eval echo '${'$as_ac_var'}'` = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19469 _ACEOF
19470
19471 else
19472 GETOPT_H=getopt.h
19473 fi
19474 done
19475
19476 fi
19477
19478 if test -z "$GETOPT_H"; then
19479 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19480 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19481 if test "${ac_cv_have_decl_optreset+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19483 else
19484 cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h. */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490 #include <getopt.h>
19491
19492 int
19493 main ()
19494 {
19495 #ifndef optreset
19496 (void) optreset;
19497 #endif
19498
19499 ;
19500 return 0;
19501 }
19502 _ACEOF
19503 rm -f conftest.$ac_objext
19504 if { (ac_try="$ac_compile"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508 esac
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_compile") 2>conftest.er1
19511 ac_status=$?
19512 grep -v '^ *+' conftest.er1 >conftest.err
19513 rm -f conftest.er1
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest.$ac_objext; then
19520 ac_cv_have_decl_optreset=yes
19521 else
19522 echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19524
19525 ac_cv_have_decl_optreset=no
19526 fi
19527
19528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19529 fi
19530 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19531 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19532 if test $ac_cv_have_decl_optreset = yes; then
19533 GETOPT_H=getopt.h
19534 fi
19535
19536 fi
19537
19538 if test -z "$GETOPT_H"; then
19539 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19540 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19541 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 else
19544 if test "$cross_compiling" = yes; then
19545 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19546 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19547 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550 cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h. */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 #include <getopt.h>
19557
19558 int
19559 main ()
19560 {
19561 #ifndef getopt_clip
19562 (void) getopt_clip;
19563 #endif
19564
19565 ;
19566 return 0;
19567 }
19568 _ACEOF
19569 rm -f conftest.$ac_objext
19570 if { (ac_try="$ac_compile"
19571 case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19574 esac
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_compile") 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } && {
19583 test -z "$ac_c_werror_flag" ||
19584 test ! -s conftest.err
19585 } && test -s conftest.$ac_objext; then
19586 ac_cv_have_decl_getopt_clip=yes
19587 else
19588 echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19590
19591 ac_cv_have_decl_getopt_clip=no
19592 fi
19593
19594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19595 fi
19596 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19597 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19598 if test $ac_cv_have_decl_getopt_clip = yes; then
19599 gl_cv_func_gnu_getopt=no
19600 else
19601 gl_cv_func_gnu_getopt=yes
19602 fi
19603
19604 else
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 #include <getopt.h>
19612 int
19613 main ()
19614 {
19615
19616 char *myargv[3];
19617 myargv[0] = "conftest";
19618 myargv[1] = "-+";
19619 myargv[2] = 0;
19620 return getopt (2, myargv, "+a") != '?';
19621
19622 ;
19623 return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest$ac_exeext
19627 if { (ac_try="$ac_link"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_link") 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19637 { (case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19640 esac
19641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_try") 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646 gl_cv_func_gnu_getopt=yes
19647 else
19648 echo "$as_me: program exited with status $ac_status" >&5
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19651
19652 ( exit $ac_status )
19653 gl_cv_func_gnu_getopt=no
19654 fi
19655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19656 fi
19657
19658
19659 fi
19660 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19661 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19662 if test "$gl_cv_func_gnu_getopt" = "no"; then
19663 GETOPT_H=getopt.h
19664 fi
19665 fi
19666
19667
19668
19669 if test -n "$GETOPT_H"; then
19670
19671
19672 GETOPT_H=getopt.h
19673
19674 cat >>confdefs.h <<\_ACEOF
19675 #define __GETOPT_PREFIX rpl_
19676 _ACEOF
19677
19678
19679
19680 :
19681 GETOPTOBJS='getopt.o getopt1.o'
19682
19683 fi
19684
19685
19686
19687
19688 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19689 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19690 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 else
19693 # Use it with a single arg.
19694 cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h. */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19700 $ac_includes_default
19701 int
19702 main ()
19703 {
19704 getpgrp (0);
19705 ;
19706 return 0;
19707 }
19708 _ACEOF
19709 rm -f conftest.$ac_objext
19710 if { (ac_try="$ac_compile"
19711 case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714 esac
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_compile") 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } && {
19723 test -z "$ac_c_werror_flag" ||
19724 test ! -s conftest.err
19725 } && test -s conftest.$ac_objext; then
19726 ac_cv_func_getpgrp_void=no
19727 else
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19730
19731 ac_cv_func_getpgrp_void=yes
19732 fi
19733
19734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19735
19736 fi
19737 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19738 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19739 if test $ac_cv_func_getpgrp_void = yes; then
19740
19741 cat >>confdefs.h <<\_ACEOF
19742 #define GETPGRP_VOID 1
19743 _ACEOF
19744
19745 fi
19746
19747
19748
19749 for ac_func in strftime
19750 do
19751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757 cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h. */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19765 #define $ac_func innocuous_$ac_func
19766
19767 /* System header to define __stub macros and hopefully few prototypes,
19768 which can conflict with char $ac_func (); below.
19769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19770 <limits.h> exists even on freestanding compilers. */
19771
19772 #ifdef __STDC__
19773 # include <limits.h>
19774 #else
19775 # include <assert.h>
19776 #endif
19777
19778 #undef $ac_func
19779
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19783 #ifdef __cplusplus
19784 extern "C"
19785 #endif
19786 char $ac_func ();
19787 /* The GNU C library defines this for functions which it implements
19788 to always fail with ENOSYS. Some functions are actually named
19789 something starting with __ and the normal name is an alias. */
19790 #if defined __stub_$ac_func || defined __stub___$ac_func
19791 choke me
19792 #endif
19793
19794 int
19795 main ()
19796 {
19797 return $ac_func ();
19798 ;
19799 return 0;
19800 }
19801 _ACEOF
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (ac_try="$ac_link"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807 esac
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_link") 2>conftest.er1
19810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest$ac_exeext &&
19819 $as_test_x conftest$ac_exeext; then
19820 eval "$as_ac_var=yes"
19821 else
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825 eval "$as_ac_var=no"
19826 fi
19827
19828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19829 conftest$ac_exeext conftest.$ac_ext
19830 fi
19831 ac_res=`eval echo '${'$as_ac_var'}'`
19832 { echo "$as_me:$LINENO: result: $ac_res" >&5
19833 echo "${ECHO_T}$ac_res" >&6; }
19834 if test `eval echo '${'$as_ac_var'}'` = yes; then
19835 cat >>confdefs.h <<_ACEOF
19836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19837 _ACEOF
19838
19839 else
19840 # strftime is in -lintl on SCO UNIX.
19841 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19842 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19843 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 else
19846 ac_check_lib_save_LIBS=$LIBS
19847 LIBS="-lintl $LIBS"
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854
19855 /* Override any GCC internal prototype to avoid an error.
19856 Use char because int might match the return type of a GCC
19857 builtin and then its argument prototype would still apply. */
19858 #ifdef __cplusplus
19859 extern "C"
19860 #endif
19861 char strftime ();
19862 int
19863 main ()
19864 {
19865 return strftime ();
19866 ;
19867 return 0;
19868 }
19869 _ACEOF
19870 rm -f conftest.$ac_objext conftest$ac_exeext
19871 if { (ac_try="$ac_link"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_link") 2>conftest.er1
19878 ac_status=$?
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } && {
19884 test -z "$ac_c_werror_flag" ||
19885 test ! -s conftest.err
19886 } && test -s conftest$ac_exeext &&
19887 $as_test_x conftest$ac_exeext; then
19888 ac_cv_lib_intl_strftime=yes
19889 else
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 ac_cv_lib_intl_strftime=no
19894 fi
19895
19896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19897 conftest$ac_exeext conftest.$ac_ext
19898 LIBS=$ac_check_lib_save_LIBS
19899 fi
19900 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19901 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19902 if test $ac_cv_lib_intl_strftime = yes; then
19903 cat >>confdefs.h <<\_ACEOF
19904 #define HAVE_STRFTIME 1
19905 _ACEOF
19906
19907 LIBS="-lintl $LIBS"
19908 fi
19909
19910 fi
19911 done
19912
19913
19914 # UNIX98 PTYs.
19915
19916 for ac_func in grantpt
19917 do
19918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923 else
19924 cat >conftest.$ac_ext <<_ACEOF
19925 /* confdefs.h. */
19926 _ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h. */
19930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19932 #define $ac_func innocuous_$ac_func
19933
19934 /* System header to define __stub macros and hopefully few prototypes,
19935 which can conflict with char $ac_func (); below.
19936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19937 <limits.h> exists even on freestanding compilers. */
19938
19939 #ifdef __STDC__
19940 # include <limits.h>
19941 #else
19942 # include <assert.h>
19943 #endif
19944
19945 #undef $ac_func
19946
19947 /* Override any GCC internal prototype to avoid an error.
19948 Use char because int might match the return type of a GCC
19949 builtin and then its argument prototype would still apply. */
19950 #ifdef __cplusplus
19951 extern "C"
19952 #endif
19953 char $ac_func ();
19954 /* The GNU C library defines this for functions which it implements
19955 to always fail with ENOSYS. Some functions are actually named
19956 something starting with __ and the normal name is an alias. */
19957 #if defined __stub_$ac_func || defined __stub___$ac_func
19958 choke me
19959 #endif
19960
19961 int
19962 main ()
19963 {
19964 return $ac_func ();
19965 ;
19966 return 0;
19967 }
19968 _ACEOF
19969 rm -f conftest.$ac_objext conftest$ac_exeext
19970 if { (ac_try="$ac_link"
19971 case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19974 esac
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_link") 2>conftest.er1
19977 ac_status=$?
19978 grep -v '^ *+' conftest.er1 >conftest.err
19979 rm -f conftest.er1
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } && {
19983 test -z "$ac_c_werror_flag" ||
19984 test ! -s conftest.err
19985 } && test -s conftest$ac_exeext &&
19986 $as_test_x conftest$ac_exeext; then
19987 eval "$as_ac_var=yes"
19988 else
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19991
19992 eval "$as_ac_var=no"
19993 fi
19994
19995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19996 conftest$ac_exeext conftest.$ac_ext
19997 fi
19998 ac_res=`eval echo '${'$as_ac_var'}'`
19999 { echo "$as_me:$LINENO: result: $ac_res" >&5
20000 echo "${ECHO_T}$ac_res" >&6; }
20001 if test `eval echo '${'$as_ac_var'}'` = yes; then
20002 cat >>confdefs.h <<_ACEOF
20003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20004 _ACEOF
20005
20006 fi
20007 done
20008
20009
20010 # PTY-related GNU extensions.
20011
20012 for ac_func in getpt
20013 do
20014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020 cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h. */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20028 #define $ac_func innocuous_$ac_func
20029
20030 /* System header to define __stub macros and hopefully few prototypes,
20031 which can conflict with char $ac_func (); below.
20032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20033 <limits.h> exists even on freestanding compilers. */
20034
20035 #ifdef __STDC__
20036 # include <limits.h>
20037 #else
20038 # include <assert.h>
20039 #endif
20040
20041 #undef $ac_func
20042
20043 /* Override any GCC internal prototype to avoid an error.
20044 Use char because int might match the return type of a GCC
20045 builtin and then its argument prototype would still apply. */
20046 #ifdef __cplusplus
20047 extern "C"
20048 #endif
20049 char $ac_func ();
20050 /* The GNU C library defines this for functions which it implements
20051 to always fail with ENOSYS. Some functions are actually named
20052 something starting with __ and the normal name is an alias. */
20053 #if defined __stub_$ac_func || defined __stub___$ac_func
20054 choke me
20055 #endif
20056
20057 int
20058 main ()
20059 {
20060 return $ac_func ();
20061 ;
20062 return 0;
20063 }
20064 _ACEOF
20065 rm -f conftest.$ac_objext conftest$ac_exeext
20066 if { (ac_try="$ac_link"
20067 case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20070 esac
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_link") 2>conftest.er1
20073 ac_status=$?
20074 grep -v '^ *+' conftest.er1 >conftest.err
20075 rm -f conftest.er1
20076 cat conftest.err >&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && {
20079 test -z "$ac_c_werror_flag" ||
20080 test ! -s conftest.err
20081 } && test -s conftest$ac_exeext &&
20082 $as_test_x conftest$ac_exeext; then
20083 eval "$as_ac_var=yes"
20084 else
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20087
20088 eval "$as_ac_var=no"
20089 fi
20090
20091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20092 conftest$ac_exeext conftest.$ac_ext
20093 fi
20094 ac_res=`eval echo '${'$as_ac_var'}'`
20095 { echo "$as_me:$LINENO: result: $ac_res" >&5
20096 echo "${ECHO_T}$ac_res" >&6; }
20097 if test `eval echo '${'$as_ac_var'}'` = yes; then
20098 cat >>confdefs.h <<_ACEOF
20099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20100 _ACEOF
20101
20102 fi
20103 done
20104
20105
20106 # Check this now, so that we will NOT find the above functions in ncurses.
20107 # That is because we have not set up to link ncurses in lib-src.
20108 # It's better to believe a function is not available
20109 # than to expect to find it in ncurses.
20110
20111 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20112 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
20113 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116 ac_check_lib_save_LIBS=$LIBS
20117 LIBS="-lncurses $LIBS"
20118 cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h. */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124
20125 /* Override any GCC internal prototype to avoid an error.
20126 Use char because int might match the return type of a GCC
20127 builtin and then its argument prototype would still apply. */
20128 #ifdef __cplusplus
20129 extern "C"
20130 #endif
20131 char tparm ();
20132 int
20133 main ()
20134 {
20135 return tparm ();
20136 ;
20137 return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (ac_try="$ac_link"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_link") 2>conftest.er1
20148 ac_status=$?
20149 grep -v '^ *+' conftest.er1 >conftest.err
20150 rm -f conftest.er1
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } && {
20154 test -z "$ac_c_werror_flag" ||
20155 test ! -s conftest.err
20156 } && test -s conftest$ac_exeext &&
20157 $as_test_x conftest$ac_exeext; then
20158 ac_cv_lib_ncurses_tparm=yes
20159 else
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163 ac_cv_lib_ncurses_tparm=no
20164 fi
20165
20166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20167 conftest$ac_exeext conftest.$ac_ext
20168 LIBS=$ac_check_lib_save_LIBS
20169 fi
20170 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20171 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20172 if test $ac_cv_lib_ncurses_tparm = yes; then
20173 cat >>confdefs.h <<_ACEOF
20174 #define HAVE_LIBNCURSES 1
20175 _ACEOF
20176
20177 LIBS="-lncurses $LIBS"
20178
20179 fi
20180
20181
20182 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20183
20184 resolv=no
20185 cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h. */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 #include <netinet/in.h>
20192 #include <arpa/nameser.h>
20193 #include <resolv.h>
20194 int
20195 main ()
20196 {
20197 return res_init();
20198 ;
20199 return 0;
20200 }
20201 _ACEOF
20202 rm -f conftest.$ac_objext conftest$ac_exeext
20203 if { (ac_try="$ac_link"
20204 case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_link") 2>conftest.er1
20210 ac_status=$?
20211 grep -v '^ *+' conftest.er1 >conftest.err
20212 rm -f conftest.er1
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } && {
20216 test -z "$ac_c_werror_flag" ||
20217 test ! -s conftest.err
20218 } && test -s conftest$ac_exeext &&
20219 $as_test_x conftest$ac_exeext; then
20220 have_res_init=yes
20221 else
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20224
20225 have_res_init=no
20226 fi
20227
20228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20229 conftest$ac_exeext conftest.$ac_ext
20230 if test "$have_res_init" = no; then
20231 OLIBS="$LIBS"
20232 LIBS="$LIBS -lresolv"
20233 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20234 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20235 cat >conftest.$ac_ext <<_ACEOF
20236 /* confdefs.h. */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 #include <netinet/in.h>
20242 #include <arpa/nameser.h>
20243 #include <resolv.h>
20244 int
20245 main ()
20246 {
20247 return res_init();
20248 ;
20249 return 0;
20250 }
20251 _ACEOF
20252 rm -f conftest.$ac_objext conftest$ac_exeext
20253 if { (ac_try="$ac_link"
20254 case "(($ac_try" in
20255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256 *) ac_try_echo=$ac_try;;
20257 esac
20258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259 (eval "$ac_link") 2>conftest.er1
20260 ac_status=$?
20261 grep -v '^ *+' conftest.er1 >conftest.err
20262 rm -f conftest.er1
20263 cat conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } && {
20266 test -z "$ac_c_werror_flag" ||
20267 test ! -s conftest.err
20268 } && test -s conftest$ac_exeext &&
20269 $as_test_x conftest$ac_exeext; then
20270 have_res_init=yes
20271 else
20272 echo "$as_me: failed program was:" >&5
20273 sed 's/^/| /' conftest.$ac_ext >&5
20274
20275 have_res_init=no
20276 fi
20277
20278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20279 conftest$ac_exeext conftest.$ac_ext
20280 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20281 echo "${ECHO_T}$have_res_init" >&6; }
20282 if test "$have_res_init" = yes ; then
20283 resolv=yes
20284 fi
20285 LIBS="$OLIBS"
20286 fi
20287
20288 if test "$have_res_init" = yes; then
20289
20290 cat >>confdefs.h <<\_ACEOF
20291 #define HAVE_RES_INIT 1
20292 _ACEOF
20293
20294 fi
20295
20296 # Do we need the Hesiod library to provide the support routines?
20297 if test "$with_hesiod" = yes ; then
20298 # Don't set $LIBS here -- see comments above.
20299 { echo "$as_me:$LINENO: checking for res_send" >&5
20300 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20301 if test "${ac_cv_func_res_send+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 else
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h. */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20312 #define res_send innocuous_res_send
20313
20314 /* System header to define __stub macros and hopefully few prototypes,
20315 which can conflict with char res_send (); below.
20316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20317 <limits.h> exists even on freestanding compilers. */
20318
20319 #ifdef __STDC__
20320 # include <limits.h>
20321 #else
20322 # include <assert.h>
20323 #endif
20324
20325 #undef res_send
20326
20327 /* Override any GCC internal prototype to avoid an error.
20328 Use char because int might match the return type of a GCC
20329 builtin and then its argument prototype would still apply. */
20330 #ifdef __cplusplus
20331 extern "C"
20332 #endif
20333 char res_send ();
20334 /* The GNU C library defines this for functions which it implements
20335 to always fail with ENOSYS. Some functions are actually named
20336 something starting with __ and the normal name is an alias. */
20337 #if defined __stub_res_send || defined __stub___res_send
20338 choke me
20339 #endif
20340
20341 int
20342 main ()
20343 {
20344 return res_send ();
20345 ;
20346 return 0;
20347 }
20348 _ACEOF
20349 rm -f conftest.$ac_objext conftest$ac_exeext
20350 if { (ac_try="$ac_link"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_link") 2>conftest.er1
20357 ac_status=$?
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } && {
20363 test -z "$ac_c_werror_flag" ||
20364 test ! -s conftest.err
20365 } && test -s conftest$ac_exeext &&
20366 $as_test_x conftest$ac_exeext; then
20367 ac_cv_func_res_send=yes
20368 else
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20371
20372 ac_cv_func_res_send=no
20373 fi
20374
20375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20376 conftest$ac_exeext conftest.$ac_ext
20377 fi
20378 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20379 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20380 if test $ac_cv_func_res_send = yes; then
20381 :
20382 else
20383 { echo "$as_me:$LINENO: checking for __res_send" >&5
20384 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20385 if test "${ac_cv_func___res_send+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h. */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20396 #define __res_send innocuous___res_send
20397
20398 /* System header to define __stub macros and hopefully few prototypes,
20399 which can conflict with char __res_send (); below.
20400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20401 <limits.h> exists even on freestanding compilers. */
20402
20403 #ifdef __STDC__
20404 # include <limits.h>
20405 #else
20406 # include <assert.h>
20407 #endif
20408
20409 #undef __res_send
20410
20411 /* Override any GCC internal prototype to avoid an error.
20412 Use char because int might match the return type of a GCC
20413 builtin and then its argument prototype would still apply. */
20414 #ifdef __cplusplus
20415 extern "C"
20416 #endif
20417 char __res_send ();
20418 /* The GNU C library defines this for functions which it implements
20419 to always fail with ENOSYS. Some functions are actually named
20420 something starting with __ and the normal name is an alias. */
20421 #if defined __stub___res_send || defined __stub_____res_send
20422 choke me
20423 #endif
20424
20425 int
20426 main ()
20427 {
20428 return __res_send ();
20429 ;
20430 return 0;
20431 }
20432 _ACEOF
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (ac_try="$ac_link"
20435 case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20438 esac
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_link") 2>conftest.er1
20441 ac_status=$?
20442 grep -v '^ *+' conftest.er1 >conftest.err
20443 rm -f conftest.er1
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } && {
20447 test -z "$ac_c_werror_flag" ||
20448 test ! -s conftest.err
20449 } && test -s conftest$ac_exeext &&
20450 $as_test_x conftest$ac_exeext; then
20451 ac_cv_func___res_send=yes
20452 else
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20455
20456 ac_cv_func___res_send=no
20457 fi
20458
20459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20460 conftest$ac_exeext conftest.$ac_ext
20461 fi
20462 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20463 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20464 if test $ac_cv_func___res_send = yes; then
20465 :
20466 else
20467 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20468 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20469 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 else
20472 ac_check_lib_save_LIBS=$LIBS
20473 LIBS="-lresolv $LIBS"
20474 cat >conftest.$ac_ext <<_ACEOF
20475 /* confdefs.h. */
20476 _ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h. */
20480
20481 /* Override any GCC internal prototype to avoid an error.
20482 Use char because int might match the return type of a GCC
20483 builtin and then its argument prototype would still apply. */
20484 #ifdef __cplusplus
20485 extern "C"
20486 #endif
20487 char res_send ();
20488 int
20489 main ()
20490 {
20491 return res_send ();
20492 ;
20493 return 0;
20494 }
20495 _ACEOF
20496 rm -f conftest.$ac_objext conftest$ac_exeext
20497 if { (ac_try="$ac_link"
20498 case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20501 esac
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503 (eval "$ac_link") 2>conftest.er1
20504 ac_status=$?
20505 grep -v '^ *+' conftest.er1 >conftest.err
20506 rm -f conftest.er1
20507 cat conftest.err >&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); } && {
20510 test -z "$ac_c_werror_flag" ||
20511 test ! -s conftest.err
20512 } && test -s conftest$ac_exeext &&
20513 $as_test_x conftest$ac_exeext; then
20514 ac_cv_lib_resolv_res_send=yes
20515 else
20516 echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20518
20519 ac_cv_lib_resolv_res_send=no
20520 fi
20521
20522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20523 conftest$ac_exeext conftest.$ac_ext
20524 LIBS=$ac_check_lib_save_LIBS
20525 fi
20526 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20527 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20528 if test $ac_cv_lib_resolv_res_send = yes; then
20529 resolv=yes
20530 else
20531 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20532 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20533 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536 ac_check_lib_save_LIBS=$LIBS
20537 LIBS="-lresolv $LIBS"
20538 cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h. */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20544
20545 /* Override any GCC internal prototype to avoid an error.
20546 Use char because int might match the return type of a GCC
20547 builtin and then its argument prototype would still apply. */
20548 #ifdef __cplusplus
20549 extern "C"
20550 #endif
20551 char __res_send ();
20552 int
20553 main ()
20554 {
20555 return __res_send ();
20556 ;
20557 return 0;
20558 }
20559 _ACEOF
20560 rm -f conftest.$ac_objext conftest$ac_exeext
20561 if { (ac_try="$ac_link"
20562 case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20565 esac
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_link") 2>conftest.er1
20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } && {
20574 test -z "$ac_c_werror_flag" ||
20575 test ! -s conftest.err
20576 } && test -s conftest$ac_exeext &&
20577 $as_test_x conftest$ac_exeext; then
20578 ac_cv_lib_resolv___res_send=yes
20579 else
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20582
20583 ac_cv_lib_resolv___res_send=no
20584 fi
20585
20586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20587 conftest$ac_exeext conftest.$ac_ext
20588 LIBS=$ac_check_lib_save_LIBS
20589 fi
20590 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20591 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20592 if test $ac_cv_lib_resolv___res_send = yes; then
20593 resolv=yes
20594 fi
20595
20596 fi
20597
20598 fi
20599
20600 fi
20601
20602 if test "$resolv" = yes ; then
20603 RESOLVLIB=-lresolv
20604 else
20605 RESOLVLIB=
20606 fi
20607 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20608 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20609 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612 cat >conftest.$ac_ext <<_ACEOF
20613 /* confdefs.h. */
20614 _ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h. */
20618 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20620 #define hes_getmailhost innocuous_hes_getmailhost
20621
20622 /* System header to define __stub macros and hopefully few prototypes,
20623 which can conflict with char hes_getmailhost (); below.
20624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20625 <limits.h> exists even on freestanding compilers. */
20626
20627 #ifdef __STDC__
20628 # include <limits.h>
20629 #else
20630 # include <assert.h>
20631 #endif
20632
20633 #undef hes_getmailhost
20634
20635 /* Override any GCC internal prototype to avoid an error.
20636 Use char because int might match the return type of a GCC
20637 builtin and then its argument prototype would still apply. */
20638 #ifdef __cplusplus
20639 extern "C"
20640 #endif
20641 char hes_getmailhost ();
20642 /* The GNU C library defines this for functions which it implements
20643 to always fail with ENOSYS. Some functions are actually named
20644 something starting with __ and the normal name is an alias. */
20645 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20646 choke me
20647 #endif
20648
20649 int
20650 main ()
20651 {
20652 return hes_getmailhost ();
20653 ;
20654 return 0;
20655 }
20656 _ACEOF
20657 rm -f conftest.$ac_objext conftest$ac_exeext
20658 if { (ac_try="$ac_link"
20659 case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20662 esac
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_link") 2>conftest.er1
20665 ac_status=$?
20666 grep -v '^ *+' conftest.er1 >conftest.err
20667 rm -f conftest.er1
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } && {
20671 test -z "$ac_c_werror_flag" ||
20672 test ! -s conftest.err
20673 } && test -s conftest$ac_exeext &&
20674 $as_test_x conftest$ac_exeext; then
20675 ac_cv_func_hes_getmailhost=yes
20676 else
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 ac_cv_func_hes_getmailhost=no
20681 fi
20682
20683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20684 conftest$ac_exeext conftest.$ac_ext
20685 fi
20686 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20687 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20688 if test $ac_cv_func_hes_getmailhost = yes; then
20689 :
20690 else
20691 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20692 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20693 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20696 ac_check_lib_save_LIBS=$LIBS
20697 LIBS="-lhesiod $RESOLVLIB $LIBS"
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h. */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704
20705 /* Override any GCC internal prototype to avoid an error.
20706 Use char because int might match the return type of a GCC
20707 builtin and then its argument prototype would still apply. */
20708 #ifdef __cplusplus
20709 extern "C"
20710 #endif
20711 char hes_getmailhost ();
20712 int
20713 main ()
20714 {
20715 return hes_getmailhost ();
20716 ;
20717 return 0;
20718 }
20719 _ACEOF
20720 rm -f conftest.$ac_objext conftest$ac_exeext
20721 if { (ac_try="$ac_link"
20722 case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_link") 2>conftest.er1
20728 ac_status=$?
20729 grep -v '^ *+' conftest.er1 >conftest.err
20730 rm -f conftest.er1
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } && {
20734 test -z "$ac_c_werror_flag" ||
20735 test ! -s conftest.err
20736 } && test -s conftest$ac_exeext &&
20737 $as_test_x conftest$ac_exeext; then
20738 ac_cv_lib_hesiod_hes_getmailhost=yes
20739 else
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20742
20743 ac_cv_lib_hesiod_hes_getmailhost=no
20744 fi
20745
20746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20747 conftest$ac_exeext conftest.$ac_ext
20748 LIBS=$ac_check_lib_save_LIBS
20749 fi
20750 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20751 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20752 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20753
20754 cat >>confdefs.h <<\_ACEOF
20755 #define HAVE_LIBHESIOD 1
20756 _ACEOF
20757
20758 else
20759 :
20760 fi
20761
20762 fi
20763
20764 fi
20765
20766 # Do we need libresolv (due to res_init or Hesiod)?
20767 if test "$resolv" = yes ; then
20768
20769 cat >>confdefs.h <<\_ACEOF
20770 #define HAVE_LIBRESOLV 1
20771 _ACEOF
20772
20773 fi
20774
20775 # These tell us which Kerberos-related libraries to use.
20776 if test "${with_kerberos+set}" = set; then
20777
20778 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20779 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20780 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 else
20783 ac_check_lib_save_LIBS=$LIBS
20784 LIBS="-lcom_err $LIBS"
20785 cat >conftest.$ac_ext <<_ACEOF
20786 /* confdefs.h. */
20787 _ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h. */
20791
20792 /* Override any GCC internal prototype to avoid an error.
20793 Use char because int might match the return type of a GCC
20794 builtin and then its argument prototype would still apply. */
20795 #ifdef __cplusplus
20796 extern "C"
20797 #endif
20798 char com_err ();
20799 int
20800 main ()
20801 {
20802 return com_err ();
20803 ;
20804 return 0;
20805 }
20806 _ACEOF
20807 rm -f conftest.$ac_objext conftest$ac_exeext
20808 if { (ac_try="$ac_link"
20809 case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_link") 2>conftest.er1
20815 ac_status=$?
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } && {
20821 test -z "$ac_c_werror_flag" ||
20822 test ! -s conftest.err
20823 } && test -s conftest$ac_exeext &&
20824 $as_test_x conftest$ac_exeext; then
20825 ac_cv_lib_com_err_com_err=yes
20826 else
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830 ac_cv_lib_com_err_com_err=no
20831 fi
20832
20833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20834 conftest$ac_exeext conftest.$ac_ext
20835 LIBS=$ac_check_lib_save_LIBS
20836 fi
20837 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20838 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20839 if test $ac_cv_lib_com_err_com_err = yes; then
20840 cat >>confdefs.h <<_ACEOF
20841 #define HAVE_LIBCOM_ERR 1
20842 _ACEOF
20843
20844 LIBS="-lcom_err $LIBS"
20845
20846 fi
20847
20848
20849 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20850 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20851 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854 ac_check_lib_save_LIBS=$LIBS
20855 LIBS="-lk5crypto $LIBS"
20856 cat >conftest.$ac_ext <<_ACEOF
20857 /* confdefs.h. */
20858 _ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20862
20863 /* Override any GCC internal prototype to avoid an error.
20864 Use char because int might match the return type of a GCC
20865 builtin and then its argument prototype would still apply. */
20866 #ifdef __cplusplus
20867 extern "C"
20868 #endif
20869 char mit_des_cbc_encrypt ();
20870 int
20871 main ()
20872 {
20873 return mit_des_cbc_encrypt ();
20874 ;
20875 return 0;
20876 }
20877 _ACEOF
20878 rm -f conftest.$ac_objext conftest$ac_exeext
20879 if { (ac_try="$ac_link"
20880 case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20883 esac
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_link") 2>conftest.er1
20886 ac_status=$?
20887 grep -v '^ *+' conftest.er1 >conftest.err
20888 rm -f conftest.er1
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } && {
20892 test -z "$ac_c_werror_flag" ||
20893 test ! -s conftest.err
20894 } && test -s conftest$ac_exeext &&
20895 $as_test_x conftest$ac_exeext; then
20896 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20897 else
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20900
20901 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20902 fi
20903
20904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20905 conftest$ac_exeext conftest.$ac_ext
20906 LIBS=$ac_check_lib_save_LIBS
20907 fi
20908 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20909 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20910 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20911 cat >>confdefs.h <<_ACEOF
20912 #define HAVE_LIBK5CRYPTO 1
20913 _ACEOF
20914
20915 LIBS="-lk5crypto $LIBS"
20916
20917 fi
20918
20919
20920 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20921 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20922 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20923 echo $ECHO_N "(cached) $ECHO_C" >&6
20924 else
20925 ac_check_lib_save_LIBS=$LIBS
20926 LIBS="-lcrypto $LIBS"
20927 cat >conftest.$ac_ext <<_ACEOF
20928 /* confdefs.h. */
20929 _ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h. */
20933
20934 /* Override any GCC internal prototype to avoid an error.
20935 Use char because int might match the return type of a GCC
20936 builtin and then its argument prototype would still apply. */
20937 #ifdef __cplusplus
20938 extern "C"
20939 #endif
20940 char mit_des_cbc_encrypt ();
20941 int
20942 main ()
20943 {
20944 return mit_des_cbc_encrypt ();
20945 ;
20946 return 0;
20947 }
20948 _ACEOF
20949 rm -f conftest.$ac_objext conftest$ac_exeext
20950 if { (ac_try="$ac_link"
20951 case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20954 esac
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_link") 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } && {
20963 test -z "$ac_c_werror_flag" ||
20964 test ! -s conftest.err
20965 } && test -s conftest$ac_exeext &&
20966 $as_test_x conftest$ac_exeext; then
20967 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20968 else
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20971
20972 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20973 fi
20974
20975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20976 conftest$ac_exeext conftest.$ac_ext
20977 LIBS=$ac_check_lib_save_LIBS
20978 fi
20979 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20980 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20981 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20982 cat >>confdefs.h <<_ACEOF
20983 #define HAVE_LIBCRYPTO 1
20984 _ACEOF
20985
20986 LIBS="-lcrypto $LIBS"
20987
20988 fi
20989
20990
20991 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20992 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20993 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996 ac_check_lib_save_LIBS=$LIBS
20997 LIBS="-lkrb5 $LIBS"
20998 cat >conftest.$ac_ext <<_ACEOF
20999 /* confdefs.h. */
21000 _ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21004
21005 /* Override any GCC internal prototype to avoid an error.
21006 Use char because int might match the return type of a GCC
21007 builtin and then its argument prototype would still apply. */
21008 #ifdef __cplusplus
21009 extern "C"
21010 #endif
21011 char krb5_init_context ();
21012 int
21013 main ()
21014 {
21015 return krb5_init_context ();
21016 ;
21017 return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext conftest$ac_exeext
21021 if { (ac_try="$ac_link"
21022 case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21025 esac
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_link") 2>conftest.er1
21028 ac_status=$?
21029 grep -v '^ *+' conftest.er1 >conftest.err
21030 rm -f conftest.er1
21031 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } && {
21034 test -z "$ac_c_werror_flag" ||
21035 test ! -s conftest.err
21036 } && test -s conftest$ac_exeext &&
21037 $as_test_x conftest$ac_exeext; then
21038 ac_cv_lib_krb5_krb5_init_context=yes
21039 else
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21042
21043 ac_cv_lib_krb5_krb5_init_context=no
21044 fi
21045
21046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21047 conftest$ac_exeext conftest.$ac_ext
21048 LIBS=$ac_check_lib_save_LIBS
21049 fi
21050 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21051 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
21052 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21053 cat >>confdefs.h <<_ACEOF
21054 #define HAVE_LIBKRB5 1
21055 _ACEOF
21056
21057 LIBS="-lkrb5 $LIBS"
21058
21059 fi
21060
21061 if test "${with_kerberos5+set}" != set; then
21062
21063 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21064 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
21065 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068 ac_check_lib_save_LIBS=$LIBS
21069 LIBS="-ldes425 $LIBS"
21070 cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h. */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076
21077 /* Override any GCC internal prototype to avoid an error.
21078 Use char because int might match the return type of a GCC
21079 builtin and then its argument prototype would still apply. */
21080 #ifdef __cplusplus
21081 extern "C"
21082 #endif
21083 char des_cbc_encrypt ();
21084 int
21085 main ()
21086 {
21087 return des_cbc_encrypt ();
21088 ;
21089 return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest.$ac_objext conftest$ac_exeext
21093 if { (ac_try="$ac_link"
21094 case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21097 esac
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099 (eval "$ac_link") 2>conftest.er1
21100 ac_status=$?
21101 grep -v '^ *+' conftest.er1 >conftest.err
21102 rm -f conftest.er1
21103 cat conftest.err >&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } && {
21106 test -z "$ac_c_werror_flag" ||
21107 test ! -s conftest.err
21108 } && test -s conftest$ac_exeext &&
21109 $as_test_x conftest$ac_exeext; then
21110 ac_cv_lib_des425_des_cbc_encrypt=yes
21111 else
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115 ac_cv_lib_des425_des_cbc_encrypt=no
21116 fi
21117
21118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21119 conftest$ac_exeext conftest.$ac_ext
21120 LIBS=$ac_check_lib_save_LIBS
21121 fi
21122 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21123 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21124 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21125 cat >>confdefs.h <<_ACEOF
21126 #define HAVE_LIBDES425 1
21127 _ACEOF
21128
21129 LIBS="-ldes425 $LIBS"
21130
21131 else
21132
21133 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21134 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
21135 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21137 else
21138 ac_check_lib_save_LIBS=$LIBS
21139 LIBS="-ldes $LIBS"
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h. */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146
21147 /* Override any GCC internal prototype to avoid an error.
21148 Use char because int might match the return type of a GCC
21149 builtin and then its argument prototype would still apply. */
21150 #ifdef __cplusplus
21151 extern "C"
21152 #endif
21153 char des_cbc_encrypt ();
21154 int
21155 main ()
21156 {
21157 return des_cbc_encrypt ();
21158 ;
21159 return 0;
21160 }
21161 _ACEOF
21162 rm -f conftest.$ac_objext conftest$ac_exeext
21163 if { (ac_try="$ac_link"
21164 case "(($ac_try" in
21165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166 *) ac_try_echo=$ac_try;;
21167 esac
21168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169 (eval "$ac_link") 2>conftest.er1
21170 ac_status=$?
21171 grep -v '^ *+' conftest.er1 >conftest.err
21172 rm -f conftest.er1
21173 cat conftest.err >&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } && {
21176 test -z "$ac_c_werror_flag" ||
21177 test ! -s conftest.err
21178 } && test -s conftest$ac_exeext &&
21179 $as_test_x conftest$ac_exeext; then
21180 ac_cv_lib_des_des_cbc_encrypt=yes
21181 else
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21184
21185 ac_cv_lib_des_des_cbc_encrypt=no
21186 fi
21187
21188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21189 conftest$ac_exeext conftest.$ac_ext
21190 LIBS=$ac_check_lib_save_LIBS
21191 fi
21192 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21193 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21194 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21195 cat >>confdefs.h <<_ACEOF
21196 #define HAVE_LIBDES 1
21197 _ACEOF
21198
21199 LIBS="-ldes $LIBS"
21200
21201 fi
21202
21203 fi
21204
21205
21206 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21207 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
21208 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211 ac_check_lib_save_LIBS=$LIBS
21212 LIBS="-lkrb4 $LIBS"
21213 cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h. */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219
21220 /* Override any GCC internal prototype to avoid an error.
21221 Use char because int might match the return type of a GCC
21222 builtin and then its argument prototype would still apply. */
21223 #ifdef __cplusplus
21224 extern "C"
21225 #endif
21226 char krb_get_cred ();
21227 int
21228 main ()
21229 {
21230 return krb_get_cred ();
21231 ;
21232 return 0;
21233 }
21234 _ACEOF
21235 rm -f conftest.$ac_objext conftest$ac_exeext
21236 if { (ac_try="$ac_link"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_link") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest$ac_exeext &&
21252 $as_test_x conftest$ac_exeext; then
21253 ac_cv_lib_krb4_krb_get_cred=yes
21254 else
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21257
21258 ac_cv_lib_krb4_krb_get_cred=no
21259 fi
21260
21261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21262 conftest$ac_exeext conftest.$ac_ext
21263 LIBS=$ac_check_lib_save_LIBS
21264 fi
21265 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21266 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21267 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21268 cat >>confdefs.h <<_ACEOF
21269 #define HAVE_LIBKRB4 1
21270 _ACEOF
21271
21272 LIBS="-lkrb4 $LIBS"
21273
21274 else
21275
21276 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21277 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21278 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 else
21281 ac_check_lib_save_LIBS=$LIBS
21282 LIBS="-lkrb $LIBS"
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289
21290 /* Override any GCC internal prototype to avoid an error.
21291 Use char because int might match the return type of a GCC
21292 builtin and then its argument prototype would still apply. */
21293 #ifdef __cplusplus
21294 extern "C"
21295 #endif
21296 char krb_get_cred ();
21297 int
21298 main ()
21299 {
21300 return krb_get_cred ();
21301 ;
21302 return 0;
21303 }
21304 _ACEOF
21305 rm -f conftest.$ac_objext conftest$ac_exeext
21306 if { (ac_try="$ac_link"
21307 case "(($ac_try" in
21308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21310 esac
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_link") 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest$ac_exeext &&
21322 $as_test_x conftest$ac_exeext; then
21323 ac_cv_lib_krb_krb_get_cred=yes
21324 else
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328 ac_cv_lib_krb_krb_get_cred=no
21329 fi
21330
21331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21332 conftest$ac_exeext conftest.$ac_ext
21333 LIBS=$ac_check_lib_save_LIBS
21334 fi
21335 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21336 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21337 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21338 cat >>confdefs.h <<_ACEOF
21339 #define HAVE_LIBKRB 1
21340 _ACEOF
21341
21342 LIBS="-lkrb $LIBS"
21343
21344 fi
21345
21346 fi
21347
21348 fi
21349
21350 if test "${with_kerberos5+set}" = set; then
21351
21352 for ac_header in krb5.h
21353 do
21354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 fi
21361 ac_res=`eval echo '${'$as_ac_Header'}'`
21362 { echo "$as_me:$LINENO: result: $ac_res" >&5
21363 echo "${ECHO_T}$ac_res" >&6; }
21364 else
21365 # Is the header compilable?
21366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21368 cat >conftest.$ac_ext <<_ACEOF
21369 /* confdefs.h. */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h. */
21374 $ac_includes_default
21375 #include <$ac_header>
21376 _ACEOF
21377 rm -f conftest.$ac_objext
21378 if { (ac_try="$ac_compile"
21379 case "(($ac_try" in
21380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381 *) ac_try_echo=$ac_try;;
21382 esac
21383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21384 (eval "$ac_compile") 2>conftest.er1
21385 ac_status=$?
21386 grep -v '^ *+' conftest.er1 >conftest.err
21387 rm -f conftest.er1
21388 cat conftest.err >&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } && {
21391 test -z "$ac_c_werror_flag" ||
21392 test ! -s conftest.err
21393 } && test -s conftest.$ac_objext; then
21394 ac_header_compiler=yes
21395 else
21396 echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21398
21399 ac_header_compiler=no
21400 fi
21401
21402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21404 echo "${ECHO_T}$ac_header_compiler" >&6; }
21405
21406 # Is the header present?
21407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21408 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
21416 _ACEOF
21417 if { (ac_try="$ac_cpp conftest.$ac_ext"
21418 case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21424 ac_status=$?
21425 grep -v '^ *+' conftest.er1 >conftest.err
21426 rm -f conftest.er1
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } >/dev/null && {
21430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21431 test ! -s conftest.err
21432 }; then
21433 ac_header_preproc=yes
21434 else
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 ac_header_preproc=no
21439 fi
21440
21441 rm -f conftest.err conftest.$ac_ext
21442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21443 echo "${ECHO_T}$ac_header_preproc" >&6; }
21444
21445 # So? What about this header?
21446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21447 yes:no: )
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21452 ac_header_preproc=yes
21453 ;;
21454 no:yes:* )
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21467
21468 ;;
21469 esac
21470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21474 else
21475 eval "$as_ac_Header=\$ac_header_preproc"
21476 fi
21477 ac_res=`eval echo '${'$as_ac_Header'}'`
21478 { echo "$as_me:$LINENO: result: $ac_res" >&5
21479 echo "${ECHO_T}$ac_res" >&6; }
21480
21481 fi
21482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21483 cat >>confdefs.h <<_ACEOF
21484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21485 _ACEOF
21486
21487 fi
21488
21489 done
21490
21491 else
21492
21493 for ac_header in des.h
21494 do
21495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 fi
21502 ac_res=`eval echo '${'$as_ac_Header'}'`
21503 { echo "$as_me:$LINENO: result: $ac_res" >&5
21504 echo "${ECHO_T}$ac_res" >&6; }
21505 else
21506 # Is the header compilable?
21507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21509 cat >conftest.$ac_ext <<_ACEOF
21510 /* confdefs.h. */
21511 _ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h. */
21515 $ac_includes_default
21516 #include <$ac_header>
21517 _ACEOF
21518 rm -f conftest.$ac_objext
21519 if { (ac_try="$ac_compile"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21523 esac
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525 (eval "$ac_compile") 2>conftest.er1
21526 ac_status=$?
21527 grep -v '^ *+' conftest.er1 >conftest.err
21528 rm -f conftest.er1
21529 cat conftest.err >&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } && {
21532 test -z "$ac_c_werror_flag" ||
21533 test ! -s conftest.err
21534 } && test -s conftest.$ac_objext; then
21535 ac_header_compiler=yes
21536 else
21537 echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21539
21540 ac_header_compiler=no
21541 fi
21542
21543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21545 echo "${ECHO_T}$ac_header_compiler" >&6; }
21546
21547 # Is the header present?
21548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21550 cat >conftest.$ac_ext <<_ACEOF
21551 /* confdefs.h. */
21552 _ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21556 #include <$ac_header>
21557 _ACEOF
21558 if { (ac_try="$ac_cpp conftest.$ac_ext"
21559 case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21562 esac
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21565 ac_status=$?
21566 grep -v '^ *+' conftest.er1 >conftest.err
21567 rm -f conftest.er1
21568 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } >/dev/null && {
21571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21572 test ! -s conftest.err
21573 }; then
21574 ac_header_preproc=yes
21575 else
21576 echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21578
21579 ac_header_preproc=no
21580 fi
21581
21582 rm -f conftest.err conftest.$ac_ext
21583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21584 echo "${ECHO_T}$ac_header_preproc" >&6; }
21585
21586 # So? What about this header?
21587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21588 yes:no: )
21589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21593 ac_header_preproc=yes
21594 ;;
21595 no:yes:* )
21596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21608
21609 ;;
21610 esac
21611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
21616 eval "$as_ac_Header=\$ac_header_preproc"
21617 fi
21618 ac_res=`eval echo '${'$as_ac_Header'}'`
21619 { echo "$as_me:$LINENO: result: $ac_res" >&5
21620 echo "${ECHO_T}$ac_res" >&6; }
21621
21622 fi
21623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21624 cat >>confdefs.h <<_ACEOF
21625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21626 _ACEOF
21627
21628 else
21629
21630 for ac_header in kerberosIV/des.h
21631 do
21632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21637 echo $ECHO_N "(cached) $ECHO_C" >&6
21638 fi
21639 ac_res=`eval echo '${'$as_ac_Header'}'`
21640 { echo "$as_me:$LINENO: result: $ac_res" >&5
21641 echo "${ECHO_T}$ac_res" >&6; }
21642 else
21643 # Is the header compilable?
21644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21646 cat >conftest.$ac_ext <<_ACEOF
21647 /* confdefs.h. */
21648 _ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h. */
21652 $ac_includes_default
21653 #include <$ac_header>
21654 _ACEOF
21655 rm -f conftest.$ac_objext
21656 if { (ac_try="$ac_compile"
21657 case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21660 esac
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_compile") 2>conftest.er1
21663 ac_status=$?
21664 grep -v '^ *+' conftest.er1 >conftest.err
21665 rm -f conftest.er1
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } && {
21669 test -z "$ac_c_werror_flag" ||
21670 test ! -s conftest.err
21671 } && test -s conftest.$ac_objext; then
21672 ac_header_compiler=yes
21673 else
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 ac_header_compiler=no
21678 fi
21679
21680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21682 echo "${ECHO_T}$ac_header_compiler" >&6; }
21683
21684 # Is the header present?
21685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21687 cat >conftest.$ac_ext <<_ACEOF
21688 /* confdefs.h. */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21693 #include <$ac_header>
21694 _ACEOF
21695 if { (ac_try="$ac_cpp conftest.$ac_ext"
21696 case "(($ac_try" in
21697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698 *) ac_try_echo=$ac_try;;
21699 esac
21700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } >/dev/null && {
21708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 }; then
21711 ac_header_preproc=yes
21712 else
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21715
21716 ac_header_preproc=no
21717 fi
21718
21719 rm -f conftest.err conftest.$ac_ext
21720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21721 echo "${ECHO_T}$ac_header_preproc" >&6; }
21722
21723 # So? What about this header?
21724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21725 yes:no: )
21726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21730 ac_header_preproc=yes
21731 ;;
21732 no:yes:* )
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21745
21746 ;;
21747 esac
21748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21751 echo $ECHO_N "(cached) $ECHO_C" >&6
21752 else
21753 eval "$as_ac_Header=\$ac_header_preproc"
21754 fi
21755 ac_res=`eval echo '${'$as_ac_Header'}'`
21756 { echo "$as_me:$LINENO: result: $ac_res" >&5
21757 echo "${ECHO_T}$ac_res" >&6; }
21758
21759 fi
21760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21761 cat >>confdefs.h <<_ACEOF
21762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21763 _ACEOF
21764
21765 else
21766
21767 for ac_header in kerberos/des.h
21768 do
21769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 fi
21776 ac_res=`eval echo '${'$as_ac_Header'}'`
21777 { echo "$as_me:$LINENO: result: $ac_res" >&5
21778 echo "${ECHO_T}$ac_res" >&6; }
21779 else
21780 # Is the header compilable?
21781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21783 cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h. */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 $ac_includes_default
21790 #include <$ac_header>
21791 _ACEOF
21792 rm -f conftest.$ac_objext
21793 if { (ac_try="$ac_compile"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21797 esac
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_compile") 2>conftest.er1
21800 ac_status=$?
21801 grep -v '^ *+' conftest.er1 >conftest.err
21802 rm -f conftest.er1
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } && {
21806 test -z "$ac_c_werror_flag" ||
21807 test ! -s conftest.err
21808 } && test -s conftest.$ac_objext; then
21809 ac_header_compiler=yes
21810 else
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21813
21814 ac_header_compiler=no
21815 fi
21816
21817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21819 echo "${ECHO_T}$ac_header_compiler" >&6; }
21820
21821 # Is the header present?
21822 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21824 cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h. */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830 #include <$ac_header>
21831 _ACEOF
21832 if { (ac_try="$ac_cpp conftest.$ac_ext"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21836 esac
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21839 ac_status=$?
21840 grep -v '^ *+' conftest.er1 >conftest.err
21841 rm -f conftest.er1
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } >/dev/null && {
21845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21846 test ! -s conftest.err
21847 }; then
21848 ac_header_preproc=yes
21849 else
21850 echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21852
21853 ac_header_preproc=no
21854 fi
21855
21856 rm -f conftest.err conftest.$ac_ext
21857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21858 echo "${ECHO_T}$ac_header_preproc" >&6; }
21859
21860 # So? What about this header?
21861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21862 yes:no: )
21863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21867 ac_header_preproc=yes
21868 ;;
21869 no:yes:* )
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21882
21883 ;;
21884 esac
21885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21888 echo $ECHO_N "(cached) $ECHO_C" >&6
21889 else
21890 eval "$as_ac_Header=\$ac_header_preproc"
21891 fi
21892 ac_res=`eval echo '${'$as_ac_Header'}'`
21893 { echo "$as_me:$LINENO: result: $ac_res" >&5
21894 echo "${ECHO_T}$ac_res" >&6; }
21895
21896 fi
21897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21898 cat >>confdefs.h <<_ACEOF
21899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21900 _ACEOF
21901
21902 fi
21903
21904 done
21905
21906 fi
21907
21908 done
21909
21910 fi
21911
21912 done
21913
21914
21915 for ac_header in krb.h
21916 do
21917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 fi
21924 ac_res=`eval echo '${'$as_ac_Header'}'`
21925 { echo "$as_me:$LINENO: result: $ac_res" >&5
21926 echo "${ECHO_T}$ac_res" >&6; }
21927 else
21928 # Is the header compilable?
21929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21931 cat >conftest.$ac_ext <<_ACEOF
21932 /* confdefs.h. */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937 $ac_includes_default
21938 #include <$ac_header>
21939 _ACEOF
21940 rm -f conftest.$ac_objext
21941 if { (ac_try="$ac_compile"
21942 case "(($ac_try" in
21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944 *) ac_try_echo=$ac_try;;
21945 esac
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947 (eval "$ac_compile") 2>conftest.er1
21948 ac_status=$?
21949 grep -v '^ *+' conftest.er1 >conftest.err
21950 rm -f conftest.er1
21951 cat conftest.err >&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); } && {
21954 test -z "$ac_c_werror_flag" ||
21955 test ! -s conftest.err
21956 } && test -s conftest.$ac_objext; then
21957 ac_header_compiler=yes
21958 else
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962 ac_header_compiler=no
21963 fi
21964
21965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21967 echo "${ECHO_T}$ac_header_compiler" >&6; }
21968
21969 # Is the header present?
21970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21972 cat >conftest.$ac_ext <<_ACEOF
21973 /* confdefs.h. */
21974 _ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h. */
21978 #include <$ac_header>
21979 _ACEOF
21980 if { (ac_try="$ac_cpp conftest.$ac_ext"
21981 case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21987 ac_status=$?
21988 grep -v '^ *+' conftest.er1 >conftest.err
21989 rm -f conftest.er1
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } >/dev/null && {
21993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21994 test ! -s conftest.err
21995 }; then
21996 ac_header_preproc=yes
21997 else
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22000
22001 ac_header_preproc=no
22002 fi
22003
22004 rm -f conftest.err conftest.$ac_ext
22005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22006 echo "${ECHO_T}$ac_header_preproc" >&6; }
22007
22008 # So? What about this header?
22009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22010 yes:no: )
22011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22015 ac_header_preproc=yes
22016 ;;
22017 no:yes:* )
22018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22030
22031 ;;
22032 esac
22033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22037 else
22038 eval "$as_ac_Header=\$ac_header_preproc"
22039 fi
22040 ac_res=`eval echo '${'$as_ac_Header'}'`
22041 { echo "$as_me:$LINENO: result: $ac_res" >&5
22042 echo "${ECHO_T}$ac_res" >&6; }
22043
22044 fi
22045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22046 cat >>confdefs.h <<_ACEOF
22047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22048 _ACEOF
22049
22050 else
22051
22052 for ac_header in kerberosIV/krb.h
22053 do
22054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 fi
22061 ac_res=`eval echo '${'$as_ac_Header'}'`
22062 { echo "$as_me:$LINENO: result: $ac_res" >&5
22063 echo "${ECHO_T}$ac_res" >&6; }
22064 else
22065 # Is the header compilable?
22066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22068 cat >conftest.$ac_ext <<_ACEOF
22069 /* confdefs.h. */
22070 _ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074 $ac_includes_default
22075 #include <$ac_header>
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22085 ac_status=$?
22086 grep -v '^ *+' conftest.er1 >conftest.err
22087 rm -f conftest.er1
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22094 ac_header_compiler=yes
22095 else
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099 ac_header_compiler=no
22100 fi
22101
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22104 echo "${ECHO_T}$ac_header_compiler" >&6; }
22105
22106 # Is the header present?
22107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22109 cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h. */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22115 #include <$ac_header>
22116 _ACEOF
22117 if { (ac_try="$ac_cpp conftest.$ac_ext"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22124 ac_status=$?
22125 grep -v '^ *+' conftest.er1 >conftest.err
22126 rm -f conftest.er1
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } >/dev/null && {
22130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 }; then
22133 ac_header_preproc=yes
22134 else
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138 ac_header_preproc=no
22139 fi
22140
22141 rm -f conftest.err conftest.$ac_ext
22142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22143 echo "${ECHO_T}$ac_header_preproc" >&6; }
22144
22145 # So? What about this header?
22146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22147 yes:no: )
22148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22152 ac_header_preproc=yes
22153 ;;
22154 no:yes:* )
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22167
22168 ;;
22169 esac
22170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22173 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 else
22175 eval "$as_ac_Header=\$ac_header_preproc"
22176 fi
22177 ac_res=`eval echo '${'$as_ac_Header'}'`
22178 { echo "$as_me:$LINENO: result: $ac_res" >&5
22179 echo "${ECHO_T}$ac_res" >&6; }
22180
22181 fi
22182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22183 cat >>confdefs.h <<_ACEOF
22184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22185 _ACEOF
22186
22187 else
22188
22189 for ac_header in kerberos/krb.h
22190 do
22191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22197 fi
22198 ac_res=`eval echo '${'$as_ac_Header'}'`
22199 { echo "$as_me:$LINENO: result: $ac_res" >&5
22200 echo "${ECHO_T}$ac_res" >&6; }
22201 else
22202 # Is the header compilable?
22203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22205 cat >conftest.$ac_ext <<_ACEOF
22206 /* confdefs.h. */
22207 _ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22211 $ac_includes_default
22212 #include <$ac_header>
22213 _ACEOF
22214 rm -f conftest.$ac_objext
22215 if { (ac_try="$ac_compile"
22216 case "(($ac_try" in
22217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218 *) ac_try_echo=$ac_try;;
22219 esac
22220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221 (eval "$ac_compile") 2>conftest.er1
22222 ac_status=$?
22223 grep -v '^ *+' conftest.er1 >conftest.err
22224 rm -f conftest.er1
22225 cat conftest.err >&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } && {
22228 test -z "$ac_c_werror_flag" ||
22229 test ! -s conftest.err
22230 } && test -s conftest.$ac_objext; then
22231 ac_header_compiler=yes
22232 else
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236 ac_header_compiler=no
22237 fi
22238
22239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22241 echo "${ECHO_T}$ac_header_compiler" >&6; }
22242
22243 # Is the header present?
22244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22246 cat >conftest.$ac_ext <<_ACEOF
22247 /* confdefs.h. */
22248 _ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h. */
22252 #include <$ac_header>
22253 _ACEOF
22254 if { (ac_try="$ac_cpp conftest.$ac_ext"
22255 case "(($ac_try" in
22256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22257 *) ac_try_echo=$ac_try;;
22258 esac
22259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22261 ac_status=$?
22262 grep -v '^ *+' conftest.er1 >conftest.err
22263 rm -f conftest.er1
22264 cat conftest.err >&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } >/dev/null && {
22267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22268 test ! -s conftest.err
22269 }; then
22270 ac_header_preproc=yes
22271 else
22272 echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22274
22275 ac_header_preproc=no
22276 fi
22277
22278 rm -f conftest.err conftest.$ac_ext
22279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22280 echo "${ECHO_T}$ac_header_preproc" >&6; }
22281
22282 # So? What about this header?
22283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22284 yes:no: )
22285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22289 ac_header_preproc=yes
22290 ;;
22291 no:yes:* )
22292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22304
22305 ;;
22306 esac
22307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 else
22312 eval "$as_ac_Header=\$ac_header_preproc"
22313 fi
22314 ac_res=`eval echo '${'$as_ac_Header'}'`
22315 { echo "$as_me:$LINENO: result: $ac_res" >&5
22316 echo "${ECHO_T}$ac_res" >&6; }
22317
22318 fi
22319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22320 cat >>confdefs.h <<_ACEOF
22321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22322 _ACEOF
22323
22324 fi
22325
22326 done
22327
22328 fi
22329
22330 done
22331
22332 fi
22333
22334 done
22335
22336 fi
22337
22338 for ac_header in com_err.h
22339 do
22340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 fi
22347 ac_res=`eval echo '${'$as_ac_Header'}'`
22348 { echo "$as_me:$LINENO: result: $ac_res" >&5
22349 echo "${ECHO_T}$ac_res" >&6; }
22350 else
22351 # Is the header compilable?
22352 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22354 cat >conftest.$ac_ext <<_ACEOF
22355 /* confdefs.h. */
22356 _ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h. */
22360 $ac_includes_default
22361 #include <$ac_header>
22362 _ACEOF
22363 rm -f conftest.$ac_objext
22364 if { (ac_try="$ac_compile"
22365 case "(($ac_try" in
22366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367 *) ac_try_echo=$ac_try;;
22368 esac
22369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370 (eval "$ac_compile") 2>conftest.er1
22371 ac_status=$?
22372 grep -v '^ *+' conftest.er1 >conftest.err
22373 rm -f conftest.er1
22374 cat conftest.err >&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } && {
22377 test -z "$ac_c_werror_flag" ||
22378 test ! -s conftest.err
22379 } && test -s conftest.$ac_objext; then
22380 ac_header_compiler=yes
22381 else
22382 echo "$as_me: failed program was:" >&5
22383 sed 's/^/| /' conftest.$ac_ext >&5
22384
22385 ac_header_compiler=no
22386 fi
22387
22388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22390 echo "${ECHO_T}$ac_header_compiler" >&6; }
22391
22392 # Is the header present?
22393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22395 cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h. */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401 #include <$ac_header>
22402 _ACEOF
22403 if { (ac_try="$ac_cpp conftest.$ac_ext"
22404 case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22407 esac
22408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22410 ac_status=$?
22411 grep -v '^ *+' conftest.er1 >conftest.err
22412 rm -f conftest.er1
22413 cat conftest.err >&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); } >/dev/null && {
22416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22417 test ! -s conftest.err
22418 }; then
22419 ac_header_preproc=yes
22420 else
22421 echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22423
22424 ac_header_preproc=no
22425 fi
22426
22427 rm -f conftest.err conftest.$ac_ext
22428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22429 echo "${ECHO_T}$ac_header_preproc" >&6; }
22430
22431 # So? What about this header?
22432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22433 yes:no: )
22434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22438 ac_header_preproc=yes
22439 ;;
22440 no:yes:* )
22441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22453
22454 ;;
22455 esac
22456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461 eval "$as_ac_Header=\$ac_header_preproc"
22462 fi
22463 ac_res=`eval echo '${'$as_ac_Header'}'`
22464 { echo "$as_me:$LINENO: result: $ac_res" >&5
22465 echo "${ECHO_T}$ac_res" >&6; }
22466
22467 fi
22468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22469 cat >>confdefs.h <<_ACEOF
22470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22471 _ACEOF
22472
22473 fi
22474
22475 done
22476
22477 fi
22478
22479 # Solaris requires -lintl if you want strerror (which calls dgettext)
22480 # to return localized messages.
22481
22482 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22483 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22484 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22485 echo $ECHO_N "(cached) $ECHO_C" >&6
22486 else
22487 ac_check_lib_save_LIBS=$LIBS
22488 LIBS="-lintl $LIBS"
22489 cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h. */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22495
22496 /* Override any GCC internal prototype to avoid an error.
22497 Use char because int might match the return type of a GCC
22498 builtin and then its argument prototype would still apply. */
22499 #ifdef __cplusplus
22500 extern "C"
22501 #endif
22502 char dgettext ();
22503 int
22504 main ()
22505 {
22506 return dgettext ();
22507 ;
22508 return 0;
22509 }
22510 _ACEOF
22511 rm -f conftest.$ac_objext conftest$ac_exeext
22512 if { (ac_try="$ac_link"
22513 case "(($ac_try" in
22514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22516 esac
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518 (eval "$ac_link") 2>conftest.er1
22519 ac_status=$?
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } && {
22525 test -z "$ac_c_werror_flag" ||
22526 test ! -s conftest.err
22527 } && test -s conftest$ac_exeext &&
22528 $as_test_x conftest$ac_exeext; then
22529 ac_cv_lib_intl_dgettext=yes
22530 else
22531 echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22533
22534 ac_cv_lib_intl_dgettext=no
22535 fi
22536
22537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22538 conftest$ac_exeext conftest.$ac_ext
22539 LIBS=$ac_check_lib_save_LIBS
22540 fi
22541 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22542 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22543 if test $ac_cv_lib_intl_dgettext = yes; then
22544 cat >>confdefs.h <<_ACEOF
22545 #define HAVE_LIBINTL 1
22546 _ACEOF
22547
22548 LIBS="-lintl $LIBS"
22549
22550 fi
22551
22552
22553 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22554 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22555 if test "${emacs_cv_localtime_cache+set}" = set; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 else
22558 if test x$ac_cv_func_tzset = xyes; then
22559 if test "$cross_compiling" = yes; then
22560 # If we have tzset, assume the worst when cross-compiling.
22561 emacs_cv_localtime_cache=yes
22562 else
22563 cat >conftest.$ac_ext <<_ACEOF
22564 /* confdefs.h. */
22565 _ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h. */
22569 #include <time.h>
22570 extern char **environ;
22571 unset_TZ ()
22572 {
22573 char **from, **to;
22574 for (to = from = environ; (*to = *from); from++)
22575 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22576 to++;
22577 }
22578 char TZ_GMT0[] = "TZ=GMT0";
22579 char TZ_PST8[] = "TZ=PST8";
22580 main()
22581 {
22582 time_t now = time ((time_t *) 0);
22583 int hour_GMT0, hour_unset;
22584 if (putenv (TZ_GMT0) != 0)
22585 exit (1);
22586 hour_GMT0 = localtime (&now)->tm_hour;
22587 unset_TZ ();
22588 hour_unset = localtime (&now)->tm_hour;
22589 if (putenv (TZ_PST8) != 0)
22590 exit (1);
22591 if (localtime (&now)->tm_hour == hour_GMT0)
22592 exit (1);
22593 unset_TZ ();
22594 if (localtime (&now)->tm_hour != hour_unset)
22595 exit (1);
22596 exit (0);
22597 }
22598 _ACEOF
22599 rm -f conftest$ac_exeext
22600 if { (ac_try="$ac_link"
22601 case "(($ac_try" in
22602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22603 *) ac_try_echo=$ac_try;;
22604 esac
22605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22606 (eval "$ac_link") 2>&5
22607 ac_status=$?
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22610 { (case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_try") 2>&5
22616 ac_status=$?
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; }; then
22619 emacs_cv_localtime_cache=no
22620 else
22621 echo "$as_me: program exited with status $ac_status" >&5
22622 echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22624
22625 ( exit $ac_status )
22626 emacs_cv_localtime_cache=yes
22627 fi
22628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22629 fi
22630
22631
22632 else
22633 # If we lack tzset, report that localtime does not cache TZ,
22634 # since we can't invalidate the cache if we don't have tzset.
22635 emacs_cv_localtime_cache=no
22636 fi
22637 fi
22638 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22639 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22640 if test $emacs_cv_localtime_cache = yes; then
22641
22642 cat >>confdefs.h <<\_ACEOF
22643 #define LOCALTIME_CACHE 1
22644 _ACEOF
22645
22646 fi
22647
22648 if test "x$HAVE_TIMEVAL" = xyes; then
22649
22650 for ac_func in gettimeofday
22651 do
22652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 else
22658 cat >conftest.$ac_ext <<_ACEOF
22659 /* confdefs.h. */
22660 _ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22666 #define $ac_func innocuous_$ac_func
22667
22668 /* System header to define __stub macros and hopefully few prototypes,
22669 which can conflict with char $ac_func (); below.
22670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22671 <limits.h> exists even on freestanding compilers. */
22672
22673 #ifdef __STDC__
22674 # include <limits.h>
22675 #else
22676 # include <assert.h>
22677 #endif
22678
22679 #undef $ac_func
22680
22681 /* Override any GCC internal prototype to avoid an error.
22682 Use char because int might match the return type of a GCC
22683 builtin and then its argument prototype would still apply. */
22684 #ifdef __cplusplus
22685 extern "C"
22686 #endif
22687 char $ac_func ();
22688 /* The GNU C library defines this for functions which it implements
22689 to always fail with ENOSYS. Some functions are actually named
22690 something starting with __ and the normal name is an alias. */
22691 #if defined __stub_$ac_func || defined __stub___$ac_func
22692 choke me
22693 #endif
22694
22695 int
22696 main ()
22697 {
22698 return $ac_func ();
22699 ;
22700 return 0;
22701 }
22702 _ACEOF
22703 rm -f conftest.$ac_objext conftest$ac_exeext
22704 if { (ac_try="$ac_link"
22705 case "(($ac_try" in
22706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707 *) ac_try_echo=$ac_try;;
22708 esac
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710 (eval "$ac_link") 2>conftest.er1
22711 ac_status=$?
22712 grep -v '^ *+' conftest.er1 >conftest.err
22713 rm -f conftest.er1
22714 cat conftest.err >&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } && {
22717 test -z "$ac_c_werror_flag" ||
22718 test ! -s conftest.err
22719 } && test -s conftest$ac_exeext &&
22720 $as_test_x conftest$ac_exeext; then
22721 eval "$as_ac_var=yes"
22722 else
22723 echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22725
22726 eval "$as_ac_var=no"
22727 fi
22728
22729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22730 conftest$ac_exeext conftest.$ac_ext
22731 fi
22732 ac_res=`eval echo '${'$as_ac_var'}'`
22733 { echo "$as_me:$LINENO: result: $ac_res" >&5
22734 echo "${ECHO_T}$ac_res" >&6; }
22735 if test `eval echo '${'$as_ac_var'}'` = yes; then
22736 cat >>confdefs.h <<_ACEOF
22737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22738 _ACEOF
22739
22740 fi
22741 done
22742
22743 if test $ac_cv_func_gettimeofday = yes; then
22744 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22745 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22746 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22747 echo $ECHO_N "(cached) $ECHO_C" >&6
22748 else
22749 cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h. */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755
22756 #ifdef TIME_WITH_SYS_TIME
22757 #include <sys/time.h>
22758 #include <time.h>
22759 #else
22760 #ifdef HAVE_SYS_TIME_H
22761 #include <sys/time.h>
22762 #else
22763 #include <time.h>
22764 #endif
22765 #endif
22766 int
22767 main ()
22768 {
22769 struct timeval time;
22770 gettimeofday (&time, 0);
22771 ;
22772 return 0;
22773 }
22774 _ACEOF
22775 rm -f conftest.$ac_objext
22776 if { (ac_try="$ac_compile"
22777 case "(($ac_try" in
22778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22779 *) ac_try_echo=$ac_try;;
22780 esac
22781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22782 (eval "$ac_compile") 2>conftest.er1
22783 ac_status=$?
22784 grep -v '^ *+' conftest.er1 >conftest.err
22785 rm -f conftest.er1
22786 cat conftest.err >&5
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } && {
22789 test -z "$ac_c_werror_flag" ||
22790 test ! -s conftest.err
22791 } && test -s conftest.$ac_objext; then
22792 emacs_cv_gettimeofday_two_arguments=yes
22793 else
22794 echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22796
22797 emacs_cv_gettimeofday_two_arguments=no
22798 fi
22799
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22801 fi
22802 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22803 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22804 if test $emacs_cv_gettimeofday_two_arguments = no; then
22805
22806 cat >>confdefs.h <<\_ACEOF
22807 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22808 _ACEOF
22809
22810 fi
22811 fi
22812 fi
22813
22814 ok_so_far=yes
22815 { echo "$as_me:$LINENO: checking for socket" >&5
22816 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22817 if test "${ac_cv_func_socket+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22819 else
22820 cat >conftest.$ac_ext <<_ACEOF
22821 /* confdefs.h. */
22822 _ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22826 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22828 #define socket innocuous_socket
22829
22830 /* System header to define __stub macros and hopefully few prototypes,
22831 which can conflict with char socket (); below.
22832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22833 <limits.h> exists even on freestanding compilers. */
22834
22835 #ifdef __STDC__
22836 # include <limits.h>
22837 #else
22838 # include <assert.h>
22839 #endif
22840
22841 #undef socket
22842
22843 /* Override any GCC internal prototype to avoid an error.
22844 Use char because int might match the return type of a GCC
22845 builtin and then its argument prototype would still apply. */
22846 #ifdef __cplusplus
22847 extern "C"
22848 #endif
22849 char socket ();
22850 /* The GNU C library defines this for functions which it implements
22851 to always fail with ENOSYS. Some functions are actually named
22852 something starting with __ and the normal name is an alias. */
22853 #if defined __stub_socket || defined __stub___socket
22854 choke me
22855 #endif
22856
22857 int
22858 main ()
22859 {
22860 return socket ();
22861 ;
22862 return 0;
22863 }
22864 _ACEOF
22865 rm -f conftest.$ac_objext conftest$ac_exeext
22866 if { (ac_try="$ac_link"
22867 case "(($ac_try" in
22868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869 *) ac_try_echo=$ac_try;;
22870 esac
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872 (eval "$ac_link") 2>conftest.er1
22873 ac_status=$?
22874 grep -v '^ *+' conftest.er1 >conftest.err
22875 rm -f conftest.er1
22876 cat conftest.err >&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } && {
22879 test -z "$ac_c_werror_flag" ||
22880 test ! -s conftest.err
22881 } && test -s conftest$ac_exeext &&
22882 $as_test_x conftest$ac_exeext; then
22883 ac_cv_func_socket=yes
22884 else
22885 echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22887
22888 ac_cv_func_socket=no
22889 fi
22890
22891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22892 conftest$ac_exeext conftest.$ac_ext
22893 fi
22894 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22895 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22896 if test $ac_cv_func_socket = yes; then
22897 :
22898 else
22899 ok_so_far=no
22900 fi
22901
22902 if test $ok_so_far = yes; then
22903 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22904 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22905 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22906 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22907 echo $ECHO_N "(cached) $ECHO_C" >&6
22908 fi
22909 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22910 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22911 else
22912 # Is the header compilable?
22913 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22914 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22915 cat >conftest.$ac_ext <<_ACEOF
22916 /* confdefs.h. */
22917 _ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 $ac_includes_default
22922 #include <netinet/in.h>
22923 _ACEOF
22924 rm -f conftest.$ac_objext
22925 if { (ac_try="$ac_compile"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22929 esac
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_compile") 2>conftest.er1
22932 ac_status=$?
22933 grep -v '^ *+' conftest.er1 >conftest.err
22934 rm -f conftest.er1
22935 cat conftest.err >&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } && {
22938 test -z "$ac_c_werror_flag" ||
22939 test ! -s conftest.err
22940 } && test -s conftest.$ac_objext; then
22941 ac_header_compiler=yes
22942 else
22943 echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22945
22946 ac_header_compiler=no
22947 fi
22948
22949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22951 echo "${ECHO_T}$ac_header_compiler" >&6; }
22952
22953 # Is the header present?
22954 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22955 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22956 cat >conftest.$ac_ext <<_ACEOF
22957 /* confdefs.h. */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 #include <netinet/in.h>
22963 _ACEOF
22964 if { (ac_try="$ac_cpp conftest.$ac_ext"
22965 case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22968 esac
22969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22971 ac_status=$?
22972 grep -v '^ *+' conftest.er1 >conftest.err
22973 rm -f conftest.er1
22974 cat conftest.err >&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); } >/dev/null && {
22977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22978 test ! -s conftest.err
22979 }; then
22980 ac_header_preproc=yes
22981 else
22982 echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22984
22985 ac_header_preproc=no
22986 fi
22987
22988 rm -f conftest.err conftest.$ac_ext
22989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22990 echo "${ECHO_T}$ac_header_preproc" >&6; }
22991
22992 # So? What about this header?
22993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22994 yes:no: )
22995 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22996 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22997 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22998 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22999 ac_header_preproc=yes
23000 ;;
23001 no:yes:* )
23002 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23003 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23004 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23005 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23006 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23007 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23008 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23009 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23010 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23011 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23012 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23013 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23014
23015 ;;
23016 esac
23017 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23018 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
23019 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23020 echo $ECHO_N "(cached) $ECHO_C" >&6
23021 else
23022 ac_cv_header_netinet_in_h=$ac_header_preproc
23023 fi
23024 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23025 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
23026
23027 fi
23028 if test $ac_cv_header_netinet_in_h = yes; then
23029 :
23030 else
23031 ok_so_far=no
23032 fi
23033
23034
23035 fi
23036 if test $ok_so_far = yes; then
23037 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23038 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23039 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23040 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 fi
23043 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23044 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23045 else
23046 # Is the header compilable?
23047 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23048 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
23049 cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h. */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h. */
23055 $ac_includes_default
23056 #include <arpa/inet.h>
23057 _ACEOF
23058 rm -f conftest.$ac_objext
23059 if { (ac_try="$ac_compile"
23060 case "(($ac_try" in
23061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23063 esac
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065 (eval "$ac_compile") 2>conftest.er1
23066 ac_status=$?
23067 grep -v '^ *+' conftest.er1 >conftest.err
23068 rm -f conftest.er1
23069 cat conftest.err >&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && {
23072 test -z "$ac_c_werror_flag" ||
23073 test ! -s conftest.err
23074 } && test -s conftest.$ac_objext; then
23075 ac_header_compiler=yes
23076 else
23077 echo "$as_me: failed program was:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23079
23080 ac_header_compiler=no
23081 fi
23082
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23085 echo "${ECHO_T}$ac_header_compiler" >&6; }
23086
23087 # Is the header present?
23088 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23089 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23090 cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h. */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 #include <arpa/inet.h>
23097 _ACEOF
23098 if { (ac_try="$ac_cpp conftest.$ac_ext"
23099 case "(($ac_try" in
23100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23101 *) ac_try_echo=$ac_try;;
23102 esac
23103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23105 ac_status=$?
23106 grep -v '^ *+' conftest.er1 >conftest.err
23107 rm -f conftest.er1
23108 cat conftest.err >&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } >/dev/null && {
23111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23112 test ! -s conftest.err
23113 }; then
23114 ac_header_preproc=yes
23115 else
23116 echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23118
23119 ac_header_preproc=no
23120 fi
23121
23122 rm -f conftest.err conftest.$ac_ext
23123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23124 echo "${ECHO_T}$ac_header_preproc" >&6; }
23125
23126 # So? What about this header?
23127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23128 yes:no: )
23129 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23130 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23131 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23132 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23133 ac_header_preproc=yes
23134 ;;
23135 no:yes:* )
23136 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23137 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23138 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23139 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23140 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23141 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23142 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23143 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23144 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23145 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23146 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23147 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23148
23149 ;;
23150 esac
23151 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23152 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23153 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23154 echo $ECHO_N "(cached) $ECHO_C" >&6
23155 else
23156 ac_cv_header_arpa_inet_h=$ac_header_preproc
23157 fi
23158 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23159 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23160
23161 fi
23162 if test $ac_cv_header_arpa_inet_h = yes; then
23163 :
23164 else
23165 ok_so_far=no
23166 fi
23167
23168
23169 fi
23170 if test $ok_so_far = yes; then
23171
23172 cat >>confdefs.h <<\_ACEOF
23173 #define HAVE_INET_SOCKETS 1
23174 _ACEOF
23175
23176 fi
23177
23178
23179 for ac_header in sys/ioctl.h
23180 do
23181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23187 fi
23188 ac_res=`eval echo '${'$as_ac_Header'}'`
23189 { echo "$as_me:$LINENO: result: $ac_res" >&5
23190 echo "${ECHO_T}$ac_res" >&6; }
23191 else
23192 # Is the header compilable?
23193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23195 cat >conftest.$ac_ext <<_ACEOF
23196 /* confdefs.h. */
23197 _ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h. */
23201 $ac_includes_default
23202 #include <$ac_header>
23203 _ACEOF
23204 rm -f conftest.$ac_objext
23205 if { (ac_try="$ac_compile"
23206 case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23209 esac
23210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_compile") 2>conftest.er1
23212 ac_status=$?
23213 grep -v '^ *+' conftest.er1 >conftest.err
23214 rm -f conftest.er1
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } && {
23218 test -z "$ac_c_werror_flag" ||
23219 test ! -s conftest.err
23220 } && test -s conftest.$ac_objext; then
23221 ac_header_compiler=yes
23222 else
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 ac_header_compiler=no
23227 fi
23228
23229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23231 echo "${ECHO_T}$ac_header_compiler" >&6; }
23232
23233 # Is the header present?
23234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23236 cat >conftest.$ac_ext <<_ACEOF
23237 /* confdefs.h. */
23238 _ACEOF
23239 cat confdefs.h >>conftest.$ac_ext
23240 cat >>conftest.$ac_ext <<_ACEOF
23241 /* end confdefs.h. */
23242 #include <$ac_header>
23243 _ACEOF
23244 if { (ac_try="$ac_cpp conftest.$ac_ext"
23245 case "(($ac_try" in
23246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23247 *) ac_try_echo=$ac_try;;
23248 esac
23249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23251 ac_status=$?
23252 grep -v '^ *+' conftest.er1 >conftest.err
23253 rm -f conftest.er1
23254 cat conftest.err >&5
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); } >/dev/null && {
23257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23258 test ! -s conftest.err
23259 }; then
23260 ac_header_preproc=yes
23261 else
23262 echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23264
23265 ac_header_preproc=no
23266 fi
23267
23268 rm -f conftest.err conftest.$ac_ext
23269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23270 echo "${ECHO_T}$ac_header_preproc" >&6; }
23271
23272 # So? What about this header?
23273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23274 yes:no: )
23275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23279 ac_header_preproc=yes
23280 ;;
23281 no:yes:* )
23282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23294
23295 ;;
23296 esac
23297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23301 else
23302 eval "$as_ac_Header=\$ac_header_preproc"
23303 fi
23304 ac_res=`eval echo '${'$as_ac_Header'}'`
23305 { echo "$as_me:$LINENO: result: $ac_res" >&5
23306 echo "${ECHO_T}$ac_res" >&6; }
23307
23308 fi
23309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23310 cat >>confdefs.h <<_ACEOF
23311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23312 _ACEOF
23313
23314 fi
23315
23316 done
23317
23318
23319 if test -f /usr/lpp/X11/bin/smt.exp; then
23320
23321 cat >>confdefs.h <<\_ACEOF
23322 #define HAVE_AIX_SMT_EXP 1
23323 _ACEOF
23324
23325 fi
23326
23327 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23328 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23329 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23330 { echo "$as_me:$LINENO: result: yes" >&5
23331 echo "${ECHO_T}yes" >&6; }
23332
23333 cat >>confdefs.h <<\_ACEOF
23334 #define HAVE_DEV_PTMX 1
23335 _ACEOF
23336
23337 else
23338 { echo "$as_me:$LINENO: result: no" >&5
23339 echo "${ECHO_T}no" >&6; }
23340 fi
23341
23342 { echo "$as_me:$LINENO: checking for pid_t" >&5
23343 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23344 if test "${ac_cv_type_pid_t+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23346 else
23347 cat >conftest.$ac_ext <<_ACEOF
23348 /* confdefs.h. */
23349 _ACEOF
23350 cat confdefs.h >>conftest.$ac_ext
23351 cat >>conftest.$ac_ext <<_ACEOF
23352 /* end confdefs.h. */
23353 $ac_includes_default
23354 typedef pid_t ac__type_new_;
23355 int
23356 main ()
23357 {
23358 if ((ac__type_new_ *) 0)
23359 return 0;
23360 if (sizeof (ac__type_new_))
23361 return 0;
23362 ;
23363 return 0;
23364 }
23365 _ACEOF
23366 rm -f conftest.$ac_objext
23367 if { (ac_try="$ac_compile"
23368 case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23371 esac
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373 (eval "$ac_compile") 2>conftest.er1
23374 ac_status=$?
23375 grep -v '^ *+' conftest.er1 >conftest.err
23376 rm -f conftest.er1
23377 cat conftest.err >&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } && {
23380 test -z "$ac_c_werror_flag" ||
23381 test ! -s conftest.err
23382 } && test -s conftest.$ac_objext; then
23383 ac_cv_type_pid_t=yes
23384 else
23385 echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23387
23388 ac_cv_type_pid_t=no
23389 fi
23390
23391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 fi
23393 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23394 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23395 if test $ac_cv_type_pid_t = yes; then
23396 :
23397 else
23398
23399 cat >>confdefs.h <<_ACEOF
23400 #define pid_t int
23401 _ACEOF
23402
23403 fi
23404
23405
23406 for ac_header in vfork.h
23407 do
23408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23413 echo $ECHO_N "(cached) $ECHO_C" >&6
23414 fi
23415 ac_res=`eval echo '${'$as_ac_Header'}'`
23416 { echo "$as_me:$LINENO: result: $ac_res" >&5
23417 echo "${ECHO_T}$ac_res" >&6; }
23418 else
23419 # Is the header compilable?
23420 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23422 cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h. */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 $ac_includes_default
23429 #include <$ac_header>
23430 _ACEOF
23431 rm -f conftest.$ac_objext
23432 if { (ac_try="$ac_compile"
23433 case "(($ac_try" in
23434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23435 *) ac_try_echo=$ac_try;;
23436 esac
23437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23438 (eval "$ac_compile") 2>conftest.er1
23439 ac_status=$?
23440 grep -v '^ *+' conftest.er1 >conftest.err
23441 rm -f conftest.er1
23442 cat conftest.err >&5
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); } && {
23445 test -z "$ac_c_werror_flag" ||
23446 test ! -s conftest.err
23447 } && test -s conftest.$ac_objext; then
23448 ac_header_compiler=yes
23449 else
23450 echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23452
23453 ac_header_compiler=no
23454 fi
23455
23456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23458 echo "${ECHO_T}$ac_header_compiler" >&6; }
23459
23460 # Is the header present?
23461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23463 cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h. */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23469 #include <$ac_header>
23470 _ACEOF
23471 if { (ac_try="$ac_cpp conftest.$ac_ext"
23472 case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23475 esac
23476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23478 ac_status=$?
23479 grep -v '^ *+' conftest.er1 >conftest.err
23480 rm -f conftest.er1
23481 cat conftest.err >&5
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); } >/dev/null && {
23484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23485 test ! -s conftest.err
23486 }; then
23487 ac_header_preproc=yes
23488 else
23489 echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23491
23492 ac_header_preproc=no
23493 fi
23494
23495 rm -f conftest.err conftest.$ac_ext
23496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23497 echo "${ECHO_T}$ac_header_preproc" >&6; }
23498
23499 # So? What about this header?
23500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23501 yes:no: )
23502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23506 ac_header_preproc=yes
23507 ;;
23508 no:yes:* )
23509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23521
23522 ;;
23523 esac
23524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23527 echo $ECHO_N "(cached) $ECHO_C" >&6
23528 else
23529 eval "$as_ac_Header=\$ac_header_preproc"
23530 fi
23531 ac_res=`eval echo '${'$as_ac_Header'}'`
23532 { echo "$as_me:$LINENO: result: $ac_res" >&5
23533 echo "${ECHO_T}$ac_res" >&6; }
23534
23535 fi
23536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23537 cat >>confdefs.h <<_ACEOF
23538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23539 _ACEOF
23540
23541 fi
23542
23543 done
23544
23545
23546
23547 for ac_func in fork vfork
23548 do
23549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23553 echo $ECHO_N "(cached) $ECHO_C" >&6
23554 else
23555 cat >conftest.$ac_ext <<_ACEOF
23556 /* confdefs.h. */
23557 _ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h. */
23561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23563 #define $ac_func innocuous_$ac_func
23564
23565 /* System header to define __stub macros and hopefully few prototypes,
23566 which can conflict with char $ac_func (); below.
23567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23568 <limits.h> exists even on freestanding compilers. */
23569
23570 #ifdef __STDC__
23571 # include <limits.h>
23572 #else
23573 # include <assert.h>
23574 #endif
23575
23576 #undef $ac_func
23577
23578 /* Override any GCC internal prototype to avoid an error.
23579 Use char because int might match the return type of a GCC
23580 builtin and then its argument prototype would still apply. */
23581 #ifdef __cplusplus
23582 extern "C"
23583 #endif
23584 char $ac_func ();
23585 /* The GNU C library defines this for functions which it implements
23586 to always fail with ENOSYS. Some functions are actually named
23587 something starting with __ and the normal name is an alias. */
23588 #if defined __stub_$ac_func || defined __stub___$ac_func
23589 choke me
23590 #endif
23591
23592 int
23593 main ()
23594 {
23595 return $ac_func ();
23596 ;
23597 return 0;
23598 }
23599 _ACEOF
23600 rm -f conftest.$ac_objext conftest$ac_exeext
23601 if { (ac_try="$ac_link"
23602 case "(($ac_try" in
23603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604 *) ac_try_echo=$ac_try;;
23605 esac
23606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23607 (eval "$ac_link") 2>conftest.er1
23608 ac_status=$?
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } && {
23614 test -z "$ac_c_werror_flag" ||
23615 test ! -s conftest.err
23616 } && test -s conftest$ac_exeext &&
23617 $as_test_x conftest$ac_exeext; then
23618 eval "$as_ac_var=yes"
23619 else
23620 echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23622
23623 eval "$as_ac_var=no"
23624 fi
23625
23626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23627 conftest$ac_exeext conftest.$ac_ext
23628 fi
23629 ac_res=`eval echo '${'$as_ac_var'}'`
23630 { echo "$as_me:$LINENO: result: $ac_res" >&5
23631 echo "${ECHO_T}$ac_res" >&6; }
23632 if test `eval echo '${'$as_ac_var'}'` = yes; then
23633 cat >>confdefs.h <<_ACEOF
23634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23635 _ACEOF
23636
23637 fi
23638 done
23639
23640 if test "x$ac_cv_func_fork" = xyes; then
23641 { echo "$as_me:$LINENO: checking for working fork" >&5
23642 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23643 if test "${ac_cv_func_fork_works+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23645 else
23646 if test "$cross_compiling" = yes; then
23647 ac_cv_func_fork_works=cross
23648 else
23649 cat >conftest.$ac_ext <<_ACEOF
23650 /* confdefs.h. */
23651 _ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h. */
23655 $ac_includes_default
23656 int
23657 main ()
23658 {
23659
23660 /* By Ruediger Kuhlmann. */
23661 return fork () < 0;
23662
23663 ;
23664 return 0;
23665 }
23666 _ACEOF
23667 rm -f conftest$ac_exeext
23668 if { (ac_try="$ac_link"
23669 case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23672 esac
23673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23674 (eval "$ac_link") 2>&5
23675 ac_status=$?
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23678 { (case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23681 esac
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_try") 2>&5
23684 ac_status=$?
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; }; then
23687 ac_cv_func_fork_works=yes
23688 else
23689 echo "$as_me: program exited with status $ac_status" >&5
23690 echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23692
23693 ( exit $ac_status )
23694 ac_cv_func_fork_works=no
23695 fi
23696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23697 fi
23698
23699
23700 fi
23701 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23702 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23703
23704 else
23705 ac_cv_func_fork_works=$ac_cv_func_fork
23706 fi
23707 if test "x$ac_cv_func_fork_works" = xcross; then
23708 case $host in
23709 *-*-amigaos* | *-*-msdosdjgpp*)
23710 # Override, as these systems have only a dummy fork() stub
23711 ac_cv_func_fork_works=no
23712 ;;
23713 *)
23714 ac_cv_func_fork_works=yes
23715 ;;
23716 esac
23717 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23718 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23719 fi
23720 ac_cv_func_vfork_works=$ac_cv_func_vfork
23721 if test "x$ac_cv_func_vfork" = xyes; then
23722 { echo "$as_me:$LINENO: checking for working vfork" >&5
23723 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23724 if test "${ac_cv_func_vfork_works+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23726 else
23727 if test "$cross_compiling" = yes; then
23728 ac_cv_func_vfork_works=cross
23729 else
23730 cat >conftest.$ac_ext <<_ACEOF
23731 /* confdefs.h. */
23732 _ACEOF
23733 cat confdefs.h >>conftest.$ac_ext
23734 cat >>conftest.$ac_ext <<_ACEOF
23735 /* end confdefs.h. */
23736 /* Thanks to Paul Eggert for this test. */
23737 $ac_includes_default
23738 #include <sys/wait.h>
23739 #ifdef HAVE_VFORK_H
23740 # include <vfork.h>
23741 #endif
23742 /* On some sparc systems, changes by the child to local and incoming
23743 argument registers are propagated back to the parent. The compiler
23744 is told about this with #include <vfork.h>, but some compilers
23745 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23746 static variable whose address is put into a register that is
23747 clobbered by the vfork. */
23748 static void
23749 #ifdef __cplusplus
23750 sparc_address_test (int arg)
23751 # else
23752 sparc_address_test (arg) int arg;
23753 #endif
23754 {
23755 static pid_t child;
23756 if (!child) {
23757 child = vfork ();
23758 if (child < 0) {
23759 perror ("vfork");
23760 _exit(2);
23761 }
23762 if (!child) {
23763 arg = getpid();
23764 write(-1, "", 0);
23765 _exit (arg);
23766 }
23767 }
23768 }
23769
23770 int
23771 main ()
23772 {
23773 pid_t parent = getpid ();
23774 pid_t child;
23775
23776 sparc_address_test (0);
23777
23778 child = vfork ();
23779
23780 if (child == 0) {
23781 /* Here is another test for sparc vfork register problems. This
23782 test uses lots of local variables, at least as many local
23783 variables as main has allocated so far including compiler
23784 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23785 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23786 reuse the register of parent for one of the local variables,
23787 since it will think that parent can't possibly be used any more
23788 in this routine. Assigning to the local variable will thus
23789 munge parent in the parent process. */
23790 pid_t
23791 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23792 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23793 /* Convince the compiler that p..p7 are live; otherwise, it might
23794 use the same hardware register for all 8 local variables. */
23795 if (p != p1 || p != p2 || p != p3 || p != p4
23796 || p != p5 || p != p6 || p != p7)
23797 _exit(1);
23798
23799 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23800 from child file descriptors. If the child closes a descriptor
23801 before it execs or exits, this munges the parent's descriptor
23802 as well. Test for this by closing stdout in the child. */
23803 _exit(close(fileno(stdout)) != 0);
23804 } else {
23805 int status;
23806 struct stat st;
23807
23808 while (wait(&status) != child)
23809 ;
23810 return (
23811 /* Was there some problem with vforking? */
23812 child < 0
23813
23814 /* Did the child fail? (This shouldn't happen.) */
23815 || status
23816
23817 /* Did the vfork/compiler bug occur? */
23818 || parent != getpid()
23819
23820 /* Did the file descriptor bug occur? */
23821 || fstat(fileno(stdout), &st) != 0
23822 );
23823 }
23824 }
23825 _ACEOF
23826 rm -f conftest$ac_exeext
23827 if { (ac_try="$ac_link"
23828 case "(($ac_try" in
23829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830 *) ac_try_echo=$ac_try;;
23831 esac
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833 (eval "$ac_link") 2>&5
23834 ac_status=$?
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23837 { (case "(($ac_try" in
23838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839 *) ac_try_echo=$ac_try;;
23840 esac
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842 (eval "$ac_try") 2>&5
23843 ac_status=$?
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); }; }; then
23846 ac_cv_func_vfork_works=yes
23847 else
23848 echo "$as_me: program exited with status $ac_status" >&5
23849 echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23851
23852 ( exit $ac_status )
23853 ac_cv_func_vfork_works=no
23854 fi
23855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23856 fi
23857
23858
23859 fi
23860 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23861 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23862
23863 fi;
23864 if test "x$ac_cv_func_fork_works" = xcross; then
23865 ac_cv_func_vfork_works=$ac_cv_func_vfork
23866 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23867 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23868 fi
23869
23870 if test "x$ac_cv_func_vfork_works" = xyes; then
23871
23872 cat >>confdefs.h <<\_ACEOF
23873 #define HAVE_WORKING_VFORK 1
23874 _ACEOF
23875
23876 else
23877
23878 cat >>confdefs.h <<\_ACEOF
23879 #define vfork fork
23880 _ACEOF
23881
23882 fi
23883 if test "x$ac_cv_func_fork_works" = xyes; then
23884
23885 cat >>confdefs.h <<\_ACEOF
23886 #define HAVE_WORKING_FORK 1
23887 _ACEOF
23888
23889 fi
23890
23891
23892 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23893 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23894 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23895 echo $ECHO_N "(cached) $ECHO_C" >&6
23896 else
23897 cat >conftest.$ac_ext <<_ACEOF
23898 /* confdefs.h. */
23899 _ACEOF
23900 cat confdefs.h >>conftest.$ac_ext
23901 cat >>conftest.$ac_ext <<_ACEOF
23902 /* end confdefs.h. */
23903 #include <langinfo.h>
23904 int
23905 main ()
23906 {
23907 char* cs = nl_langinfo(CODESET);
23908 ;
23909 return 0;
23910 }
23911 _ACEOF
23912 rm -f conftest.$ac_objext conftest$ac_exeext
23913 if { (ac_try="$ac_link"
23914 case "(($ac_try" in
23915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916 *) ac_try_echo=$ac_try;;
23917 esac
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919 (eval "$ac_link") 2>conftest.er1
23920 ac_status=$?
23921 grep -v '^ *+' conftest.er1 >conftest.err
23922 rm -f conftest.er1
23923 cat conftest.err >&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); } && {
23926 test -z "$ac_c_werror_flag" ||
23927 test ! -s conftest.err
23928 } && test -s conftest$ac_exeext &&
23929 $as_test_x conftest$ac_exeext; then
23930 emacs_cv_langinfo_codeset=yes
23931 else
23932 echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23934
23935 emacs_cv_langinfo_codeset=no
23936 fi
23937
23938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23939 conftest$ac_exeext conftest.$ac_ext
23940
23941 fi
23942 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23943 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23944 if test $emacs_cv_langinfo_codeset = yes; then
23945
23946 cat >>confdefs.h <<\_ACEOF
23947 #define HAVE_LANGINFO_CODESET 1
23948 _ACEOF
23949
23950 fi
23951
23952 { echo "$as_me:$LINENO: checking for size_t" >&5
23953 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23954 if test "${ac_cv_type_size_t+set}" = set; then
23955 echo $ECHO_N "(cached) $ECHO_C" >&6
23956 else
23957 cat >conftest.$ac_ext <<_ACEOF
23958 /* confdefs.h. */
23959 _ACEOF
23960 cat confdefs.h >>conftest.$ac_ext
23961 cat >>conftest.$ac_ext <<_ACEOF
23962 /* end confdefs.h. */
23963 $ac_includes_default
23964 typedef size_t ac__type_new_;
23965 int
23966 main ()
23967 {
23968 if ((ac__type_new_ *) 0)
23969 return 0;
23970 if (sizeof (ac__type_new_))
23971 return 0;
23972 ;
23973 return 0;
23974 }
23975 _ACEOF
23976 rm -f conftest.$ac_objext
23977 if { (ac_try="$ac_compile"
23978 case "(($ac_try" in
23979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980 *) ac_try_echo=$ac_try;;
23981 esac
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983 (eval "$ac_compile") 2>conftest.er1
23984 ac_status=$?
23985 grep -v '^ *+' conftest.er1 >conftest.err
23986 rm -f conftest.er1
23987 cat conftest.err >&5
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); } && {
23990 test -z "$ac_c_werror_flag" ||
23991 test ! -s conftest.err
23992 } && test -s conftest.$ac_objext; then
23993 ac_cv_type_size_t=yes
23994 else
23995 echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998 ac_cv_type_size_t=no
23999 fi
24000
24001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24002 fi
24003 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24004 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24005 if test $ac_cv_type_size_t = yes; then
24006
24007 cat >>confdefs.h <<_ACEOF
24008 #define HAVE_SIZE_T 1
24009 _ACEOF
24010
24011
24012 fi
24013
24014
24015 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
24016 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
24017 if test "${ac_cv_type_mbstate_t+set}" = set; then
24018 echo $ECHO_N "(cached) $ECHO_C" >&6
24019 else
24020 cat >conftest.$ac_ext <<_ACEOF
24021 /* confdefs.h. */
24022 _ACEOF
24023 cat confdefs.h >>conftest.$ac_ext
24024 cat >>conftest.$ac_ext <<_ACEOF
24025 /* end confdefs.h. */
24026 $ac_includes_default
24027 # include <wchar.h>
24028 int
24029 main ()
24030 {
24031 mbstate_t x; return sizeof x;
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 ac_cv_type_mbstate_t=yes
24054 else
24055 echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24057
24058 ac_cv_type_mbstate_t=no
24059 fi
24060
24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062 fi
24063 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24064 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24065 if test $ac_cv_type_mbstate_t = yes; then
24066
24067 cat >>confdefs.h <<\_ACEOF
24068 #define HAVE_MBSTATE_T 1
24069 _ACEOF
24070
24071 else
24072
24073 cat >>confdefs.h <<\_ACEOF
24074 #define mbstate_t int
24075 _ACEOF
24076
24077 fi
24078
24079 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24080 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
24081 if test "${emacs_cv_c_restrict+set}" = set; then
24082 echo $ECHO_N "(cached) $ECHO_C" >&6
24083 else
24084 cat >conftest.$ac_ext <<_ACEOF
24085 /* confdefs.h. */
24086 _ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h. */
24090 void fred (int *restrict x);
24091 int
24092 main ()
24093 {
24094
24095 ;
24096 return 0;
24097 }
24098 _ACEOF
24099 rm -f conftest.$ac_objext
24100 if { (ac_try="$ac_compile"
24101 case "(($ac_try" in
24102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24103 *) ac_try_echo=$ac_try;;
24104 esac
24105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24106 (eval "$ac_compile") 2>conftest.er1
24107 ac_status=$?
24108 grep -v '^ *+' conftest.er1 >conftest.err
24109 rm -f conftest.er1
24110 cat conftest.err >&5
24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); } && {
24113 test -z "$ac_c_werror_flag" ||
24114 test ! -s conftest.err
24115 } && test -s conftest.$ac_objext; then
24116 emacs_cv_c_restrict=yes
24117 else
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24120
24121 cat >conftest.$ac_ext <<_ACEOF
24122 /* confdefs.h. */
24123 _ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h. */
24127 void fred (int *__restrict x);
24128 int
24129 main ()
24130 {
24131
24132 ;
24133 return 0;
24134 }
24135 _ACEOF
24136 rm -f conftest.$ac_objext
24137 if { (ac_try="$ac_compile"
24138 case "(($ac_try" in
24139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24140 *) ac_try_echo=$ac_try;;
24141 esac
24142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24143 (eval "$ac_compile") 2>conftest.er1
24144 ac_status=$?
24145 grep -v '^ *+' conftest.er1 >conftest.err
24146 rm -f conftest.er1
24147 cat conftest.err >&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } && {
24150 test -z "$ac_c_werror_flag" ||
24151 test ! -s conftest.err
24152 } && test -s conftest.$ac_objext; then
24153 emacs_cv_c_restrict=__restrict
24154 else
24155 echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24157
24158 emacs_cv_c_restrict=no
24159 fi
24160
24161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24162 fi
24163
24164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24165 fi
24166 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24167 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24168 case "$emacs_cv_c_restrict" in
24169 yes) emacs_restrict=restrict;;
24170 no) emacs_restrict="";;
24171 *) emacs_restrict="$emacs_cv_c_restrict";;
24172 esac
24173 if test "$emacs_restrict" != __restrict; then
24174
24175 cat >>confdefs.h <<_ACEOF
24176 #define __restrict $emacs_restrict
24177 _ACEOF
24178
24179 fi
24180
24181 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24182 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24183 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24184 echo $ECHO_N "(cached) $ECHO_C" >&6
24185 else
24186 cat >conftest.$ac_ext <<_ACEOF
24187 /* confdefs.h. */
24188 _ACEOF
24189 cat confdefs.h >>conftest.$ac_ext
24190 cat >>conftest.$ac_ext <<_ACEOF
24191 /* end confdefs.h. */
24192 void fred (int x[__restrict]);
24193 int
24194 main ()
24195 {
24196
24197 ;
24198 return 0;
24199 }
24200 _ACEOF
24201 rm -f conftest.$ac_objext
24202 if { (ac_try="$ac_compile"
24203 case "(($ac_try" in
24204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205 *) ac_try_echo=$ac_try;;
24206 esac
24207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24208 (eval "$ac_compile") 2>conftest.er1
24209 ac_status=$?
24210 grep -v '^ *+' conftest.er1 >conftest.err
24211 rm -f conftest.er1
24212 cat conftest.err >&5
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); } && {
24215 test -z "$ac_c_werror_flag" ||
24216 test ! -s conftest.err
24217 } && test -s conftest.$ac_objext; then
24218 emacs_cv_c_restrict_arr=yes
24219 else
24220 echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24222
24223 emacs_cv_c_restrict_arr=no
24224 fi
24225
24226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24227 fi
24228 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24229 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24230 if test "$emacs_cv_c_restrict_arr" = yes; then
24231
24232 cat >>confdefs.h <<\_ACEOF
24233 #define __restrict_arr __restrict
24234 _ACEOF
24235
24236 fi
24237
24238
24239
24240 # Set up the CFLAGS for real compilation, so we can substitute it.
24241 CFLAGS="$REAL_CFLAGS"
24242 CPPFLAGS="$REAL_CPPFLAGS"
24243
24244 #### Find out which version of Emacs this is.
24245 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24246 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24247 if test x"${version}" = x; then
24248 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24249 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24250 { (exit 1); exit 1; }; }
24251 fi
24252
24253 ### Specify what sort of things we'll be editing into Makefile and config.h.
24254 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290 cat >>confdefs.h <<_ACEOF
24291 #define EMACS_CONFIGURATION "${canonical}"
24292 _ACEOF
24293
24294
24295 cat >>confdefs.h <<_ACEOF
24296 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24297 _ACEOF
24298
24299
24300 cat >>confdefs.h <<_ACEOF
24301 #define config_machfile "${machfile}"
24302 _ACEOF
24303
24304
24305 cat >>confdefs.h <<_ACEOF
24306 #define config_opsysfile "${opsysfile}"
24307 _ACEOF
24308
24309
24310 cat >>confdefs.h <<_ACEOF
24311 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24312 _ACEOF
24313
24314
24315 cat >>confdefs.h <<_ACEOF
24316 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24317 _ACEOF
24318
24319
24320 cat >>confdefs.h <<_ACEOF
24321 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24322 _ACEOF
24323
24324
24325 cat >>confdefs.h <<_ACEOF
24326 #define UNEXEC_SRC ${UNEXEC_SRC}
24327 _ACEOF
24328
24329
24330 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24331
24332 cat >>confdefs.h <<\_ACEOF
24333 #define HAVE_X_WINDOWS 1
24334 _ACEOF
24335
24336 fi
24337 if test "${USE_X_TOOLKIT}" != "none" ; then
24338
24339 cat >>confdefs.h <<\_ACEOF
24340 #define USE_X_TOOLKIT 1
24341 _ACEOF
24342
24343 fi
24344 if test "${HAVE_X11}" = "yes" ; then
24345
24346 cat >>confdefs.h <<\_ACEOF
24347 #define HAVE_X11 1
24348 _ACEOF
24349
24350 fi
24351 if test "${HAVE_XFREE386}" = "yes" ; then
24352
24353 cat >>confdefs.h <<\_ACEOF
24354 #define HAVE_XFREE386 1
24355 _ACEOF
24356
24357 fi
24358 if test "${HAVE_MENUS}" = "yes" ; then
24359
24360 cat >>confdefs.h <<\_ACEOF
24361 #define HAVE_MENUS 1
24362 _ACEOF
24363
24364 fi
24365 if test "${GNU_MALLOC}" = "yes" ; then
24366
24367 cat >>confdefs.h <<\_ACEOF
24368 #define GNU_MALLOC 1
24369 _ACEOF
24370
24371 fi
24372 if test "${REL_ALLOC}" = "yes" ; then
24373
24374 cat >>confdefs.h <<\_ACEOF
24375 #define REL_ALLOC 1
24376 _ACEOF
24377
24378 fi
24379
24380
24381
24382
24383
24384
24385 #### Report on what we decided to do.
24386 #### Report GTK as a toolkit, even if it doesn't use Xt.
24387 #### It makes printing result more understandable as using GTK sets
24388 #### toolkit_scroll_bars to yes by default.
24389 if test "${HAVE_GTK}" = "yes"; then
24390 USE_X_TOOLKIT=GTK
24391 fi
24392
24393 echo "
24394 Configured for \`${canonical}'.
24395
24396 Where should the build process find the source code? ${srcdir}
24397 What operating system and machine description files should Emacs use?
24398 \`${opsysfile}' and \`${machfile}'
24399 What compiler should emacs be built with? ${CC} ${CFLAGS}
24400 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24401 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24402 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24403 What window system should Emacs use? ${window_system}
24404 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24405
24406 if test -n "${x_includes}"; then
24407 echo " Where do we find X Windows header files? ${x_includes}"
24408 else
24409 echo " Where do we find X Windows header files? Standard dirs"
24410 fi
24411 if test -n "${x_libraries}"; then
24412 echo " Where do we find X Windows libraries? ${x_libraries}"
24413 else
24414 echo " Where do we find X Windows libraries? Standard dirs"
24415 fi
24416
24417 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24418 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24419 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24420 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24421 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24422 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24423 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24424 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24425 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24426 echo
24427
24428 if test $USE_XASSERTS = yes; then
24429 echo " Compiling with asserts turned on."
24430 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24431 echo
24432 fi
24433
24434 if test "$USE_X_TOOLKIT" = GTK; then
24435 case "$canonical" in
24436 *cygwin*)
24437 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24438 will probably get a crash on startup. If this happens, please use another
24439 toolkit for Emacs. See etc/PROBLEMS for more information."
24440 ;;
24441 esac
24442 fi
24443
24444
24445 if test "$HAVE_CARBON" = "yes"; then
24446 echo
24447 echo "Warning: The Mac Carbon port is currently unsupported and has
24448 known problems. It is not recommended for use by non-developers.
24449 Read the emacs-devel archives for more information."
24450 echo
24451 fi
24452
24453 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24454 echo "D-Bus integration has been tested for GNU/Linux only."
24455 echo
24456 fi
24457
24458
24459 # Remove any trailing slashes in these variables.
24460 test "${prefix}" != NONE &&
24461 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24462 test "${exec_prefix}" != NONE &&
24463 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24464
24465 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24466 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24467 ## from Makefile.c can correctly provide the arg `-traditional' to the
24468 ## C preprocessor.
24469
24470 cat >conftest.$ac_ext <<_ACEOF
24471 /* confdefs.h. */
24472 _ACEOF
24473 cat confdefs.h >>conftest.$ac_ext
24474 cat >>conftest.$ac_ext <<_ACEOF
24475 /* end confdefs.h. */
24476 yes..yes
24477 _ACEOF
24478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24479 $EGREP "yes..yes" >/dev/null 2>&1; then
24480 CPP_NEED_TRADITIONAL=no
24481 else
24482 CPP_NEED_TRADITIONAL=yes
24483 fi
24484 rm -f conftest*
24485
24486
24487 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"
24488
24489 ac_config_commands="$ac_config_commands default"
24490
24491 cat >confcache <<\_ACEOF
24492 # This file is a shell script that caches the results of configure
24493 # tests run on this system so they can be shared between configure
24494 # scripts and configure runs, see configure's option --config-cache.
24495 # It is not useful on other systems. If it contains results you don't
24496 # want to keep, you may remove or edit it.
24497 #
24498 # config.status only pays attention to the cache file if you give it
24499 # the --recheck option to rerun configure.
24500 #
24501 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24502 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24503 # following values.
24504
24505 _ACEOF
24506
24507 # The following way of writing the cache mishandles newlines in values,
24508 # but we know of no workaround that is simple, portable, and efficient.
24509 # So, we kill variables containing newlines.
24510 # Ultrix sh set writes to stderr and can't be redirected directly,
24511 # and sets the high bit in the cache file unless we assign to the vars.
24512 (
24513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24514 eval ac_val=\$$ac_var
24515 case $ac_val in #(
24516 *${as_nl}*)
24517 case $ac_var in #(
24518 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24519 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24520 esac
24521 case $ac_var in #(
24522 _ | IFS | as_nl) ;; #(
24523 *) $as_unset $ac_var ;;
24524 esac ;;
24525 esac
24526 done
24527
24528 (set) 2>&1 |
24529 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24530 *${as_nl}ac_space=\ *)
24531 # `set' does not quote correctly, so add quotes (double-quote
24532 # substitution turns \\\\ into \\, and sed turns \\ into \).
24533 sed -n \
24534 "s/'/'\\\\''/g;
24535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24536 ;; #(
24537 *)
24538 # `set' quotes correctly as required by POSIX, so do not add quotes.
24539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24540 ;;
24541 esac |
24542 sort
24543 ) |
24544 sed '
24545 /^ac_cv_env_/b end
24546 t clear
24547 :clear
24548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24549 t end
24550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24551 :end' >>confcache
24552 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24553 if test -w "$cache_file"; then
24554 test "x$cache_file" != "x/dev/null" &&
24555 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24556 echo "$as_me: updating cache $cache_file" >&6;}
24557 cat confcache >$cache_file
24558 else
24559 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24560 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24561 fi
24562 fi
24563 rm -f confcache
24564
24565 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24566 # Let make expand exec_prefix.
24567 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24568
24569 DEFS=-DHAVE_CONFIG_H
24570
24571 ac_libobjs=
24572 ac_ltlibobjs=
24573 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24574 # 1. Remove the extension, and $U if already installed.
24575 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24576 ac_i=`echo "$ac_i" | sed "$ac_script"`
24577 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24578 # will be set to the directory where LIBOBJS objects are built.
24579 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24580 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24581 done
24582 LIBOBJS=$ac_libobjs
24583
24584 LTLIBOBJS=$ac_ltlibobjs
24585
24586
24587
24588 : ${CONFIG_STATUS=./config.status}
24589 ac_clean_files_save=$ac_clean_files
24590 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24591 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24592 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24593 cat >$CONFIG_STATUS <<_ACEOF
24594 #! $SHELL
24595 # Generated by $as_me.
24596 # Run this file to recreate the current configuration.
24597 # Compiler output produced by configure, useful for debugging
24598 # configure, is in config.log if it exists.
24599
24600 debug=false
24601 ac_cs_recheck=false
24602 ac_cs_silent=false
24603 SHELL=\${CONFIG_SHELL-$SHELL}
24604 _ACEOF
24605
24606 cat >>$CONFIG_STATUS <<\_ACEOF
24607 ## --------------------- ##
24608 ## M4sh Initialization. ##
24609 ## --------------------- ##
24610
24611 # Be more Bourne compatible
24612 DUALCASE=1; export DUALCASE # for MKS sh
24613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24614 emulate sh
24615 NULLCMD=:
24616 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24617 # is contrary to our usage. Disable this feature.
24618 alias -g '${1+"$@"}'='"$@"'
24619 setopt NO_GLOB_SUBST
24620 else
24621 case `(set -o) 2>/dev/null` in
24622 *posix*) set -o posix ;;
24623 esac
24624
24625 fi
24626
24627
24628
24629
24630 # PATH needs CR
24631 # Avoid depending upon Character Ranges.
24632 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24633 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24634 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24635 as_cr_digits='0123456789'
24636 as_cr_alnum=$as_cr_Letters$as_cr_digits
24637
24638 # The user is always right.
24639 if test "${PATH_SEPARATOR+set}" != set; then
24640 echo "#! /bin/sh" >conf$$.sh
24641 echo "exit 0" >>conf$$.sh
24642 chmod +x conf$$.sh
24643 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24644 PATH_SEPARATOR=';'
24645 else
24646 PATH_SEPARATOR=:
24647 fi
24648 rm -f conf$$.sh
24649 fi
24650
24651 # Support unset when possible.
24652 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24653 as_unset=unset
24654 else
24655 as_unset=false
24656 fi
24657
24658
24659 # IFS
24660 # We need space, tab and new line, in precisely that order. Quoting is
24661 # there to prevent editors from complaining about space-tab.
24662 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24663 # splitting by setting IFS to empty value.)
24664 as_nl='
24665 '
24666 IFS=" "" $as_nl"
24667
24668 # Find who we are. Look in the path if we contain no directory separator.
24669 case $0 in
24670 *[\\/]* ) as_myself=$0 ;;
24671 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24672 for as_dir in $PATH
24673 do
24674 IFS=$as_save_IFS
24675 test -z "$as_dir" && as_dir=.
24676 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24677 done
24678 IFS=$as_save_IFS
24679
24680 ;;
24681 esac
24682 # We did not find ourselves, most probably we were run as `sh COMMAND'
24683 # in which case we are not to be found in the path.
24684 if test "x$as_myself" = x; then
24685 as_myself=$0
24686 fi
24687 if test ! -f "$as_myself"; then
24688 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24689 { (exit 1); exit 1; }
24690 fi
24691
24692 # Work around bugs in pre-3.0 UWIN ksh.
24693 for as_var in ENV MAIL MAILPATH
24694 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24695 done
24696 PS1='$ '
24697 PS2='> '
24698 PS4='+ '
24699
24700 # NLS nuisances.
24701 for as_var in \
24702 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24703 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24704 LC_TELEPHONE LC_TIME
24705 do
24706 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24707 eval $as_var=C; export $as_var
24708 else
24709 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24710 fi
24711 done
24712
24713 # Required to use basename.
24714 if expr a : '\(a\)' >/dev/null 2>&1 &&
24715 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24716 as_expr=expr
24717 else
24718 as_expr=false
24719 fi
24720
24721 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24722 as_basename=basename
24723 else
24724 as_basename=false
24725 fi
24726
24727
24728 # Name of the executable.
24729 as_me=`$as_basename -- "$0" ||
24730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24731 X"$0" : 'X\(//\)$' \| \
24732 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24733 echo X/"$0" |
24734 sed '/^.*\/\([^/][^/]*\)\/*$/{
24735 s//\1/
24736 q
24737 }
24738 /^X\/\(\/\/\)$/{
24739 s//\1/
24740 q
24741 }
24742 /^X\/\(\/\).*/{
24743 s//\1/
24744 q
24745 }
24746 s/.*/./; q'`
24747
24748 # CDPATH.
24749 $as_unset CDPATH
24750
24751
24752
24753 as_lineno_1=$LINENO
24754 as_lineno_2=$LINENO
24755 test "x$as_lineno_1" != "x$as_lineno_2" &&
24756 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24757
24758 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24759 # uniformly replaced by the line number. The first 'sed' inserts a
24760 # line-number line after each line using $LINENO; the second 'sed'
24761 # does the real work. The second script uses 'N' to pair each
24762 # line-number line with the line containing $LINENO, and appends
24763 # trailing '-' during substitution so that $LINENO is not a special
24764 # case at line end.
24765 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24766 # scripts with optimization help from Paolo Bonzini. Blame Lee
24767 # E. McMahon (1931-1989) for sed's syntax. :-)
24768 sed -n '
24769 p
24770 /[$]LINENO/=
24771 ' <$as_myself |
24772 sed '
24773 s/[$]LINENO.*/&-/
24774 t lineno
24775 b
24776 :lineno
24777 N
24778 :loop
24779 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24780 t loop
24781 s/-\n.*//
24782 ' >$as_me.lineno &&
24783 chmod +x "$as_me.lineno" ||
24784 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24785 { (exit 1); exit 1; }; }
24786
24787 # Don't try to exec as it changes $[0], causing all sort of problems
24788 # (the dirname of $[0] is not the place where we might find the
24789 # original and so on. Autoconf is especially sensitive to this).
24790 . "./$as_me.lineno"
24791 # Exit status is that of the last command.
24792 exit
24793 }
24794
24795
24796 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24797 as_dirname=dirname
24798 else
24799 as_dirname=false
24800 fi
24801
24802 ECHO_C= ECHO_N= ECHO_T=
24803 case `echo -n x` in
24804 -n*)
24805 case `echo 'x\c'` in
24806 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24807 *) ECHO_C='\c';;
24808 esac;;
24809 *)
24810 ECHO_N='-n';;
24811 esac
24812
24813 if expr a : '\(a\)' >/dev/null 2>&1 &&
24814 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24815 as_expr=expr
24816 else
24817 as_expr=false
24818 fi
24819
24820 rm -f conf$$ conf$$.exe conf$$.file
24821 if test -d conf$$.dir; then
24822 rm -f conf$$.dir/conf$$.file
24823 else
24824 rm -f conf$$.dir
24825 mkdir conf$$.dir
24826 fi
24827 echo >conf$$.file
24828 if ln -s conf$$.file conf$$ 2>/dev/null; then
24829 as_ln_s='ln -s'
24830 # ... but there are two gotchas:
24831 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24832 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24833 # In both cases, we have to default to `cp -p'.
24834 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24835 as_ln_s='cp -p'
24836 elif ln conf$$.file conf$$ 2>/dev/null; then
24837 as_ln_s=ln
24838 else
24839 as_ln_s='cp -p'
24840 fi
24841 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24842 rmdir conf$$.dir 2>/dev/null
24843
24844 if mkdir -p . 2>/dev/null; then
24845 as_mkdir_p=:
24846 else
24847 test -d ./-p && rmdir ./-p
24848 as_mkdir_p=false
24849 fi
24850
24851 if test -x / >/dev/null 2>&1; then
24852 as_test_x='test -x'
24853 else
24854 if ls -dL / >/dev/null 2>&1; then
24855 as_ls_L_option=L
24856 else
24857 as_ls_L_option=
24858 fi
24859 as_test_x='
24860 eval sh -c '\''
24861 if test -d "$1"; then
24862 test -d "$1/.";
24863 else
24864 case $1 in
24865 -*)set "./$1";;
24866 esac;
24867 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24868 ???[sx]*):;;*)false;;esac;fi
24869 '\'' sh
24870 '
24871 fi
24872 as_executable_p=$as_test_x
24873
24874 # Sed expression to map a string onto a valid CPP name.
24875 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24876
24877 # Sed expression to map a string onto a valid variable name.
24878 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24879
24880
24881 exec 6>&1
24882
24883 # Save the log message, to keep $[0] and so on meaningful, and to
24884 # report actual input values of CONFIG_FILES etc. instead of their
24885 # values after options handling.
24886 ac_log="
24887 This file was extended by emacs $as_me 23.0.50, which was
24888 generated by GNU Autoconf 2.61. Invocation command line was
24889
24890 CONFIG_FILES = $CONFIG_FILES
24891 CONFIG_HEADERS = $CONFIG_HEADERS
24892 CONFIG_LINKS = $CONFIG_LINKS
24893 CONFIG_COMMANDS = $CONFIG_COMMANDS
24894 $ $0 $@
24895
24896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24897 "
24898
24899 _ACEOF
24900
24901 cat >>$CONFIG_STATUS <<_ACEOF
24902 # Files that config.status was made for.
24903 config_files="$ac_config_files"
24904 config_headers="$ac_config_headers"
24905 config_commands="$ac_config_commands"
24906
24907 _ACEOF
24908
24909 cat >>$CONFIG_STATUS <<\_ACEOF
24910 ac_cs_usage="\
24911 \`$as_me' instantiates files from templates according to the
24912 current configuration.
24913
24914 Usage: $0 [OPTIONS] [FILE]...
24915
24916 -h, --help print this help, then exit
24917 -V, --version print version number and configuration settings, then exit
24918 -q, --quiet do not print progress messages
24919 -d, --debug don't remove temporary files
24920 --recheck update $as_me by reconfiguring in the same conditions
24921 --file=FILE[:TEMPLATE]
24922 instantiate the configuration file FILE
24923 --header=FILE[:TEMPLATE]
24924 instantiate the configuration header FILE
24925
24926 Configuration files:
24927 $config_files
24928
24929 Configuration headers:
24930 $config_headers
24931
24932 Configuration commands:
24933 $config_commands
24934
24935 Report bugs to <bug-autoconf@gnu.org>."
24936
24937 _ACEOF
24938 cat >>$CONFIG_STATUS <<_ACEOF
24939 ac_cs_version="\\
24940 emacs config.status 23.0.50
24941 configured by $0, generated by GNU Autoconf 2.61,
24942 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24943
24944 Copyright (C) 2006 Free Software Foundation, Inc.
24945 This config.status script is free software; the Free Software Foundation
24946 gives unlimited permission to copy, distribute and modify it."
24947
24948 ac_pwd='$ac_pwd'
24949 srcdir='$srcdir'
24950 INSTALL='$INSTALL'
24951 _ACEOF
24952
24953 cat >>$CONFIG_STATUS <<\_ACEOF
24954 # If no file are specified by the user, then we need to provide default
24955 # value. By we need to know if files were specified by the user.
24956 ac_need_defaults=:
24957 while test $# != 0
24958 do
24959 case $1 in
24960 --*=*)
24961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24963 ac_shift=:
24964 ;;
24965 *)
24966 ac_option=$1
24967 ac_optarg=$2
24968 ac_shift=shift
24969 ;;
24970 esac
24971
24972 case $ac_option in
24973 # Handling of the options.
24974 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24975 ac_cs_recheck=: ;;
24976 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24977 echo "$ac_cs_version"; exit ;;
24978 --debug | --debu | --deb | --de | --d | -d )
24979 debug=: ;;
24980 --file | --fil | --fi | --f )
24981 $ac_shift
24982 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24983 ac_need_defaults=false;;
24984 --header | --heade | --head | --hea )
24985 $ac_shift
24986 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24987 ac_need_defaults=false;;
24988 --he | --h)
24989 # Conflict between --help and --header
24990 { echo "$as_me: error: ambiguous option: $1
24991 Try \`$0 --help' for more information." >&2
24992 { (exit 1); exit 1; }; };;
24993 --help | --hel | -h )
24994 echo "$ac_cs_usage"; exit ;;
24995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24996 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24997 ac_cs_silent=: ;;
24998
24999 # This is an error.
25000 -*) { echo "$as_me: error: unrecognized option: $1
25001 Try \`$0 --help' for more information." >&2
25002 { (exit 1); exit 1; }; } ;;
25003
25004 *) ac_config_targets="$ac_config_targets $1"
25005 ac_need_defaults=false ;;
25006
25007 esac
25008 shift
25009 done
25010
25011 ac_configure_extra_args=
25012
25013 if $ac_cs_silent; then
25014 exec 6>/dev/null
25015 ac_configure_extra_args="$ac_configure_extra_args --silent"
25016 fi
25017
25018 _ACEOF
25019 cat >>$CONFIG_STATUS <<_ACEOF
25020 if \$ac_cs_recheck; then
25021 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25022 CONFIG_SHELL=$SHELL
25023 export CONFIG_SHELL
25024 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25025 fi
25026
25027 _ACEOF
25028 cat >>$CONFIG_STATUS <<\_ACEOF
25029 exec 5>>config.log
25030 {
25031 echo
25032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25033 ## Running $as_me. ##
25034 _ASBOX
25035 echo "$ac_log"
25036 } >&5
25037
25038 _ACEOF
25039 cat >>$CONFIG_STATUS <<_ACEOF
25040 #
25041 # INIT-COMMANDS
25042 #
25043 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
25044
25045 _ACEOF
25046
25047 cat >>$CONFIG_STATUS <<\_ACEOF
25048
25049 # Handling of arguments.
25050 for ac_config_target in $ac_config_targets
25051 do
25052 case $ac_config_target in
25053 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25054 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25055 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25056 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25057 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25058 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25059 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25060 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25061 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25062 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25063 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25064 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25065 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25066
25067 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25068 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25069 { (exit 1); exit 1; }; };;
25070 esac
25071 done
25072
25073
25074 # If the user did not use the arguments to specify the items to instantiate,
25075 # then the envvar interface is used. Set only those that are not.
25076 # We use the long form for the default assignment because of an extremely
25077 # bizarre bug on SunOS 4.1.3.
25078 if $ac_need_defaults; then
25079 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25080 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25081 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25082 fi
25083
25084 # Have a temporary directory for convenience. Make it in the build tree
25085 # simply because there is no reason against having it here, and in addition,
25086 # creating and moving files from /tmp can sometimes cause problems.
25087 # Hook for its removal unless debugging.
25088 # Note that there is a small window in which the directory will not be cleaned:
25089 # after its creation but before its name has been assigned to `$tmp'.
25090 $debug ||
25091 {
25092 tmp=
25093 trap 'exit_status=$?
25094 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25095 ' 0
25096 trap '{ (exit 1); exit 1; }' 1 2 13 15
25097 }
25098 # Create a (secure) tmp directory for tmp files.
25099
25100 {
25101 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25102 test -n "$tmp" && test -d "$tmp"
25103 } ||
25104 {
25105 tmp=./conf$$-$RANDOM
25106 (umask 077 && mkdir "$tmp")
25107 } ||
25108 {
25109 echo "$me: cannot create a temporary directory in ." >&2
25110 { (exit 1); exit 1; }
25111 }
25112
25113 #
25114 # Set up the sed scripts for CONFIG_FILES section.
25115 #
25116
25117 # No need to generate the scripts if there are no CONFIG_FILES.
25118 # This happens for instance when ./config.status config.h
25119 if test -n "$CONFIG_FILES"; then
25120
25121 _ACEOF
25122
25123
25124
25125 ac_delim='%!_!# '
25126 for ac_last_try in false false false false false :; do
25127 cat >conf$$subs.sed <<_ACEOF
25128 SHELL!$SHELL$ac_delim
25129 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25130 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25131 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25132 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25133 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25134 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25135 exec_prefix!$exec_prefix$ac_delim
25136 prefix!$prefix$ac_delim
25137 program_transform_name!$program_transform_name$ac_delim
25138 bindir!$bindir$ac_delim
25139 sbindir!$sbindir$ac_delim
25140 libexecdir!$libexecdir$ac_delim
25141 datarootdir!$datarootdir$ac_delim
25142 datadir!$datadir$ac_delim
25143 sysconfdir!$sysconfdir$ac_delim
25144 sharedstatedir!$sharedstatedir$ac_delim
25145 localstatedir!$localstatedir$ac_delim
25146 includedir!$includedir$ac_delim
25147 oldincludedir!$oldincludedir$ac_delim
25148 docdir!$docdir$ac_delim
25149 infodir!$infodir$ac_delim
25150 htmldir!$htmldir$ac_delim
25151 dvidir!$dvidir$ac_delim
25152 pdfdir!$pdfdir$ac_delim
25153 psdir!$psdir$ac_delim
25154 libdir!$libdir$ac_delim
25155 localedir!$localedir$ac_delim
25156 mandir!$mandir$ac_delim
25157 DEFS!$DEFS$ac_delim
25158 ECHO_C!$ECHO_C$ac_delim
25159 ECHO_N!$ECHO_N$ac_delim
25160 ECHO_T!$ECHO_T$ac_delim
25161 LIBS!$LIBS$ac_delim
25162 build_alias!$build_alias$ac_delim
25163 host_alias!$host_alias$ac_delim
25164 target_alias!$target_alias$ac_delim
25165 MAINT!$MAINT$ac_delim
25166 build!$build$ac_delim
25167 build_cpu!$build_cpu$ac_delim
25168 build_vendor!$build_vendor$ac_delim
25169 build_os!$build_os$ac_delim
25170 host!$host$ac_delim
25171 host_cpu!$host_cpu$ac_delim
25172 host_vendor!$host_vendor$ac_delim
25173 host_os!$host_os$ac_delim
25174 CC!$CC$ac_delim
25175 CFLAGS!$CFLAGS$ac_delim
25176 LDFLAGS!$LDFLAGS$ac_delim
25177 CPPFLAGS!$CPPFLAGS$ac_delim
25178 ac_ct_CC!$ac_ct_CC$ac_delim
25179 EXEEXT!$EXEEXT$ac_delim
25180 OBJEXT!$OBJEXT$ac_delim
25181 CPP!$CPP$ac_delim
25182 GREP!$GREP$ac_delim
25183 EGREP!$EGREP$ac_delim
25184 LN_S!$LN_S$ac_delim
25185 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25186 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25187 INSTALL_DATA!$INSTALL_DATA$ac_delim
25188 RANLIB!$RANLIB$ac_delim
25189 INSTALL_INFO!$INSTALL_INFO$ac_delim
25190 GZIP_PROG!$GZIP_PROG$ac_delim
25191 MAKEINFO!$MAKEINFO$ac_delim
25192 LIBSOUND!$LIBSOUND$ac_delim
25193 PKG_CONFIG!$PKG_CONFIG$ac_delim
25194 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25195 ALSA_LIBS!$ALSA_LIBS$ac_delim
25196 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25197 SET_MAKE!$SET_MAKE$ac_delim
25198 XMKMF!$XMKMF$ac_delim
25199 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25200 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25201 RSVG_LIBS!$RSVG_LIBS$ac_delim
25202 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25203 GTK_LIBS!$GTK_LIBS$ac_delim
25204 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25205 DBUS_LIBS!$DBUS_LIBS$ac_delim
25206 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25207 XFT_LIBS!$XFT_LIBS$ac_delim
25208 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25209 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25210 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25211 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25212 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
25213 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25214 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25215 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25216 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25217 ALLOCA!$ALLOCA$ac_delim
25218 liblockfile!$liblockfile$ac_delim
25219 LIBOBJS!$LIBOBJS$ac_delim
25220 NEED_SETGID!$NEED_SETGID$ac_delim
25221 KMEM_GROUP!$KMEM_GROUP$ac_delim
25222 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25223 GETOPT_H!$GETOPT_H$ac_delim
25224 GETOPTOBJS!$GETOPTOBJS$ac_delim
25225 _ACEOF
25226
25227 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25228 break
25229 elif $ac_last_try; then
25230 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25231 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25232 { (exit 1); exit 1; }; }
25233 else
25234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25235 fi
25236 done
25237
25238 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25239 if test -n "$ac_eof"; then
25240 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25241 ac_eof=`expr $ac_eof + 1`
25242 fi
25243
25244 cat >>$CONFIG_STATUS <<_ACEOF
25245 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25247 _ACEOF
25248 sed '
25249 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25250 s/^/s,@/; s/!/@,|#_!!_#|/
25251 :n
25252 t n
25253 s/'"$ac_delim"'$/,g/; t
25254 s/$/\\/; p
25255 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25256 ' >>$CONFIG_STATUS <conf$$subs.sed
25257 rm -f conf$$subs.sed
25258 cat >>$CONFIG_STATUS <<_ACEOF
25259 CEOF$ac_eof
25260 _ACEOF
25261
25262
25263 ac_delim='%!_!# '
25264 for ac_last_try in false false false false false :; do
25265 cat >conf$$subs.sed <<_ACEOF
25266 version!$version$ac_delim
25267 configuration!$configuration$ac_delim
25268 canonical!$canonical$ac_delim
25269 srcdir!$srcdir$ac_delim
25270 lispdir!$lispdir$ac_delim
25271 locallisppath!$locallisppath$ac_delim
25272 lisppath!$lisppath$ac_delim
25273 x_default_search_path!$x_default_search_path$ac_delim
25274 etcdir!$etcdir$ac_delim
25275 archlibdir!$archlibdir$ac_delim
25276 bitmapdir!$bitmapdir$ac_delim
25277 gamedir!$gamedir$ac_delim
25278 gameuser!$gameuser$ac_delim
25279 c_switch_system!$c_switch_system$ac_delim
25280 c_switch_machine!$c_switch_machine$ac_delim
25281 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25282 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25283 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25284 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25285 machfile!$machfile$ac_delim
25286 opsysfile!$opsysfile$ac_delim
25287 carbon_appdir!$carbon_appdir$ac_delim
25288 LTLIBOBJS!$LTLIBOBJS$ac_delim
25289 _ACEOF
25290
25291 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
25292 break
25293 elif $ac_last_try; then
25294 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25295 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25296 { (exit 1); exit 1; }; }
25297 else
25298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25299 fi
25300 done
25301
25302 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25303 if test -n "$ac_eof"; then
25304 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25305 ac_eof=`expr $ac_eof + 1`
25306 fi
25307
25308 cat >>$CONFIG_STATUS <<_ACEOF
25309 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25311 _ACEOF
25312 sed '
25313 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25314 s/^/s,@/; s/!/@,|#_!!_#|/
25315 :n
25316 t n
25317 s/'"$ac_delim"'$/,g/; t
25318 s/$/\\/; p
25319 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25320 ' >>$CONFIG_STATUS <conf$$subs.sed
25321 rm -f conf$$subs.sed
25322 cat >>$CONFIG_STATUS <<_ACEOF
25323 :end
25324 s/|#_!!_#|//g
25325 CEOF$ac_eof
25326 _ACEOF
25327
25328
25329 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25330 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25331 # trailing colons and then remove the whole line if VPATH becomes empty
25332 # (actually we leave an empty line to preserve line numbers).
25333 if test "x$srcdir" = x.; then
25334 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25335 s/:*\$(srcdir):*/:/
25336 s/:*\${srcdir}:*/:/
25337 s/:*@srcdir@:*/:/
25338 s/^\([^=]*=[ ]*\):*/\1/
25339 s/:*$//
25340 s/^[^=]*=[ ]*$//
25341 }'
25342 fi
25343
25344 cat >>$CONFIG_STATUS <<\_ACEOF
25345 fi # test -n "$CONFIG_FILES"
25346
25347
25348 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25349 do
25350 case $ac_tag in
25351 :[FHLC]) ac_mode=$ac_tag; continue;;
25352 esac
25353 case $ac_mode$ac_tag in
25354 :[FHL]*:*);;
25355 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25356 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25357 { (exit 1); exit 1; }; };;
25358 :[FH]-) ac_tag=-:-;;
25359 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25360 esac
25361 ac_save_IFS=$IFS
25362 IFS=:
25363 set x $ac_tag
25364 IFS=$ac_save_IFS
25365 shift
25366 ac_file=$1
25367 shift
25368
25369 case $ac_mode in
25370 :L) ac_source=$1;;
25371 :[FH])
25372 ac_file_inputs=
25373 for ac_f
25374 do
25375 case $ac_f in
25376 -) ac_f="$tmp/stdin";;
25377 *) # Look for the file first in the build tree, then in the source tree
25378 # (if the path is not absolute). The absolute path cannot be DOS-style,
25379 # because $ac_f cannot contain `:'.
25380 test -f "$ac_f" ||
25381 case $ac_f in
25382 [\\/$]*) false;;
25383 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25384 esac ||
25385 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25386 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25387 { (exit 1); exit 1; }; };;
25388 esac
25389 ac_file_inputs="$ac_file_inputs $ac_f"
25390 done
25391
25392 # Let's still pretend it is `configure' which instantiates (i.e., don't
25393 # use $as_me), people would be surprised to read:
25394 # /* config.h. Generated by config.status. */
25395 configure_input="Generated from "`IFS=:
25396 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25397 if test x"$ac_file" != x-; then
25398 configure_input="$ac_file. $configure_input"
25399 { echo "$as_me:$LINENO: creating $ac_file" >&5
25400 echo "$as_me: creating $ac_file" >&6;}
25401 fi
25402
25403 case $ac_tag in
25404 *:-:* | *:-) cat >"$tmp/stdin";;
25405 esac
25406 ;;
25407 esac
25408
25409 ac_dir=`$as_dirname -- "$ac_file" ||
25410 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25411 X"$ac_file" : 'X\(//\)[^/]' \| \
25412 X"$ac_file" : 'X\(//\)$' \| \
25413 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25414 echo X"$ac_file" |
25415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25416 s//\1/
25417 q
25418 }
25419 /^X\(\/\/\)[^/].*/{
25420 s//\1/
25421 q
25422 }
25423 /^X\(\/\/\)$/{
25424 s//\1/
25425 q
25426 }
25427 /^X\(\/\).*/{
25428 s//\1/
25429 q
25430 }
25431 s/.*/./; q'`
25432 { as_dir="$ac_dir"
25433 case $as_dir in #(
25434 -*) as_dir=./$as_dir;;
25435 esac
25436 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25437 as_dirs=
25438 while :; do
25439 case $as_dir in #(
25440 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25441 *) as_qdir=$as_dir;;
25442 esac
25443 as_dirs="'$as_qdir' $as_dirs"
25444 as_dir=`$as_dirname -- "$as_dir" ||
25445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25446 X"$as_dir" : 'X\(//\)[^/]' \| \
25447 X"$as_dir" : 'X\(//\)$' \| \
25448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25449 echo X"$as_dir" |
25450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25451 s//\1/
25452 q
25453 }
25454 /^X\(\/\/\)[^/].*/{
25455 s//\1/
25456 q
25457 }
25458 /^X\(\/\/\)$/{
25459 s//\1/
25460 q
25461 }
25462 /^X\(\/\).*/{
25463 s//\1/
25464 q
25465 }
25466 s/.*/./; q'`
25467 test -d "$as_dir" && break
25468 done
25469 test -z "$as_dirs" || eval "mkdir $as_dirs"
25470 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25471 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25472 { (exit 1); exit 1; }; }; }
25473 ac_builddir=.
25474
25475 case "$ac_dir" in
25476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25477 *)
25478 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25479 # A ".." for each directory in $ac_dir_suffix.
25480 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25481 case $ac_top_builddir_sub in
25482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25484 esac ;;
25485 esac
25486 ac_abs_top_builddir=$ac_pwd
25487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25488 # for backward compatibility:
25489 ac_top_builddir=$ac_top_build_prefix
25490
25491 case $srcdir in
25492 .) # We are building in place.
25493 ac_srcdir=.
25494 ac_top_srcdir=$ac_top_builddir_sub
25495 ac_abs_top_srcdir=$ac_pwd ;;
25496 [\\/]* | ?:[\\/]* ) # Absolute name.
25497 ac_srcdir=$srcdir$ac_dir_suffix;
25498 ac_top_srcdir=$srcdir
25499 ac_abs_top_srcdir=$srcdir ;;
25500 *) # Relative name.
25501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25502 ac_top_srcdir=$ac_top_build_prefix$srcdir
25503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25504 esac
25505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25506
25507
25508 case $ac_mode in
25509 :F)
25510 #
25511 # CONFIG_FILE
25512 #
25513
25514 case $INSTALL in
25515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25516 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25517 esac
25518 _ACEOF
25519
25520 cat >>$CONFIG_STATUS <<\_ACEOF
25521 # If the template does not know about datarootdir, expand it.
25522 # FIXME: This hack should be removed a few years after 2.60.
25523 ac_datarootdir_hack=; ac_datarootdir_seen=
25524
25525 case `sed -n '/datarootdir/ {
25526 p
25527 q
25528 }
25529 /@datadir@/p
25530 /@docdir@/p
25531 /@infodir@/p
25532 /@localedir@/p
25533 /@mandir@/p
25534 ' $ac_file_inputs` in
25535 *datarootdir*) ac_datarootdir_seen=yes;;
25536 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25537 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25538 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25539 _ACEOF
25540 cat >>$CONFIG_STATUS <<_ACEOF
25541 ac_datarootdir_hack='
25542 s&@datadir@&$datadir&g
25543 s&@docdir@&$docdir&g
25544 s&@infodir@&$infodir&g
25545 s&@localedir@&$localedir&g
25546 s&@mandir@&$mandir&g
25547 s&\\\${datarootdir}&$datarootdir&g' ;;
25548 esac
25549 _ACEOF
25550
25551 # Neutralize VPATH when `$srcdir' = `.'.
25552 # Shell code in configure.ac might set extrasub.
25553 # FIXME: do we really want to maintain this feature?
25554 cat >>$CONFIG_STATUS <<_ACEOF
25555 sed "$ac_vpsub
25556 $extrasub
25557 _ACEOF
25558 cat >>$CONFIG_STATUS <<\_ACEOF
25559 :t
25560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25561 s&@configure_input@&$configure_input&;t t
25562 s&@top_builddir@&$ac_top_builddir_sub&;t t
25563 s&@srcdir@&$ac_srcdir&;t t
25564 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25565 s&@top_srcdir@&$ac_top_srcdir&;t t
25566 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25567 s&@builddir@&$ac_builddir&;t t
25568 s&@abs_builddir@&$ac_abs_builddir&;t t
25569 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25570 s&@INSTALL@&$ac_INSTALL&;t t
25571 $ac_datarootdir_hack
25572 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25573
25574 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25575 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25576 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25577 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25578 which seems to be undefined. Please make sure it is defined." >&5
25579 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25580 which seems to be undefined. Please make sure it is defined." >&2;}
25581
25582 rm -f "$tmp/stdin"
25583 case $ac_file in
25584 -) cat "$tmp/out"; rm -f "$tmp/out";;
25585 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25586 esac
25587 ;;
25588 :H)
25589 #
25590 # CONFIG_HEADER
25591 #
25592 _ACEOF
25593
25594 # Transform confdefs.h into a sed script `conftest.defines', that
25595 # substitutes the proper values into config.h.in to produce config.h.
25596 rm -f conftest.defines conftest.tail
25597 # First, append a space to every undef/define line, to ease matching.
25598 echo 's/$/ /' >conftest.defines
25599 # Then, protect against being on the right side of a sed subst, or in
25600 # an unquoted here document, in config.status. If some macros were
25601 # called several times there might be several #defines for the same
25602 # symbol, which is useless. But do not sort them, since the last
25603 # AC_DEFINE must be honored.
25604 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25605 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25606 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25607 # PARAMS is the parameter list in the macro definition--in most cases, it's
25608 # just an empty string.
25609 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25610 ac_dB='\\)[ (].*,\\1define\\2'
25611 ac_dC=' '
25612 ac_dD=' ,'
25613
25614 uniq confdefs.h |
25615 sed -n '
25616 t rset
25617 :rset
25618 s/^[ ]*#[ ]*define[ ][ ]*//
25619 t ok
25620 d
25621 :ok
25622 s/[\\&,]/\\&/g
25623 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25624 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25625 ' >>conftest.defines
25626
25627 # Remove the space that was appended to ease matching.
25628 # Then replace #undef with comments. This is necessary, for
25629 # example, in the case of _POSIX_SOURCE, which is predefined and required
25630 # on some systems where configure will not decide to define it.
25631 # (The regexp can be short, since the line contains either #define or #undef.)
25632 echo 's/ $//
25633 s,^[ #]*u.*,/* & */,' >>conftest.defines
25634
25635 # Break up conftest.defines:
25636 ac_max_sed_lines=50
25637
25638 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25639 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25640 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25641 # et cetera.
25642 ac_in='$ac_file_inputs'
25643 ac_out='"$tmp/out1"'
25644 ac_nxt='"$tmp/out2"'
25645
25646 while :
25647 do
25648 # Write a here document:
25649 cat >>$CONFIG_STATUS <<_ACEOF
25650 # First, check the format of the line:
25651 cat >"\$tmp/defines.sed" <<\\CEOF
25652 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25653 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25654 b
25655 :def
25656 _ACEOF
25657 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25658 echo 'CEOF
25659 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25660 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25661 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25662 grep . conftest.tail >/dev/null || break
25663 rm -f conftest.defines
25664 mv conftest.tail conftest.defines
25665 done
25666 rm -f conftest.defines conftest.tail
25667
25668 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25669 cat >>$CONFIG_STATUS <<\_ACEOF
25670 if test x"$ac_file" != x-; then
25671 echo "/* $configure_input */" >"$tmp/config.h"
25672 cat "$ac_result" >>"$tmp/config.h"
25673 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25674 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25675 echo "$as_me: $ac_file is unchanged" >&6;}
25676 else
25677 rm -f $ac_file
25678 mv "$tmp/config.h" $ac_file
25679 fi
25680 else
25681 echo "/* $configure_input */"
25682 cat "$ac_result"
25683 fi
25684 rm -f "$tmp/out12"
25685 ;;
25686
25687 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25688 echo "$as_me: executing $ac_file commands" >&6;}
25689 ;;
25690 esac
25691
25692
25693 case $ac_file$ac_mode in
25694 "default":C)
25695
25696 ### Make the necessary directories, if they don't exist.
25697 for dir in etc lisp ; do
25698 test -d ${dir} || mkdir ${dir}
25699 done
25700
25701 # Build src/Makefile from ${srcdir}/src/Makefile.c
25702 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25703 # This must be done after src/config.h is built, since we rely on that file.
25704
25705 # Now get this: Some word that is part of the ${srcdir} directory name
25706 # or the ${configuration} value might, just might, happen to be an
25707 # identifier like `sun4' or `i386' or something, and be predefined by
25708 # the C preprocessor to some helpful value like 1, or maybe the empty
25709 # string. Needless to say consequent macro substitutions are less
25710 # than conducive to the makefile finding the correct directory.
25711 undefs="`echo $top_srcdir $configuration $canonical |
25712 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25713 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25714 `"
25715
25716 echo creating src/epaths.h
25717 ${MAKE-make} epaths-force
25718
25719 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25720 # `..' to `. .' unless invoked with -traditional
25721
25722 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25723 CPPFLAGS="$CPPFLAGS -traditional"
25724 fi
25725
25726 echo creating lib-src/Makefile
25727 ( cd lib-src
25728 rm -f junk.c junk1.c junk2.c
25729 sed -e '/start of cpp stuff/q' \
25730 < Makefile.c > junk1.c
25731 sed -e '1,/start of cpp stuff/d'\
25732 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25733 < Makefile.c > junk.c
25734 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25735 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25736 cat junk1.c junk2.c > Makefile.new
25737 rm -f junk.c junk1.c junk2.c
25738 chmod 444 Makefile.new
25739 mv -f Makefile.new Makefile
25740 )
25741
25742 echo creating src/Makefile
25743 ( cd src
25744 rm -f junk.c junk1.c junk2.c
25745 sed -e '/start of cpp stuff/q' \
25746 < Makefile.c > junk1.c
25747 sed -e '1,/start of cpp stuff/d'\
25748 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25749 < Makefile.c > junk.c
25750 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25751 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25752 fi
25753 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25754 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25755 cat junk1.c junk2.c > Makefile.new
25756 rm -f junk.c junk1.c junk2.c
25757 chmod 444 Makefile.new
25758 mv -f Makefile.new Makefile
25759 )
25760
25761 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25762 echo creating src/.gdbinit
25763 echo source $srcdir/src/.gdbinit > src/.gdbinit
25764 fi
25765
25766 # This is how we know whether to re-run configure in certain cases.
25767 touch src/config.stamp
25768
25769 ;;
25770
25771 esac
25772 done # for ac_tag
25773
25774
25775 { (exit 0); exit 0; }
25776 _ACEOF
25777 chmod +x $CONFIG_STATUS
25778 ac_clean_files=$ac_clean_files_save
25779
25780
25781 # configure is writing to config.log, and then calls config.status.
25782 # config.status does its own redirection, appending to config.log.
25783 # Unfortunately, on DOS this fails, as config.log is still kept open
25784 # by configure, so config.status won't be able to write to it; its
25785 # output is simply discarded. So we exec the FD to /dev/null,
25786 # effectively closing config.log, so it can be properly (re)opened and
25787 # appended to by config.status. When coming back to configure, we
25788 # need to make the FD available again.
25789 if test "$no_create" != yes; then
25790 ac_cs_success=:
25791 ac_config_status_args=
25792 test "$silent" = yes &&
25793 ac_config_status_args="$ac_config_status_args --quiet"
25794 exec 5>/dev/null
25795 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25796 exec 5>>config.log
25797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25798 # would make configure fail if this is the last instruction.
25799 $ac_cs_success || { (exit 1); exit 1; }
25800 fi
25801
25802