]> code.delx.au - gnu-emacs/blob - configure
Merge from emacs--devo--0
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
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 XFT_CFLAGS
696 XFT_LIBS
697 FREETYPE_CFLAGS
698 FREETYPE_LIBS
699 FONTCONFIG_CFLAGS
700 FONTCONFIG_LIBS
701 HAVE_LIBOTF
702 LIBOTF_CFLAGS
703 LIBOTF_LIBS
704 ALLOCA
705 liblockfile
706 LIBOBJS
707 NEED_SETGID
708 KMEM_GROUP
709 GETLOADAVG_LIBS
710 GETOPT_H
711 GETOPTOBJS
712 version
713 configuration
714 canonical
715 srcdir
716 lispdir
717 locallisppath
718 lisppath
719 x_default_search_path
720 etcdir
721 archlibdir
722 bitmapdir
723 gamedir
724 gameuser
725 c_switch_system
726 c_switch_machine
727 LD_SWITCH_X_SITE
728 LD_SWITCH_X_SITE_AUX
729 C_SWITCH_X_SITE
730 X_TOOLKIT_TYPE
731 machfile
732 opsysfile
733 carbon_appdir
734 LTLIBOBJS'
735 ac_subst_files=''
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
739 CC
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP
745 XMKMF'
746
747
748 # Initialize some variables set by options.
749 ac_init_help=
750 ac_init_version=false
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
753 cache_file=/dev/null
754 exec_prefix=NONE
755 no_create=
756 no_recursion=
757 prefix=NONE
758 program_prefix=NONE
759 program_suffix=NONE
760 program_transform_name=s,x,x,
761 silent=
762 site=
763 srcdir=
764 verbose=
765 x_includes=NONE
766 x_libraries=NONE
767
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE}'
785 infodir='${datarootdir}/info'
786 htmldir='${docdir}'
787 dvidir='${docdir}'
788 pdfdir='${docdir}'
789 psdir='${docdir}'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
793
794 ac_prev=
795 ac_dashdash=
796 for ac_option
797 do
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
801 ac_prev=
802 continue
803 fi
804
805 case $ac_option in
806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 *) ac_optarg=yes ;;
808 esac
809
810 # Accept the important Cygnus configure options, so we can diagnose typos.
811
812 case $ac_dashdash$ac_option in
813 --)
814 ac_dashdash=yes ;;
815
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 ac_prev=bindir ;;
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819 bindir=$ac_optarg ;;
820
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
825
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
832
833 --config-cache | -C)
834 cache_file=config.cache ;;
835
836 -datadir | --datadir | --datadi | --datad)
837 ac_prev=datadir ;;
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
840
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
847
848 -disable-* | --disable-*)
849 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853 { (exit 1); exit 1; }; }
854 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
855 eval enable_$ac_feature=no ;;
856
857 -docdir | --docdir | --docdi | --doc | --do)
858 ac_prev=docdir ;;
859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
860 docdir=$ac_optarg ;;
861
862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863 ac_prev=dvidir ;;
864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
865 dvidir=$ac_optarg ;;
866
867 -enable-* | --enable-*)
868 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
871 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
872 { (exit 1); exit 1; }; }
873 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
874 eval enable_$ac_feature=\$ac_optarg ;;
875
876 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
877 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
878 | --exec | --exe | --ex)
879 ac_prev=exec_prefix ;;
880 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
881 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
882 | --exec=* | --exe=* | --ex=*)
883 exec_prefix=$ac_optarg ;;
884
885 -gas | --gas | --ga | --g)
886 # Obsolete; use --with-gas.
887 with_gas=yes ;;
888
889 -help | --help | --hel | --he | -h)
890 ac_init_help=long ;;
891 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
892 ac_init_help=recursive ;;
893 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
894 ac_init_help=short ;;
895
896 -host | --host | --hos | --ho)
897 ac_prev=host_alias ;;
898 -host=* | --host=* | --hos=* | --ho=*)
899 host_alias=$ac_optarg ;;
900
901 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
902 ac_prev=htmldir ;;
903 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
904 | --ht=*)
905 htmldir=$ac_optarg ;;
906
907 -includedir | --includedir | --includedi | --included | --include \
908 | --includ | --inclu | --incl | --inc)
909 ac_prev=includedir ;;
910 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
911 | --includ=* | --inclu=* | --incl=* | --inc=*)
912 includedir=$ac_optarg ;;
913
914 -infodir | --infodir | --infodi | --infod | --info | --inf)
915 ac_prev=infodir ;;
916 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
917 infodir=$ac_optarg ;;
918
919 -libdir | --libdir | --libdi | --libd)
920 ac_prev=libdir ;;
921 -libdir=* | --libdir=* | --libdi=* | --libd=*)
922 libdir=$ac_optarg ;;
923
924 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
925 | --libexe | --libex | --libe)
926 ac_prev=libexecdir ;;
927 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
928 | --libexe=* | --libex=* | --libe=*)
929 libexecdir=$ac_optarg ;;
930
931 -localedir | --localedir | --localedi | --localed | --locale)
932 ac_prev=localedir ;;
933 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
934 localedir=$ac_optarg ;;
935
936 -localstatedir | --localstatedir | --localstatedi | --localstated \
937 | --localstate | --localstat | --localsta | --localst | --locals)
938 ac_prev=localstatedir ;;
939 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
940 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
941 localstatedir=$ac_optarg ;;
942
943 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
944 ac_prev=mandir ;;
945 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
946 mandir=$ac_optarg ;;
947
948 -nfp | --nfp | --nf)
949 # Obsolete; use --without-fp.
950 with_fp=no ;;
951
952 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
953 | --no-cr | --no-c | -n)
954 no_create=yes ;;
955
956 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
957 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
958 no_recursion=yes ;;
959
960 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
961 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
962 | --oldin | --oldi | --old | --ol | --o)
963 ac_prev=oldincludedir ;;
964 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
965 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
966 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
967 oldincludedir=$ac_optarg ;;
968
969 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
970 ac_prev=prefix ;;
971 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
972 prefix=$ac_optarg ;;
973
974 -program-prefix | --program-prefix | --program-prefi | --program-pref \
975 | --program-pre | --program-pr | --program-p)
976 ac_prev=program_prefix ;;
977 -program-prefix=* | --program-prefix=* | --program-prefi=* \
978 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979 program_prefix=$ac_optarg ;;
980
981 -program-suffix | --program-suffix | --program-suffi | --program-suff \
982 | --program-suf | --program-su | --program-s)
983 ac_prev=program_suffix ;;
984 -program-suffix=* | --program-suffix=* | --program-suffi=* \
985 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
986 program_suffix=$ac_optarg ;;
987
988 -program-transform-name | --program-transform-name \
989 | --program-transform-nam | --program-transform-na \
990 | --program-transform-n | --program-transform- \
991 | --program-transform | --program-transfor \
992 | --program-transfo | --program-transf \
993 | --program-trans | --program-tran \
994 | --progr-tra | --program-tr | --program-t)
995 ac_prev=program_transform_name ;;
996 -program-transform-name=* | --program-transform-name=* \
997 | --program-transform-nam=* | --program-transform-na=* \
998 | --program-transform-n=* | --program-transform-=* \
999 | --program-transform=* | --program-transfor=* \
1000 | --program-transfo=* | --program-transf=* \
1001 | --program-trans=* | --program-tran=* \
1002 | --progr-tra=* | --program-tr=* | --program-t=*)
1003 program_transform_name=$ac_optarg ;;
1004
1005 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1006 ac_prev=pdfdir ;;
1007 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1008 pdfdir=$ac_optarg ;;
1009
1010 -psdir | --psdir | --psdi | --psd | --ps)
1011 ac_prev=psdir ;;
1012 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1013 psdir=$ac_optarg ;;
1014
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1017 silent=yes ;;
1018
1019 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1020 ac_prev=sbindir ;;
1021 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1022 | --sbi=* | --sb=*)
1023 sbindir=$ac_optarg ;;
1024
1025 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1026 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1027 | --sharedst | --shareds | --shared | --share | --shar \
1028 | --sha | --sh)
1029 ac_prev=sharedstatedir ;;
1030 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1031 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1032 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1033 | --sha=* | --sh=*)
1034 sharedstatedir=$ac_optarg ;;
1035
1036 -site | --site | --sit)
1037 ac_prev=site ;;
1038 -site=* | --site=* | --sit=*)
1039 site=$ac_optarg ;;
1040
1041 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1042 ac_prev=srcdir ;;
1043 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1044 srcdir=$ac_optarg ;;
1045
1046 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1047 | --syscon | --sysco | --sysc | --sys | --sy)
1048 ac_prev=sysconfdir ;;
1049 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1050 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1051 sysconfdir=$ac_optarg ;;
1052
1053 -target | --target | --targe | --targ | --tar | --ta | --t)
1054 ac_prev=target_alias ;;
1055 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1056 target_alias=$ac_optarg ;;
1057
1058 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1059 verbose=yes ;;
1060
1061 -version | --version | --versio | --versi | --vers | -V)
1062 ac_init_version=: ;;
1063
1064 -with-* | --with-*)
1065 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid package name: $ac_package" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1071 eval with_$ac_package=\$ac_optarg ;;
1072
1073 -without-* | --without-*)
1074 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid package name: $ac_package" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1080 eval with_$ac_package=no ;;
1081
1082 --x)
1083 # Obsolete; use --with-x.
1084 with_x=yes ;;
1085
1086 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1087 | --x-incl | --x-inc | --x-in | --x-i)
1088 ac_prev=x_includes ;;
1089 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1090 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1091 x_includes=$ac_optarg ;;
1092
1093 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1094 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1095 ac_prev=x_libraries ;;
1096 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1097 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1098 x_libraries=$ac_optarg ;;
1099
1100 -*) { echo "$as_me: error: unrecognized option: $ac_option
1101 Try \`$0 --help' for more information." >&2
1102 { (exit 1); exit 1; }; }
1103 ;;
1104
1105 *=*)
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1110 { (exit 1); exit 1; }; }
1111 eval $ac_envvar=\$ac_optarg
1112 export $ac_envvar ;;
1113
1114 *)
1115 # FIXME: should be removed in autoconf 3.0.
1116 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1120 ;;
1121
1122 esac
1123 done
1124
1125 if test -n "$ac_prev"; then
1126 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1127 { echo "$as_me: error: missing argument to $ac_option" >&2
1128 { (exit 1); exit 1; }; }
1129 fi
1130
1131 # Be sure to have absolute directory names.
1132 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir
1136 do
1137 eval ac_val=\$$ac_var
1138 case $ac_val in
1139 [\\/$]* | ?:[\\/]* ) continue;;
1140 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1141 esac
1142 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1143 { (exit 1); exit 1; }; }
1144 done
1145
1146 # There might be people who depend on the old broken behavior: `$host'
1147 # used to hold the argument of --host etc.
1148 # FIXME: To remove some day.
1149 build=$build_alias
1150 host=$host_alias
1151 target=$target_alias
1152
1153 # FIXME: To remove some day.
1154 if test "x$host_alias" != x; then
1155 if test "x$build_alias" = x; then
1156 cross_compiling=maybe
1157 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1158 If a cross compiler is detected then cross compile mode will be used." >&2
1159 elif test "x$build_alias" != "x$host_alias"; then
1160 cross_compiling=yes
1161 fi
1162 fi
1163
1164 ac_tool_prefix=
1165 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1166
1167 test "$silent" = yes && exec 6>/dev/null
1168
1169
1170 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1171 ac_ls_di=`ls -di .` &&
1172 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1173 { echo "$as_me: error: Working directory cannot be determined" >&2
1174 { (exit 1); exit 1; }; }
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 { echo "$as_me: error: pwd does not report name of working directory" >&2
1177 { (exit 1); exit 1; }; }
1178
1179
1180 # Find the source files, if location was not specified.
1181 if test -z "$srcdir"; then
1182 ac_srcdir_defaulted=yes
1183 # Try the directory containing this script, then the parent directory.
1184 ac_confdir=`$as_dirname -- "$0" ||
1185 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1186 X"$0" : 'X\(//\)[^/]' \| \
1187 X"$0" : 'X\(//\)$' \| \
1188 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1189 echo X"$0" |
1190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)[^/].*/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\/\)$/{
1199 s//\1/
1200 q
1201 }
1202 /^X\(\/\).*/{
1203 s//\1/
1204 q
1205 }
1206 s/.*/./; q'`
1207 srcdir=$ac_confdir
1208 if test ! -r "$srcdir/$ac_unique_file"; then
1209 srcdir=..
1210 fi
1211 else
1212 ac_srcdir_defaulted=no
1213 fi
1214 if test ! -r "$srcdir/$ac_unique_file"; then
1215 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1216 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1217 { (exit 1); exit 1; }; }
1218 fi
1219 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1220 ac_abs_confdir=`(
1221 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1222 { (exit 1); exit 1; }; }
1223 pwd)`
1224 # When building in place, set srcdir=.
1225 if test "$ac_abs_confdir" = "$ac_pwd"; then
1226 srcdir=.
1227 fi
1228 # Remove unnecessary trailing slashes from srcdir.
1229 # Double slashes in file names in object file debugging info
1230 # mess up M-x gdb in Emacs.
1231 case $srcdir in
1232 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233 esac
1234 for ac_var in $ac_precious_vars; do
1235 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1236 eval ac_env_${ac_var}_value=\$${ac_var}
1237 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239 done
1240
1241 #
1242 # Report the --help message.
1243 #
1244 if test "$ac_init_help" = "long"; then
1245 # Omit some internal or obsolete options to make the list less imposing.
1246 # This message is too long to be a string in the A/UX 3.1 sh.
1247 cat <<_ACEOF
1248 \`configure' configures this package to adapt to many kinds of systems.
1249
1250 Usage: $0 [OPTION]... [VAR=VALUE]...
1251
1252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253 VAR=VALUE. See below for descriptions of some of the useful variables.
1254
1255 Defaults for the options are specified in brackets.
1256
1257 Configuration:
1258 -h, --help display this help and exit
1259 --help=short display options specific to this package
1260 --help=recursive display the short help of all the included packages
1261 -V, --version display version information and exit
1262 -q, --quiet, --silent do not print \`checking...' messages
1263 --cache-file=FILE cache test results in FILE [disabled]
1264 -C, --config-cache alias for \`--cache-file=config.cache'
1265 -n, --no-create do not create output files
1266 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267
1268 Installation directories:
1269 --prefix=PREFIX install architecture-independent files in PREFIX
1270 [$ac_default_prefix]
1271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1272 [PREFIX]
1273
1274 By default, \`make install' will install all the files in
1275 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1276 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277 for instance \`--prefix=\$HOME'.
1278
1279 For better control, use the options below.
1280
1281 Fine tuning of the installation directories:
1282 --bindir=DIR user executables [EPREFIX/bin]
1283 --sbindir=DIR system admin executables [EPREFIX/sbin]
1284 --libexecdir=DIR program executables [EPREFIX/libexec]
1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1288 --libdir=DIR object code libraries [EPREFIX/lib]
1289 --includedir=DIR C header files [PREFIX/include]
1290 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1291 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1292 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1293 --infodir=DIR info documentation [DATAROOTDIR/info]
1294 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1295 --mandir=DIR man documentation [DATAROOTDIR/man]
1296 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1297 --htmldir=DIR html documentation [DOCDIR]
1298 --dvidir=DIR dvi documentation [DOCDIR]
1299 --pdfdir=DIR pdf documentation [DOCDIR]
1300 --psdir=DIR ps documentation [DOCDIR]
1301 _ACEOF
1302
1303 cat <<\_ACEOF
1304
1305 Program names:
1306 --program-prefix=PREFIX prepend PREFIX to installed program names
1307 --program-suffix=SUFFIX append SUFFIX to installed program names
1308 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1309
1310 X features:
1311 --x-includes=DIR X include files are in DIR
1312 --x-libraries=DIR X library files are in DIR
1313
1314 System types:
1315 --build=BUILD configure for building on BUILD [guessed]
1316 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1317 _ACEOF
1318 fi
1319
1320 if test -n "$ac_init_help"; then
1321
1322 cat <<\_ACEOF
1323
1324 Optional Features:
1325 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1326 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1327 --enable-carbon-app[=DIR]
1328 specify install directory for Emacs.app on Mac OS X
1329 [DIR=/Application]
1330 --enable-font-backend compile code of font-backend support
1331 --enable-asserts compile code with asserts enabled
1332 --enable-maintainer-mode
1333 enable make rules and dependencies not useful (and
1334 sometimes confusing) to the casual installer
1335 --enable-locallisppath=PATH
1336 directories Emacs should search for lisp files
1337 specific to this site
1338 --disable-largefile omit support for large files
1339
1340 Optional Packages:
1341 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1342 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1343 --without-gcc don't use GCC to compile Emacs if GCC is found
1344 --without-pop don't support POP mail retrieval with movemail
1345 --with-kerberos support Kerberos-authenticated POP
1346 --with-kerberos5 support Kerberos version 5 authenticated POP
1347 --with-hesiod support Hesiod to get the POP server host
1348 --without-sound don't compile with sound support
1349 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1350 motif, gtk, no)
1351 --with-xpm use -lXpm for displaying XPM images
1352 --with-jpeg use -ljpeg for displaying JPEG images
1353 --with-tiff use -ltiff for displaying TIFF images
1354 --with-gif use -lgif (or -lungif) for displaying GIF images
1355 --with-png use -lpng for displaying PNG images
1356 --with-freetype use -lfreetype for local fonts support
1357 --with-xft use -lXft for anti aliased fonts
1358 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1359 --with-rsvg use -lrsvg-2 for displaying SVG images
1360 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1361 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1362 --without-toolkit-scroll-bars
1363 don't use Motif or Xaw3d scroll bars
1364 --without-xaw3d don't use Xaw3d
1365 --without-xim don't use X11 XIM
1366 --without-carbon don't use Carbon GUI on Mac OS X
1367 --with-x use the X Window System
1368
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1378 XMKMF Path to xmkmf, Makefile generator for X Window System
1379
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1382
1383 _ACEOF
1384 ac_status=$?
1385 fi
1386
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" || continue
1391 ac_builddir=.
1392
1393 case "$ac_dir" in
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *)
1396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 esac ;;
1403 esac
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1408
1409 case $srcdir in
1410 .) # We are building in place.
1411 ac_srcdir=.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1418 *) # Relative name.
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422 esac
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1433 else
1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 fi || ac_status=$?
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1437 done
1438 fi
1439
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1442 cat <<\_ACEOF
1443 configure
1444 generated by GNU Autoconf 2.61
1445
1446 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1447 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1450 _ACEOF
1451 exit
1452 fi
1453 cat >config.log <<_ACEOF
1454 This file contains any messages produced by compilers while
1455 running configure, to aid debugging if configure makes a mistake.
1456
1457 It was created by $as_me, which was
1458 generated by GNU Autoconf 2.61. Invocation command line was
1459
1460 $ $0 $@
1461
1462 _ACEOF
1463 exec 5>>config.log
1464 {
1465 cat <<_ASUNAME
1466 ## --------- ##
1467 ## Platform. ##
1468 ## --------- ##
1469
1470 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1471 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1475
1476 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1477 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1478
1479 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1480 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1481 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1482 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1483 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1484 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1485 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1486
1487 _ASUNAME
1488
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1491 do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 echo "PATH: $as_dir"
1495 done
1496 IFS=$as_save_IFS
1497
1498 } >&5
1499
1500 cat >&5 <<_ACEOF
1501
1502
1503 ## ----------- ##
1504 ## Core tests. ##
1505 ## ----------- ##
1506
1507 _ACEOF
1508
1509
1510 # Keep a trace of the command line.
1511 # Strip out --no-create and --no-recursion so they do not pile up.
1512 # Strip out --silent because we don't want to record it for future runs.
1513 # Also quote any args containing shell meta-characters.
1514 # Make two passes to allow for proper duplicate-argument suppression.
1515 ac_configure_args=
1516 ac_configure_args0=
1517 ac_configure_args1=
1518 ac_must_keep_next=false
1519 for ac_pass in 1 2
1520 do
1521 for ac_arg
1522 do
1523 case $ac_arg in
1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526 | -silent | --silent | --silen | --sile | --sil)
1527 continue ;;
1528 *\'*)
1529 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1530 esac
1531 case $ac_pass in
1532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1533 2)
1534 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1535 if test $ac_must_keep_next = true; then
1536 ac_must_keep_next=false # Got value, back to normal.
1537 else
1538 case $ac_arg in
1539 *=* | --config-cache | -C | -disable-* | --disable-* \
1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542 | -with-* | --with-* | -without-* | --without-* | --x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545 esac
1546 ;;
1547 -* ) ac_must_keep_next=true ;;
1548 esac
1549 fi
1550 ac_configure_args="$ac_configure_args '$ac_arg'"
1551 ;;
1552 esac
1553 done
1554 done
1555 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1557
1558 # When interrupted or exit'd, cleanup temporary files, and complete
1559 # config.log. We remove comments because anyway the quotes in there
1560 # would cause problems or look ugly.
1561 # WARNING: Use '\'' to represent an apostrophe within the trap.
1562 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563 trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
1565 {
1566 echo
1567
1568 cat <<\_ASBOX
1569 ## ---------------- ##
1570 ## Cache variables. ##
1571 ## ---------------- ##
1572 _ASBOX
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
1575 (
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
1586 *) $as_unset $ac_var ;;
1587 esac ;;
1588 esac
1589 done
1590 (set) 2>&1 |
1591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
1593 sed -n \
1594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 ;; #(
1597 *)
1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1599 ;;
1600 esac |
1601 sort
1602 )
1603 echo
1604
1605 cat <<\_ASBOX
1606 ## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##
1609 _ASBOX
1610 echo
1611 for ac_var in $ac_subst_vars
1612 do
1613 eval ac_val=\$$ac_var
1614 case $ac_val in
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 esac
1617 echo "$ac_var='\''$ac_val'\''"
1618 done | sort
1619 echo
1620
1621 if test -n "$ac_subst_files"; then
1622 cat <<\_ASBOX
1623 ## ------------------- ##
1624 ## File substitutions. ##
1625 ## ------------------- ##
1626 _ASBOX
1627 echo
1628 for ac_var in $ac_subst_files
1629 do
1630 eval ac_val=\$$ac_var
1631 case $ac_val in
1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633 esac
1634 echo "$ac_var='\''$ac_val'\''"
1635 done | sort
1636 echo
1637 fi
1638
1639 if test -s confdefs.h; then
1640 cat <<\_ASBOX
1641 ## ----------- ##
1642 ## confdefs.h. ##
1643 ## ----------- ##
1644 _ASBOX
1645 echo
1646 cat confdefs.h
1647 echo
1648 fi
1649 test "$ac_signal" != 0 &&
1650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
1652 } >&5
1653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655 exit $exit_status
1656 ' 0
1657 for ac_signal in 1 2 13 15; do
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1659 done
1660 ac_signal=0
1661
1662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1663 rm -f -r conftest* confdefs.h
1664
1665 # Predefined preprocessor variables.
1666
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_NAME "$PACKAGE_NAME"
1669 _ACEOF
1670
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1674 _ACEOF
1675
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1679 _ACEOF
1680
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_STRING "$PACKAGE_STRING"
1684 _ACEOF
1685
1686
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1689 _ACEOF
1690
1691
1692 # Let the site file select an alternate cache file if it wants to.
1693 # Prefer explicitly selected file to automatically selected ones.
1694 if test -n "$CONFIG_SITE"; then
1695 set x "$CONFIG_SITE"
1696 elif test "x$prefix" != xNONE; then
1697 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1698 else
1699 set x "$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
1701 fi
1702 shift
1703 for ac_site_file
1704 do
1705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707 echo "$as_me: loading site script $ac_site_file" >&6;}
1708 sed 's/^/| /' "$ac_site_file" >&5
1709 . "$ac_site_file"
1710 fi
1711 done
1712
1713 if test -r "$cache_file"; then
1714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718 echo "$as_me: loading cache $cache_file" >&6;}
1719 case $cache_file in
1720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721 *) . "./$cache_file";;
1722 esac
1723 fi
1724 else
1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726 echo "$as_me: creating cache $cache_file" >&6;}
1727 >$cache_file
1728 fi
1729
1730 ac_header_list="$ac_header_list sys/time.h"
1731 ac_header_list="$ac_header_list unistd.h"
1732 ac_func_list="$ac_func_list alarm"
1733 # Check that the precious variables saved in the cache have kept the same
1734 # value.
1735 ac_cache_corrupted=false
1736 for ac_var in $ac_precious_vars; do
1737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1738 eval ac_new_set=\$ac_env_${ac_var}_set
1739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1740 eval ac_new_val=\$ac_env_${ac_var}_value
1741 case $ac_old_set,$ac_new_set in
1742 set,)
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1744 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1746 ,set)
1747 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1748 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1749 ac_cache_corrupted=: ;;
1750 ,);;
1751 *)
1752 if test "x$ac_old_val" != "x$ac_new_val"; then
1753 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1754 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1755 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1756 echo "$as_me: former value: $ac_old_val" >&2;}
1757 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1758 echo "$as_me: current value: $ac_new_val" >&2;}
1759 ac_cache_corrupted=:
1760 fi;;
1761 esac
1762 # Pass precious variables to config.status.
1763 if test "$ac_new_set" = set; then
1764 case $ac_new_val in
1765 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 *) ac_arg=$ac_var=$ac_new_val ;;
1767 esac
1768 case " $ac_configure_args " in
1769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1770 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1771 esac
1772 fi
1773 done
1774 if $ac_cache_corrupted; then
1775 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1776 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1777 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1778 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1779 { (exit 1); exit 1; }; }
1780 fi
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798 ac_ext=c
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803
1804
1805 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1806
1807
1808 test "$program_prefix" != NONE &&
1809 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1810 # Use a double $ so make ignores it.
1811 test "$program_suffix" != NONE &&
1812 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1813 # Double any \ or $. echo might interpret backslashes.
1814 # By default was `s,x,x', remove it if useless.
1815 cat <<\_ACEOF >conftest.sed
1816 s/[\\$]/&&/g;s/;s,x,x,$//
1817 _ACEOF
1818 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1819 rm -f conftest.sed
1820
1821
1822 lispdir='${datadir}/emacs/${version}/lisp'
1823 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1824 '${datadir}/emacs/site-lisp'
1825 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1826 etcdir='${datadir}/emacs/${version}/etc'
1827 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1828 docdir='${datadir}/emacs/${version}/etc'
1829 gamedir='${localstatedir}/games/emacs'
1830
1831 gameuser=games
1832
1833
1834
1835 # Check whether --with-gcc was given.
1836 if test "${with_gcc+set}" = set; then
1837 withval=$with_gcc;
1838 fi
1839
1840
1841
1842 # Check whether --with-pop was given.
1843 if test "${with_pop+set}" = set; then
1844 withval=$with_pop; if test "$withval" = yes; then
1845 cat >>confdefs.h <<\_ACEOF
1846 #define MAIL_USE_POP 1
1847 _ACEOF
1848
1849 else :
1850 fi
1851 else
1852 cat >>confdefs.h <<\_ACEOF
1853 #define MAIL_USE_POP 1
1854 _ACEOF
1855
1856 fi
1857
1858
1859
1860
1861 # Check whether --with-kerberos was given.
1862 if test "${with_kerberos+set}" = set; then
1863 withval=$with_kerberos; if test "$withval" = yes; then
1864 cat >>confdefs.h <<\_ACEOF
1865 #define KERBEROS 1
1866 _ACEOF
1867
1868 fi
1869 fi
1870
1871
1872
1873
1874 # Check whether --with-kerberos5 was given.
1875 if test "${with_kerberos5+set}" = set; then
1876 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1877 if test "${with_kerberos+set}" != set; then
1878 with_kerberos=yes
1879 cat >>confdefs.h <<\_ACEOF
1880 #define KERBEROS 1
1881 _ACEOF
1882
1883 fi
1884
1885 cat >>confdefs.h <<\_ACEOF
1886 #define KERBEROS5 1
1887 _ACEOF
1888
1889 fi
1890 fi
1891
1892
1893
1894 # Check whether --with-hesiod was given.
1895 if test "${with_hesiod+set}" = set; then
1896 withval=$with_hesiod; if test "$withval" = yes; then
1897
1898 cat >>confdefs.h <<\_ACEOF
1899 #define HESIOD 1
1900 _ACEOF
1901
1902 fi
1903 fi
1904
1905
1906
1907 # Check whether --with-sound was given.
1908 if test "${with_sound+set}" = set; then
1909 withval=$with_sound;
1910 fi
1911
1912
1913
1914 # Check whether --with-x-toolkit was given.
1915 if test "${with_x_toolkit+set}" = set; then
1916 withval=$with_x_toolkit; case "${withval}" in
1917 y | ye | yes ) val=gtk ;;
1918 n | no ) val=no ;;
1919 l | lu | luc | luci | lucid ) val=lucid ;;
1920 a | at | ath | athe | athen | athena ) val=athena ;;
1921 m | mo | mot | moti | motif ) val=motif ;;
1922 g | gt | gtk ) val=gtk ;;
1923 * )
1924 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1925 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1926 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1927 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1928 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1929 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1930 { (exit 1); exit 1; }; }
1931 ;;
1932 esac
1933 with_x_toolkit=$val
1934
1935 fi
1936
1937
1938
1939 # Check whether --with-xpm was given.
1940 if test "${with_xpm+set}" = set; then
1941 withval=$with_xpm;
1942 fi
1943
1944
1945 # Check whether --with-jpeg was given.
1946 if test "${with_jpeg+set}" = set; then
1947 withval=$with_jpeg;
1948 fi
1949
1950
1951 # Check whether --with-tiff was given.
1952 if test "${with_tiff+set}" = set; then
1953 withval=$with_tiff;
1954 fi
1955
1956
1957 # Check whether --with-gif was given.
1958 if test "${with_gif+set}" = set; then
1959 withval=$with_gif;
1960 fi
1961
1962
1963 # Check whether --with-png was given.
1964 if test "${with_png+set}" = set; then
1965 withval=$with_png;
1966 fi
1967
1968
1969 # Check whether --with-freetype was given.
1970 if test "${with_freetype+set}" = set; then
1971 withval=$with_freetype;
1972 fi
1973
1974
1975 # Check whether --with-xft was given.
1976 if test "${with_xft+set}" = set; then
1977 withval=$with_xft;
1978 fi
1979
1980
1981 # Check whether --with-gpm was given.
1982 if test "${with_gpm+set}" = set; then
1983 withval=$with_gpm;
1984 fi
1985
1986
1987 # Check whether --with-rsvg was given.
1988 if test "${with_rsvg+set}" = set; then
1989 withval=$with_rsvg;
1990 fi
1991
1992
1993 # Check whether --with-gtk was given.
1994 if test "${with_gtk+set}" = set; then
1995 withval=$with_gtk;
1996 fi
1997
1998
1999 # Check whether --with-pkg-config-prog was given.
2000 if test "${with_pkg_config_prog+set}" = set; then
2001 withval=$with_pkg_config_prog;
2002 fi
2003
2004
2005 # Check whether --with-toolkit-scroll-bars was given.
2006 if test "${with_toolkit_scroll_bars+set}" = set; then
2007 withval=$with_toolkit_scroll_bars;
2008 fi
2009
2010
2011 # Check whether --with-xaw3d was given.
2012 if test "${with_xaw3d+set}" = set; then
2013 withval=$with_xaw3d;
2014 fi
2015
2016
2017 # Check whether --with-xim was given.
2018 if test "${with_xim+set}" = set; then
2019 withval=$with_xim;
2020 fi
2021
2022
2023 # Check whether --with-carbon was given.
2024 if test "${with_carbon+set}" = set; then
2025 withval=$with_carbon;
2026 fi
2027
2028
2029 # Check whether --enable-carbon-app was given.
2030 if test "${enable_carbon_app+set}" = set; then
2031 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2032 fi
2033
2034
2035 # Check whether --enable-font-backend was given.
2036 if test "${enable_font_backend+set}" = set; then
2037 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2038 else
2039 USE_FONT_BACKEND=no
2040 fi
2041
2042
2043 # Check whether --enable-asserts was given.
2044 if test "${enable_asserts+set}" = set; then
2045 enableval=$enable_asserts; USE_XASSERTS=$enableval
2046 else
2047 USE_XASSERTS=no
2048 fi
2049
2050
2051 # Check whether --enable-maintainer-mode was given.
2052 if test "${enable_maintainer_mode+set}" = set; then
2053 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2054 else
2055 USE_MAINTAINER_MODE=no
2056 fi
2057
2058 if test $USE_MAINTAINER_MODE = yes; then
2059 MAINT=
2060 else
2061 MAINT=#
2062 fi
2063
2064
2065 # Check whether --enable-locallisppath was given.
2066 if test "${enable_locallisppath+set}" = set; then
2067 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2068 locallisppath=
2069 elif test "${enableval}" != "yes"; then
2070 locallisppath=${enableval}
2071 fi
2072 fi
2073
2074
2075 #### Make srcdir absolute, if it isn't already. It's important to
2076 #### avoid running the path through pwd unnecessarily, since pwd can
2077 #### give you automounter prefixes, which can go away. We do all this
2078 #### so Emacs can find its files when run uninstalled.
2079 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2080 unset CDPATH
2081 case "${srcdir}" in
2082 /* ) ;;
2083 . )
2084 ## We may be able to use the $PWD environment variable to make this
2085 ## absolute. But sometimes PWD is inaccurate.
2086 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2087 ## but that tested only for a well-formed and valid PWD,
2088 ## it did not object when PWD was well-formed and valid but just wrong.
2089 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2090 then
2091 srcdir="$PWD"
2092 else
2093 srcdir="`(cd ${srcdir}; pwd)`"
2094 fi
2095 ;;
2096 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2097 esac
2098
2099 #### Check if the source directory already has a configured system in it.
2100 if test `pwd` != `(cd ${srcdir} && pwd)` \
2101 && test -f "${srcdir}/src/config.h" ; then
2102 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2103 as a build directory right now; it has been configured in its own
2104 right. To configure in another directory as well, you MUST
2105 use GNU make. If you do not have GNU make, then you must
2106 now do \`make distclean' in ${srcdir},
2107 and then run $0 again." >&5
2108 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2109 as a build directory right now; it has been configured in its own
2110 right. To configure in another directory as well, you MUST
2111 use GNU make. If you do not have GNU make, then you must
2112 now do \`make distclean' in ${srcdir},
2113 and then run $0 again." >&2;}
2114 fi
2115
2116 #### Given the configuration name, set machfile and opsysfile to the
2117 #### names of the m/*.h and s/*.h files we should use.
2118
2119 ### Canonicalize the configuration name.
2120
2121 ac_aux_dir=
2122 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2123 if test -f "$ac_dir/install-sh"; then
2124 ac_aux_dir=$ac_dir
2125 ac_install_sh="$ac_aux_dir/install-sh -c"
2126 break
2127 elif test -f "$ac_dir/install.sh"; then
2128 ac_aux_dir=$ac_dir
2129 ac_install_sh="$ac_aux_dir/install.sh -c"
2130 break
2131 elif test -f "$ac_dir/shtool"; then
2132 ac_aux_dir=$ac_dir
2133 ac_install_sh="$ac_aux_dir/shtool install -c"
2134 break
2135 fi
2136 done
2137 if test -z "$ac_aux_dir"; then
2138 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2139 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2140 { (exit 1); exit 1; }; }
2141 fi
2142
2143 # These three variables are undocumented and unsupported,
2144 # and are intended to be withdrawn in a future Autoconf release.
2145 # They can cause serious problems if a builder's source tree is in a directory
2146 # whose full name contains unusual characters.
2147 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2148 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2149 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2150
2151
2152 # Make sure we can run config.sub.
2153 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2154 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2155 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2156 { (exit 1); exit 1; }; }
2157
2158 { echo "$as_me:$LINENO: checking build system type" >&5
2159 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2160 if test "${ac_cv_build+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 ac_build_alias=$build_alias
2164 test "x$ac_build_alias" = x &&
2165 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2166 test "x$ac_build_alias" = x &&
2167 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2168 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2169 { (exit 1); exit 1; }; }
2170 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2172 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2173 { (exit 1); exit 1; }; }
2174
2175 fi
2176 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2177 echo "${ECHO_T}$ac_cv_build" >&6; }
2178 case $ac_cv_build in
2179 *-*-*) ;;
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2181 echo "$as_me: error: invalid value of canonical build" >&2;}
2182 { (exit 1); exit 1; }; };;
2183 esac
2184 build=$ac_cv_build
2185 ac_save_IFS=$IFS; IFS='-'
2186 set x $ac_cv_build
2187 shift
2188 build_cpu=$1
2189 build_vendor=$2
2190 shift; shift
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2193 build_os=$*
2194 IFS=$ac_save_IFS
2195 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2196
2197
2198 { echo "$as_me:$LINENO: checking host system type" >&5
2199 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2200 if test "${ac_cv_host+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203 if test "x$host_alias" = x; then
2204 ac_cv_host=$ac_cv_build
2205 else
2206 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2207 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2208 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2209 { (exit 1); exit 1; }; }
2210 fi
2211
2212 fi
2213 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2214 echo "${ECHO_T}$ac_cv_host" >&6; }
2215 case $ac_cv_host in
2216 *-*-*) ;;
2217 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2218 echo "$as_me: error: invalid value of canonical host" >&2;}
2219 { (exit 1); exit 1; }; };;
2220 esac
2221 host=$ac_cv_host
2222 ac_save_IFS=$IFS; IFS='-'
2223 set x $ac_cv_host
2224 shift
2225 host_cpu=$1
2226 host_vendor=$2
2227 shift; shift
2228 # Remember, the first character of IFS is used to create $*,
2229 # except with old shells:
2230 host_os=$*
2231 IFS=$ac_save_IFS
2232 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2233
2234
2235 canonical=$host
2236 configuration=${host_alias-${build_alias-$host}}
2237
2238
2239
2240 ### If you add support for a new configuration, add code to this
2241 ### switch statement to recognize your configuration name and select
2242 ### the appropriate operating system and machine description files.
2243
2244 ### You would hope that you could choose an m/*.h file pretty much
2245 ### based on the machine portion of the configuration name, and an s-
2246 ### file based on the operating system portion. However, it turns out
2247 ### that each m/*.h file is pretty manufacturer-specific - for
2248 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2249 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2250 ### machines. So we basically have to have a special case for each
2251 ### configuration name.
2252 ###
2253 ### As far as handling version numbers on operating systems is
2254 ### concerned, make sure things will fail in a fixable way. If
2255 ### /etc/MACHINES doesn't say anything about version numbers, be
2256 ### prepared to handle anything reasonably. If version numbers
2257 ### matter, be sure /etc/MACHINES says something about it.
2258 ###
2259 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2260 ### "System V Release 4"; he writes, "The old convention encouraged
2261 ### confusion between `system' and `release' levels'."
2262
2263 machine='' opsys='' unported=no
2264 case "${canonical}" in
2265
2266 ## FreeBSD ports
2267 *-*-freebsd* )
2268 opsys=freebsd
2269 case "${canonical}" in
2270 alpha*-*-freebsd*) machine=alpha ;;
2271 ia64-*-freebsd*) machine=ia64 ;;
2272 sparc64-*-freebsd*) machine=sparc ;;
2273 powerpc-*-freebsd*) machine=macppc ;;
2274 i[3456]86-*-freebsd*) machine=intel386 ;;
2275 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2276 esac
2277 ;;
2278
2279 ## NetBSD ports
2280 *-*-netbsd* )
2281 opsys=netbsd
2282 if test -f /usr/lib/crti.o; then
2283
2284 cat >>confdefs.h <<\_ACEOF
2285 #define HAVE_CRTIN
2286 _ACEOF
2287
2288 fi
2289
2290 case "${canonical}" in
2291 alpha*-*-netbsd*) machine=alpha ;;
2292 i[3456]86-*-netbsd*) machine=intel386 ;;
2293 m68k-*-netbsd*)
2294 # This is somewhat bogus.
2295 machine=hp9000s300 ;;
2296 mips-*-netbsd*) machine=pmax ;;
2297 mipsel-*-netbsd*) machine=pmax ;;
2298 mipseb-*-netbsd*) machine=pmax ;;
2299 ns32k-*-netbsd*) machine=ns32000 ;;
2300 powerpc-*-netbsd*) machine=macppc ;;
2301 sparc*-*-netbsd*) machine=sparc ;;
2302 vax-*-netbsd*) machine=vax ;;
2303 arm-*-netbsd*) machine=arm ;;
2304 x86_64-*-netbsd*) machine=amdx86-64 ;;
2305 hppa-*-netbsd*) machine=hp800 ;;
2306 shle-*-netbsd*) machine=sh3el ;;
2307 esac
2308 ;;
2309
2310 ## OpenBSD ports
2311 *-*-openbsd* )
2312 opsys=openbsd
2313 case "${canonical}" in
2314 alpha*-*-openbsd*) machine=alpha ;;
2315 arm-*-openbsd*) machine=arm ;;
2316 hppa-*-openbsd*) machine=hp9000s300 ;;
2317 i386-*-openbsd*) machine=intel386 ;;
2318 m68k-*-openbsd*) machine=hp9000s300 ;;
2319 m88k-*-openbsd*) machine=aviion ;;
2320 mips64-*-openbsd*) machine=mips64 ;;
2321 powerpc-*-openbsd*) machine=macppc ;;
2322 sh-*-openbsd*) machine=sh3el ;;
2323 sparc*-*-openbsd*) machine=sparc ;;
2324 vax-*-openbsd*) machine=vax ;;
2325 x86_64-*-openbsd*) machine=amdx86-64 ;;
2326 esac
2327 ;;
2328
2329 ## LynxOS ports
2330 *-*-lynxos* )
2331 opsys=lynxos
2332 case "${canonical}" in
2333 i[3456]86-*-lynxos*) machine=intel386 ;;
2334 powerpc-*-lynxos*) machine=powerpc ;;
2335 esac
2336 ;;
2337
2338 ## Acorn RISCiX:
2339 arm-acorn-riscix1.1* )
2340 machine=acorn opsys=riscix1-1
2341 ;;
2342 arm-acorn-riscix1.2* | arm-acorn-riscix )
2343 ## This name is riscix12 instead of riscix1.2
2344 ## to avoid a file name conflict on MSDOS.
2345 machine=acorn opsys=riscix12
2346 ;;
2347
2348 ## BSDI ports
2349 *-*-bsdi* )
2350 opsys=bsdi
2351 case "${canonical}" in
2352 i[345]86-*-bsdi*) machine=intel386 ;;
2353 sparc-*-bsdi*) machine=sparc ;;
2354 powerpc-*-bsdi*) machine=macppc ;;
2355 esac
2356 case "${canonical}" in
2357 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2358 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2359 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2360 *-*-bsdi3* ) opsys=bsdos3 ;;
2361 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2362 esac
2363 ;;
2364
2365 ## Alliant machines
2366 ## Strictly speaking, we need the version of the alliant operating
2367 ## system to choose the right machine file, but currently the
2368 ## configuration name doesn't tell us enough to choose the right
2369 ## one; we need to give alliants their own operating system name to
2370 ## do this right. When someone cares, they can help us.
2371 fx80-alliant-* )
2372 machine=alliant4 opsys=bsd4-2
2373 ;;
2374 i860-alliant-* )
2375 machine=alliant-2800 opsys=bsd4-3
2376 ;;
2377
2378 ## Alpha (DEC) machines.
2379 alpha*-dec-osf* )
2380 machine=alpha opsys=osf1
2381 # This is needed to find X11R6.1 libraries for certain tests.
2382 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2383 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2384 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2385 # due to non-traditional preprocessing with the current compiler
2386 # defaults. OSF 4 can also have that compiler version, and there
2387 # seems always to have been a usable /usr/bin/cpp.
2388 NON_GNU_CPP=/usr/bin/cpp
2389 case "${canonical}" in
2390 alpha*-dec-osf[5-9]*)
2391 opsys=osf5-0 ;;
2392 esac
2393 ;;
2394
2395 alpha*-*-linux-gnu* )
2396 machine=alpha opsys=gnu-linux
2397 ;;
2398
2399 arm*-*-linux-gnu* )
2400 machine=arm opsys=gnu-linux
2401 ;;
2402
2403 ## Altos 3068
2404 m68*-altos-sysv* )
2405 machine=altos opsys=usg5-2
2406 ;;
2407
2408 ## Amdahl UTS
2409 580-amdahl-sysv* )
2410 machine=amdahl opsys=usg5-2-2
2411 ;;
2412
2413 ## Apollo, Domain/OS
2414 m68*-apollo-* )
2415 machine=apollo opsys=bsd4-3
2416 ;;
2417
2418 ## Apple Darwin / Mac OS X
2419 *-apple-darwin* )
2420 case "${canonical}" in
2421 i[3456]86-* ) machine=intel386 ;;
2422 powerpc-* ) machine=powermac ;;
2423 * ) unported=yes ;;
2424 esac
2425 opsys=darwin
2426 # Define CPP as follows to make autoconf work correctly.
2427 CPP="${CC-cc} -E -no-cpp-precomp"
2428 # Use fink packages if available.
2429 if test -d /sw/include && test -d /sw/lib; then
2430 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2431 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2432 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2433 fi
2434 ;;
2435
2436 ## AT&T 3b2, 3b5, 3b15, 3b20
2437 we32k-att-sysv* )
2438 machine=att3b opsys=usg5-2-2
2439 ;;
2440
2441 ## AT&T 3b1 - The Mighty Unix PC!
2442 m68*-att-sysv* )
2443 machine=7300 opsys=usg5-2-2
2444 ;;
2445
2446 ## Bull dpx20
2447 rs6000-bull-bosx* )
2448 machine=ibmrs6000 opsys=aix3-2
2449 ;;
2450
2451 ## Bull dpx2
2452 m68*-bull-sysv3* )
2453 machine=dpx2 opsys=usg5-3
2454 ;;
2455
2456 ## Bull sps7
2457 m68*-bull-sysv2* )
2458 machine=sps7 opsys=usg5-2
2459 ;;
2460
2461 ## CCI 5/32, 6/32 -- see "Tahoe".
2462
2463 ## Celerity
2464 ## I don't know what configuration name to use for this; config.sub
2465 ## doesn't seem to know anything about it. Hey, Celerity users, get
2466 ## in touch with us!
2467 celerity-celerity-bsd* )
2468 machine=celerity opsys=bsd4-2
2469 ;;
2470
2471 ## Clipper
2472 ## What operating systems does this chip run that Emacs has been
2473 ## tested on?
2474 clipper-* )
2475 machine=clipper
2476 ## We'll use the catch-all code at the bottom to guess the
2477 ## operating system.
2478 ;;
2479
2480 ## Compaq Nonstop
2481 mips-compaq-nonstopux* )
2482 machine=nonstopux opsys=nonstopux
2483 ;;
2484
2485 ## Convex
2486 *-convex-bsd* | *-convex-convexos* )
2487 machine=convex opsys=bsd4-3
2488 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2489 NON_GNU_CPP="cc -E -P"
2490 ;;
2491
2492 ## Cubix QBx/386
2493 i[3456]86-cubix-sysv* )
2494 machine=intel386 opsys=usg5-3
2495 ;;
2496
2497 ## Cydra 5
2498 cydra*-cydrome-sysv* )
2499 machine=cydra5 opsys=usg5-3
2500 ;;
2501
2502 ## Data General AViiON Machines
2503 ## DG changed naming conventions with the release of 5.4.4.10, they
2504 ## dropped the initial 5.4 but left the intervening R. Because of the
2505 ## R this shouldn't conflict with older versions of the OS (which I
2506 ## think were named like dgux4.*). In addition, DG new AViiONs series
2507 ## uses either Motorola M88k or Intel Pentium CPUs.
2508 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2509 machine=aviion opsys=dgux4
2510 ;;
2511 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2512 ## This name is dgux5-4-3 instead of dgux5-4r3
2513 ## to avoid a file name conflict on MSDOS.
2514 machine=aviion opsys=dgux5-4-3
2515 ;;
2516 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2517 machine=aviion opsys=dgux5-4r2
2518 ;;
2519 m88k-dg-dgux* )
2520 machine=aviion opsys=dgux
2521 ;;
2522
2523 ## Data General AViiON Intel (x86) Machines
2524 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2525 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2526 i[345]86-dg-dguxR4* )
2527 machine=aviion-intel opsys=dgux4
2528 ;;
2529
2530 ## DECstations
2531 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2532 machine=pmax opsys=bsd4-2
2533 ;;
2534 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2535 machine=pmax opsys=bsd4-3
2536 ;;
2537 mips-dec-ultrix* )
2538 machine=pmax opsys=ultrix4-3
2539 ;;
2540 mips-dec-osf* )
2541 machine=pmax opsys=osf1
2542 ;;
2543 mips-dec-mach_bsd4.3* )
2544 machine=pmax opsys=mach-bsd4-3
2545 ;;
2546
2547 ## Motorola Delta machines
2548 m68k-motorola-sysv* | m68000-motorola-sysv* )
2549 machine=delta opsys=usg5-3
2550 if test -z "`type gnucc | grep 'not found'`"
2551 then
2552 if test -s /etc/167config
2553 then CC="gnucc -m68040"
2554 else CC="gnucc -m68881"
2555 fi
2556 else
2557 if test -z "`type gcc | grep 'not found'`"
2558 then CC=gcc
2559 else CC=cc
2560 fi
2561 fi
2562 ;;
2563 m88k-motorola-sysv4* )
2564 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2565 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2566 # I hope there are not other 4.0 versions for this machine
2567 # which really need usg5-4 instead.
2568 machine=delta88k opsys=usg5-4-2
2569 ;;
2570 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2571 machine=delta88k opsys=usg5-3
2572 ;;
2573
2574 ## Dual machines
2575 m68*-dual-sysv* )
2576 machine=dual opsys=usg5-2
2577 ;;
2578 m68*-dual-uniplus* )
2579 machine=dual opsys=unipl5-2
2580 ;;
2581
2582 ## Elxsi 6400
2583 elxsi-elxsi-sysv* )
2584 machine=elxsi opsys=usg5-2
2585 ;;
2586
2587 ## Encore machines
2588 ns16k-encore-bsd* )
2589 machine=ns16000 opsys=umax
2590 ;;
2591
2592 ## The GEC 63 - apparently, this port isn't really finished yet.
2593 # I'm sure we finished off the last of the machines, though. -- fx
2594
2595 ## Gould Power Node and NP1
2596 pn-gould-bsd4.2* )
2597 machine=gould opsys=bsd4-2
2598 ;;
2599 pn-gould-bsd4.3* )
2600 machine=gould opsys=bsd4-3
2601 ;;
2602 np1-gould-bsd* )
2603 machine=gould-np1 opsys=bsd4-3
2604 ;;
2605
2606 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2607 ## as far as Emacs is concerned).
2608 m88k-harris-cxux* )
2609 # Build needs to be different on 7.0 and later releases
2610 case "`uname -r`" in
2611 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2612 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2613 esac
2614 NON_GNU_CPP="/lib/cpp"
2615 ;;
2616 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2617 m68k-harris-cxux* )
2618 machine=nh3000 opsys=cxux
2619 ;;
2620 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2621 powerpc-harris-powerunix )
2622 machine=nh6000 opsys=powerunix
2623 NON_GNU_CPP="cc -Xo -E -P"
2624 ;;
2625 ## SR2001/SR2201 running HI-UX/MPP
2626 hppa1.1-hitachi-hiuxmpp* )
2627 machine=sr2k opsys=hiuxmpp
2628 ;;
2629 hppa1.1-hitachi-hiuxwe2* )
2630 machine=sr2k opsys=hiuxwe2
2631 ;;
2632 ## Honeywell XPS100
2633 xps*-honeywell-sysv* )
2634 machine=xps100 opsys=usg5-2
2635 ;;
2636
2637 ## HP 9000 series 200 or 300
2638 m68*-hp-bsd* )
2639 machine=hp9000s300 opsys=bsd4-3
2640 ;;
2641 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2642 m68*-hp-hpux* )
2643 case "`uname -r`" in
2644 ## Someone's system reports A.B8.05 for this.
2645 ## I wonder what other possibilities there are.
2646 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2647 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2648 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2649 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2650 *) machine=hp9000s300 opsys=hpux ;;
2651 esac
2652 ;;
2653
2654 ## HP 9000 series 700 and 800, running HP/UX
2655 hppa*-hp-hpux7* )
2656 machine=hp800 opsys=hpux
2657 ;;
2658 hppa*-hp-hpux8* )
2659 machine=hp800 opsys=hpux8
2660 ;;
2661 hppa*-hp-hpux9shr* )
2662 machine=hp800 opsys=hpux9shr
2663 ;;
2664 hppa*-hp-hpux9* )
2665 machine=hp800 opsys=hpux9
2666 ;;
2667 hppa*-hp-hpux10.2* )
2668 machine=hp800 opsys=hpux10-20
2669 ;;
2670 hppa*-hp-hpux10* )
2671 machine=hp800 opsys=hpux10
2672 ;;
2673 hppa*-hp-hpux1[1-9]* )
2674 machine=hp800 opsys=hpux11
2675 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2676 ;;
2677
2678 hppa*-*-linux-gnu* )
2679 machine=hp800 opsys=gnu-linux
2680 ;;
2681
2682 ## HP 9000 series 700 and 800, running HP/UX
2683 hppa*-hp-hpux* )
2684 ## Cross-compilation? Nah!
2685 case "`uname -r`" in
2686 ## Someone's system reports A.B8.05 for this.
2687 ## I wonder what other possibilities there are.
2688 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2689 *.08.* ) machine=hp800 opsys=hpux8 ;;
2690 *.09.* ) machine=hp800 opsys=hpux9 ;;
2691 *) machine=hp800 opsys=hpux10 ;;
2692 esac
2693 ;;
2694 hppa*-*-nextstep* )
2695 machine=hp800 opsys=nextstep
2696 ;;
2697
2698 ## Orion machines
2699 orion-orion-bsd* )
2700 machine=orion opsys=bsd4-2
2701 ;;
2702 clipper-orion-bsd* )
2703 machine=orion105 opsys=bsd4-2
2704 ;;
2705
2706 ## IBM machines
2707 i[3456]86-ibm-aix1.1* )
2708 machine=ibmps2-aix opsys=usg5-2-2
2709 ;;
2710 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2711 machine=ibmps2-aix opsys=usg5-3
2712 ;;
2713 i370-ibm-aix*)
2714 machine=ibm370aix opsys=usg5-3
2715 ;;
2716 s390-*-linux-gnu* )
2717 machine=ibms390 opsys=gnu-linux
2718 ;;
2719 s390x-*-linux-gnu* )
2720 machine=ibms390x opsys=gnu-linux
2721 ;;
2722 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2723 machine=ibmrs6000 opsys=aix3-1
2724 ;;
2725 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2726 machine=ibmrs6000 opsys=aix3-2-5
2727 ;;
2728 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2729 machine=ibmrs6000 opsys=aix4-1
2730 ;;
2731 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2732 machine=ibmrs6000 opsys=aix4-2
2733 ;;
2734 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2735 machine=ibmrs6000 opsys=aix4-2
2736 ;;
2737 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2738 machine=ibmrs6000 opsys=aix4-2
2739 ;;
2740 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2741 machine=ibmrs6000 opsys=aix4
2742 ;;
2743 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2744 machine=ibmrs6000 opsys=aix4-1
2745 ;;
2746 rs6000-ibm-aix* | powerpc-ibm-aix* )
2747 machine=ibmrs6000 opsys=aix3-2
2748 ;;
2749 romp-ibm-bsd4.3* )
2750 machine=ibmrt opsys=bsd4-3
2751 ;;
2752 romp-ibm-bsd4.2* )
2753 machine=ibmrt opsys=bsd4-2
2754 ;;
2755 romp-ibm-aos4.3* )
2756 machine=ibmrt opsys=bsd4-3
2757 ;;
2758 romp-ibm-aos4.2* )
2759 machine=ibmrt opsys=bsd4-2
2760 ;;
2761 romp-ibm-aos* )
2762 machine=ibmrt opsys=bsd4-3
2763 ;;
2764 romp-ibm-bsd* )
2765 machine=ibmrt opsys=bsd4-3
2766 ;;
2767 romp-ibm-aix* )
2768 machine=ibmrt-aix opsys=usg5-2-2
2769 ;;
2770
2771 ## Integrated Solutions `Optimum V'
2772 m68*-isi-bsd4.2* )
2773 machine=isi-ov opsys=bsd4-2
2774 ;;
2775 m68*-isi-bsd4.3* )
2776 machine=isi-ov opsys=bsd4-3
2777 ;;
2778
2779 ## Intel 386 machines where we do care about the manufacturer
2780 i[3456]86-intsys-sysv* )
2781 machine=is386 opsys=usg5-2-2
2782 ;;
2783
2784 ## Prime EXL
2785 i[3456]86-prime-sysv* )
2786 machine=i386 opsys=usg5-3
2787 ;;
2788
2789 ## Sequent Symmetry running Dynix
2790 i[3456]86-sequent-bsd* )
2791 machine=symmetry opsys=bsd4-3
2792 ;;
2793
2794 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2795 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2796 machine=sequent-ptx opsys=ptx4
2797 NON_GNU_CPP=/lib/cpp
2798 ;;
2799
2800 ## Sequent Symmetry running DYNIX/ptx
2801 ## Use the old cpp rather than the newer ANSI one.
2802 i[3456]86-sequent-ptx* )
2803 machine=sequent-ptx opsys=ptx
2804 NON_GNU_CPP="/lib/cpp"
2805 ;;
2806
2807 ## ncr machine running svr4.3.
2808 i[3456]86-ncr-sysv4.3 )
2809 machine=ncr386 opsys=usg5-4-3
2810 ;;
2811
2812 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2813 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2814 i[3456]86-ncr-sysv* )
2815 machine=ncr386 opsys=usg5-4-2
2816 ;;
2817
2818 ## Intel Paragon OSF/1
2819 i860-intel-osf1* )
2820 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2821 ;;
2822
2823 ## Intel 860
2824 i860-*-sysv4* )
2825 machine=i860 opsys=usg5-4
2826 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2827 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2828 ;;
2829
2830 ## Macintosh PowerPC
2831 powerpc*-*-linux-gnu* )
2832 machine=macppc opsys=gnu-linux
2833 ;;
2834
2835 ## Masscomp machines
2836 m68*-masscomp-rtu* )
2837 machine=masscomp opsys=rtu
2838 ;;
2839
2840 ## Megatest machines
2841 m68*-megatest-bsd* )
2842 machine=mega68 opsys=bsd4-2
2843 ;;
2844
2845 ## Workstations sold by MIPS
2846 ## This is not necessarily all workstations using the MIPS processor -
2847 ## Irises are produced by SGI, and DECstations by DEC.
2848
2849 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2850 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2851 ## it gives for choosing between the alternatives seems to be "Use
2852 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2853 ## the BSD world." I'll assume that these are instructions for
2854 ## handling two odd situations, and that every other situation
2855 ## should use mips.h and usg5-2-2, they being listed first.
2856 mips-mips-usg* )
2857 machine=mips4
2858 ## Fall through to the general code at the bottom to decide on the OS.
2859 ;;
2860 mips-mips-riscos4* )
2861 machine=mips4 opsys=bsd4-3
2862 NON_GNU_CC="cc -systype bsd43"
2863 NON_GNU_CPP="cc -systype bsd43 -E"
2864 ;;
2865 mips-mips-riscos5* )
2866 machine=mips4 opsys=riscos5
2867 NON_GNU_CC="cc -systype bsd43"
2868 NON_GNU_CPP="cc -systype bsd43 -E"
2869 ;;
2870 mips-mips-bsd* )
2871 machine=mips opsys=bsd4-3
2872 ;;
2873 mips-mips-* )
2874 machine=mips opsys=usg5-2-2
2875 ;;
2876
2877 ## NeXT
2878 m68*-next-* | m68k-*-nextstep* )
2879 machine=m68k opsys=nextstep
2880 ;;
2881
2882 ## The complete machine from National Semiconductor
2883 ns32k-ns-genix* )
2884 machine=ns32000 opsys=usg5-2
2885 ;;
2886
2887 ## NCR machines
2888 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2889 machine=tower32 opsys=usg5-2-2
2890 ;;
2891 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2892 machine=tower32v3 opsys=usg5-3
2893 ;;
2894
2895 ## NEC EWS4800
2896 mips-nec-sysv4*)
2897 machine=ews4800 opsys=ux4800
2898 ;;
2899
2900 ## Nixdorf Targon 31
2901 m68*-nixdorf-sysv* )
2902 machine=targon31 opsys=usg5-2-2
2903 ;;
2904
2905 ## Nu (TI or LMI)
2906 m68*-nu-sysv* )
2907 machine=nu opsys=usg5-2
2908 ;;
2909
2910 ## Plexus
2911 m68*-plexus-sysv* )
2912 machine=plexus opsys=usg5-2
2913 ;;
2914
2915 ## Pyramid machines
2916 ## I don't really have any idea what sort of processor the Pyramid has,
2917 ## so I'm assuming it is its own architecture.
2918 pyramid-pyramid-bsd* )
2919 machine=pyramid opsys=bsd4-2
2920 ;;
2921
2922 ## Sequent Balance
2923 ns32k-sequent-bsd4.2* )
2924 machine=sequent opsys=bsd4-2
2925 ;;
2926 ns32k-sequent-bsd4.3* )
2927 machine=sequent opsys=bsd4-3
2928 ;;
2929
2930 ## Siemens Nixdorf
2931 mips-siemens-sysv* | mips-sni-sysv*)
2932 machine=mips-siemens opsys=usg5-4
2933 NON_GNU_CC=/usr/ccs/bin/cc
2934 NON_GNU_CPP=/usr/ccs/lib/cpp
2935 ;;
2936
2937 ## Silicon Graphics machines
2938 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2939 m68*-sgi-iris3.5* )
2940 machine=irist opsys=iris3-5
2941 ;;
2942 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2943 machine=irist opsys=iris3-6
2944 ;;
2945 ## Iris 4D
2946 mips-sgi-irix3* )
2947 machine=iris4d opsys=irix3-3
2948 ;;
2949 mips-sgi-irix4* )
2950 machine=iris4d opsys=irix4-0
2951 ;;
2952 mips-sgi-irix6.5 )
2953 machine=iris4d opsys=irix6-5
2954 # Without defining _LANGUAGE_C, things get masked out in the headers
2955 # so that, for instance, grepping for `free' in stdlib.h fails and
2956 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2957 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2958 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2959 ;;
2960 mips-sgi-irix6* )
2961 machine=iris4d opsys=irix6-0
2962 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2963 # but presumably it does no harm.
2964 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2965 # -32 probably isn't necessary in later v.6s -- anyone know which?
2966 NON_GCC_TEST_OPTIONS=-32
2967 ;;
2968 mips-sgi-irix5.[01]* )
2969 machine=iris4d opsys=irix5-0
2970 ;;
2971 mips-sgi-irix5* | mips-sgi-irix* )
2972 machine=iris4d opsys=irix5-2
2973 ;;
2974
2975 ## SONY machines
2976 m68*-sony-bsd4.2* )
2977 machine=news opsys=bsd4-2
2978 ;;
2979 m68*-sony-bsd4.3* )
2980 machine=news opsys=bsd4-3
2981 ;;
2982 m68*-sony-newsos3* | m68*-sony-news3*)
2983 machine=news opsys=bsd4-3
2984 ;;
2985 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2986 machine=news-risc opsys=bsd4-3
2987 ;;
2988 mips-sony-newsos6* )
2989 machine=news-r6 opsys=newsos6
2990 ;;
2991 mips-sony-news* )
2992 machine=news-risc opsys=newsos5
2993 ;;
2994
2995 ## Stride
2996 m68*-stride-sysv* )
2997 machine=stride opsys=usg5-2
2998 ;;
2999
3000 ## Suns
3001 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3002 machine=sparc opsys=gnu-linux
3003 ;;
3004
3005 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
3006 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
3007 | rs6000-*-solaris2*)
3008 case "${canonical}" in
3009 m68*-sunos1* ) machine=sun1 ;;
3010 m68*-sunos2* ) machine=sun2 ;;
3011 m68* ) machine=sun3 ;;
3012 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
3013 i[3456]86-*-* ) machine=intel386 ;;
3014 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3015 powerpcle* ) machine=powerpcle ;;
3016 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3017 sparc* ) machine=sparc ;;
3018 * ) unported=yes ;;
3019 esac
3020 case "${canonical}" in
3021 ## The Sun386 didn't get past 4.0.
3022 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
3023 *-sunos4.0* ) opsys=sunos4-0 ;;
3024 *-sunos4.1.[3-9]*noshare )
3025 ## This name is sunos413 instead of sunos4-1-3
3026 ## to avoid a file name conflict on MSDOS.
3027 opsys=sunos413
3028 NON_GNU_CPP=/usr/lib/cpp
3029 NON_GCC_TEST_OPTIONS=-Bstatic
3030 GCC_TEST_OPTIONS=-static
3031 ;;
3032 *-sunos4.1.[3-9]* | *-sunos4shr*)
3033 opsys=sunos4shr
3034 NON_GNU_CPP=/usr/lib/cpp
3035 ;;
3036 *-sunos4* | *-sunos )
3037 opsys=sunos4-1
3038 NON_GCC_TEST_OPTIONS=-Bstatic
3039 GCC_TEST_OPTIONS=-static
3040 ;;
3041 *-sunos5.3* | *-solaris2.3* )
3042 opsys=sol2-3
3043 NON_GNU_CPP=/usr/ccs/lib/cpp
3044 ;;
3045 *-sunos5.4* | *-solaris2.4* )
3046 opsys=sol2-4
3047 NON_GNU_CPP=/usr/ccs/lib/cpp
3048 RANLIB="ar -ts"
3049 ;;
3050 *-sunos5.5* | *-solaris2.5* )
3051 opsys=sol2-5
3052 NON_GNU_CPP=/usr/ccs/lib/cpp
3053 RANLIB="ar -ts"
3054 ;;
3055 *-sunos5.6* | *-solaris2.6* )
3056 opsys=sol2-6
3057 NON_GNU_CPP=/usr/ccs/lib/cpp
3058 RANLIB="ar -ts"
3059 ;;
3060 *-sunos5* | *-solaris* )
3061 opsys=sol2-6
3062 emacs_check_sunpro_c=yes
3063 NON_GNU_CPP=/usr/ccs/lib/cpp
3064 ;;
3065 * ) opsys=bsd4-2 ;;
3066 esac
3067 ## Watch out for a compiler that we know will not work.
3068 case "${canonical}" in
3069 *-solaris* | *-sunos5* )
3070 if [ "x$CC" = x/usr/ucb/cc ]; then
3071 ## /usr/ucb/cc doesn't work;
3072 ## we should find some other compiler that does work.
3073 unset CC
3074 fi
3075 ;;
3076 *) ;;
3077 esac
3078 ;;
3079 sparc-*-nextstep* )
3080 machine=sparc opsys=nextstep
3081 ;;
3082
3083 ## Tadpole 68k
3084 m68*-tadpole-sysv* )
3085 machine=tad68k opsys=usg5-3
3086 ;;
3087
3088 ## Tahoe machines
3089 tahoe-tahoe-bsd4.2* )
3090 machine=tahoe opsys=bsd4-2
3091 ;;
3092 tahoe-tahoe-bsd4.3* )
3093 machine=tahoe opsys=bsd4-3
3094 ;;
3095
3096 ## Tandem Integrity S2
3097 mips-tandem-sysv* )
3098 machine=tandem-s2 opsys=usg5-3
3099 ;;
3100
3101 ## Tektronix XD88
3102 m88k-tektronix-sysv3* )
3103 machine=tekxd88 opsys=usg5-3
3104 ;;
3105
3106 ## Tektronix 16000 box (6130?)
3107 ns16k-tektronix-bsd* )
3108 machine=ns16000 opsys=bsd4-2
3109 ;;
3110 ## Tektronix 4300
3111 ## src/m/tek4300.h hints that this is a m68k machine.
3112 m68*-tektronix-bsd* )
3113 machine=tek4300 opsys=bsd4-3
3114 ;;
3115
3116 ## Titan P2 or P3
3117 ## We seem to have lost the machine-description file titan.h!
3118 titan-titan-sysv* )
3119 machine=titan opsys=usg5-3
3120 ;;
3121
3122 ## Ustation E30 (SS5E)
3123 m68*-unisys-uniplus* )
3124 machine=ustation opsystem=unipl5-2
3125 ;;
3126
3127 ## Vaxen.
3128 vax-dec-* )
3129 machine=vax
3130 case "${canonical}" in
3131 *-bsd4.1* ) opsys=bsd4-1 ;;
3132 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3133 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3134 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3135 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3136 *-vms* ) opsys=vms ;;
3137 * ) unported=yes
3138 esac
3139 ;;
3140
3141 ## Whitechapel MG1
3142 ns16k-whitechapel-* )
3143 machine=mg1
3144 ## We don't know what sort of OS runs on these; we'll let the
3145 ## operating system guessing code below try.
3146 ;;
3147
3148 ## Wicat
3149 m68*-wicat-sysv* )
3150 machine=wicat opsys=usg5-2
3151 ;;
3152
3153 ## IA-64
3154 ia64*-*-linux* )
3155 machine=ia64 opsys=gnu-linux
3156 ;;
3157
3158 ## Intel 386 machines where we don't care about the manufacturer
3159 i[3456]86-*-* )
3160 machine=intel386
3161 case "${canonical}" in
3162 *-cygwin ) opsys=cygwin ;;
3163 *-darwin* ) opsys=darwin
3164 CPP="${CC-cc} -E -no-cpp-precomp"
3165 ;;
3166 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3167 *-isc2.2* ) opsys=isc2-2 ;;
3168 *-isc4.0* ) opsys=isc4-0 ;;
3169 *-isc4.* ) opsys=isc4-1
3170 GCC_TEST_OPTIONS=-posix
3171 NON_GCC_TEST_OPTIONS=-Xp
3172 ;;
3173 *-isc* ) opsys=isc3-0 ;;
3174 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3175 *-esix* ) opsys=esix ;;
3176 *-xenix* ) opsys=xenix ;;
3177 *-linux-gnu* ) opsys=gnu-linux ;;
3178 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3179 *-sco3.2v5* ) opsys=sco5
3180 NON_GNU_CPP=/lib/cpp
3181 # Prevent -belf from being passed to $CPP.
3182 # /lib/cpp does not accept it.
3183 OVERRIDE_CPPFLAGS=" "
3184 ;;
3185 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3186 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3187 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3188 *-386bsd* ) opsys=386bsd ;;
3189 *-nextstep* ) opsys=nextstep ;;
3190 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3191 esac
3192 ;;
3193
3194 ## m68k Linux-based GNU system
3195 m68k-*-linux-gnu* )
3196 machine=m68k opsys=gnu-linux
3197 ;;
3198
3199 ## Mips Linux-based GNU system
3200 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3201 machine=mips opsys=gnu-linux
3202 ;;
3203
3204 ## UXP/DS
3205 sparc-fujitsu-sysv4* )
3206 machine=sparc opsys=uxpds
3207 NON_GNU_CPP=/usr/ccs/lib/cpp
3208 RANLIB="ar -ts"
3209 ;;
3210
3211 ## UXP/V
3212 f301-fujitsu-uxpv4.1)
3213 machine=f301 opsys=uxpv
3214 ;;
3215
3216 ## AMD x86-64 Linux-based GNU system
3217 x86_64-*-linux-gnu* )
3218 machine=amdx86-64 opsys=gnu-linux
3219 ;;
3220
3221 ## Tensilica Xtensa Linux-based GNU system
3222 xtensa-*-linux-gnu* )
3223 machine=xtensa opsys=gnu-linux
3224 ;;
3225
3226 * )
3227 unported=yes
3228 ;;
3229 esac
3230
3231 ### If the code above didn't choose an operating system, just choose
3232 ### an operating system based on the configuration name. You really
3233 ### only want to use this when you have no idea what the right
3234 ### operating system is; if you know what operating systems a machine
3235 ### runs, it's cleaner to make it explicit in the case statement
3236 ### above.
3237 if test x"${opsys}" = x; then
3238 case "${canonical}" in
3239 *-gnu* ) opsys=gnu ;;
3240 *-bsd4.[01] ) opsys=bsd4-1 ;;
3241 *-bsd4.2 ) opsys=bsd4-2 ;;
3242 *-bsd4.3 ) opsys=bsd4-3 ;;
3243 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3244 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3245 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3246 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3247 *-sysv4.2uw* ) opsys=unixware ;;
3248 *-sysv5uw* ) opsys=unixware ;;
3249 *-sysv5OpenUNIX* ) opsys=unixware ;;
3250 *-sysv4.1* | *-sysvr4.1* )
3251 NON_GNU_CPP=/usr/lib/cpp
3252 opsys=usg5-4 ;;
3253 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3254 if [ x$NON_GNU_CPP = x ]; then
3255 if [ -f /usr/ccs/lib/cpp ]; then
3256 NON_GNU_CPP=/usr/ccs/lib/cpp
3257 else
3258 NON_GNU_CPP=/lib/cpp
3259 fi
3260 fi
3261 opsys=usg5-4-2 ;;
3262 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3263 * )
3264 unported=yes
3265 ;;
3266 esac
3267 fi
3268
3269
3270
3271 if test $unported = yes; then
3272 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3273 Check \`etc/MACHINES' for recognized configuration names." >&5
3274 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3275 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3276 { (exit 1); exit 1; }; }
3277 fi
3278
3279 machfile="m/${machine}.h"
3280 opsysfile="s/${opsys}.h"
3281
3282
3283 #### Choose a compiler.
3284 test -n "$CC" && cc_specified=yes
3285
3286 # Save the value of CFLAGS that the user specified.
3287 SPECIFIED_CFLAGS="$CFLAGS"
3288
3289 case ${with_gcc} in
3290 "yes" ) CC="gcc" GCC=yes ;;
3291 "no" ) : ${CC=cc} ;;
3292 * )
3293 esac
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 if test -n "$ac_tool_prefix"; then
3300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3301 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3304 if test "${ac_cv_prog_CC+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 if test -n "$CC"; then
3308 ac_cv_prog_CC="$CC" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329 { echo "$as_me:$LINENO: result: $CC" >&5
3330 echo "${ECHO_T}$CC" >&6; }
3331 else
3332 { echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6; }
3334 fi
3335
3336
3337 fi
3338 if test -z "$ac_cv_prog_CC"; then
3339 ac_ct_CC=$CC
3340 # Extract the first word of "gcc", so it can be a program name with args.
3341 set dummy gcc; ac_word=$2
3342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3344 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347 if test -n "$ac_ct_CC"; then
3348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_ac_ct_CC="gcc"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3360 fi
3361 done
3362 done
3363 IFS=$as_save_IFS
3364
3365 fi
3366 fi
3367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3368 if test -n "$ac_ct_CC"; then
3369 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3370 echo "${ECHO_T}$ac_ct_CC" >&6; }
3371 else
3372 { echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6; }
3374 fi
3375
3376 if test "x$ac_ct_CC" = x; then
3377 CC=""
3378 else
3379 case $cross_compiling:$ac_tool_warned in
3380 yes:)
3381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3382 whose name does not start with the host triplet. If you think this
3383 configuration is useful to you, please write to autoconf@gnu.org." >&5
3384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3385 whose name does not start with the host triplet. If you think this
3386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3387 ac_tool_warned=yes ;;
3388 esac
3389 CC=$ac_ct_CC
3390 fi
3391 else
3392 CC="$ac_cv_prog_CC"
3393 fi
3394
3395 if test -z "$CC"; then
3396 if test -n "$ac_tool_prefix"; then
3397 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3398 set dummy ${ac_tool_prefix}cc; ac_word=$2
3399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3401 if test "${ac_cv_prog_CC+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414 ac_cv_prog_CC="${ac_tool_prefix}cc"
3415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3417 fi
3418 done
3419 done
3420 IFS=$as_save_IFS
3421
3422 fi
3423 fi
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426 { echo "$as_me:$LINENO: result: $CC" >&5
3427 echo "${ECHO_T}$CC" >&6; }
3428 else
3429 { echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6; }
3431 fi
3432
3433
3434 fi
3435 fi
3436 if test -z "$CC"; then
3437 # Extract the first word of "cc", so it can be a program name with args.
3438 set dummy cc; ac_word=$2
3439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3441 if test "${ac_cv_prog_CC+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 ac_prog_rejected=no
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3456 ac_prog_rejected=yes
3457 continue
3458 fi
3459 ac_cv_prog_CC="cc"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463 done
3464 done
3465 IFS=$as_save_IFS
3466
3467 if test $ac_prog_rejected = yes; then
3468 # We found a bogon in the path, so make sure we never use it.
3469 set dummy $ac_cv_prog_CC
3470 shift
3471 if test $# != 0; then
3472 # We chose a different compiler from the bogus one.
3473 # However, it has the same basename, so the bogon will be chosen
3474 # first if we set CC to just the basename; use the full file name.
3475 shift
3476 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3477 fi
3478 fi
3479 fi
3480 fi
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483 { echo "$as_me:$LINENO: result: $CC" >&5
3484 echo "${ECHO_T}$CC" >&6; }
3485 else
3486 { echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6; }
3488 fi
3489
3490
3491 fi
3492 if test -z "$CC"; then
3493 if test -n "$ac_tool_prefix"; then
3494 for ac_prog in cl.exe
3495 do
3496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517 done
3518 done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 CC=$ac_cv_prog_CC
3524 if test -n "$CC"; then
3525 { echo "$as_me:$LINENO: result: $CC" >&5
3526 echo "${ECHO_T}$CC" >&6; }
3527 else
3528 { echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6; }
3530 fi
3531
3532
3533 test -n "$CC" && break
3534 done
3535 fi
3536 if test -z "$CC"; then
3537 ac_ct_CC=$CC
3538 for ac_prog in cl.exe
3539 do
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3544 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 if test -n "$ac_ct_CC"; then
3548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_ac_ct_CC="$ac_prog"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3560 fi
3561 done
3562 done
3563 IFS=$as_save_IFS
3564
3565 fi
3566 fi
3567 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3568 if test -n "$ac_ct_CC"; then
3569 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3570 echo "${ECHO_T}$ac_ct_CC" >&6; }
3571 else
3572 { echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6; }
3574 fi
3575
3576
3577 test -n "$ac_ct_CC" && break
3578 done
3579
3580 if test "x$ac_ct_CC" = x; then
3581 CC=""
3582 else
3583 case $cross_compiling:$ac_tool_warned in
3584 yes:)
3585 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3586 whose name does not start with the host triplet. If you think this
3587 configuration is useful to you, please write to autoconf@gnu.org." >&5
3588 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3589 whose name does not start with the host triplet. If you think this
3590 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3591 ac_tool_warned=yes ;;
3592 esac
3593 CC=$ac_ct_CC
3594 fi
3595 fi
3596
3597 fi
3598
3599
3600 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3601 See \`config.log' for more details." >&5
3602 echo "$as_me: error: no acceptable C compiler found in \$PATH
3603 See \`config.log' for more details." >&2;}
3604 { (exit 1); exit 1; }; }
3605
3606 # Provide some information about the compiler.
3607 echo "$as_me:$LINENO: checking for C compiler version" >&5
3608 ac_compiler=`set X $ac_compile; echo $2`
3609 { (ac_try="$ac_compiler --version >&5"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_compiler --version >&5") 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }
3619 { (ac_try="$ac_compiler -v >&5"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_compiler -v >&5") 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }
3629 { (ac_try="$ac_compiler -V >&5"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635 (eval "$ac_compiler -V >&5") 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }
3639
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646
3647 int
3648 main ()
3649 {
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 ac_clean_files_save=$ac_clean_files
3656 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3657 # Try to create an executable without -o first, disregard a.out.
3658 # It will help us diagnose broken compilers, and finding out an intuition
3659 # of exeext.
3660 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3661 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3662 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3663 #
3664 # List of possible output files, starting from the most likely.
3665 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3666 # only as a last resort. b.out is created by i960 compilers.
3667 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3668 #
3669 # The IRIX 6 linker writes into existing files which may not be
3670 # executable, retaining their permissions. Remove them first so a
3671 # subsequent execution test works.
3672 ac_rmfiles=
3673 for ac_file in $ac_files
3674 do
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3677 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3678 esac
3679 done
3680 rm -f $ac_rmfiles
3681
3682 if { (ac_try="$ac_link_default"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688 (eval "$ac_link_default") 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; then
3692 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3693 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3694 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3695 # so that the user can short-circuit this test for compilers unknown to
3696 # Autoconf.
3697 for ac_file in $ac_files ''
3698 do
3699 test -f "$ac_file" || continue
3700 case $ac_file in
3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3702 ;;
3703 [ab].out )
3704 # We found the default executable, but exeext='' is most
3705 # certainly right.
3706 break;;
3707 *.* )
3708 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3709 then :; else
3710 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3711 fi
3712 # We set ac_cv_exeext here because the later test for it is not
3713 # safe: cross compilers may not add the suffix if given an `-o'
3714 # argument, so we may need to know it at that point already.
3715 # Even if this section looks crufty: it has the advantage of
3716 # actually working.
3717 break;;
3718 * )
3719 break;;
3720 esac
3721 done
3722 test "$ac_cv_exeext" = no && ac_cv_exeext=
3723
3724 else
3725 ac_file=''
3726 fi
3727
3728 { echo "$as_me:$LINENO: result: $ac_file" >&5
3729 echo "${ECHO_T}$ac_file" >&6; }
3730 if test -z "$ac_file"; then
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3735 See \`config.log' for more details." >&5
3736 echo "$as_me: error: C compiler cannot create executables
3737 See \`config.log' for more details." >&2;}
3738 { (exit 77); exit 77; }; }
3739 fi
3740
3741 ac_exeext=$ac_cv_exeext
3742
3743 # Check that the compiler produces executables we can run. If not, either
3744 # the compiler is broken, or we cross compile.
3745 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3746 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3747 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3748 # If not cross compiling, check that we can run a simple program.
3749 if test "$cross_compiling" != yes; then
3750 if { ac_try='./$ac_file'
3751 { (case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_try") 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 cross_compiling=no
3761 else
3762 if test "$cross_compiling" = maybe; then
3763 cross_compiling=yes
3764 else
3765 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3766 If you meant to cross compile, use \`--host'.
3767 See \`config.log' for more details." >&5
3768 echo "$as_me: error: cannot run C compiled programs.
3769 If you meant to cross compile, use \`--host'.
3770 See \`config.log' for more details." >&2;}
3771 { (exit 1); exit 1; }; }
3772 fi
3773 fi
3774 fi
3775 { echo "$as_me:$LINENO: result: yes" >&5
3776 echo "${ECHO_T}yes" >&6; }
3777
3778 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3779 ac_clean_files=$ac_clean_files_save
3780 # Check that the compiler produces executables we can run. If not, either
3781 # the compiler is broken, or we cross compile.
3782 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3783 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3784 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3785 echo "${ECHO_T}$cross_compiling" >&6; }
3786
3787 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3788 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3789 if { (ac_try="$ac_link"
3790 case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_link") 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; then
3799 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3800 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3801 # work properly (i.e., refer to `conftest.exe'), while it won't with
3802 # `rm'.
3803 for ac_file in conftest.exe conftest conftest.*; do
3804 test -f "$ac_file" || continue
3805 case $ac_file in
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3807 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3808 break;;
3809 * ) break;;
3810 esac
3811 done
3812 else
3813 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3814 See \`config.log' for more details." >&5
3815 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3816 See \`config.log' for more details." >&2;}
3817 { (exit 1); exit 1; }; }
3818 fi
3819
3820 rm -f conftest$ac_cv_exeext
3821 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3822 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3823
3824 rm -f conftest.$ac_ext
3825 EXEEXT=$ac_cv_exeext
3826 ac_exeext=$EXEEXT
3827 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3828 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3829 if test "${ac_cv_objext+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838
3839 int
3840 main ()
3841 {
3842
3843 ;
3844 return 0;
3845 }
3846 _ACEOF
3847 rm -f conftest.o conftest.obj
3848 if { (ac_try="$ac_compile"
3849 case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852 esac
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854 (eval "$ac_compile") 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; then
3858 for ac_file in conftest.o conftest.obj conftest.*; do
3859 test -f "$ac_file" || continue;
3860 case $ac_file in
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3863 break;;
3864 esac
3865 done
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3871 See \`config.log' for more details." >&5
3872 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3873 See \`config.log' for more details." >&2;}
3874 { (exit 1); exit 1; }; }
3875 fi
3876
3877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3878 fi
3879 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3880 echo "${ECHO_T}$ac_cv_objext" >&6; }
3881 OBJEXT=$ac_cv_objext
3882 ac_objext=$OBJEXT
3883 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3884 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3885 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h. */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894
3895 int
3896 main ()
3897 {
3898 #ifndef __GNUC__
3899 choke me
3900 #endif
3901
3902 ;
3903 return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3923 ac_compiler_gnu=yes
3924 else
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3927
3928 ac_compiler_gnu=no
3929 fi
3930
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3933
3934 fi
3935 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3936 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3937 GCC=`test $ac_compiler_gnu = yes && echo yes`
3938 ac_test_CFLAGS=${CFLAGS+set}
3939 ac_save_CFLAGS=$CFLAGS
3940 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3941 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3942 if test "${ac_cv_prog_cc_g+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 ac_save_c_werror_flag=$ac_c_werror_flag
3946 ac_c_werror_flag=yes
3947 ac_cv_prog_cc_g=no
3948 CFLAGS="-g"
3949 cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h. */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955
3956 int
3957 main ()
3958 {
3959
3960 ;
3961 return 0;
3962 }
3963 _ACEOF
3964 rm -f conftest.$ac_objext
3965 if { (ac_try="$ac_compile"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_compile") 2>conftest.er1
3972 ac_status=$?
3973 grep -v '^ *+' conftest.er1 >conftest.err
3974 rm -f conftest.er1
3975 cat conftest.err >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } && {
3978 test -z "$ac_c_werror_flag" ||
3979 test ! -s conftest.err
3980 } && test -s conftest.$ac_objext; then
3981 ac_cv_prog_cc_g=yes
3982 else
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 CFLAGS=""
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993
3994 int
3995 main ()
3996 {
3997
3998 ;
3999 return 0;
4000 }
4001 _ACEOF
4002 rm -f conftest.$ac_objext
4003 if { (ac_try="$ac_compile"
4004 case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_compile") 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } && {
4016 test -z "$ac_c_werror_flag" ||
4017 test ! -s conftest.err
4018 } && test -s conftest.$ac_objext; then
4019 :
4020 else
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 ac_c_werror_flag=$ac_save_c_werror_flag
4025 CFLAGS="-g"
4026 cat >conftest.$ac_ext <<_ACEOF
4027 /* confdefs.h. */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4032
4033 int
4034 main ()
4035 {
4036
4037 ;
4038 return 0;
4039 }
4040 _ACEOF
4041 rm -f conftest.$ac_objext
4042 if { (ac_try="$ac_compile"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_compile") 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } && {
4055 test -z "$ac_c_werror_flag" ||
4056 test ! -s conftest.err
4057 } && test -s conftest.$ac_objext; then
4058 ac_cv_prog_cc_g=yes
4059 else
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063
4064 fi
4065
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 fi
4068
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 fi
4071
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_c_werror_flag=$ac_save_c_werror_flag
4074 fi
4075 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4076 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4077 if test "$ac_test_CFLAGS" = set; then
4078 CFLAGS=$ac_save_CFLAGS
4079 elif test $ac_cv_prog_cc_g = yes; then
4080 if test "$GCC" = yes; then
4081 CFLAGS="-g -O2"
4082 else
4083 CFLAGS="-g"
4084 fi
4085 else
4086 if test "$GCC" = yes; then
4087 CFLAGS="-O2"
4088 else
4089 CFLAGS=
4090 fi
4091 fi
4092 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4093 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4094 if test "${ac_cv_prog_cc_c89+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097 ac_cv_prog_cc_c89=no
4098 ac_save_CC=$CC
4099 cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h. */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4105 #include <stdarg.h>
4106 #include <stdio.h>
4107 #include <sys/types.h>
4108 #include <sys/stat.h>
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4113 char **p;
4114 int i;
4115 {
4116 return p[i];
4117 }
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4119 {
4120 char *s;
4121 va_list v;
4122 va_start (v,p);
4123 s = g (p, va_arg (v,int));
4124 va_end (v);
4125 return s;
4126 }
4127
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4129 function prototypes and stuff, but not '\xHH' hex character constants.
4130 These don't provoke an error unfortunately, instead are silently treated
4131 as 'x'. The following induces an error, until -std is added to get
4132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4133 array size at least. It's necessary to write '\x00'==0 to get something
4134 that's true only with -std. */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4136
4137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4138 inside strings and character constants. */
4139 #define FOO(x) 'x'
4140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4141
4142 int test (int i, double x);
4143 struct s1 {int (*f) (int a);};
4144 struct s2 {int (*f) (double a);};
4145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4146 int argc;
4147 char **argv;
4148 int
4149 main ()
4150 {
4151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4152 ;
4153 return 0;
4154 }
4155 _ACEOF
4156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4158 do
4159 CC="$ac_save_CC $ac_arg"
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4162 case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165 esac
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_compile") 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } && {
4174 test -z "$ac_c_werror_flag" ||
4175 test ! -s conftest.err
4176 } && test -s conftest.$ac_objext; then
4177 ac_cv_prog_cc_c89=$ac_arg
4178 else
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182
4183 fi
4184
4185 rm -f core conftest.err conftest.$ac_objext
4186 test "x$ac_cv_prog_cc_c89" != "xno" && break
4187 done
4188 rm -f conftest.$ac_ext
4189 CC=$ac_save_CC
4190
4191 fi
4192 # AC_CACHE_VAL
4193 case "x$ac_cv_prog_cc_c89" in
4194 x)
4195 { echo "$as_me:$LINENO: result: none needed" >&5
4196 echo "${ECHO_T}none needed" >&6; } ;;
4197 xno)
4198 { echo "$as_me:$LINENO: result: unsupported" >&5
4199 echo "${ECHO_T}unsupported" >&6; } ;;
4200 *)
4201 CC="$CC $ac_cv_prog_cc_c89"
4202 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4203 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4204 esac
4205
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213
4214 # On Suns, sometimes $CPP names a directory.
4215 if test -n "$CPP" && test -d "$CPP"; then
4216 CPP=
4217 fi
4218
4219 ## If not using gcc, and on Solaris, and no CPP specified, see if
4220 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4221 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4222 test x"$CPP" = x; then
4223 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4224 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4225
4226 if test "${emacs_cv_sunpro_c+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235
4236 int
4237 main ()
4238 {
4239 #ifndef __SUNPRO_C
4240 fail;
4241 #endif
4242
4243 ;
4244 return 0;
4245 }
4246 _ACEOF
4247 rm -f conftest.$ac_objext conftest$ac_exeext
4248 if { (ac_try="$ac_link"
4249 case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252 esac
4253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_link") 2>conftest.er1
4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } && {
4261 test -z "$ac_c_werror_flag" ||
4262 test ! -s conftest.err
4263 } && test -s conftest$ac_exeext &&
4264 $as_test_x conftest$ac_exeext; then
4265 emacs_cv_sunpro_c=yes
4266 else
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4269
4270 emacs_cv_sunpro_c=no
4271 fi
4272
4273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4274 conftest$ac_exeext conftest.$ac_ext
4275 fi
4276
4277 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4278 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4279
4280 if test x"$emacs_cv_sunpro_c" = xyes; then
4281 NON_GNU_CPP="$CC -E -Xs"
4282 fi
4283 fi
4284
4285 #### Some systems specify a CPP to use unless we are using GCC.
4286 #### Now that we know whether we are using GCC, we can decide whether
4287 #### to use that one.
4288 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4289 then
4290 CPP="$NON_GNU_CPP"
4291 fi
4292
4293 #### Some systems specify a CC to use unless we are using GCC.
4294 #### Now that we know whether we are using GCC, we can decide whether
4295 #### to use that one.
4296 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4297 test x$cc_specified != xyes
4298 then
4299 CC="$NON_GNU_CC"
4300 fi
4301
4302 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4303 then
4304 CC="$CC $GCC_TEST_OPTIONS"
4305 fi
4306
4307 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4308 then
4309 CC="$CC $NON_GCC_TEST_OPTIONS"
4310 fi
4311
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4318 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4319 # On Suns, sometimes $CPP names a directory.
4320 if test -n "$CPP" && test -d "$CPP"; then
4321 CPP=
4322 fi
4323 if test -z "$CPP"; then
4324 if test "${ac_cv_prog_CPP+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 # Double quotes because CPP needs to be expanded
4328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4329 do
4330 ac_preproc_ok=false
4331 for ac_c_preproc_warn_flag in '' yes
4332 do
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 #ifdef __STDC__
4346 # include <limits.h>
4347 #else
4348 # include <assert.h>
4349 #endif
4350 Syntax error
4351 _ACEOF
4352 if { (ac_try="$ac_cpp conftest.$ac_ext"
4353 case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356 esac
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } >/dev/null && {
4365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 }; then
4368 :
4369 else
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 # Broken: fails on valid input.
4374 continue
4375 fi
4376
4377 rm -f conftest.err conftest.$ac_ext
4378
4379 # OK, works on sane cases. Now check whether nonexistent headers
4380 # can be detected and how.
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 #include <ac_nonexistent.h>
4388 _ACEOF
4389 if { (ac_try="$ac_cpp conftest.$ac_ext"
4390 case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393 esac
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } >/dev/null && {
4402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4404 }; then
4405 # Broken: success on invalid input.
4406 continue
4407 else
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 # Passes both tests.
4412 ac_preproc_ok=:
4413 break
4414 fi
4415
4416 rm -f conftest.err conftest.$ac_ext
4417
4418 done
4419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420 rm -f conftest.err conftest.$ac_ext
4421 if $ac_preproc_ok; then
4422 break
4423 fi
4424
4425 done
4426 ac_cv_prog_CPP=$CPP
4427
4428 fi
4429 CPP=$ac_cv_prog_CPP
4430 else
4431 ac_cv_prog_CPP=$CPP
4432 fi
4433 { echo "$as_me:$LINENO: result: $CPP" >&5
4434 echo "${ECHO_T}$CPP" >&6; }
4435 ac_preproc_ok=false
4436 for ac_c_preproc_warn_flag in '' yes
4437 do
4438 # Use a header file that comes with gcc, so configuring glibc
4439 # with a fresh cross-compiler works.
4440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441 # <limits.h> exists even on freestanding compilers.
4442 # On the NeXT, cc -E runs the code through the compiler's parser,
4443 # not just through cpp. "Syntax error" is here to catch this case.
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 #ifdef __STDC__
4451 # include <limits.h>
4452 #else
4453 # include <assert.h>
4454 #endif
4455 Syntax error
4456 _ACEOF
4457 if { (ac_try="$ac_cpp conftest.$ac_ext"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev/null && {
4470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4471 test ! -s conftest.err
4472 }; then
4473 :
4474 else
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 # Broken: fails on valid input.
4479 continue
4480 fi
4481
4482 rm -f conftest.err conftest.$ac_ext
4483
4484 # OK, works on sane cases. Now check whether nonexistent headers
4485 # can be detected and how.
4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 #include <ac_nonexistent.h>
4493 _ACEOF
4494 if { (ac_try="$ac_cpp conftest.$ac_ext"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4501 ac_status=$?
4502 grep -v '^ *+' conftest.er1 >conftest.err
4503 rm -f conftest.er1
4504 cat conftest.err >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } >/dev/null && {
4507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4508 test ! -s conftest.err
4509 }; then
4510 # Broken: success on invalid input.
4511 continue
4512 else
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 # Passes both tests.
4517 ac_preproc_ok=:
4518 break
4519 fi
4520
4521 rm -f conftest.err conftest.$ac_ext
4522
4523 done
4524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4525 rm -f conftest.err conftest.$ac_ext
4526 if $ac_preproc_ok; then
4527 :
4528 else
4529 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4530 See \`config.log' for more details." >&5
4531 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4532 See \`config.log' for more details." >&2;}
4533 { (exit 1); exit 1; }; }
4534 fi
4535
4536 ac_ext=c
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541
4542
4543 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4544 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4545 if test "${ac_cv_path_GREP+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 # Extract the first word of "grep ggrep" to use in msg output
4549 if test -z "$GREP"; then
4550 set dummy grep ggrep; ac_prog_name=$2
4551 if test "${ac_cv_path_GREP+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 ac_path_GREP_found=false
4555 # Loop through the user's path and test for each of PROGNAME-LIST
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4558 do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_prog in grep ggrep; do
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4564 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4565 # Check for GNU ac_path_GREP and select it if it is found.
4566 # Check for GNU $ac_path_GREP
4567 case `"$ac_path_GREP" --version 2>&1` in
4568 *GNU*)
4569 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4570 *)
4571 ac_count=0
4572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4573 while :
4574 do
4575 cat "conftest.in" "conftest.in" >"conftest.tmp"
4576 mv "conftest.tmp" "conftest.in"
4577 cp "conftest.in" "conftest.nl"
4578 echo 'GREP' >> "conftest.nl"
4579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4581 ac_count=`expr $ac_count + 1`
4582 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4583 # Best one so far, save it but keep looking for a better one
4584 ac_cv_path_GREP="$ac_path_GREP"
4585 ac_path_GREP_max=$ac_count
4586 fi
4587 # 10*(2^10) chars as input seems more than enough
4588 test $ac_count -gt 10 && break
4589 done
4590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4591 esac
4592
4593
4594 $ac_path_GREP_found && break 3
4595 done
4596 done
4597
4598 done
4599 IFS=$as_save_IFS
4600
4601
4602 fi
4603
4604 GREP="$ac_cv_path_GREP"
4605 if test -z "$GREP"; then
4606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4608 { (exit 1); exit 1; }; }
4609 fi
4610
4611 else
4612 ac_cv_path_GREP=$GREP
4613 fi
4614
4615
4616 fi
4617 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4618 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4619 GREP="$ac_cv_path_GREP"
4620
4621
4622 { echo "$as_me:$LINENO: checking for egrep" >&5
4623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4624 if test "${ac_cv_path_EGREP+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4628 then ac_cv_path_EGREP="$GREP -E"
4629 else
4630 # Extract the first word of "egrep" to use in msg output
4631 if test -z "$EGREP"; then
4632 set dummy egrep; ac_prog_name=$2
4633 if test "${ac_cv_path_EGREP+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 ac_path_EGREP_found=false
4637 # Loop through the user's path and test for each of PROGNAME-LIST
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4640 do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_prog in egrep; do
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4646 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4647 # Check for GNU ac_path_EGREP and select it if it is found.
4648 # Check for GNU $ac_path_EGREP
4649 case `"$ac_path_EGREP" --version 2>&1` in
4650 *GNU*)
4651 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4652 *)
4653 ac_count=0
4654 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4655 while :
4656 do
4657 cat "conftest.in" "conftest.in" >"conftest.tmp"
4658 mv "conftest.tmp" "conftest.in"
4659 cp "conftest.in" "conftest.nl"
4660 echo 'EGREP' >> "conftest.nl"
4661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4663 ac_count=`expr $ac_count + 1`
4664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4665 # Best one so far, save it but keep looking for a better one
4666 ac_cv_path_EGREP="$ac_path_EGREP"
4667 ac_path_EGREP_max=$ac_count
4668 fi
4669 # 10*(2^10) chars as input seems more than enough
4670 test $ac_count -gt 10 && break
4671 done
4672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4673 esac
4674
4675
4676 $ac_path_EGREP_found && break 3
4677 done
4678 done
4679
4680 done
4681 IFS=$as_save_IFS
4682
4683
4684 fi
4685
4686 EGREP="$ac_cv_path_EGREP"
4687 if test -z "$EGREP"; then
4688 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4689 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4690 { (exit 1); exit 1; }; }
4691 fi
4692
4693 else
4694 ac_cv_path_EGREP=$EGREP
4695 fi
4696
4697
4698 fi
4699 fi
4700 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4701 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4702 EGREP="$ac_cv_path_EGREP"
4703
4704
4705
4706 { echo "$as_me:$LINENO: checking for AIX" >&5
4707 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 #ifdef _AIX
4715 yes
4716 #endif
4717
4718 _ACEOF
4719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4720 $EGREP "yes" >/dev/null 2>&1; then
4721 { echo "$as_me:$LINENO: result: yes" >&5
4722 echo "${ECHO_T}yes" >&6; }
4723 cat >>confdefs.h <<\_ACEOF
4724 #define _ALL_SOURCE 1
4725 _ACEOF
4726
4727 else
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4730 fi
4731 rm -f conftest*
4732
4733
4734
4735 cat >>confdefs.h <<\_ACEOF
4736 #define _GNU_SOURCE 1
4737 _ACEOF
4738
4739
4740
4741 ### Use -Wno-pointer-sign if the compiler supports it
4742 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4743 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4744 SAVE_CFLAGS="$CFLAGS"
4745 CFLAGS="$CFLAGS -Wno-pointer-sign"
4746 cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h. */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4752
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 rm -f conftest.$ac_objext
4762 if { (ac_try="$ac_compile"
4763 case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766 esac
4767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768 (eval "$ac_compile") 2>conftest.er1
4769 ac_status=$?
4770 grep -v '^ *+' conftest.er1 >conftest.err
4771 rm -f conftest.er1
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } && {
4775 test -z "$ac_c_werror_flag" ||
4776 test ! -s conftest.err
4777 } && test -s conftest.$ac_objext; then
4778 has_option=yes
4779 else
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 has_option=no
4784 fi
4785
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 if test $has_option = yes; then
4788 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4789 fi
4790 { echo "$as_me:$LINENO: result: $has_option" >&5
4791 echo "${ECHO_T}$has_option" >&6; }
4792 CFLAGS="$SAVE_CFLAGS"
4793 unset has_option
4794 unset SAVE_CFLAGS
4795
4796 #### Some other nice autoconf tests.
4797
4798 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4799 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4800 LN_S=$as_ln_s
4801 if test "$LN_S" = "ln -s"; then
4802 { echo "$as_me:$LINENO: result: yes" >&5
4803 echo "${ECHO_T}yes" >&6; }
4804 else
4805 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4806 echo "${ECHO_T}no, using $LN_S" >&6; }
4807 fi
4808
4809 ac_ext=c
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4815 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4816 # On Suns, sometimes $CPP names a directory.
4817 if test -n "$CPP" && test -d "$CPP"; then
4818 CPP=
4819 fi
4820 if test -z "$CPP"; then
4821 if test "${ac_cv_prog_CPP+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824 # Double quotes because CPP needs to be expanded
4825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4826 do
4827 ac_preproc_ok=false
4828 for ac_c_preproc_warn_flag in '' yes
4829 do
4830 # Use a header file that comes with gcc, so configuring glibc
4831 # with a fresh cross-compiler works.
4832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4833 # <limits.h> exists even on freestanding compilers.
4834 # On the NeXT, cc -E runs the code through the compiler's parser,
4835 # not just through cpp. "Syntax error" is here to catch this case.
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h. */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #ifdef __STDC__
4843 # include <limits.h>
4844 #else
4845 # include <assert.h>
4846 #endif
4847 Syntax error
4848 _ACEOF
4849 if { (ac_try="$ac_cpp conftest.$ac_ext"
4850 case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4856 ac_status=$?
4857 grep -v '^ *+' conftest.er1 >conftest.err
4858 rm -f conftest.er1
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } >/dev/null && {
4862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4863 test ! -s conftest.err
4864 }; then
4865 :
4866 else
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870 # Broken: fails on valid input.
4871 continue
4872 fi
4873
4874 rm -f conftest.err conftest.$ac_ext
4875
4876 # OK, works on sane cases. Now check whether nonexistent headers
4877 # can be detected and how.
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 #include <ac_nonexistent.h>
4885 _ACEOF
4886 if { (ac_try="$ac_cpp conftest.$ac_ext"
4887 case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890 esac
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } >/dev/null && {
4899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 }; then
4902 # Broken: success on invalid input.
4903 continue
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 # Passes both tests.
4909 ac_preproc_ok=:
4910 break
4911 fi
4912
4913 rm -f conftest.err conftest.$ac_ext
4914
4915 done
4916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4917 rm -f conftest.err conftest.$ac_ext
4918 if $ac_preproc_ok; then
4919 break
4920 fi
4921
4922 done
4923 ac_cv_prog_CPP=$CPP
4924
4925 fi
4926 CPP=$ac_cv_prog_CPP
4927 else
4928 ac_cv_prog_CPP=$CPP
4929 fi
4930 { echo "$as_me:$LINENO: result: $CPP" >&5
4931 echo "${ECHO_T}$CPP" >&6; }
4932 ac_preproc_ok=false
4933 for ac_c_preproc_warn_flag in '' yes
4934 do
4935 # Use a header file that comes with gcc, so configuring glibc
4936 # with a fresh cross-compiler works.
4937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4938 # <limits.h> exists even on freestanding compilers.
4939 # On the NeXT, cc -E runs the code through the compiler's parser,
4940 # not just through cpp. "Syntax error" is here to catch this case.
4941 cat >conftest.$ac_ext <<_ACEOF
4942 /* confdefs.h. */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4947 #ifdef __STDC__
4948 # include <limits.h>
4949 #else
4950 # include <assert.h>
4951 #endif
4952 Syntax error
4953 _ACEOF
4954 if { (ac_try="$ac_cpp conftest.$ac_ext"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null && {
4967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4969 }; then
4970 :
4971 else
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4974
4975 # Broken: fails on valid input.
4976 continue
4977 fi
4978
4979 rm -f conftest.err conftest.$ac_ext
4980
4981 # OK, works on sane cases. Now check whether nonexistent headers
4982 # can be detected and how.
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 #include <ac_nonexistent.h>
4990 _ACEOF
4991 if { (ac_try="$ac_cpp conftest.$ac_ext"
4992 case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995 esac
4996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } >/dev/null && {
5004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5006 }; then
5007 # Broken: success on invalid input.
5008 continue
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 # Passes both tests.
5014 ac_preproc_ok=:
5015 break
5016 fi
5017
5018 rm -f conftest.err conftest.$ac_ext
5019
5020 done
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.$ac_ext
5023 if $ac_preproc_ok; then
5024 :
5025 else
5026 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5027 See \`config.log' for more details." >&5
5028 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5029 See \`config.log' for more details." >&2;}
5030 { (exit 1); exit 1; }; }
5031 fi
5032
5033 ac_ext=c
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5038
5039 # Find a good install program. We prefer a C program (faster),
5040 # so one script is as good as another. But avoid the broken or
5041 # incompatible versions:
5042 # SysV /etc/install, /usr/sbin/install
5043 # SunOS /usr/etc/install
5044 # IRIX /sbin/install
5045 # AIX /bin/install
5046 # AmigaOS /C/install, which installs bootblocks on floppy discs
5047 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5048 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5049 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5050 # OS/2's system install, which has a completely different semantic
5051 # ./install, which can be erroneously created by make from ./install.sh.
5052 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5053 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5054 if test -z "$INSTALL"; then
5055 if test "${ac_cv_path_install+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 # Account for people who put trailing slashes in PATH elements.
5064 case $as_dir/ in
5065 ./ | .// | /cC/* | \
5066 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5067 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5068 /usr/ucb/* ) ;;
5069 *)
5070 # OSF1 and SCO ODT 3.0 have their own names for install.
5071 # Don't use installbsd from OSF since it installs stuff as root
5072 # by default.
5073 for ac_prog in ginstall scoinst install; do
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5076 if test $ac_prog = install &&
5077 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5078 # AIX install. It has an incompatible calling convention.
5079 :
5080 elif test $ac_prog = install &&
5081 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5082 # program-specific install script used by HP pwplus--don't use.
5083 :
5084 else
5085 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5086 break 3
5087 fi
5088 fi
5089 done
5090 done
5091 ;;
5092 esac
5093 done
5094 IFS=$as_save_IFS
5095
5096
5097 fi
5098 if test "${ac_cv_path_install+set}" = set; then
5099 INSTALL=$ac_cv_path_install
5100 else
5101 # As a last resort, use the slow shell script. Don't cache a
5102 # value for INSTALL within a source directory, because that will
5103 # break other packages using the cache if that directory is
5104 # removed, or if the value is a relative name.
5105 INSTALL=$ac_install_sh
5106 fi
5107 fi
5108 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5109 echo "${ECHO_T}$INSTALL" >&6; }
5110
5111 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5112 # It thinks the first close brace ends the variable substitution.
5113 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5114
5115 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5116
5117 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5118
5119 if test "x$RANLIB" = x; then
5120 if test -n "$ac_tool_prefix"; then
5121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5125 if test "${ac_cv_prog_RANLIB+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128 if test -n "$RANLIB"; then
5129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5141 fi
5142 done
5143 done
5144 IFS=$as_save_IFS
5145
5146 fi
5147 fi
5148 RANLIB=$ac_cv_prog_RANLIB
5149 if test -n "$RANLIB"; then
5150 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5151 echo "${ECHO_T}$RANLIB" >&6; }
5152 else
5153 { echo "$as_me:$LINENO: result: no" >&5
5154 echo "${ECHO_T}no" >&6; }
5155 fi
5156
5157
5158 fi
5159 if test -z "$ac_cv_prog_RANLIB"; then
5160 ac_ct_RANLIB=$RANLIB
5161 # Extract the first word of "ranlib", so it can be a program name with args.
5162 set dummy ranlib; ac_word=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 if test -n "$ac_ct_RANLIB"; then
5169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_ac_ct_RANLIB="ranlib"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5189 if test -n "$ac_ct_RANLIB"; then
5190 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5191 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5192 else
5193 { echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6; }
5195 fi
5196
5197 if test "x$ac_ct_RANLIB" = x; then
5198 RANLIB=":"
5199 else
5200 case $cross_compiling:$ac_tool_warned in
5201 yes:)
5202 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5203 whose name does not start with the host triplet. If you think this
5204 configuration is useful to you, please write to autoconf@gnu.org." >&5
5205 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5206 whose name does not start with the host triplet. If you think this
5207 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5208 ac_tool_warned=yes ;;
5209 esac
5210 RANLIB=$ac_ct_RANLIB
5211 fi
5212 else
5213 RANLIB="$ac_cv_prog_RANLIB"
5214 fi
5215
5216 fi
5217 # Extract the first word of "install-info", so it can be a program name with args.
5218 set dummy install-info; ac_word=$2
5219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5221 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 case $INSTALL_INFO in
5225 [\\/]* | ?:[\\/]*)
5226 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5227 ;;
5228 *)
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244 ;;
5245 esac
5246 fi
5247 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5248 if test -n "$INSTALL_INFO"; then
5249 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5250 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5251 else
5252 { echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6; }
5254 fi
5255
5256
5257 # Extract the first word of "install-info", so it can be a program name with args.
5258 set dummy install-info; ac_word=$2
5259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5261 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264 case $INSTALL_INFO in
5265 [\\/]* | ?:[\\/]*)
5266 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5267 ;;
5268 *)
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in /usr/sbin
5271 do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5279 fi
5280 done
5281 done
5282 IFS=$as_save_IFS
5283
5284 ;;
5285 esac
5286 fi
5287 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5288 if test -n "$INSTALL_INFO"; then
5289 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5290 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5291 else
5292 { echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6; }
5294 fi
5295
5296
5297 # Extract the first word of "install-info", so it can be a program name with args.
5298 set dummy install-info; ac_word=$2
5299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5301 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 case $INSTALL_INFO in
5305 [\\/]* | ?:[\\/]*)
5306 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5307 ;;
5308 *)
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in /sbin
5311 do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320 done
5321 done
5322 IFS=$as_save_IFS
5323
5324 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5325 ;;
5326 esac
5327 fi
5328 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5329 if test -n "$INSTALL_INFO"; then
5330 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5331 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5332 else
5333 { echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6; }
5335 fi
5336
5337
5338 # Extract the first word of "gzip", so it can be a program name with args.
5339 set dummy gzip; ac_word=$2
5340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5342 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 case $GZIP_PROG in
5346 [\\/]* | ?:[\\/]*)
5347 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5348 ;;
5349 *)
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5360 fi
5361 done
5362 done
5363 IFS=$as_save_IFS
5364
5365 ;;
5366 esac
5367 fi
5368 GZIP_PROG=$ac_cv_path_GZIP_PROG
5369 if test -n "$GZIP_PROG"; then
5370 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5371 echo "${ECHO_T}$GZIP_PROG" >&6; }
5372 else
5373 { echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6; }
5375 fi
5376
5377
5378
5379
5380 ## Need makeinfo >= 4.6 (?) to build the manuals.
5381 # Extract the first word of "makeinfo", so it can be a program name with args.
5382 set dummy makeinfo; ac_word=$2
5383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5385 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 case $MAKEINFO in
5389 [\\/]* | ?:[\\/]*)
5390 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5391 ;;
5392 *)
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5403 fi
5404 done
5405 done
5406 IFS=$as_save_IFS
5407
5408 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5409 ;;
5410 esac
5411 fi
5412 MAKEINFO=$ac_cv_path_MAKEINFO
5413 if test -n "$MAKEINFO"; then
5414 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5415 echo "${ECHO_T}$MAKEINFO" >&6; }
5416 else
5417 { echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6; }
5419 fi
5420
5421
5422 if test "$MAKEINFO" != "no" && \
5423 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
5424 MAKEINFO=no
5425 fi
5426
5427 if test "$MAKEINFO" = "no"; then
5428 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5429 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5430 { (exit 1); exit 1; }; }
5431 fi
5432
5433
5434
5435 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5436 then
5437 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5438 fi
5439
5440 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5441 then
5442 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5443 fi
5444
5445
5446 late_LDFLAGS=$LDFLAGS
5447 if test "$GCC" = yes; then
5448 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5449 else
5450 LDFLAGS="$LDFLAGS -znocombreloc"
5451 fi
5452
5453 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5454 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5455 cat >conftest.$ac_ext <<_ACEOF
5456 main(){return 0;}
5457 _ACEOF
5458 rm -f conftest.$ac_objext conftest$ac_exeext
5459 if { (ac_try="$ac_link"
5460 case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463 esac
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_link") 2>conftest.er1
5466 ac_status=$?
5467 grep -v '^ *+' conftest.er1 >conftest.err
5468 rm -f conftest.er1
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } && {
5472 test -z "$ac_c_werror_flag" ||
5473 test ! -s conftest.err
5474 } && test -s conftest$ac_exeext &&
5475 $as_test_x conftest$ac_exeext; then
5476 { echo "$as_me:$LINENO: result: yes" >&5
5477 echo "${ECHO_T}yes" >&6; }
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482 LDFLAGS=$late_LDFLAGS
5483 { echo "$as_me:$LINENO: result: no" >&5
5484 echo "${ECHO_T}no" >&6; }
5485 fi
5486
5487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5488 conftest$ac_exeext conftest.$ac_ext
5489
5490 #### Extract some information from the operating system and machine files.
5491
5492 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5493 - which libraries the lib-src programs will want, and
5494 - whether the GNU malloc routines are usable..." >&5
5495 echo "$as_me: checking the machine- and system-dependent files to find out
5496 - which libraries the lib-src programs will want, and
5497 - whether the GNU malloc routines are usable..." >&6;}
5498
5499 ### First figure out CFLAGS (which we use for running the compiler here)
5500 ### and REAL_CFLAGS (which we use for real compilation).
5501 ### The two are the same except on a few systems, where they are made
5502 ### different to work around various lossages. For example,
5503 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5504 ### as implying static linking.
5505
5506 ### If the CFLAGS env var is specified, we use that value
5507 ### instead of the default.
5508
5509 ### It's not important that this name contain the PID; you can't run
5510 ### two configures in the same directory and have anything work
5511 ### anyway.
5512 tempcname="conftest.c"
5513
5514 echo '
5515 #include "'${srcdir}'/src/'${opsysfile}'"
5516 #include "'${srcdir}'/src/'${machfile}'"
5517 #ifndef LIBS_MACHINE
5518 #define LIBS_MACHINE
5519 #endif
5520 #ifndef LIBS_SYSTEM
5521 #define LIBS_SYSTEM
5522 #endif
5523 #ifndef C_SWITCH_SYSTEM
5524 #define C_SWITCH_SYSTEM
5525 #endif
5526 #ifndef C_SWITCH_MACHINE
5527 #define C_SWITCH_MACHINE
5528 #endif
5529 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5530 configure___ c_switch_system=C_SWITCH_SYSTEM
5531 configure___ c_switch_machine=C_SWITCH_MACHINE
5532
5533 #ifndef LIB_X11_LIB
5534 #define LIB_X11_LIB -lX11
5535 #endif
5536
5537 #ifndef LIBX11_MACHINE
5538 #define LIBX11_MACHINE
5539 #endif
5540
5541 #ifndef LIBX11_SYSTEM
5542 #define LIBX11_SYSTEM
5543 #endif
5544 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5545
5546 #ifdef UNEXEC
5547 configure___ unexec=UNEXEC
5548 #else
5549 configure___ unexec=unexec.o
5550 #endif
5551
5552 #ifdef SYSTEM_MALLOC
5553 configure___ system_malloc=yes
5554 #else
5555 configure___ system_malloc=no
5556 #endif
5557
5558 #ifdef USE_MMAP_FOR_BUFFERS
5559 configure___ use_mmap_for_buffers=yes
5560 #else
5561 configure___ use_mmap_for_buffers=no
5562 #endif
5563
5564 #ifndef C_DEBUG_SWITCH
5565 #define C_DEBUG_SWITCH -g
5566 #endif
5567
5568 #ifndef C_OPTIMIZE_SWITCH
5569 #ifdef __GNUC__
5570 #define C_OPTIMIZE_SWITCH -O2
5571 #else
5572 #define C_OPTIMIZE_SWITCH -O
5573 #endif
5574 #endif
5575
5576 #ifndef C_WARNINGS_SWITCH
5577 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5578 #endif
5579
5580 #ifndef LD_SWITCH_MACHINE
5581 #define LD_SWITCH_MACHINE
5582 #endif
5583
5584 #ifndef LD_SWITCH_SYSTEM
5585 #define LD_SWITCH_SYSTEM
5586 #endif
5587
5588 #ifndef LD_SWITCH_X_SITE_AUX
5589 #define LD_SWITCH_X_SITE_AUX
5590 #endif
5591
5592 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5593 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5594
5595 #ifdef THIS_IS_CONFIGURE
5596
5597 /* Get the CFLAGS for tests in configure. */
5598 #ifdef __GNUC__
5599 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5600 #else
5601 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5602 #endif
5603
5604 #else /* not THIS_IS_CONFIGURE */
5605
5606 /* Get the CFLAGS for real compilation. */
5607 #ifdef __GNUC__
5608 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5609 #else
5610 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5611 #endif
5612
5613 #endif /* not THIS_IS_CONFIGURE */
5614 ' > ${tempcname}
5615
5616 # The value of CPP is a quoted variable reference, so we need to do this
5617 # to get its actual value...
5618 CPP=`eval "echo $CPP"`
5619 eval `${CPP} -Isrc ${tempcname} \
5620 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5621 if test "x$SPECIFIED_CFLAGS" = x; then
5622 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5623 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5624 else
5625 REAL_CFLAGS="$CFLAGS"
5626 fi
5627 rm ${tempcname}
5628
5629 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5630
5631 ### Make sure subsequent tests use flags consistent with the build flags.
5632
5633 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5634 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5635 else
5636 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5637 fi
5638
5639
5640
5641 # Check whether --enable-largefile was given.
5642 if test "${enable_largefile+set}" = set; then
5643 enableval=$enable_largefile;
5644 fi
5645
5646 if test "$enable_largefile" != no; then
5647
5648 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5649 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5650 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 ac_cv_sys_largefile_CC=no
5654 if test "$GCC" != yes; then
5655 ac_save_CC=$CC
5656 while :; do
5657 # IRIX 6.2 and later do not support large files by default,
5658 # so use the C compiler's -n32 option if that helps.
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #include <sys/types.h>
5666 /* Check that off_t can represent 2**63 - 1 correctly.
5667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5668 since some C++ compilers masquerading as C compilers
5669 incorrectly reject 9223372036854775807. */
5670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5672 && LARGE_OFF_T % 2147483647 == 1)
5673 ? 1 : -1];
5674 int
5675 main ()
5676 {
5677
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5684 case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_compile") 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.$ac_objext; then
5699 break
5700 else
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704
5705 fi
5706
5707 rm -f core conftest.err conftest.$ac_objext
5708 CC="$CC -n32"
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5711 case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5726 ac_cv_sys_largefile_CC=' -n32'; break
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731
5732 fi
5733
5734 rm -f core conftest.err conftest.$ac_objext
5735 break
5736 done
5737 CC=$ac_save_CC
5738 rm -f conftest.$ac_ext
5739 fi
5740 fi
5741 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5742 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5743 if test "$ac_cv_sys_largefile_CC" != no; then
5744 CC=$CC$ac_cv_sys_largefile_CC
5745 fi
5746
5747 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5748 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5749 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752 while :; do
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5767 ? 1 : -1];
5768 int
5769 main ()
5770 {
5771
5772 ;
5773 return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5778 case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781 esac
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest.$ac_objext; then
5793 ac_cv_sys_file_offset_bits=no; break
5794 else
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798
5799 fi
5800
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802 cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h. */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 #define _FILE_OFFSET_BITS 64
5809 #include <sys/types.h>
5810 /* Check that off_t can represent 2**63 - 1 correctly.
5811 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5812 since some C++ compilers masquerading as C compilers
5813 incorrectly reject 9223372036854775807. */
5814 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5816 && LARGE_OFF_T % 2147483647 == 1)
5817 ? 1 : -1];
5818 int
5819 main ()
5820 {
5821
5822 ;
5823 return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.$ac_objext; then
5843 ac_cv_sys_file_offset_bits=64; break
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5847
5848
5849 fi
5850
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 ac_cv_sys_file_offset_bits=unknown
5853 break
5854 done
5855 fi
5856 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5857 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5858 case $ac_cv_sys_file_offset_bits in #(
5859 no | unknown) ;;
5860 *)
5861 cat >>confdefs.h <<_ACEOF
5862 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5863 _ACEOF
5864 ;;
5865 esac
5866 rm -f conftest*
5867 if test $ac_cv_sys_file_offset_bits = unknown; then
5868 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5869 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5870 if test "${ac_cv_sys_large_files+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873 while :; do
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 #include <sys/types.h>
5881 /* Check that off_t can represent 2**63 - 1 correctly.
5882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5883 since some C++ compilers masquerading as C compilers
5884 incorrectly reject 9223372036854775807. */
5885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5887 && LARGE_OFF_T % 2147483647 == 1)
5888 ? 1 : -1];
5889 int
5890 main ()
5891 {
5892
5893 ;
5894 return 0;
5895 }
5896 _ACEOF
5897 rm -f conftest.$ac_objext
5898 if { (ac_try="$ac_compile"
5899 case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_compile") 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } && {
5911 test -z "$ac_c_werror_flag" ||
5912 test ! -s conftest.err
5913 } && test -s conftest.$ac_objext; then
5914 ac_cv_sys_large_files=no; break
5915 else
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5918
5919
5920 fi
5921
5922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 #define _LARGE_FILES 1
5930 #include <sys/types.h>
5931 /* Check that off_t can represent 2**63 - 1 correctly.
5932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5933 since some C++ compilers masquerading as C compilers
5934 incorrectly reject 9223372036854775807. */
5935 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5937 && LARGE_OFF_T % 2147483647 == 1)
5938 ? 1 : -1];
5939 int
5940 main ()
5941 {
5942
5943 ;
5944 return 0;
5945 }
5946 _ACEOF
5947 rm -f conftest.$ac_objext
5948 if { (ac_try="$ac_compile"
5949 case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_compile") 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && {
5961 test -z "$ac_c_werror_flag" ||
5962 test ! -s conftest.err
5963 } && test -s conftest.$ac_objext; then
5964 ac_cv_sys_large_files=1; break
5965 else
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969
5970 fi
5971
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 ac_cv_sys_large_files=unknown
5974 break
5975 done
5976 fi
5977 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5978 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5979 case $ac_cv_sys_large_files in #(
5980 no | unknown) ;;
5981 *)
5982 cat >>confdefs.h <<_ACEOF
5983 #define _LARGE_FILES $ac_cv_sys_large_files
5984 _ACEOF
5985 ;;
5986 esac
5987 rm -f conftest*
5988 fi
5989 fi
5990
5991
5992
5993 ### The standard library on x86-64 GNU/Linux distributions can
5994 ### be located in either /usr/lib64 or /usr/lib.
5995 case "${canonical}" in
5996 x86_64-*-linux-gnu* )
5997 if test -d /usr/lib64; then
5998
5999 cat >>confdefs.h <<\_ACEOF
6000 #define HAVE_X86_64_LIB64_DIR 1
6001 _ACEOF
6002
6003 fi
6004 esac
6005
6006
6007
6008
6009 if test "${with_sound}" != "no"; then
6010 # Sound support for GNU/Linux and the free BSDs.
6011 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6012 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6013 if test "${ac_cv_header_stdc+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #include <stdlib.h>
6023 #include <stdarg.h>
6024 #include <string.h>
6025 #include <float.h>
6026
6027 int
6028 main ()
6029 {
6030
6031 ;
6032 return 0;
6033 }
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6037 case "(($ac_try" in
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6040 esac
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && {
6049 test -z "$ac_c_werror_flag" ||
6050 test ! -s conftest.err
6051 } && test -s conftest.$ac_objext; then
6052 ac_cv_header_stdc=yes
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057 ac_cv_header_stdc=no
6058 fi
6059
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061
6062 if test $ac_cv_header_stdc = yes; then
6063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <string.h>
6071
6072 _ACEOF
6073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6074 $EGREP "memchr" >/dev/null 2>&1; then
6075 :
6076 else
6077 ac_cv_header_stdc=no
6078 fi
6079 rm -f conftest*
6080
6081 fi
6082
6083 if test $ac_cv_header_stdc = yes; then
6084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <stdlib.h>
6092
6093 _ACEOF
6094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6095 $EGREP "free" >/dev/null 2>&1; then
6096 :
6097 else
6098 ac_cv_header_stdc=no
6099 fi
6100 rm -f conftest*
6101
6102 fi
6103
6104 if test $ac_cv_header_stdc = yes; then
6105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6106 if test "$cross_compiling" = yes; then
6107 :
6108 else
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #include <ctype.h>
6116 #include <stdlib.h>
6117 #if ((' ' & 0x0FF) == 0x020)
6118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6120 #else
6121 # define ISLOWER(c) \
6122 (('a' <= (c) && (c) <= 'i') \
6123 || ('j' <= (c) && (c) <= 'r') \
6124 || ('s' <= (c) && (c) <= 'z'))
6125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6126 #endif
6127
6128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6129 int
6130 main ()
6131 {
6132 int i;
6133 for (i = 0; i < 256; i++)
6134 if (XOR (islower (i), ISLOWER (i))
6135 || toupper (i) != TOUPPER (i))
6136 return 2;
6137 return 0;
6138 }
6139 _ACEOF
6140 rm -f conftest$ac_exeext
6141 if { (ac_try="$ac_link"
6142 case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145 esac
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_link") 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 :
6161 else
6162 echo "$as_me: program exited with status $ac_status" >&5
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6165
6166 ( exit $ac_status )
6167 ac_cv_header_stdc=no
6168 fi
6169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6170 fi
6171
6172
6173 fi
6174 fi
6175 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6176 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6177 if test $ac_cv_header_stdc = yes; then
6178
6179 cat >>confdefs.h <<\_ACEOF
6180 #define STDC_HEADERS 1
6181 _ACEOF
6182
6183 fi
6184
6185 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6196 inttypes.h stdint.h unistd.h
6197 do
6198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h. */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 $ac_includes_default
6211
6212 #include <$ac_header>
6213 _ACEOF
6214 rm -f conftest.$ac_objext
6215 if { (ac_try="$ac_compile"
6216 case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219 esac
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_compile") 2>conftest.er1
6222 ac_status=$?
6223 grep -v '^ *+' conftest.er1 >conftest.err
6224 rm -f conftest.er1
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && {
6228 test -z "$ac_c_werror_flag" ||
6229 test ! -s conftest.err
6230 } && test -s conftest.$ac_objext; then
6231 eval "$as_ac_Header=yes"
6232 else
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236 eval "$as_ac_Header=no"
6237 fi
6238
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 fi
6241 ac_res=`eval echo '${'$as_ac_Header'}'`
6242 { echo "$as_me:$LINENO: result: $ac_res" >&5
6243 echo "${ECHO_T}$ac_res" >&6; }
6244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6245 cat >>confdefs.h <<_ACEOF
6246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6247 _ACEOF
6248
6249 fi
6250
6251 done
6252
6253
6254
6255
6256
6257 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6258 do
6259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 fi
6266 ac_res=`eval echo '${'$as_ac_Header'}'`
6267 { echo "$as_me:$LINENO: result: $ac_res" >&5
6268 echo "${ECHO_T}$ac_res" >&6; }
6269 else
6270 # Is the header compilable?
6271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6273 cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h. */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 $ac_includes_default
6280 #include <$ac_header>
6281 _ACEOF
6282 rm -f conftest.$ac_objext
6283 if { (ac_try="$ac_compile"
6284 case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287 esac
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
6299 ac_header_compiler=yes
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 ac_header_compiler=no
6305 fi
6306
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6309 echo "${ECHO_T}$ac_header_compiler" >&6; }
6310
6311 # Is the header present?
6312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6314 cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h. */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6320 #include <$ac_header>
6321 _ACEOF
6322 if { (ac_try="$ac_cpp conftest.$ac_ext"
6323 case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } >/dev/null && {
6335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6337 }; then
6338 ac_header_preproc=yes
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6342
6343 ac_header_preproc=no
6344 fi
6345
6346 rm -f conftest.err conftest.$ac_ext
6347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6348 echo "${ECHO_T}$ac_header_preproc" >&6; }
6349
6350 # So? What about this header?
6351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6352 yes:no: )
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6357 ac_header_preproc=yes
6358 ;;
6359 no:yes:* )
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6372
6373 ;;
6374 esac
6375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380 eval "$as_ac_Header=\$ac_header_preproc"
6381 fi
6382 ac_res=`eval echo '${'$as_ac_Header'}'`
6383 { echo "$as_me:$LINENO: result: $ac_res" >&5
6384 echo "${ECHO_T}$ac_res" >&6; }
6385
6386 fi
6387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390 _ACEOF
6391
6392 fi
6393
6394 done
6395
6396 # Emulation library used on NetBSD.
6397 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6398 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6399 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 ac_check_lib_save_LIBS=$LIBS
6403 LIBS="-lossaudio $LIBS"
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h. */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410
6411 /* Override any GCC internal prototype to avoid an error.
6412 Use char because int might match the return type of a GCC
6413 builtin and then its argument prototype would still apply. */
6414 #ifdef __cplusplus
6415 extern "C"
6416 #endif
6417 char _oss_ioctl ();
6418 int
6419 main ()
6420 {
6421 return _oss_ioctl ();
6422 ;
6423 return 0;
6424 }
6425 _ACEOF
6426 rm -f conftest.$ac_objext conftest$ac_exeext
6427 if { (ac_try="$ac_link"
6428 case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431 esac
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_link") 2>conftest.er1
6434 ac_status=$?
6435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } && {
6440 test -z "$ac_c_werror_flag" ||
6441 test ! -s conftest.err
6442 } && test -s conftest$ac_exeext &&
6443 $as_test_x conftest$ac_exeext; then
6444 ac_cv_lib_ossaudio__oss_ioctl=yes
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449 ac_cv_lib_ossaudio__oss_ioctl=no
6450 fi
6451
6452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6453 conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6455 fi
6456 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6457 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6458 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6459 LIBSOUND=-lossaudio
6460 else
6461 LIBSOUND=
6462 fi
6463
6464
6465
6466 ALSA_REQUIRED=1.0.0
6467 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6468 if test "X${with_pkg_config_prog}" != X; then
6469 PKG_CONFIG="${with_pkg_config_prog}"
6470 fi
6471
6472 succeeded=no
6473
6474 if test -z "$PKG_CONFIG"; then
6475 # Extract the first word of "pkg-config", so it can be a program name with args.
6476 set dummy pkg-config; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 case $PKG_CONFIG in
6483 [\\/]* | ?:[\\/]*)
6484 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6485 ;;
6486 *)
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6503 ;;
6504 esac
6505 fi
6506 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6507 if test -n "$PKG_CONFIG"; then
6508 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6509 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6510 else
6511 { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6513 fi
6514
6515
6516 fi
6517
6518 if test "$PKG_CONFIG" = "no" ; then
6519 HAVE_ALSA=no
6520 else
6521 PKG_CONFIG_MIN_VERSION=0.9.0
6522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6523 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6524 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6525
6526 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6527 { echo "$as_me:$LINENO: result: yes" >&5
6528 echo "${ECHO_T}yes" >&6; }
6529 succeeded=yes
6530
6531 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6532 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6533 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6534 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6535 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6536
6537 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6538 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6539 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6540 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6541 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6542 else
6543 { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6545 ALSA_CFLAGS=""
6546 ALSA_LIBS=""
6547 ## If we have a custom action on failure, don't print errors, but
6548 ## do set a variable so people can do so.
6549 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6550
6551 fi
6552
6553
6554
6555 else
6556 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6557 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6558 fi
6559 fi
6560
6561 if test $succeeded = yes; then
6562 HAVE_ALSA=yes
6563 else
6564 HAVE_ALSA=no
6565 fi
6566
6567 if test $HAVE_ALSA = yes; then
6568 SAVE_CFLAGS="$CFLAGS"
6569 SAVE_LDFLAGS="$LDFLAGS"
6570 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6571 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 #include <asoundlib.h>
6579 int
6580 main ()
6581 {
6582 snd_lib_error_set_handler (0);
6583 ;
6584 return 0;
6585 }
6586 _ACEOF
6587 rm -f conftest.$ac_objext
6588 if { (ac_try="$ac_compile"
6589 case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592 esac
6593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_compile") 2>conftest.er1
6595 ac_status=$?
6596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } && {
6601 test -z "$ac_c_werror_flag" ||
6602 test ! -s conftest.err
6603 } && test -s conftest.$ac_objext; then
6604 emacs_alsa_normal=yes
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609 emacs_alsa_normal=no
6610 fi
6611
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 if test "$emacs_alsa_normal" != yes; then
6614 cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h. */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 #include <alsa/asoundlib.h>
6621 int
6622 main ()
6623 {
6624 snd_lib_error_set_handler (0);
6625 ;
6626 return 0;
6627 }
6628 _ACEOF
6629 rm -f conftest.$ac_objext
6630 if { (ac_try="$ac_compile"
6631 case "(($ac_try" in
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6634 esac
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636 (eval "$ac_compile") 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } && {
6643 test -z "$ac_c_werror_flag" ||
6644 test ! -s conftest.err
6645 } && test -s conftest.$ac_objext; then
6646 emacs_alsa_subdir=yes
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 emacs_alsa_subdir=no
6652 fi
6653
6654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655 if test "$emacs_alsa_subdir" != yes; then
6656 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6657 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6658 { (exit 1); exit 1; }; }
6659 fi
6660 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6661 fi
6662
6663 CFLAGS="$SAVE_CFLAGS"
6664 LDFLAGS="$SAVE_LDFLAGS"
6665 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6666 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6667
6668 cat >>confdefs.h <<\_ACEOF
6669 #define HAVE_ALSA 1
6670 _ACEOF
6671
6672 fi
6673
6674 fi
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6702 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6703 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6704 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6705 sys/utsname.h pwd.h
6706 do
6707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 fi
6714 ac_res=`eval echo '${'$as_ac_Header'}'`
6715 { echo "$as_me:$LINENO: result: $ac_res" >&5
6716 echo "${ECHO_T}$ac_res" >&6; }
6717 else
6718 # Is the header compilable?
6719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h. */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 $ac_includes_default
6728 #include <$ac_header>
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_compile") 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest.$ac_objext; then
6747 ac_header_compiler=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6751
6752 ac_header_compiler=no
6753 fi
6754
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6757 echo "${ECHO_T}$ac_header_compiler" >&6; }
6758
6759 # Is the header present?
6760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6762 cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h. */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 #include <$ac_header>
6769 _ACEOF
6770 if { (ac_try="$ac_cpp conftest.$ac_ext"
6771 case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774 esac
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } >/dev/null && {
6783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 }; then
6786 ac_header_preproc=yes
6787 else
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 ac_header_preproc=no
6792 fi
6793
6794 rm -f conftest.err conftest.$ac_ext
6795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6796 echo "${ECHO_T}$ac_header_preproc" >&6; }
6797
6798 # So? What about this header?
6799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6800 yes:no: )
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6805 ac_header_preproc=yes
6806 ;;
6807 no:yes:* )
6808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6820
6821 ;;
6822 esac
6823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828 eval "$as_ac_Header=\$ac_header_preproc"
6829 fi
6830 ac_res=`eval echo '${'$as_ac_Header'}'`
6831 { echo "$as_me:$LINENO: result: $ac_res" >&5
6832 echo "${ECHO_T}$ac_res" >&6; }
6833
6834 fi
6835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836 cat >>confdefs.h <<_ACEOF
6837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6838 _ACEOF
6839
6840 fi
6841
6842 done
6843
6844
6845 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6846 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 #include <sys/personality.h>
6854 int
6855 main ()
6856 {
6857 personality (PER_LINUX32)
6858 ;
6859 return 0;
6860 }
6861 _ACEOF
6862 rm -f conftest.$ac_objext
6863 if { (ac_try="$ac_compile"
6864 case "(($ac_try" in
6865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6867 esac
6868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6869 (eval "$ac_compile") 2>conftest.er1
6870 ac_status=$?
6871 grep -v '^ *+' conftest.er1 >conftest.err
6872 rm -f conftest.er1
6873 cat conftest.err >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } && {
6876 test -z "$ac_c_werror_flag" ||
6877 test ! -s conftest.err
6878 } && test -s conftest.$ac_objext; then
6879 emacs_cv_personality_linux32=yes
6880 else
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6883
6884 emacs_cv_personality_linux32=no
6885 fi
6886
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6889 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6890
6891 if test $emacs_cv_personality_linux32 = yes; then
6892
6893 cat >>confdefs.h <<\_ACEOF
6894 #define HAVE_PERSONALITY_LINUX32 1
6895 _ACEOF
6896
6897 fi
6898
6899
6900 for ac_header in term.h
6901 do
6902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908 cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h. */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 #include <$ac_header>
6915 _ACEOF
6916 if { (ac_try="$ac_cpp conftest.$ac_ext"
6917 case "(($ac_try" in
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6920 esac
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } >/dev/null && {
6929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6930 test ! -s conftest.err
6931 }; then
6932 eval "$as_ac_Header=yes"
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 eval "$as_ac_Header=no"
6938 fi
6939
6940 rm -f conftest.err conftest.$ac_ext
6941 fi
6942 ac_res=`eval echo '${'$as_ac_Header'}'`
6943 { echo "$as_me:$LINENO: result: $ac_res" >&5
6944 echo "${ECHO_T}$ac_res" >&6; }
6945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6946 cat >>confdefs.h <<_ACEOF
6947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6948 _ACEOF
6949
6950 fi
6951
6952 done
6953
6954 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6955 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6956 if test "${ac_cv_header_stdc+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 #include <stdlib.h>
6966 #include <stdarg.h>
6967 #include <string.h>
6968 #include <float.h>
6969
6970 int
6971 main ()
6972 {
6973
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (ac_try="$ac_compile"
6980 case "(($ac_try" in
6981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6983 esac
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6995 ac_cv_header_stdc=yes
6996 else
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
6999
7000 ac_cv_header_stdc=no
7001 fi
7002
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004
7005 if test $ac_cv_header_stdc = yes; then
7006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7007 cat >conftest.$ac_ext <<_ACEOF
7008 /* confdefs.h. */
7009 _ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 #include <string.h>
7014
7015 _ACEOF
7016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7017 $EGREP "memchr" >/dev/null 2>&1; then
7018 :
7019 else
7020 ac_cv_header_stdc=no
7021 fi
7022 rm -f conftest*
7023
7024 fi
7025
7026 if test $ac_cv_header_stdc = yes; then
7027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 #include <stdlib.h>
7035
7036 _ACEOF
7037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7038 $EGREP "free" >/dev/null 2>&1; then
7039 :
7040 else
7041 ac_cv_header_stdc=no
7042 fi
7043 rm -f conftest*
7044
7045 fi
7046
7047 if test $ac_cv_header_stdc = yes; then
7048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7049 if test "$cross_compiling" = yes; then
7050 :
7051 else
7052 cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h. */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 #include <ctype.h>
7059 #include <stdlib.h>
7060 #if ((' ' & 0x0FF) == 0x020)
7061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7063 #else
7064 # define ISLOWER(c) \
7065 (('a' <= (c) && (c) <= 'i') \
7066 || ('j' <= (c) && (c) <= 'r') \
7067 || ('s' <= (c) && (c) <= 'z'))
7068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7069 #endif
7070
7071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7072 int
7073 main ()
7074 {
7075 int i;
7076 for (i = 0; i < 256; i++)
7077 if (XOR (islower (i), ISLOWER (i))
7078 || toupper (i) != TOUPPER (i))
7079 return 2;
7080 return 0;
7081 }
7082 _ACEOF
7083 rm -f conftest$ac_exeext
7084 if { (ac_try="$ac_link"
7085 case "(($ac_try" in
7086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087 *) ac_try_echo=$ac_try;;
7088 esac
7089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090 (eval "$ac_link") 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7094 { (case "(($ac_try" in
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7097 esac
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_try") 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 :
7104 else
7105 echo "$as_me: program exited with status $ac_status" >&5
7106 echo "$as_me: failed program was:" >&5
7107 sed 's/^/| /' conftest.$ac_ext >&5
7108
7109 ( exit $ac_status )
7110 ac_cv_header_stdc=no
7111 fi
7112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7113 fi
7114
7115
7116 fi
7117 fi
7118 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7119 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7120 if test $ac_cv_header_stdc = yes; then
7121
7122 cat >>confdefs.h <<\_ACEOF
7123 #define STDC_HEADERS 1
7124 _ACEOF
7125
7126 fi
7127
7128 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7129 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7130 if test "${ac_cv_header_time+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133 cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h. */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 #include <sys/types.h>
7140 #include <sys/time.h>
7141 #include <time.h>
7142
7143 int
7144 main ()
7145 {
7146 if ((struct tm *) 0)
7147 return 0;
7148 ;
7149 return 0;
7150 }
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (ac_try="$ac_compile"
7154 case "(($ac_try" in
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7157 esac
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_compile") 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_c_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest.$ac_objext; then
7169 ac_cv_header_time=yes
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7173
7174 ac_cv_header_time=no
7175 fi
7176
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 fi
7179 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7180 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7181 if test $ac_cv_header_time = yes; then
7182
7183 cat >>confdefs.h <<\_ACEOF
7184 #define TIME_WITH_SYS_TIME 1
7185 _ACEOF
7186
7187 fi
7188
7189 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7190 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7191 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h. */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7201 int
7202 main ()
7203 {
7204 #ifndef sys_siglist
7205 (void) sys_siglist;
7206 #endif
7207
7208 ;
7209 return 0;
7210 }
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7214 case "(($ac_try" in
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7217 esac
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7220 ac_status=$?
7221 grep -v '^ *+' conftest.er1 >conftest.err
7222 rm -f conftest.er1
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7229 ac_cv_have_decl_sys_siglist=yes
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234 ac_cv_have_decl_sys_siglist=no
7235 fi
7236
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 fi
7239 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7240 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7241 if test $ac_cv_have_decl_sys_siglist = yes; then
7242
7243 cat >>confdefs.h <<_ACEOF
7244 #define HAVE_DECL_SYS_SIGLIST 1
7245 _ACEOF
7246
7247
7248 else
7249 cat >>confdefs.h <<_ACEOF
7250 #define HAVE_DECL_SYS_SIGLIST 0
7251 _ACEOF
7252
7253
7254 fi
7255
7256
7257 if test $ac_cv_have_decl_sys_siglist != yes; then
7258 # For Tru64, at least:
7259 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7260 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7261 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 $ac_includes_default
7271 int
7272 main ()
7273 {
7274 #ifndef __sys_siglist
7275 (void) __sys_siglist;
7276 #endif
7277
7278 ;
7279 return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext
7283 if { (ac_try="$ac_compile"
7284 case "(($ac_try" in
7285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7287 esac
7288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289 (eval "$ac_compile") 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } && {
7296 test -z "$ac_c_werror_flag" ||
7297 test ! -s conftest.err
7298 } && test -s conftest.$ac_objext; then
7299 ac_cv_have_decl___sys_siglist=yes
7300 else
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7303
7304 ac_cv_have_decl___sys_siglist=no
7305 fi
7306
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 fi
7309 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7310 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7311 if test $ac_cv_have_decl___sys_siglist = yes; then
7312
7313 cat >>confdefs.h <<_ACEOF
7314 #define HAVE_DECL___SYS_SIGLIST 1
7315 _ACEOF
7316
7317
7318 else
7319 cat >>confdefs.h <<_ACEOF
7320 #define HAVE_DECL___SYS_SIGLIST 0
7321 _ACEOF
7322
7323
7324 fi
7325
7326
7327 if test $ac_cv_have_decl___sys_siglist = yes; then
7328
7329 cat >>confdefs.h <<\_ACEOF
7330 #define sys_siglist __sys_siglist
7331 _ACEOF
7332
7333 fi
7334 fi
7335 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7336 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7337 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #include <sys/types.h>
7347 #include <sys/wait.h>
7348 #ifndef WEXITSTATUS
7349 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7350 #endif
7351 #ifndef WIFEXITED
7352 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7353 #endif
7354
7355 int
7356 main ()
7357 {
7358 int s;
7359 wait (&s);
7360 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7361 ;
7362 return 0;
7363 }
7364 _ACEOF
7365 rm -f conftest.$ac_objext
7366 if { (ac_try="$ac_compile"
7367 case "(($ac_try" in
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7370 esac
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_compile") 2>conftest.er1
7373 ac_status=$?
7374 grep -v '^ *+' conftest.er1 >conftest.err
7375 rm -f conftest.er1
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } && {
7379 test -z "$ac_c_werror_flag" ||
7380 test ! -s conftest.err
7381 } && test -s conftest.$ac_objext; then
7382 ac_cv_header_sys_wait_h=yes
7383 else
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387 ac_cv_header_sys_wait_h=no
7388 fi
7389
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 fi
7392 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7393 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7394 if test $ac_cv_header_sys_wait_h = yes; then
7395
7396 cat >>confdefs.h <<\_ACEOF
7397 #define HAVE_SYS_WAIT_H 1
7398 _ACEOF
7399
7400 fi
7401
7402
7403 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7404 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7405 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 #ifdef TIME_WITH_SYS_TIME
7415 #include <sys/time.h>
7416 #include <time.h>
7417 #else
7418 #ifdef HAVE_SYS_TIME_H
7419 #include <sys/time.h>
7420 #else
7421 #include <time.h>
7422 #endif
7423 #endif
7424 #ifdef HAVE_UTIME_H
7425 #include <utime.h>
7426 #endif
7427 int
7428 main ()
7429 {
7430 static struct utimbuf x; x.actime = x.modtime;
7431 ;
7432 return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest.$ac_objext
7436 if { (ac_try="$ac_compile"
7437 case "(($ac_try" in
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7440 esac
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_compile") 2>conftest.er1
7443 ac_status=$?
7444 grep -v '^ *+' conftest.er1 >conftest.err
7445 rm -f conftest.er1
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest.$ac_objext; then
7452 emacs_cv_struct_utimbuf=yes
7453 else
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7456
7457 emacs_cv_struct_utimbuf=no
7458 fi
7459
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 fi
7462 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7463 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7464 if test $emacs_cv_struct_utimbuf = yes; then
7465
7466 cat >>confdefs.h <<\_ACEOF
7467 #define HAVE_STRUCT_UTIMBUF 1
7468 _ACEOF
7469
7470 fi
7471
7472 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7473 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7474 if test "${ac_cv_type_signal+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477 cat >conftest.$ac_ext <<_ACEOF
7478 /* confdefs.h. */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 #include <sys/types.h>
7484 #include <signal.h>
7485
7486 int
7487 main ()
7488 {
7489 return *(signal (0, 0)) (0) == 1;
7490 ;
7491 return 0;
7492 }
7493 _ACEOF
7494 rm -f conftest.$ac_objext
7495 if { (ac_try="$ac_compile"
7496 case "(($ac_try" in
7497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498 *) ac_try_echo=$ac_try;;
7499 esac
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501 (eval "$ac_compile") 2>conftest.er1
7502 ac_status=$?
7503 grep -v '^ *+' conftest.er1 >conftest.err
7504 rm -f conftest.er1
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && {
7508 test -z "$ac_c_werror_flag" ||
7509 test ! -s conftest.err
7510 } && test -s conftest.$ac_objext; then
7511 ac_cv_type_signal=int
7512 else
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7515
7516 ac_cv_type_signal=void
7517 fi
7518
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 fi
7521 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7522 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7523
7524 cat >>confdefs.h <<_ACEOF
7525 #define RETSIGTYPE $ac_cv_type_signal
7526 _ACEOF
7527
7528
7529
7530 { echo "$as_me:$LINENO: checking for speed_t" >&5
7531 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7532 if test "${emacs_cv_speed_t+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535 cat >conftest.$ac_ext <<_ACEOF
7536 /* confdefs.h. */
7537 _ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541 #include <termios.h>
7542 int
7543 main ()
7544 {
7545 speed_t x = 1;
7546 ;
7547 return 0;
7548 }
7549 _ACEOF
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7552 case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555 esac
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_c_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.$ac_objext; then
7567 emacs_cv_speed_t=yes
7568 else
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 emacs_cv_speed_t=no
7573 fi
7574
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 fi
7577 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7578 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7579 if test $emacs_cv_speed_t = yes; then
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_SPEED_T 1
7583 _ACEOF
7584
7585 fi
7586
7587 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7588 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7589 if test "${emacs_cv_struct_timeval+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 #ifdef TIME_WITH_SYS_TIME
7599 #include <sys/time.h>
7600 #include <time.h>
7601 #else
7602 #ifdef HAVE_SYS_TIME_H
7603 #include <sys/time.h>
7604 #else
7605 #include <time.h>
7606 #endif
7607 #endif
7608 int
7609 main ()
7610 {
7611 static struct timeval x; x.tv_sec = x.tv_usec;
7612 ;
7613 return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext
7617 if { (ac_try="$ac_compile"
7618 case "(($ac_try" in
7619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620 *) ac_try_echo=$ac_try;;
7621 esac
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_compile") 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && {
7630 test -z "$ac_c_werror_flag" ||
7631 test ! -s conftest.err
7632 } && test -s conftest.$ac_objext; then
7633 emacs_cv_struct_timeval=yes
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 emacs_cv_struct_timeval=no
7639 fi
7640
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642 fi
7643 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7644 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7645 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7646 if test $emacs_cv_struct_timeval = yes; then
7647
7648 cat >>confdefs.h <<\_ACEOF
7649 #define HAVE_TIMEVAL 1
7650 _ACEOF
7651
7652 fi
7653
7654 { echo "$as_me:$LINENO: checking for struct exception" >&5
7655 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7656 if test "${emacs_cv_struct_exception+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659 cat >conftest.$ac_ext <<_ACEOF
7660 /* confdefs.h. */
7661 _ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7665 #include <math.h>
7666 int
7667 main ()
7668 {
7669 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7670 ;
7671 return 0;
7672 }
7673 _ACEOF
7674 rm -f conftest.$ac_objext
7675 if { (ac_try="$ac_compile"
7676 case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7679 esac
7680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_compile") 2>conftest.er1
7682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && {
7688 test -z "$ac_c_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest.$ac_objext; then
7691 emacs_cv_struct_exception=yes
7692 else
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 emacs_cv_struct_exception=no
7697 fi
7698
7699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700 fi
7701 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7702 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7703 HAVE_EXCEPTION=$emacs_cv_struct_exception
7704 if test $emacs_cv_struct_exception != yes; then
7705
7706 cat >>confdefs.h <<\_ACEOF
7707 #define NO_MATHERR 1
7708 _ACEOF
7709
7710 fi
7711
7712
7713 for ac_header in sys/socket.h
7714 do
7715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 fi
7722 ac_res=`eval echo '${'$as_ac_Header'}'`
7723 { echo "$as_me:$LINENO: result: $ac_res" >&5
7724 echo "${ECHO_T}$ac_res" >&6; }
7725 else
7726 # Is the header compilable?
7727 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7729 cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h. */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735 $ac_includes_default
7736 #include <$ac_header>
7737 _ACEOF
7738 rm -f conftest.$ac_objext
7739 if { (ac_try="$ac_compile"
7740 case "(($ac_try" in
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7743 esac
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_compile") 2>conftest.er1
7746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } && {
7752 test -z "$ac_c_werror_flag" ||
7753 test ! -s conftest.err
7754 } && test -s conftest.$ac_objext; then
7755 ac_header_compiler=yes
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7759
7760 ac_header_compiler=no
7761 fi
7762
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7765 echo "${ECHO_T}$ac_header_compiler" >&6; }
7766
7767 # Is the header present?
7768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 #include <$ac_header>
7777 _ACEOF
7778 if { (ac_try="$ac_cpp conftest.$ac_ext"
7779 case "(($ac_try" in
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7782 esac
7783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7785 ac_status=$?
7786 grep -v '^ *+' conftest.er1 >conftest.err
7787 rm -f conftest.er1
7788 cat conftest.err >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } >/dev/null && {
7791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7792 test ! -s conftest.err
7793 }; then
7794 ac_header_preproc=yes
7795 else
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7798
7799 ac_header_preproc=no
7800 fi
7801
7802 rm -f conftest.err conftest.$ac_ext
7803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7804 echo "${ECHO_T}$ac_header_preproc" >&6; }
7805
7806 # So? What about this header?
7807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7808 yes:no: )
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7813 ac_header_preproc=yes
7814 ;;
7815 no:yes:* )
7816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7828
7829 ;;
7830 esac
7831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 eval "$as_ac_Header=\$ac_header_preproc"
7837 fi
7838 ac_res=`eval echo '${'$as_ac_Header'}'`
7839 { echo "$as_me:$LINENO: result: $ac_res" >&5
7840 echo "${ECHO_T}$ac_res" >&6; }
7841
7842 fi
7843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7844 cat >>confdefs.h <<_ACEOF
7845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7846 _ACEOF
7847
7848 fi
7849
7850 done
7851
7852
7853 for ac_header in net/if.h
7854 do
7855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 $ac_includes_default
7868 #if HAVE_SYS_SOCKET_H
7869 #include <sys/socket.h>
7870 #endif
7871
7872 #include <$ac_header>
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (ac_try="$ac_compile"
7876 case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879 esac
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7891 eval "$as_ac_Header=yes"
7892 else
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7895
7896 eval "$as_ac_Header=no"
7897 fi
7898
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 fi
7901 ac_res=`eval echo '${'$as_ac_Header'}'`
7902 { echo "$as_me:$LINENO: result: $ac_res" >&5
7903 echo "${ECHO_T}$ac_res" >&6; }
7904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7905 cat >>confdefs.h <<_ACEOF
7906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7907 _ACEOF
7908
7909 fi
7910
7911 done
7912
7913
7914 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7915 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7916 if test "${ac_cv_struct_tm+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 #include <sys/types.h>
7926 #include <time.h>
7927
7928 int
7929 main ()
7930 {
7931 struct tm tm;
7932 int *p = &tm.tm_sec;
7933 return !p;
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 rm -f conftest.$ac_objext
7939 if { (ac_try="$ac_compile"
7940 case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943 esac
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.$ac_objext; then
7955 ac_cv_struct_tm=time.h
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 ac_cv_struct_tm=sys/time.h
7961 fi
7962
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 fi
7965 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7966 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7967 if test $ac_cv_struct_tm = sys/time.h; then
7968
7969 cat >>confdefs.h <<\_ACEOF
7970 #define TM_IN_SYS_TIME 1
7971 _ACEOF
7972
7973 fi
7974
7975 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7976 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7977 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 #include <sys/types.h>
7987 #include <$ac_cv_struct_tm>
7988
7989
7990 int
7991 main ()
7992 {
7993 static struct tm ac_aggr;
7994 if (ac_aggr.tm_zone)
7995 return 0;
7996 ;
7997 return 0;
7998 }
7999 _ACEOF
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8002 case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
8017 ac_cv_member_struct_tm_tm_zone=yes
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 #include <sys/types.h>
8029 #include <$ac_cv_struct_tm>
8030
8031
8032 int
8033 main ()
8034 {
8035 static struct tm ac_aggr;
8036 if (sizeof ac_aggr.tm_zone)
8037 return 0;
8038 ;
8039 return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8044 case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.$ac_objext; then
8059 ac_cv_member_struct_tm_tm_zone=yes
8060 else
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8063
8064 ac_cv_member_struct_tm_tm_zone=no
8065 fi
8066
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 fi
8069
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 fi
8072 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8073 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8074 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8075
8076 cat >>confdefs.h <<_ACEOF
8077 #define HAVE_STRUCT_TM_TM_ZONE 1
8078 _ACEOF
8079
8080
8081 fi
8082
8083 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8084
8085 cat >>confdefs.h <<\_ACEOF
8086 #define HAVE_TM_ZONE 1
8087 _ACEOF
8088
8089 else
8090 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8091 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8092 if test "${ac_cv_have_decl_tzname+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 #include <time.h>
8102
8103 int
8104 main ()
8105 {
8106 #ifndef tzname
8107 (void) tzname;
8108 #endif
8109
8110 ;
8111 return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (ac_try="$ac_compile"
8116 case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119 esac
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } && {
8128 test -z "$ac_c_werror_flag" ||
8129 test ! -s conftest.err
8130 } && test -s conftest.$ac_objext; then
8131 ac_cv_have_decl_tzname=yes
8132 else
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136 ac_cv_have_decl_tzname=no
8137 fi
8138
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 fi
8141 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8142 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8143 if test $ac_cv_have_decl_tzname = yes; then
8144
8145 cat >>confdefs.h <<_ACEOF
8146 #define HAVE_DECL_TZNAME 1
8147 _ACEOF
8148
8149
8150 else
8151 cat >>confdefs.h <<_ACEOF
8152 #define HAVE_DECL_TZNAME 0
8153 _ACEOF
8154
8155
8156 fi
8157
8158
8159 { echo "$as_me:$LINENO: checking for tzname" >&5
8160 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8161 if test "${ac_cv_var_tzname+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h. */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 #include <time.h>
8171 #if !HAVE_DECL_TZNAME
8172 extern char *tzname[];
8173 #endif
8174
8175 int
8176 main ()
8177 {
8178 return tzname[0][0];
8179 ;
8180 return 0;
8181 }
8182 _ACEOF
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184 if { (ac_try="$ac_link"
8185 case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_link") 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest$ac_exeext &&
8200 $as_test_x conftest$ac_exeext; then
8201 ac_cv_var_tzname=yes
8202 else
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206 ac_cv_var_tzname=no
8207 fi
8208
8209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8210 conftest$ac_exeext conftest.$ac_ext
8211 fi
8212 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8213 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8214 if test $ac_cv_var_tzname = yes; then
8215
8216 cat >>confdefs.h <<\_ACEOF
8217 #define HAVE_TZNAME 1
8218 _ACEOF
8219
8220 fi
8221 fi
8222
8223 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8224 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8225 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h. */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 #include <time.h>
8235
8236 int
8237 main ()
8238 {
8239 static struct tm ac_aggr;
8240 if (ac_aggr.tm_gmtoff)
8241 return 0;
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8248 case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8251 esac
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_compile") 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest.$ac_objext; then
8263 ac_cv_member_struct_tm_tm_gmtoff=yes
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h. */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 #include <time.h>
8275
8276 int
8277 main ()
8278 {
8279 static struct tm ac_aggr;
8280 if (sizeof ac_aggr.tm_gmtoff)
8281 return 0;
8282 ;
8283 return 0;
8284 }
8285 _ACEOF
8286 rm -f conftest.$ac_objext
8287 if { (ac_try="$ac_compile"
8288 case "(($ac_try" in
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && {
8300 test -z "$ac_c_werror_flag" ||
8301 test ! -s conftest.err
8302 } && test -s conftest.$ac_objext; then
8303 ac_cv_member_struct_tm_tm_gmtoff=yes
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 ac_cv_member_struct_tm_tm_gmtoff=no
8309 fi
8310
8311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312 fi
8313
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 fi
8316 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8317 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8318 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8319
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_TM_GMTOFF 1
8322 _ACEOF
8323
8324 fi
8325
8326 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8327 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8328 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331 cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h. */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8338 #if HAVE_SYS_SOCKET_H
8339 #include <sys/socket.h>
8340 #endif
8341 #if HAVE_NET_IF_H
8342 #include <net/if.h>
8343 #endif
8344
8345 int
8346 main ()
8347 {
8348 static struct ifreq ac_aggr;
8349 if (ac_aggr.ifr_flags)
8350 return 0;
8351 ;
8352 return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext
8356 if { (ac_try="$ac_compile"
8357 case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8360 esac
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_compile") 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } && {
8369 test -z "$ac_c_werror_flag" ||
8370 test ! -s conftest.err
8371 } && test -s conftest.$ac_objext; then
8372 ac_cv_member_struct_ifreq_ifr_flags=yes
8373 else
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8376
8377 cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h. */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 $ac_includes_default
8384 #if HAVE_SYS_SOCKET_H
8385 #include <sys/socket.h>
8386 #endif
8387 #if HAVE_NET_IF_H
8388 #include <net/if.h>
8389 #endif
8390
8391 int
8392 main ()
8393 {
8394 static struct ifreq ac_aggr;
8395 if (sizeof ac_aggr.ifr_flags)
8396 return 0;
8397 ;
8398 return 0;
8399 }
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (ac_try="$ac_compile"
8403 case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest.$ac_objext; then
8418 ac_cv_member_struct_ifreq_ifr_flags=yes
8419 else
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423 ac_cv_member_struct_ifreq_ifr_flags=no
8424 fi
8425
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427 fi
8428
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 fi
8431 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8432 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8433 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8434
8435 cat >>confdefs.h <<_ACEOF
8436 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8437 _ACEOF
8438
8439
8440 fi
8441 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8442 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8443 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h. */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 $ac_includes_default
8453 #if HAVE_SYS_SOCKET_H
8454 #include <sys/socket.h>
8455 #endif
8456 #if HAVE_NET_IF_H
8457 #include <net/if.h>
8458 #endif
8459
8460 int
8461 main ()
8462 {
8463 static struct ifreq ac_aggr;
8464 if (ac_aggr.ifr_hwaddr)
8465 return 0;
8466 ;
8467 return 0;
8468 }
8469 _ACEOF
8470 rm -f conftest.$ac_objext
8471 if { (ac_try="$ac_compile"
8472 case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8475 esac
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_compile") 2>conftest.er1
8478 ac_status=$?
8479 grep -v '^ *+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } && {
8484 test -z "$ac_c_werror_flag" ||
8485 test ! -s conftest.err
8486 } && test -s conftest.$ac_objext; then
8487 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8488 else
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8491
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 $ac_includes_default
8499 #if HAVE_SYS_SOCKET_H
8500 #include <sys/socket.h>
8501 #endif
8502 #if HAVE_NET_IF_H
8503 #include <net/if.h>
8504 #endif
8505
8506 int
8507 main ()
8508 {
8509 static struct ifreq ac_aggr;
8510 if (sizeof ac_aggr.ifr_hwaddr)
8511 return 0;
8512 ;
8513 return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext
8517 if { (ac_try="$ac_compile"
8518 case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8521 esac
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_compile") 2>conftest.er1
8524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_c_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest.$ac_objext; then
8533 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8534 else
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8537
8538 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8539 fi
8540
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 fi
8543
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 fi
8546 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8547 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8548 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8549
8550 cat >>confdefs.h <<_ACEOF
8551 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8552 _ACEOF
8553
8554
8555 fi
8556 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8557 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8558 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561 cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h. */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8567 $ac_includes_default
8568 #if HAVE_SYS_SOCKET_H
8569 #include <sys/socket.h>
8570 #endif
8571 #if HAVE_NET_IF_H
8572 #include <net/if.h>
8573 #endif
8574
8575 int
8576 main ()
8577 {
8578 static struct ifreq ac_aggr;
8579 if (ac_aggr.ifr_netmask)
8580 return 0;
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 rm -f conftest.$ac_objext
8586 if { (ac_try="$ac_compile"
8587 case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590 esac
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_compile") 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } && {
8599 test -z "$ac_c_werror_flag" ||
8600 test ! -s conftest.err
8601 } && test -s conftest.$ac_objext; then
8602 ac_cv_member_struct_ifreq_ifr_netmask=yes
8603 else
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8606
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h. */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 $ac_includes_default
8614 #if HAVE_SYS_SOCKET_H
8615 #include <sys/socket.h>
8616 #endif
8617 #if HAVE_NET_IF_H
8618 #include <net/if.h>
8619 #endif
8620
8621 int
8622 main ()
8623 {
8624 static struct ifreq ac_aggr;
8625 if (sizeof ac_aggr.ifr_netmask)
8626 return 0;
8627 ;
8628 return 0;
8629 }
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (ac_try="$ac_compile"
8633 case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_compile") 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest.$ac_objext; then
8648 ac_cv_member_struct_ifreq_ifr_netmask=yes
8649 else
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8652
8653 ac_cv_member_struct_ifreq_ifr_netmask=no
8654 fi
8655
8656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657 fi
8658
8659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 fi
8661 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8662 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8663 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8664
8665 cat >>confdefs.h <<_ACEOF
8666 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8667 _ACEOF
8668
8669
8670 fi
8671 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8672 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8673 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676 cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h. */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682 $ac_includes_default
8683 #if HAVE_SYS_SOCKET_H
8684 #include <sys/socket.h>
8685 #endif
8686 #if HAVE_NET_IF_H
8687 #include <net/if.h>
8688 #endif
8689
8690 int
8691 main ()
8692 {
8693 static struct ifreq ac_aggr;
8694 if (ac_aggr.ifr_broadaddr)
8695 return 0;
8696 ;
8697 return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext
8701 if { (ac_try="$ac_compile"
8702 case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705 esac
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_compile") 2>conftest.er1
8708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && {
8714 test -z "$ac_c_werror_flag" ||
8715 test ! -s conftest.err
8716 } && test -s conftest.$ac_objext; then
8717 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8718 else
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 $ac_includes_default
8729 #if HAVE_SYS_SOCKET_H
8730 #include <sys/socket.h>
8731 #endif
8732 #if HAVE_NET_IF_H
8733 #include <net/if.h>
8734 #endif
8735
8736 int
8737 main ()
8738 {
8739 static struct ifreq ac_aggr;
8740 if (sizeof ac_aggr.ifr_broadaddr)
8741 return 0;
8742 ;
8743 return 0;
8744 }
8745 _ACEOF
8746 rm -f conftest.$ac_objext
8747 if { (ac_try="$ac_compile"
8748 case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751 esac
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.$ac_objext; then
8763 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8764 else
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8769 fi
8770
8771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772 fi
8773
8774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8775 fi
8776 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8777 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8778 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8779
8780 cat >>confdefs.h <<_ACEOF
8781 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8782 _ACEOF
8783
8784
8785 fi
8786 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8787 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8788 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 $ac_includes_default
8798 #if HAVE_SYS_SOCKET_H
8799 #include <sys/socket.h>
8800 #endif
8801 #if HAVE_NET_IF_H
8802 #include <net/if.h>
8803 #endif
8804
8805 int
8806 main ()
8807 {
8808 static struct ifreq ac_aggr;
8809 if (ac_aggr.ifr_addr)
8810 return 0;
8811 ;
8812 return 0;
8813 }
8814 _ACEOF
8815 rm -f conftest.$ac_objext
8816 if { (ac_try="$ac_compile"
8817 case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8820 esac
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_compile") 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } && {
8829 test -z "$ac_c_werror_flag" ||
8830 test ! -s conftest.err
8831 } && test -s conftest.$ac_objext; then
8832 ac_cv_member_struct_ifreq_ifr_addr=yes
8833 else
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h. */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8843 $ac_includes_default
8844 #if HAVE_SYS_SOCKET_H
8845 #include <sys/socket.h>
8846 #endif
8847 #if HAVE_NET_IF_H
8848 #include <net/if.h>
8849 #endif
8850
8851 int
8852 main ()
8853 {
8854 static struct ifreq ac_aggr;
8855 if (sizeof ac_aggr.ifr_addr)
8856 return 0;
8857 ;
8858 return 0;
8859 }
8860 _ACEOF
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8863 case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866 esac
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest.$ac_objext; then
8878 ac_cv_member_struct_ifreq_ifr_addr=yes
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8882
8883 ac_cv_member_struct_ifreq_ifr_addr=no
8884 fi
8885
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 fi
8888
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 fi
8891 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8892 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8893 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8894
8895 cat >>confdefs.h <<_ACEOF
8896 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8897 _ACEOF
8898
8899
8900 fi
8901
8902
8903
8904 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8905 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8906 if test "$ac_cv_prog_cc_c89" != no; then
8907 { echo "$as_me:$LINENO: result: yes" >&5
8908 echo "${ECHO_T}yes" >&6; }
8909
8910 cat >>confdefs.h <<\_ACEOF
8911 #define PROTOTYPES 1
8912 _ACEOF
8913
8914
8915 cat >>confdefs.h <<\_ACEOF
8916 #define __PROTOTYPES 1
8917 _ACEOF
8918
8919 else
8920 { echo "$as_me:$LINENO: result: no" >&5
8921 echo "${ECHO_T}no" >&6; }
8922 fi
8923
8924 { echo "$as_me:$LINENO: checking for working volatile" >&5
8925 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8926 if test "${ac_cv_c_volatile+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929 cat >conftest.$ac_ext <<_ACEOF
8930 /* confdefs.h. */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935
8936 int
8937 main ()
8938 {
8939
8940 volatile int x;
8941 int * volatile y = (int *) 0;
8942 return !x && !y;
8943 ;
8944 return 0;
8945 }
8946 _ACEOF
8947 rm -f conftest.$ac_objext
8948 if { (ac_try="$ac_compile"
8949 case "(($ac_try" in
8950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8952 esac
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954 (eval "$ac_compile") 2>conftest.er1
8955 ac_status=$?
8956 grep -v '^ *+' conftest.er1 >conftest.err
8957 rm -f conftest.er1
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } && {
8961 test -z "$ac_c_werror_flag" ||
8962 test ! -s conftest.err
8963 } && test -s conftest.$ac_objext; then
8964 ac_cv_c_volatile=yes
8965 else
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969 ac_cv_c_volatile=no
8970 fi
8971
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 fi
8974 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8975 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8976 if test $ac_cv_c_volatile = no; then
8977
8978 cat >>confdefs.h <<\_ACEOF
8979 #define volatile
8980 _ACEOF
8981
8982 fi
8983
8984 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8985 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8986 if test "${ac_cv_c_const+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989 cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h. */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8995
8996 int
8997 main ()
8998 {
8999 /* FIXME: Include the comments suggested by Paul. */
9000 #ifndef __cplusplus
9001 /* Ultrix mips cc rejects this. */
9002 typedef int charset[2];
9003 const charset cs;
9004 /* SunOS 4.1.1 cc rejects this. */
9005 char const *const *pcpcc;
9006 char **ppc;
9007 /* NEC SVR4.0.2 mips cc rejects this. */
9008 struct point {int x, y;};
9009 static struct point const zero = {0,0};
9010 /* AIX XL C 1.02.0.0 rejects this.
9011 It does not let you subtract one const X* pointer from another in
9012 an arm of an if-expression whose if-part is not a constant
9013 expression */
9014 const char *g = "string";
9015 pcpcc = &g + (g ? g-g : 0);
9016 /* HPUX 7.0 cc rejects these. */
9017 ++pcpcc;
9018 ppc = (char**) pcpcc;
9019 pcpcc = (char const *const *) ppc;
9020 { /* SCO 3.2v4 cc rejects this. */
9021 char *t;
9022 char const *s = 0 ? (char *) 0 : (char const *) 0;
9023
9024 *t++ = 0;
9025 if (s) return 0;
9026 }
9027 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9028 int x[] = {25, 17};
9029 const int *foo = &x[0];
9030 ++foo;
9031 }
9032 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9033 typedef const int *iptr;
9034 iptr p = 0;
9035 ++p;
9036 }
9037 { /* AIX XL C 1.02.0.0 rejects this saying
9038 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9039 struct s { int j; const int *ap[3]; };
9040 struct s *b; b->j = 5;
9041 }
9042 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9043 const int foo = 10;
9044 if (!foo) return 0;
9045 }
9046 return !cs[0] && !zero.x;
9047 #endif
9048
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 rm -f conftest.$ac_objext
9054 if { (ac_try="$ac_compile"
9055 case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058 esac
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_compile") 2>conftest.er1
9061 ac_status=$?
9062 grep -v '^ *+' conftest.er1 >conftest.err
9063 rm -f conftest.er1
9064 cat conftest.err >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } && {
9067 test -z "$ac_c_werror_flag" ||
9068 test ! -s conftest.err
9069 } && test -s conftest.$ac_objext; then
9070 ac_cv_c_const=yes
9071 else
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ac_cv_c_const=no
9076 fi
9077
9078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079 fi
9080 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9081 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9082 if test $ac_cv_c_const = no; then
9083
9084 cat >>confdefs.h <<\_ACEOF
9085 #define const
9086 _ACEOF
9087
9088 fi
9089
9090 { echo "$as_me:$LINENO: checking for void * support" >&5
9091 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9092 if test "${emacs_cv_void_star+set}" = set; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 else
9095 cat >conftest.$ac_ext <<_ACEOF
9096 /* confdefs.h. */
9097 _ACEOF
9098 cat confdefs.h >>conftest.$ac_ext
9099 cat >>conftest.$ac_ext <<_ACEOF
9100 /* end confdefs.h. */
9101
9102 int
9103 main ()
9104 {
9105 void * foo;
9106 ;
9107 return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest.$ac_objext
9111 if { (ac_try="$ac_compile"
9112 case "(($ac_try" in
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9115 esac
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_compile") 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } && {
9124 test -z "$ac_c_werror_flag" ||
9125 test ! -s conftest.err
9126 } && test -s conftest.$ac_objext; then
9127 emacs_cv_void_star=yes
9128 else
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9131
9132 emacs_cv_void_star=no
9133 fi
9134
9135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136 fi
9137 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9138 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9139 if test $emacs_cv_void_star = yes; then
9140 cat >>confdefs.h <<\_ACEOF
9141 #define POINTER_TYPE void
9142 _ACEOF
9143
9144 else
9145 cat >>confdefs.h <<\_ACEOF
9146 #define POINTER_TYPE char
9147 _ACEOF
9148
9149 fi
9150
9151
9152
9153
9154
9155 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9156 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9157 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9158 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 cat >conftest.make <<\_ACEOF
9162 SHELL = /bin/sh
9163 all:
9164 @echo '@@@%%%=$(MAKE)=@@@%%%'
9165 _ACEOF
9166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9167 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9168 *@@@%%%=?*=@@@%%%*)
9169 eval ac_cv_prog_make_${ac_make}_set=yes;;
9170 *)
9171 eval ac_cv_prog_make_${ac_make}_set=no;;
9172 esac
9173 rm -f conftest.make
9174 fi
9175 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9176 { echo "$as_me:$LINENO: result: yes" >&5
9177 echo "${ECHO_T}yes" >&6; }
9178 SET_MAKE=
9179 else
9180 { echo "$as_me:$LINENO: result: no" >&5
9181 echo "${ECHO_T}no" >&6; }
9182 SET_MAKE="MAKE=${MAKE-make}"
9183 fi
9184
9185
9186 { echo "$as_me:$LINENO: checking for long file names" >&5
9187 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9188 if test "${ac_cv_sys_long_file_names+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191 ac_cv_sys_long_file_names=yes
9192 # Test for long file names in all the places we know might matter:
9193 # . the current directory, where building will happen
9194 # $prefix/lib where we will be installing things
9195 # $exec_prefix/lib likewise
9196 # $TMPDIR if set, where it might want to write temporary files
9197 # /tmp where it might want to write temporary files
9198 # /var/tmp likewise
9199 # /usr/tmp likewise
9200 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9201 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9202 # in the usual case where exec_prefix is '${prefix}'.
9203 case $ac_dir in #(
9204 . | /* | ?:[\\/]*) ;; #(
9205 *) continue;;
9206 esac
9207 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9208 ac_xdir=$ac_dir/cf$$
9209 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9210 ac_tf1=$ac_xdir/conftest9012345
9211 ac_tf2=$ac_xdir/conftest9012346
9212 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9213 ac_cv_sys_long_file_names=no
9214 rm -f -r "$ac_xdir" 2>/dev/null
9215 test $ac_cv_sys_long_file_names = no && break
9216 done
9217 fi
9218 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9219 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9220 if test $ac_cv_sys_long_file_names = yes; then
9221
9222 cat >>confdefs.h <<\_ACEOF
9223 #define HAVE_LONG_FILE_NAMES 1
9224 _ACEOF
9225
9226 fi
9227
9228
9229 #### Choose a window system.
9230
9231 { echo "$as_me:$LINENO: checking for X" >&5
9232 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9233
9234
9235 # Check whether --with-x was given.
9236 if test "${with_x+set}" = set; then
9237 withval=$with_x;
9238 fi
9239
9240 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9241 if test "x$with_x" = xno; then
9242 # The user explicitly disabled X.
9243 have_x=disabled
9244 else
9245 case $x_includes,$x_libraries in #(
9246 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9247 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9248 { (exit 1); exit 1; }; };; #(
9249 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252 # One or both of the vars are not set, and there is no cached value.
9253 ac_x_includes=no ac_x_libraries=no
9254 rm -f -r conftest.dir
9255 if mkdir conftest.dir; then
9256 cd conftest.dir
9257 cat >Imakefile <<'_ACEOF'
9258 incroot:
9259 @echo incroot='${INCROOT}'
9260 usrlibdir:
9261 @echo usrlibdir='${USRLIBDIR}'
9262 libdir:
9263 @echo libdir='${LIBDIR}'
9264 _ACEOF
9265 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9266 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9267 for ac_var in incroot usrlibdir libdir; do
9268 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9269 done
9270 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9271 for ac_extension in a so sl; do
9272 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9273 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9274 ac_im_usrlibdir=$ac_im_libdir; break
9275 fi
9276 done
9277 # Screen out bogus values from the imake configuration. They are
9278 # bogus both because they are the default anyway, and because
9279 # using them would break gcc on systems where it needs fixed includes.
9280 case $ac_im_incroot in
9281 /usr/include) ac_x_includes= ;;
9282 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9283 esac
9284 case $ac_im_usrlibdir in
9285 /usr/lib | /lib) ;;
9286 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9287 esac
9288 fi
9289 cd ..
9290 rm -f -r conftest.dir
9291 fi
9292
9293 # Standard set of common directories for X headers.
9294 # Check X11 before X11Rn because it is often a symlink to the current release.
9295 ac_x_header_dirs='
9296 /usr/X11/include
9297 /usr/X11R6/include
9298 /usr/X11R5/include
9299 /usr/X11R4/include
9300
9301 /usr/include/X11
9302 /usr/include/X11R6
9303 /usr/include/X11R5
9304 /usr/include/X11R4
9305
9306 /usr/local/X11/include
9307 /usr/local/X11R6/include
9308 /usr/local/X11R5/include
9309 /usr/local/X11R4/include
9310
9311 /usr/local/include/X11
9312 /usr/local/include/X11R6
9313 /usr/local/include/X11R5
9314 /usr/local/include/X11R4
9315
9316 /usr/X386/include
9317 /usr/x386/include
9318 /usr/XFree86/include/X11
9319
9320 /usr/include
9321 /usr/local/include
9322 /usr/unsupported/include
9323 /usr/athena/include
9324 /usr/local/x11r5/include
9325 /usr/lpp/Xamples/include
9326
9327 /usr/openwin/include
9328 /usr/openwin/share/include'
9329
9330 if test "$ac_x_includes" = no; then
9331 # Guess where to find include files, by looking for Xlib.h.
9332 # First, try using that file with no special directory specified.
9333 cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h. */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9339 #include <X11/Xlib.h>
9340 _ACEOF
9341 if { (ac_try="$ac_cpp conftest.$ac_ext"
9342 case "(($ac_try" in
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } >/dev/null && {
9354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 }; then
9357 # We can compile using X headers with no special include directory.
9358 ac_x_includes=
9359 else
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362
9363 for ac_dir in $ac_x_header_dirs; do
9364 if test -r "$ac_dir/X11/Xlib.h"; then
9365 ac_x_includes=$ac_dir
9366 break
9367 fi
9368 done
9369 fi
9370
9371 rm -f conftest.err conftest.$ac_ext
9372 fi # $ac_x_includes = no
9373
9374 if test "$ac_x_libraries" = no; then
9375 # Check for the libraries.
9376 # See if we find them without any special options.
9377 # Don't add to $LIBS permanently.
9378 ac_save_LIBS=$LIBS
9379 LIBS="-lX11 $LIBS"
9380 cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h. */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9386 #include <X11/Xlib.h>
9387 int
9388 main ()
9389 {
9390 XrmInitialize ()
9391 ;
9392 return 0;
9393 }
9394 _ACEOF
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9397 case "(($ac_try" in
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9400 esac
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
9403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } && {
9409 test -z "$ac_c_werror_flag" ||
9410 test ! -s conftest.err
9411 } && test -s conftest$ac_exeext &&
9412 $as_test_x conftest$ac_exeext; then
9413 LIBS=$ac_save_LIBS
9414 # We can link X programs with no special library path.
9415 ac_x_libraries=
9416 else
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420 LIBS=$ac_save_LIBS
9421 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9422 do
9423 # Don't even attempt the hair of trying to link an X program!
9424 for ac_extension in a so sl; do
9425 if test -r "$ac_dir/libX11.$ac_extension"; then
9426 ac_x_libraries=$ac_dir
9427 break 2
9428 fi
9429 done
9430 done
9431 fi
9432
9433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9434 conftest$ac_exeext conftest.$ac_ext
9435 fi # $ac_x_libraries = no
9436
9437 case $ac_x_includes,$ac_x_libraries in #(
9438 no,* | *,no | *\'*)
9439 # Didn't find X, or a directory has "'" in its name.
9440 ac_cv_have_x="have_x=no";; #(
9441 *)
9442 # Record where we found X for the cache.
9443 ac_cv_have_x="have_x=yes\
9444 ac_x_includes='$ac_x_includes'\
9445 ac_x_libraries='$ac_x_libraries'"
9446 esac
9447 fi
9448 ;; #(
9449 *) have_x=yes;;
9450 esac
9451 eval "$ac_cv_have_x"
9452 fi # $with_x != no
9453
9454 if test "$have_x" != yes; then
9455 { echo "$as_me:$LINENO: result: $have_x" >&5
9456 echo "${ECHO_T}$have_x" >&6; }
9457 no_x=yes
9458 else
9459 # If each of the values was on the command line, it overrides each guess.
9460 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9461 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9462 # Update the cache value to reflect the command line values.
9463 ac_cv_have_x="have_x=yes\
9464 ac_x_includes='$x_includes'\
9465 ac_x_libraries='$x_libraries'"
9466 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9467 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9468 fi
9469
9470 if test "$no_x" = yes; then
9471 window_system=none
9472 else
9473 window_system=x11
9474 fi
9475
9476 if test "${x_libraries}" != NONE; then
9477 if test -n "${x_libraries}"; then
9478 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9479 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9480 fi
9481 x_default_search_path=""
9482 x_search_path=${x_libraries}
9483 if test -z "${x_search_path}"; then
9484 x_search_path=/usr/lib
9485 fi
9486 for x_library in `echo ${x_search_path}: | \
9487 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9488 x_search_path="\
9489 ${x_library}/X11/%L/%T/%N%C%S:\
9490 ${x_library}/X11/%l/%T/%N%C%S:\
9491 ${x_library}/X11/%T/%N%C%S:\
9492 ${x_library}/X11/%L/%T/%N%S:\
9493 ${x_library}/X11/%l/%T/%N%S:\
9494 ${x_library}/X11/%T/%N%S"
9495 if test x"${x_default_search_path}" = x; then
9496 x_default_search_path=${x_search_path}
9497 else
9498 x_default_search_path="${x_search_path}:${x_default_search_path}"
9499 fi
9500 done
9501 fi
9502 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9503 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9504 fi
9505
9506 if test x"${x_includes}" = x; then
9507 bitmapdir=/usr/include/X11/bitmaps
9508 else
9509 # accumulate include directories that have X11 bitmap subdirectories
9510 bmd_acc="dummyval"
9511 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9512 if test -d "${bmd}/X11/bitmaps"; then
9513 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9514 fi
9515 if test -d "${bmd}/bitmaps"; then
9516 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9517 fi
9518 done
9519 if test ${bmd_acc} != "dummyval"; then
9520 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9521 fi
9522 fi
9523
9524 HAVE_CARBON=no
9525 if test "${with_carbon}" != no; then
9526 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9527 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9528 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9529 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 fi
9532 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9533 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9534 else
9535 # Is the header compilable?
9536 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9537 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 $ac_includes_default
9545 #include <Carbon/Carbon.h>
9546 _ACEOF
9547 rm -f conftest.$ac_objext
9548 if { (ac_try="$ac_compile"
9549 case "(($ac_try" in
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9552 esac
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_compile") 2>conftest.er1
9555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } && {
9561 test -z "$ac_c_werror_flag" ||
9562 test ! -s conftest.err
9563 } && test -s conftest.$ac_objext; then
9564 ac_header_compiler=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 ac_header_compiler=no
9570 fi
9571
9572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9574 echo "${ECHO_T}$ac_header_compiler" >&6; }
9575
9576 # Is the header present?
9577 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9578 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h. */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 #include <Carbon/Carbon.h>
9586 _ACEOF
9587 if { (ac_try="$ac_cpp conftest.$ac_ext"
9588 case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9594 ac_status=$?
9595 grep -v '^ *+' conftest.er1 >conftest.err
9596 rm -f conftest.er1
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } >/dev/null && {
9600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9601 test ! -s conftest.err
9602 }; then
9603 ac_header_preproc=yes
9604 else
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 ac_header_preproc=no
9609 fi
9610
9611 rm -f conftest.err conftest.$ac_ext
9612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9613 echo "${ECHO_T}$ac_header_preproc" >&6; }
9614
9615 # So? What about this header?
9616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9617 yes:no: )
9618 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9619 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9621 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9622 ac_header_preproc=yes
9623 ;;
9624 no:yes:* )
9625 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9626 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9628 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9629 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9630 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9631 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9632 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9633 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9634 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9635 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9636 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9637
9638 ;;
9639 esac
9640 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9641 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9642 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9646 fi
9647 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9648 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9649
9650 fi
9651 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9652 HAVE_CARBON=yes
9653 fi
9654
9655
9656 fi
9657 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9658 if test "${with_carbon+set}" != set \
9659 && test "${carbon_appdir_x+set}" != set; then
9660 for var in with_x with_x_toolkit with_gtk with_xim \
9661 with_xpm with_jpeg with_tiff with_gif with_png; do
9662 if eval test \"\${$var+set}\" = set; then
9663 HAVE_CARBON=no
9664 break
9665 fi
9666 done
9667 fi
9668 fi
9669 if test "${HAVE_CARBON}" = yes; then
9670 window_system=mac
9671 fi
9672
9673 case "${window_system}" in
9674 x11 )
9675 HAVE_X_WINDOWS=yes
9676 HAVE_X11=yes
9677 case "${with_x_toolkit}" in
9678 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9679 motif ) USE_X_TOOLKIT=MOTIF ;;
9680 gtk ) with_gtk=yes
9681 USE_X_TOOLKIT=none ;;
9682 no ) USE_X_TOOLKIT=none ;;
9683 * )
9684 if test x"$with_gtk" = xyes; then
9685 USE_X_TOOLKIT=none
9686 else
9687 USE_X_TOOLKIT=maybe
9688 fi
9689 ;;
9690 esac
9691 ;;
9692 mac | none )
9693 HAVE_X_WINDOWS=no
9694 HAVE_X11=no
9695 USE_X_TOOLKIT=none
9696 ;;
9697 esac
9698
9699 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9700 # Extract the first word of "X", so it can be a program name with args.
9701 set dummy X; ac_word=$2
9702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9704 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707 if test -n "$HAVE_XSERVER"; then
9708 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9709 else
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 for as_dir in $PATH
9712 do
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9717 ac_cv_prog_HAVE_XSERVER="true"
9718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 break 2
9720 fi
9721 done
9722 done
9723 IFS=$as_save_IFS
9724
9725 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9726 fi
9727 fi
9728 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9729 if test -n "$HAVE_XSERVER"; then
9730 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9731 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9732 else
9733 { echo "$as_me:$LINENO: result: no" >&5
9734 echo "${ECHO_T}no" >&6; }
9735 fi
9736
9737
9738 if test "$HAVE_XSERVER" = true ||
9739 test -n "$DISPLAY" ||
9740 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9741 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9742 were found. You should install the relevant development files for X
9743 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9744 sure you have development files for image handling, i.e.
9745 tiff, gif, jpeg, png and xpm.
9746 If you are sure you want Emacs compiled without X window support, pass
9747 --without-x
9748 to configure." >&5
9749 echo "$as_me: error: You seem to be running X, but no X development libraries
9750 were found. You should install the relevant development files for X
9751 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9752 sure you have development files for image handling, i.e.
9753 tiff, gif, jpeg, png and xpm.
9754 If you are sure you want Emacs compiled without X window support, pass
9755 --without-x
9756 to configure." >&2;}
9757 { (exit 1); exit 1; }; }
9758 fi
9759 fi
9760
9761 ### If we're using X11, we should use the X menu package.
9762 HAVE_MENUS=no
9763 case ${HAVE_X11} in
9764 yes ) HAVE_MENUS=yes ;;
9765 esac
9766
9767 if test "${opsys}" = "hpux9"; then
9768 case "${x_libraries}" in
9769 *X11R4* )
9770 opsysfile="s/hpux9-x11r4.h"
9771 ;;
9772 esac
9773 fi
9774
9775 if test "${opsys}" = "hpux9shr"; then
9776 case "${x_libraries}" in
9777 *X11R4* )
9778 opsysfile="s/hpux9shxr4.h"
9779 ;;
9780 esac
9781 fi
9782
9783 ### Compute the unexec source name from the object name.
9784 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9785
9786 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9787 # Assume not, until told otherwise.
9788 GNU_MALLOC=yes
9789 doug_lea_malloc=yes
9790 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9791 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9792 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9803 #define malloc_get_state innocuous_malloc_get_state
9804
9805 /* System header to define __stub macros and hopefully few prototypes,
9806 which can conflict with char malloc_get_state (); below.
9807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9808 <limits.h> exists even on freestanding compilers. */
9809
9810 #ifdef __STDC__
9811 # include <limits.h>
9812 #else
9813 # include <assert.h>
9814 #endif
9815
9816 #undef malloc_get_state
9817
9818 /* Override any GCC internal prototype to avoid an error.
9819 Use char because int might match the return type of a GCC
9820 builtin and then its argument prototype would still apply. */
9821 #ifdef __cplusplus
9822 extern "C"
9823 #endif
9824 char malloc_get_state ();
9825 /* The GNU C library defines this for functions which it implements
9826 to always fail with ENOSYS. Some functions are actually named
9827 something starting with __ and the normal name is an alias. */
9828 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9829 choke me
9830 #endif
9831
9832 int
9833 main ()
9834 {
9835 return malloc_get_state ();
9836 ;
9837 return 0;
9838 }
9839 _ACEOF
9840 rm -f conftest.$ac_objext conftest$ac_exeext
9841 if { (ac_try="$ac_link"
9842 case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_link") 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } && {
9854 test -z "$ac_c_werror_flag" ||
9855 test ! -s conftest.err
9856 } && test -s conftest$ac_exeext &&
9857 $as_test_x conftest$ac_exeext; then
9858 ac_cv_func_malloc_get_state=yes
9859 else
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9862
9863 ac_cv_func_malloc_get_state=no
9864 fi
9865
9866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9867 conftest$ac_exeext conftest.$ac_ext
9868 fi
9869 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9870 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9871 if test $ac_cv_func_malloc_get_state = yes; then
9872 :
9873 else
9874 doug_lea_malloc=no
9875 fi
9876
9877 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9878 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9879 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 else
9882 cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h. */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9890 #define malloc_set_state innocuous_malloc_set_state
9891
9892 /* System header to define __stub macros and hopefully few prototypes,
9893 which can conflict with char malloc_set_state (); below.
9894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9895 <limits.h> exists even on freestanding compilers. */
9896
9897 #ifdef __STDC__
9898 # include <limits.h>
9899 #else
9900 # include <assert.h>
9901 #endif
9902
9903 #undef malloc_set_state
9904
9905 /* Override any GCC internal prototype to avoid an error.
9906 Use char because int might match the return type of a GCC
9907 builtin and then its argument prototype would still apply. */
9908 #ifdef __cplusplus
9909 extern "C"
9910 #endif
9911 char malloc_set_state ();
9912 /* The GNU C library defines this for functions which it implements
9913 to always fail with ENOSYS. Some functions are actually named
9914 something starting with __ and the normal name is an alias. */
9915 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9916 choke me
9917 #endif
9918
9919 int
9920 main ()
9921 {
9922 return malloc_set_state ();
9923 ;
9924 return 0;
9925 }
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9929 case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_link") 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } && {
9941 test -z "$ac_c_werror_flag" ||
9942 test ! -s conftest.err
9943 } && test -s conftest$ac_exeext &&
9944 $as_test_x conftest$ac_exeext; then
9945 ac_cv_func_malloc_set_state=yes
9946 else
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9949
9950 ac_cv_func_malloc_set_state=no
9951 fi
9952
9953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9954 conftest$ac_exeext conftest.$ac_ext
9955 fi
9956 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9957 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9958 if test $ac_cv_func_malloc_set_state = yes; then
9959 :
9960 else
9961 doug_lea_malloc=no
9962 fi
9963
9964 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9965 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9966 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 extern void (* __after_morecore_hook)();
9976 int
9977 main ()
9978 {
9979 __after_morecore_hook = 0
9980 ;
9981 return 0;
9982 }
9983 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (ac_try="$ac_link"
9986 case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_link") 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext &&
10001 $as_test_x conftest$ac_exeext; then
10002 emacs_cv_var___after_morecore_hook=yes
10003 else
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007 emacs_cv_var___after_morecore_hook=no
10008 fi
10009
10010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10011 conftest$ac_exeext conftest.$ac_ext
10012 fi
10013 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10014 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10015 if test $emacs_cv_var___after_morecore_hook = no; then
10016 doug_lea_malloc=no
10017 fi
10018 if test "${system_malloc}" = "yes"; then
10019 GNU_MALLOC=no
10020 GNU_MALLOC_reason="
10021 (The GNU allocators don't work with this system configuration.)"
10022 fi
10023 if test "$doug_lea_malloc" = "yes" ; then
10024 if test "$GNU_MALLOC" = yes ; then
10025 GNU_MALLOC_reason="
10026 (Using Doug Lea's new malloc from the GNU C Library.)"
10027 fi
10028
10029 cat >>confdefs.h <<\_ACEOF
10030 #define DOUG_LEA_MALLOC 1
10031 _ACEOF
10032
10033 fi
10034
10035 if test x"${REL_ALLOC}" = x; then
10036 REL_ALLOC=${GNU_MALLOC}
10037 fi
10038
10039
10040
10041
10042 for ac_header in stdlib.h unistd.h
10043 do
10044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 fi
10051 ac_res=`eval echo '${'$as_ac_Header'}'`
10052 { echo "$as_me:$LINENO: result: $ac_res" >&5
10053 echo "${ECHO_T}$ac_res" >&6; }
10054 else
10055 # Is the header compilable?
10056 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h. */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 $ac_includes_default
10065 #include <$ac_header>
10066 _ACEOF
10067 rm -f conftest.$ac_objext
10068 if { (ac_try="$ac_compile"
10069 case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_compile") 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && {
10081 test -z "$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 } && test -s conftest.$ac_objext; then
10084 ac_header_compiler=yes
10085 else
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10088
10089 ac_header_compiler=no
10090 fi
10091
10092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10094 echo "${ECHO_T}$ac_header_compiler" >&6; }
10095
10096 # Is the header present?
10097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10099 cat >conftest.$ac_ext <<_ACEOF
10100 /* confdefs.h. */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105 #include <$ac_header>
10106 _ACEOF
10107 if { (ac_try="$ac_cpp conftest.$ac_ext"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10114 ac_status=$?
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } >/dev/null && {
10120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10121 test ! -s conftest.err
10122 }; then
10123 ac_header_preproc=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 ac_header_preproc=no
10129 fi
10130
10131 rm -f conftest.err conftest.$ac_ext
10132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10133 echo "${ECHO_T}$ac_header_preproc" >&6; }
10134
10135 # So? What about this header?
10136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10137 yes:no: )
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10142 ac_header_preproc=yes
10143 ;;
10144 no:yes:* )
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10157
10158 ;;
10159 esac
10160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165 eval "$as_ac_Header=\$ac_header_preproc"
10166 fi
10167 ac_res=`eval echo '${'$as_ac_Header'}'`
10168 { echo "$as_me:$LINENO: result: $ac_res" >&5
10169 echo "${ECHO_T}$ac_res" >&6; }
10170
10171 fi
10172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10173 cat >>confdefs.h <<_ACEOF
10174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10175 _ACEOF
10176
10177 fi
10178
10179 done
10180
10181
10182 for ac_func in getpagesize
10183 do
10184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h. */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10198 #define $ac_func innocuous_$ac_func
10199
10200 /* System header to define __stub macros and hopefully few prototypes,
10201 which can conflict with char $ac_func (); below.
10202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10203 <limits.h> exists even on freestanding compilers. */
10204
10205 #ifdef __STDC__
10206 # include <limits.h>
10207 #else
10208 # include <assert.h>
10209 #endif
10210
10211 #undef $ac_func
10212
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 char $ac_func ();
10220 /* The GNU C library defines this for functions which it implements
10221 to always fail with ENOSYS. Some functions are actually named
10222 something starting with __ and the normal name is an alias. */
10223 #if defined __stub_$ac_func || defined __stub___$ac_func
10224 choke me
10225 #endif
10226
10227 int
10228 main ()
10229 {
10230 return $ac_func ();
10231 ;
10232 return 0;
10233 }
10234 _ACEOF
10235 rm -f conftest.$ac_objext conftest$ac_exeext
10236 if { (ac_try="$ac_link"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10240 esac
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_link") 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } && {
10249 test -z "$ac_c_werror_flag" ||
10250 test ! -s conftest.err
10251 } && test -s conftest$ac_exeext &&
10252 $as_test_x conftest$ac_exeext; then
10253 eval "$as_ac_var=yes"
10254 else
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10257
10258 eval "$as_ac_var=no"
10259 fi
10260
10261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10262 conftest$ac_exeext conftest.$ac_ext
10263 fi
10264 ac_res=`eval echo '${'$as_ac_var'}'`
10265 { echo "$as_me:$LINENO: result: $ac_res" >&5
10266 echo "${ECHO_T}$ac_res" >&6; }
10267 if test `eval echo '${'$as_ac_var'}'` = yes; then
10268 cat >>confdefs.h <<_ACEOF
10269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10270 _ACEOF
10271
10272 fi
10273 done
10274
10275 { echo "$as_me:$LINENO: checking for working mmap" >&5
10276 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10277 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 if test "$cross_compiling" = yes; then
10281 ac_cv_func_mmap_fixed_mapped=no
10282 else
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 $ac_includes_default
10290 /* malloc might have been renamed as rpl_malloc. */
10291 #undef malloc
10292
10293 /* Thanks to Mike Haertel and Jim Avera for this test.
10294 Here is a matrix of mmap possibilities:
10295 mmap private not fixed
10296 mmap private fixed at somewhere currently unmapped
10297 mmap private fixed at somewhere already mapped
10298 mmap shared not fixed
10299 mmap shared fixed at somewhere currently unmapped
10300 mmap shared fixed at somewhere already mapped
10301 For private mappings, we should verify that changes cannot be read()
10302 back from the file, nor mmap's back from the file at a different
10303 address. (There have been systems where private was not correctly
10304 implemented like the infamous i386 svr4.0, and systems where the
10305 VM page cache was not coherent with the file system buffer cache
10306 like early versions of FreeBSD and possibly contemporary NetBSD.)
10307 For shared mappings, we should conversely verify that changes get
10308 propagated back to all the places they're supposed to be.
10309
10310 Grep wants private fixed already mapped.
10311 The main things grep needs to know about mmap are:
10312 * does it exist and is it safe to write into the mmap'd area
10313 * how to use it (BSD variants) */
10314
10315 #include <fcntl.h>
10316 #include <sys/mman.h>
10317
10318 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10319 char *malloc ();
10320 #endif
10321
10322 /* This mess was copied from the GNU getpagesize.h. */
10323 #ifndef HAVE_GETPAGESIZE
10324 /* Assume that all systems that can run configure have sys/param.h. */
10325 # ifndef HAVE_SYS_PARAM_H
10326 # define HAVE_SYS_PARAM_H 1
10327 # endif
10328
10329 # ifdef _SC_PAGESIZE
10330 # define getpagesize() sysconf(_SC_PAGESIZE)
10331 # else /* no _SC_PAGESIZE */
10332 # ifdef HAVE_SYS_PARAM_H
10333 # include <sys/param.h>
10334 # ifdef EXEC_PAGESIZE
10335 # define getpagesize() EXEC_PAGESIZE
10336 # else /* no EXEC_PAGESIZE */
10337 # ifdef NBPG
10338 # define getpagesize() NBPG * CLSIZE
10339 # ifndef CLSIZE
10340 # define CLSIZE 1
10341 # endif /* no CLSIZE */
10342 # else /* no NBPG */
10343 # ifdef NBPC
10344 # define getpagesize() NBPC
10345 # else /* no NBPC */
10346 # ifdef PAGESIZE
10347 # define getpagesize() PAGESIZE
10348 # endif /* PAGESIZE */
10349 # endif /* no NBPC */
10350 # endif /* no NBPG */
10351 # endif /* no EXEC_PAGESIZE */
10352 # else /* no HAVE_SYS_PARAM_H */
10353 # define getpagesize() 8192 /* punt totally */
10354 # endif /* no HAVE_SYS_PARAM_H */
10355 # endif /* no _SC_PAGESIZE */
10356
10357 #endif /* no HAVE_GETPAGESIZE */
10358
10359 int
10360 main ()
10361 {
10362 char *data, *data2, *data3;
10363 int i, pagesize;
10364 int fd;
10365
10366 pagesize = getpagesize ();
10367
10368 /* First, make a file with some known garbage in it. */
10369 data = (char *) malloc (pagesize);
10370 if (!data)
10371 return 1;
10372 for (i = 0; i < pagesize; ++i)
10373 *(data + i) = rand ();
10374 umask (0);
10375 fd = creat ("conftest.mmap", 0600);
10376 if (fd < 0)
10377 return 1;
10378 if (write (fd, data, pagesize) != pagesize)
10379 return 1;
10380 close (fd);
10381
10382 /* Next, try to mmap the file at a fixed address which already has
10383 something else allocated at it. If we can, also make sure that
10384 we see the same garbage. */
10385 fd = open ("conftest.mmap", O_RDWR);
10386 if (fd < 0)
10387 return 1;
10388 data2 = (char *) malloc (2 * pagesize);
10389 if (!data2)
10390 return 1;
10391 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10392 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10393 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10394 return 1;
10395 for (i = 0; i < pagesize; ++i)
10396 if (*(data + i) != *(data2 + i))
10397 return 1;
10398
10399 /* Finally, make sure that changes to the mapped area do not
10400 percolate back to the file as seen by read(). (This is a bug on
10401 some variants of i386 svr4.0.) */
10402 for (i = 0; i < pagesize; ++i)
10403 *(data2 + i) = *(data2 + i) + 1;
10404 data3 = (char *) malloc (pagesize);
10405 if (!data3)
10406 return 1;
10407 if (read (fd, data3, pagesize) != pagesize)
10408 return 1;
10409 for (i = 0; i < pagesize; ++i)
10410 if (*(data + i) != *(data3 + i))
10411 return 1;
10412 close (fd);
10413 return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10421 esac
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423 (eval "$ac_link") 2>&5
10424 ac_status=$?
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10427 { (case "(($ac_try" in
10428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429 *) ac_try_echo=$ac_try;;
10430 esac
10431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432 (eval "$ac_try") 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; }; then
10436 ac_cv_func_mmap_fixed_mapped=yes
10437 else
10438 echo "$as_me: program exited with status $ac_status" >&5
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10441
10442 ( exit $ac_status )
10443 ac_cv_func_mmap_fixed_mapped=no
10444 fi
10445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10446 fi
10447
10448
10449 fi
10450 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10451 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10452 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10453
10454 cat >>confdefs.h <<\_ACEOF
10455 #define HAVE_MMAP 1
10456 _ACEOF
10457
10458 fi
10459 rm -f conftest.mmap
10460
10461 if test $use_mmap_for_buffers = yes; then
10462 REL_ALLOC=no
10463 fi
10464
10465 LIBS="$libsrc_libs $LIBS"
10466
10467
10468 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10469 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10470 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473 ac_check_lib_save_LIBS=$LIBS
10474 LIBS="-ldnet $LIBS"
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481
10482 /* Override any GCC internal prototype to avoid an error.
10483 Use char because int might match the return type of a GCC
10484 builtin and then its argument prototype would still apply. */
10485 #ifdef __cplusplus
10486 extern "C"
10487 #endif
10488 char dnet_ntoa ();
10489 int
10490 main ()
10491 {
10492 return dnet_ntoa ();
10493 ;
10494 return 0;
10495 }
10496 _ACEOF
10497 rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (ac_try="$ac_link"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_link") 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } && {
10511 test -z "$ac_c_werror_flag" ||
10512 test ! -s conftest.err
10513 } && test -s conftest$ac_exeext &&
10514 $as_test_x conftest$ac_exeext; then
10515 ac_cv_lib_dnet_dnet_ntoa=yes
10516 else
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520 ac_cv_lib_dnet_dnet_ntoa=no
10521 fi
10522
10523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10524 conftest$ac_exeext conftest.$ac_ext
10525 LIBS=$ac_check_lib_save_LIBS
10526 fi
10527 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10528 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10529 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10530 cat >>confdefs.h <<_ACEOF
10531 #define HAVE_LIBDNET 1
10532 _ACEOF
10533
10534 LIBS="-ldnet $LIBS"
10535
10536 fi
10537
10538
10539 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10540 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10541 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544 ac_check_lib_save_LIBS=$LIBS
10545 LIBS="-lXbsd $LIBS"
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h. */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552
10553
10554 int
10555 main ()
10556 {
10557 return main ();
10558 ;
10559 return 0;
10560 }
10561 _ACEOF
10562 rm -f conftest.$ac_objext conftest$ac_exeext
10563 if { (ac_try="$ac_link"
10564 case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10567 esac
10568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569 (eval "$ac_link") 2>conftest.er1
10570 ac_status=$?
10571 grep -v '^ *+' conftest.er1 >conftest.err
10572 rm -f conftest.er1
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } && {
10576 test -z "$ac_c_werror_flag" ||
10577 test ! -s conftest.err
10578 } && test -s conftest$ac_exeext &&
10579 $as_test_x conftest$ac_exeext; then
10580 ac_cv_lib_Xbsd_main=yes
10581 else
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585 ac_cv_lib_Xbsd_main=no
10586 fi
10587
10588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10589 conftest$ac_exeext conftest.$ac_ext
10590 LIBS=$ac_check_lib_save_LIBS
10591 fi
10592 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10593 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10594 if test $ac_cv_lib_Xbsd_main = yes; then
10595 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10596 fi
10597
10598
10599
10600 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10601 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10602 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-lpthreads $LIBS"
10607 cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h. */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613
10614 /* Override any GCC internal prototype to avoid an error.
10615 Use char because int might match the return type of a GCC
10616 builtin and then its argument prototype would still apply. */
10617 #ifdef __cplusplus
10618 extern "C"
10619 #endif
10620 char cma_open ();
10621 int
10622 main ()
10623 {
10624 return cma_open ();
10625 ;
10626 return 0;
10627 }
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_link") 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } && {
10643 test -z "$ac_c_werror_flag" ||
10644 test ! -s conftest.err
10645 } && test -s conftest$ac_exeext &&
10646 $as_test_x conftest$ac_exeext; then
10647 ac_cv_lib_pthreads_cma_open=yes
10648 else
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 ac_cv_lib_pthreads_cma_open=no
10653 fi
10654
10655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10656 conftest$ac_exeext conftest.$ac_ext
10657 LIBS=$ac_check_lib_save_LIBS
10658 fi
10659 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10660 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10661 if test $ac_cv_lib_pthreads_cma_open = yes; then
10662 cat >>confdefs.h <<_ACEOF
10663 #define HAVE_LIBPTHREADS 1
10664 _ACEOF
10665
10666 LIBS="-lpthreads $LIBS"
10667
10668 fi
10669
10670
10671 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10672 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10673 if test -d /usr/X386/include; then
10674 HAVE_XFREE386=yes
10675 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10676 else
10677 HAVE_XFREE386=no
10678 fi
10679 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10680 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10681
10682
10683 case ${host_os} in
10684 aix*)
10685 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10686 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10687 if test "${gdb_cv_bigtoc+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690
10691 case $GCC in
10692 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10693 *) gdb_cv_bigtoc=-bbigtoc ;;
10694 esac
10695
10696 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h. */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703
10704 int
10705 main ()
10706 {
10707 int i;
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest$ac_exeext &&
10729 $as_test_x conftest$ac_exeext; then
10730 :
10731 else
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735 gdb_cv_bigtoc=
10736 fi
10737
10738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739 conftest$ac_exeext conftest.$ac_ext
10740
10741 fi
10742 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10743 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10744 ;;
10745 esac
10746
10747 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10748 # used for the tests that follow. We set them back to REAL_CFLAGS and
10749 # REAL_CPPFLAGS later on.
10750
10751 REAL_CPPFLAGS="$CPPFLAGS"
10752
10753 if test "${HAVE_X11}" = "yes"; then
10754 DEFS="$C_SWITCH_X_SITE $DEFS"
10755 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10756 LIBS="$LIBX $LIBS"
10757 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10758 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10759
10760 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10761 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10762 # but it's more convenient here to set LD_RUN_PATH
10763 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10764 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10765 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10766 export LD_RUN_PATH
10767 fi
10768
10769 if test "${opsys}" = "gnu-linux"; then
10770 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10771 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h. */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778
10779 int
10780 main ()
10781 {
10782 XOpenDisplay ("foo");
10783 ;
10784 return 0;
10785 }
10786 _ACEOF
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (ac_try="$ac_link"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_link") 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest$ac_exeext &&
10804 $as_test_x conftest$ac_exeext; then
10805 xlinux_first_failure=no
10806 else
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10809
10810 xlinux_first_failure=yes
10811 fi
10812
10813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10814 conftest$ac_exeext conftest.$ac_ext
10815 if test "${xlinux_first_failure}" = "yes"; then
10816 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10817 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10818 OLD_CPPFLAGS="$CPPFLAGS"
10819 OLD_LIBS="$LIBS"
10820 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10821 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10822 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10823 LIBS="$LIBS -b i486-linuxaout"
10824 cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h. */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830
10831 int
10832 main ()
10833 {
10834 XOpenDisplay ("foo");
10835 ;
10836 return 0;
10837 }
10838 _ACEOF
10839 rm -f conftest.$ac_objext conftest$ac_exeext
10840 if { (ac_try="$ac_link"
10841 case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10844 esac
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_link") 2>conftest.er1
10847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } && {
10853 test -z "$ac_c_werror_flag" ||
10854 test ! -s conftest.err
10855 } && test -s conftest$ac_exeext &&
10856 $as_test_x conftest$ac_exeext; then
10857 xlinux_second_failure=no
10858 else
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 xlinux_second_failure=yes
10863 fi
10864
10865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10866 conftest$ac_exeext conftest.$ac_ext
10867 if test "${xlinux_second_failure}" = "yes"; then
10868 # If we get the same failure with -b, there is no use adding -b.
10869 # So take it out. This plays safe.
10870 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10871 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10872 CPPFLAGS="$OLD_CPPFLAGS"
10873 LIBS="$OLD_LIBS"
10874 { echo "$as_me:$LINENO: result: no" >&5
10875 echo "${ECHO_T}no" >&6; }
10876 else
10877 { echo "$as_me:$LINENO: result: yes" >&5
10878 echo "${ECHO_T}yes" >&6; }
10879 fi
10880 else
10881 { echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6; }
10883 fi
10884 fi
10885
10886 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10887 # header files included from there.
10888 { echo "$as_me:$LINENO: checking for Xkb" >&5
10889 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10890 cat >conftest.$ac_ext <<_ACEOF
10891 /* confdefs.h. */
10892 _ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10896 #include <X11/Xlib.h>
10897 #include <X11/XKBlib.h>
10898 int
10899 main ()
10900 {
10901 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10902 ;
10903 return 0;
10904 }
10905 _ACEOF
10906 rm -f conftest.$ac_objext conftest$ac_exeext
10907 if { (ac_try="$ac_link"
10908 case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10911 esac
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_link") 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } && {
10920 test -z "$ac_c_werror_flag" ||
10921 test ! -s conftest.err
10922 } && test -s conftest$ac_exeext &&
10923 $as_test_x conftest$ac_exeext; then
10924 emacs_xkb=yes
10925 else
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929 emacs_xkb=no
10930 fi
10931
10932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10933 conftest$ac_exeext conftest.$ac_ext
10934 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10935 echo "${ECHO_T}$emacs_xkb" >&6; }
10936 if test $emacs_xkb = yes; then
10937
10938 cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_XKBGETKEYBOARD 1
10940 _ACEOF
10941
10942 fi
10943
10944
10945
10946
10947
10948 for ac_func in XrmSetDatabase XScreenResourceString \
10949 XScreenNumberOfScreen XSetWMProtocols
10950 do
10951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 else
10957 cat >conftest.$ac_ext <<_ACEOF
10958 /* confdefs.h. */
10959 _ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10965 #define $ac_func innocuous_$ac_func
10966
10967 /* System header to define __stub macros and hopefully few prototypes,
10968 which can conflict with char $ac_func (); below.
10969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10970 <limits.h> exists even on freestanding compilers. */
10971
10972 #ifdef __STDC__
10973 # include <limits.h>
10974 #else
10975 # include <assert.h>
10976 #endif
10977
10978 #undef $ac_func
10979
10980 /* Override any GCC internal prototype to avoid an error.
10981 Use char because int might match the return type of a GCC
10982 builtin and then its argument prototype would still apply. */
10983 #ifdef __cplusplus
10984 extern "C"
10985 #endif
10986 char $ac_func ();
10987 /* The GNU C library defines this for functions which it implements
10988 to always fail with ENOSYS. Some functions are actually named
10989 something starting with __ and the normal name is an alias. */
10990 #if defined __stub_$ac_func || defined __stub___$ac_func
10991 choke me
10992 #endif
10993
10994 int
10995 main ()
10996 {
10997 return $ac_func ();
10998 ;
10999 return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest.$ac_objext conftest$ac_exeext
11003 if { (ac_try="$ac_link"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_link") 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && {
11016 test -z "$ac_c_werror_flag" ||
11017 test ! -s conftest.err
11018 } && test -s conftest$ac_exeext &&
11019 $as_test_x conftest$ac_exeext; then
11020 eval "$as_ac_var=yes"
11021 else
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025 eval "$as_ac_var=no"
11026 fi
11027
11028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11029 conftest$ac_exeext conftest.$ac_ext
11030 fi
11031 ac_res=`eval echo '${'$as_ac_var'}'`
11032 { echo "$as_me:$LINENO: result: $ac_res" >&5
11033 echo "${ECHO_T}$ac_res" >&6; }
11034 if test `eval echo '${'$as_ac_var'}'` = yes; then
11035 cat >>confdefs.h <<_ACEOF
11036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11037 _ACEOF
11038
11039 fi
11040 done
11041
11042 fi
11043
11044 if test "${window_system}" = "x11"; then
11045 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11046 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11047 if test "${emacs_cv_x11_version_6+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050 cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h. */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 #include <X11/Xlib.h>
11057 int
11058 main ()
11059 {
11060 #if XlibSpecificationRelease < 6
11061 fail;
11062 #endif
11063
11064 ;
11065 return 0;
11066 }
11067 _ACEOF
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (ac_try="$ac_link"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_link") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest$ac_exeext &&
11085 $as_test_x conftest$ac_exeext; then
11086 emacs_cv_x11_version_6=yes
11087 else
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11090
11091 emacs_cv_x11_version_6=no
11092 fi
11093
11094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11095 conftest$ac_exeext conftest.$ac_ext
11096 fi
11097
11098 if test $emacs_cv_x11_version_6 = yes; then
11099 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11100 echo "${ECHO_T}6 or newer" >&6; }
11101
11102 cat >>confdefs.h <<\_ACEOF
11103 #define HAVE_X11R6 1
11104 _ACEOF
11105
11106 else
11107 { echo "$as_me:$LINENO: result: before 6" >&5
11108 echo "${ECHO_T}before 6" >&6; }
11109 fi
11110 fi
11111
11112
11113 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11114 HAVE_RSVG=no
11115 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11116 if test "${with_rsvg}" != "no"; then
11117 if test "X${with_pkg_config_prog}" != X; then
11118 PKG_CONFIG="${with_pkg_config_prog}"
11119 fi
11120
11121 RSVG_REQUIRED=2.0.0
11122 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11123
11124
11125 succeeded=no
11126
11127 if test -z "$PKG_CONFIG"; then
11128 # Extract the first word of "pkg-config", so it can be a program name with args.
11129 set dummy pkg-config; ac_word=$2
11130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11132 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135 case $PKG_CONFIG in
11136 [\\/]* | ?:[\\/]*)
11137 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11138 ;;
11139 *)
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11142 do
11143 IFS=$as_save_IFS
11144 test -z "$as_dir" && as_dir=.
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11147 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11149 break 2
11150 fi
11151 done
11152 done
11153 IFS=$as_save_IFS
11154
11155 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11156 ;;
11157 esac
11158 fi
11159 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11160 if test -n "$PKG_CONFIG"; then
11161 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11162 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11163 else
11164 { echo "$as_me:$LINENO: result: no" >&5
11165 echo "${ECHO_T}no" >&6; }
11166 fi
11167
11168
11169 fi
11170
11171 if test "$PKG_CONFIG" = "no" ; then
11172 :
11173 else
11174 PKG_CONFIG_MIN_VERSION=0.9.0
11175 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11176 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11177 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11178
11179 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11180 { echo "$as_me:$LINENO: result: yes" >&5
11181 echo "${ECHO_T}yes" >&6; }
11182 succeeded=yes
11183
11184 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11185 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11186 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11187 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11188 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11189
11190 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11191 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11192 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11193 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11194 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11195 else
11196 { echo "$as_me:$LINENO: result: no" >&5
11197 echo "${ECHO_T}no" >&6; }
11198 RSVG_CFLAGS=""
11199 RSVG_LIBS=""
11200 ## If we have a custom action on failure, don't print errors, but
11201 ## do set a variable so people can do so.
11202 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11203
11204 fi
11205
11206
11207
11208 else
11209 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11210 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11211 fi
11212 fi
11213
11214 if test $succeeded = yes; then
11215 :
11216 else
11217 :
11218 fi
11219
11220
11221
11222
11223 if test ".${RSVG_CFLAGS}" != "."; then
11224 HAVE_RSVG=yes
11225
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_RSVG 1
11228 _ACEOF
11229
11230 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11231 LIBS="$RSVG_LIBS $LIBS"
11232 fi
11233 fi
11234 fi
11235
11236
11237 HAVE_GTK=no
11238 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11239 USE_X_TOOLKIT=none
11240 fi
11241 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11242 test "$USE_X_TOOLKIT" = "maybe"; then
11243 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11244 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11245 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11246 { (exit 1); exit 1; }; };
11247 fi
11248 GLIB_REQUIRED=2.6
11249 GTK_REQUIRED=2.6
11250 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11251
11252 if test "X${with_pkg_config_prog}" != X; then
11253 PKG_CONFIG="${with_pkg_config_prog}"
11254 fi
11255
11256 succeeded=no
11257
11258 if test -z "$PKG_CONFIG"; then
11259 # Extract the first word of "pkg-config", so it can be a program name with args.
11260 set dummy pkg-config; ac_word=$2
11261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11263 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 case $PKG_CONFIG in
11267 [\\/]* | ?:[\\/]*)
11268 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11269 ;;
11270 *)
11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11273 do
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11278 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 break 2
11281 fi
11282 done
11283 done
11284 IFS=$as_save_IFS
11285
11286 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11287 ;;
11288 esac
11289 fi
11290 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11291 if test -n "$PKG_CONFIG"; then
11292 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11293 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11294 else
11295 { echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6; }
11297 fi
11298
11299
11300 fi
11301
11302 if test "$PKG_CONFIG" = "no" ; then
11303 pkg_check_gtk=no
11304 else
11305 PKG_CONFIG_MIN_VERSION=0.9.0
11306 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11307 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11308 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11309
11310 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11311 { echo "$as_me:$LINENO: result: yes" >&5
11312 echo "${ECHO_T}yes" >&6; }
11313 succeeded=yes
11314
11315 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11316 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11317 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11318 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11319 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11320
11321 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11322 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11323 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11324 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11325 echo "${ECHO_T}$GTK_LIBS" >&6; }
11326 else
11327 { echo "$as_me:$LINENO: result: no" >&5
11328 echo "${ECHO_T}no" >&6; }
11329 GTK_CFLAGS=""
11330 GTK_LIBS=""
11331 ## If we have a custom action on failure, don't print errors, but
11332 ## do set a variable so people can do so.
11333 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11334
11335 fi
11336
11337
11338
11339 else
11340 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11341 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11342 fi
11343 fi
11344
11345 if test $succeeded = yes; then
11346 pkg_check_gtk=yes
11347 else
11348 pkg_check_gtk=no
11349 fi
11350
11351 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11352 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11353 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11354 { (exit 1); exit 1; }; }
11355 fi
11356 fi
11357
11358
11359 if test x"$pkg_check_gtk" = xyes; then
11360
11361
11362
11363 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11364 CFLAGS="$CFLAGS $GTK_CFLAGS"
11365 LIBS="$GTK_LIBS $LIBS"
11366 GTK_COMPILES=no
11367
11368 for ac_func in gtk_main
11369 do
11370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h. */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11384 #define $ac_func innocuous_$ac_func
11385
11386 /* System header to define __stub macros and hopefully few prototypes,
11387 which can conflict with char $ac_func (); below.
11388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11389 <limits.h> exists even on freestanding compilers. */
11390
11391 #ifdef __STDC__
11392 # include <limits.h>
11393 #else
11394 # include <assert.h>
11395 #endif
11396
11397 #undef $ac_func
11398
11399 /* Override any GCC internal prototype to avoid an error.
11400 Use char because int might match the return type of a GCC
11401 builtin and then its argument prototype would still apply. */
11402 #ifdef __cplusplus
11403 extern "C"
11404 #endif
11405 char $ac_func ();
11406 /* The GNU C library defines this for functions which it implements
11407 to always fail with ENOSYS. Some functions are actually named
11408 something starting with __ and the normal name is an alias. */
11409 #if defined __stub_$ac_func || defined __stub___$ac_func
11410 choke me
11411 #endif
11412
11413 int
11414 main ()
11415 {
11416 return $ac_func ();
11417 ;
11418 return 0;
11419 }
11420 _ACEOF
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (ac_try="$ac_link"
11423 case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_link") 2>conftest.er1
11429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } && {
11435 test -z "$ac_c_werror_flag" ||
11436 test ! -s conftest.err
11437 } && test -s conftest$ac_exeext &&
11438 $as_test_x conftest$ac_exeext; then
11439 eval "$as_ac_var=yes"
11440 else
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11443
11444 eval "$as_ac_var=no"
11445 fi
11446
11447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11448 conftest$ac_exeext conftest.$ac_ext
11449 fi
11450 ac_res=`eval echo '${'$as_ac_var'}'`
11451 { echo "$as_me:$LINENO: result: $ac_res" >&5
11452 echo "${ECHO_T}$ac_res" >&6; }
11453 if test `eval echo '${'$as_ac_var'}'` = yes; then
11454 cat >>confdefs.h <<_ACEOF
11455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11456 _ACEOF
11457 GTK_COMPILES=yes
11458 fi
11459 done
11460
11461 if test "${GTK_COMPILES}" != "yes"; then
11462 if test "$USE_X_TOOLKIT" != "maybe"; then
11463 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11464 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11465 { (exit 1); exit 1; }; };
11466 fi
11467 else
11468 HAVE_GTK=yes
11469
11470 cat >>confdefs.h <<\_ACEOF
11471 #define HAVE_GTK 1
11472 _ACEOF
11473
11474 USE_X_TOOLKIT=none
11475 fi
11476
11477 fi
11478
11479
11480 if test "${HAVE_GTK}" = "yes"; then
11481
11482 if test "$with_toolkit_scroll_bars" != no; then
11483 with_toolkit_scroll_bars=yes
11484 fi
11485
11486 HAVE_GTK_MULTIDISPLAY=no
11487
11488 for ac_func in gdk_display_open
11489 do
11490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11504 #define $ac_func innocuous_$ac_func
11505
11506 /* System header to define __stub macros and hopefully few prototypes,
11507 which can conflict with char $ac_func (); below.
11508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11509 <limits.h> exists even on freestanding compilers. */
11510
11511 #ifdef __STDC__
11512 # include <limits.h>
11513 #else
11514 # include <assert.h>
11515 #endif
11516
11517 #undef $ac_func
11518
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 char $ac_func ();
11526 /* The GNU C library defines this for functions which it implements
11527 to always fail with ENOSYS. Some functions are actually named
11528 something starting with __ and the normal name is an alias. */
11529 #if defined __stub_$ac_func || defined __stub___$ac_func
11530 choke me
11531 #endif
11532
11533 int
11534 main ()
11535 {
11536 return $ac_func ();
11537 ;
11538 return 0;
11539 }
11540 _ACEOF
11541 rm -f conftest.$ac_objext conftest$ac_exeext
11542 if { (ac_try="$ac_link"
11543 case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546 esac
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_link") 2>conftest.er1
11549 ac_status=$?
11550 grep -v '^ *+' conftest.er1 >conftest.err
11551 rm -f conftest.er1
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } && {
11555 test -z "$ac_c_werror_flag" ||
11556 test ! -s conftest.err
11557 } && test -s conftest$ac_exeext &&
11558 $as_test_x conftest$ac_exeext; then
11559 eval "$as_ac_var=yes"
11560 else
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 eval "$as_ac_var=no"
11565 fi
11566
11567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11568 conftest$ac_exeext conftest.$ac_ext
11569 fi
11570 ac_res=`eval echo '${'$as_ac_var'}'`
11571 { echo "$as_me:$LINENO: result: $ac_res" >&5
11572 echo "${ECHO_T}$ac_res" >&6; }
11573 if test `eval echo '${'$as_ac_var'}'` = yes; then
11574 cat >>confdefs.h <<_ACEOF
11575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11576 _ACEOF
11577 HAVE_GTK_MULTIDISPLAY=yes
11578 fi
11579 done
11580
11581 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11582
11583 cat >>confdefs.h <<\_ACEOF
11584 #define HAVE_GTK_MULTIDISPLAY 1
11585 _ACEOF
11586
11587 fi
11588
11589 HAVE_GTK_FILE_SELECTION=no
11590
11591 for ac_func in gtk_file_selection_new
11592 do
11593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11594 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h. */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11607 #define $ac_func innocuous_$ac_func
11608
11609 /* System header to define __stub macros and hopefully few prototypes,
11610 which can conflict with char $ac_func (); below.
11611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11612 <limits.h> exists even on freestanding compilers. */
11613
11614 #ifdef __STDC__
11615 # include <limits.h>
11616 #else
11617 # include <assert.h>
11618 #endif
11619
11620 #undef $ac_func
11621
11622 /* Override any GCC internal prototype to avoid an error.
11623 Use char because int might match the return type of a GCC
11624 builtin and then its argument prototype would still apply. */
11625 #ifdef __cplusplus
11626 extern "C"
11627 #endif
11628 char $ac_func ();
11629 /* The GNU C library defines this for functions which it implements
11630 to always fail with ENOSYS. Some functions are actually named
11631 something starting with __ and the normal name is an alias. */
11632 #if defined __stub_$ac_func || defined __stub___$ac_func
11633 choke me
11634 #endif
11635
11636 int
11637 main ()
11638 {
11639 return $ac_func ();
11640 ;
11641 return 0;
11642 }
11643 _ACEOF
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (ac_try="$ac_link"
11646 case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11649 esac
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_link") 2>conftest.er1
11652 ac_status=$?
11653 grep -v '^ *+' conftest.er1 >conftest.err
11654 rm -f conftest.er1
11655 cat conftest.err >&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } && {
11658 test -z "$ac_c_werror_flag" ||
11659 test ! -s conftest.err
11660 } && test -s conftest$ac_exeext &&
11661 $as_test_x conftest$ac_exeext; then
11662 eval "$as_ac_var=yes"
11663 else
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667 eval "$as_ac_var=no"
11668 fi
11669
11670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11671 conftest$ac_exeext conftest.$ac_ext
11672 fi
11673 ac_res=`eval echo '${'$as_ac_var'}'`
11674 { echo "$as_me:$LINENO: result: $ac_res" >&5
11675 echo "${ECHO_T}$ac_res" >&6; }
11676 if test `eval echo '${'$as_ac_var'}'` = yes; then
11677 cat >>confdefs.h <<_ACEOF
11678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11679 _ACEOF
11680 HAVE_GTK_FILE_SELECTION=yes
11681 fi
11682 done
11683
11684
11685 HAVE_GTK_FILE_CHOOSER=no
11686
11687 for ac_func in gtk_file_chooser_dialog_new
11688 do
11689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h. */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11703 #define $ac_func innocuous_$ac_func
11704
11705 /* System header to define __stub macros and hopefully few prototypes,
11706 which can conflict with char $ac_func (); below.
11707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708 <limits.h> exists even on freestanding compilers. */
11709
11710 #ifdef __STDC__
11711 # include <limits.h>
11712 #else
11713 # include <assert.h>
11714 #endif
11715
11716 #undef $ac_func
11717
11718 /* Override any GCC internal prototype to avoid an error.
11719 Use char because int might match the return type of a GCC
11720 builtin and then its argument prototype would still apply. */
11721 #ifdef __cplusplus
11722 extern "C"
11723 #endif
11724 char $ac_func ();
11725 /* The GNU C library defines this for functions which it implements
11726 to always fail with ENOSYS. Some functions are actually named
11727 something starting with __ and the normal name is an alias. */
11728 #if defined __stub_$ac_func || defined __stub___$ac_func
11729 choke me
11730 #endif
11731
11732 int
11733 main ()
11734 {
11735 return $ac_func ();
11736 ;
11737 return 0;
11738 }
11739 _ACEOF
11740 rm -f conftest.$ac_objext conftest$ac_exeext
11741 if { (ac_try="$ac_link"
11742 case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11745 esac
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_link") 2>conftest.er1
11748 ac_status=$?
11749 grep -v '^ *+' conftest.er1 >conftest.err
11750 rm -f conftest.er1
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } && {
11754 test -z "$ac_c_werror_flag" ||
11755 test ! -s conftest.err
11756 } && test -s conftest$ac_exeext &&
11757 $as_test_x conftest$ac_exeext; then
11758 eval "$as_ac_var=yes"
11759 else
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11762
11763 eval "$as_ac_var=no"
11764 fi
11765
11766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11767 conftest$ac_exeext conftest.$ac_ext
11768 fi
11769 ac_res=`eval echo '${'$as_ac_var'}'`
11770 { echo "$as_me:$LINENO: result: $ac_res" >&5
11771 echo "${ECHO_T}$ac_res" >&6; }
11772 if test `eval echo '${'$as_ac_var'}'` = yes; then
11773 cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11775 _ACEOF
11776 HAVE_GTK_FILE_CHOOSER=yes
11777 fi
11778 done
11779
11780
11781 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11782 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11783
11784 cat >>confdefs.h <<\_ACEOF
11785 #define HAVE_GTK_FILE_BOTH 1
11786 _ACEOF
11787
11788 fi
11789
11790 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11791 HAVE_GTK_AND_PTHREAD=no
11792
11793 for ac_header in pthread.h
11794 do
11795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 fi
11802 ac_res=`eval echo '${'$as_ac_Header'}'`
11803 { echo "$as_me:$LINENO: result: $ac_res" >&5
11804 echo "${ECHO_T}$ac_res" >&6; }
11805 else
11806 # Is the header compilable?
11807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h. */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11816 #include <$ac_header>
11817 _ACEOF
11818 rm -f conftest.$ac_objext
11819 if { (ac_try="$ac_compile"
11820 case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11823 esac
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 (eval "$ac_compile") 2>conftest.er1
11826 ac_status=$?
11827 grep -v '^ *+' conftest.er1 >conftest.err
11828 rm -f conftest.er1
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } && {
11832 test -z "$ac_c_werror_flag" ||
11833 test ! -s conftest.err
11834 } && test -s conftest.$ac_objext; then
11835 ac_header_compiler=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 ac_header_compiler=no
11841 fi
11842
11843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11845 echo "${ECHO_T}$ac_header_compiler" >&6; }
11846
11847 # Is the header present?
11848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h. */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 #include <$ac_header>
11857 _ACEOF
11858 if { (ac_try="$ac_cpp conftest.$ac_ext"
11859 case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11862 esac
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } >/dev/null && {
11871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11872 test ! -s conftest.err
11873 }; then
11874 ac_header_preproc=yes
11875 else
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879 ac_header_preproc=no
11880 fi
11881
11882 rm -f conftest.err conftest.$ac_ext
11883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 echo "${ECHO_T}$ac_header_preproc" >&6; }
11885
11886 # So? What about this header?
11887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11888 yes:no: )
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893 ac_header_preproc=yes
11894 ;;
11895 no:yes:* )
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11908
11909 ;;
11910 esac
11911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11916 eval "$as_ac_Header=\$ac_header_preproc"
11917 fi
11918 ac_res=`eval echo '${'$as_ac_Header'}'`
11919 { echo "$as_me:$LINENO: result: $ac_res" >&5
11920 echo "${ECHO_T}$ac_res" >&6; }
11921
11922 fi
11923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11924 cat >>confdefs.h <<_ACEOF
11925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11926 _ACEOF
11927
11928 fi
11929
11930 done
11931
11932 if test "$ac_cv_header_pthread_h"; then
11933 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11934 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11935 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938 ac_check_lib_save_LIBS=$LIBS
11939 LIBS="-lpthread $LIBS"
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h. */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946
11947 /* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 char pthread_self ();
11954 int
11955 main ()
11956 {
11957 return pthread_self ();
11958 ;
11959 return 0;
11960 }
11961 _ACEOF
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (ac_try="$ac_link"
11964 case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_link") 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest$ac_exeext &&
11979 $as_test_x conftest$ac_exeext; then
11980 ac_cv_lib_pthread_pthread_self=yes
11981 else
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 ac_cv_lib_pthread_pthread_self=no
11986 fi
11987
11988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11989 conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11991 fi
11992 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11993 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11994 if test $ac_cv_lib_pthread_pthread_self = yes; then
11995 HAVE_GTK_AND_PTHREAD=yes
11996 fi
11997
11998 fi
11999 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12000 case "${canonical}" in
12001 *-hpux*) ;;
12002 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12003 esac
12004
12005 cat >>confdefs.h <<\_ACEOF
12006 #define HAVE_GTK_AND_PTHREAD 1
12007 _ACEOF
12008
12009 fi
12010 fi
12011 fi
12012
12013 HAVE_XAW3D=no
12014 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12015 if test "$with_xaw3d" != no; then
12016 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12017 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12018 if test "${emacs_cv_xaw3d+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021 cat >conftest.$ac_ext <<_ACEOF
12022 /* confdefs.h. */
12023 _ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12027
12028 #include <X11/Intrinsic.h>
12029 #include <X11/Xaw3d/Simple.h>
12030 int
12031 main ()
12032 {
12033
12034 ;
12035 return 0;
12036 }
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (ac_try="$ac_link"
12040 case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_link") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest$ac_exeext &&
12055 $as_test_x conftest$ac_exeext; then
12056 emacs_cv_xaw3d=yes
12057 else
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 emacs_cv_xaw3d=no
12062 fi
12063
12064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12065 conftest$ac_exeext conftest.$ac_ext
12066 fi
12067
12068 else
12069 emacs_cv_xaw3d=no
12070 fi
12071 if test $emacs_cv_xaw3d = yes; then
12072 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12073 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12074 USE_X_TOOLKIT=LUCID
12075 HAVE_XAW3D=yes
12076
12077 cat >>confdefs.h <<\_ACEOF
12078 #define HAVE_XAW3D 1
12079 _ACEOF
12080
12081 else
12082 { echo "$as_me:$LINENO: result: no" >&5
12083 echo "${ECHO_T}no" >&6; }
12084 { echo "$as_me:$LINENO: checking for libXaw" >&5
12085 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12086 if test "${emacs_cv_xaw+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089 cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h. */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12095
12096 #include <X11/Intrinsic.h>
12097 #include <X11/Xaw/Simple.h>
12098 int
12099 main ()
12100 {
12101
12102 ;
12103 return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_link") 2>conftest.er1
12114 ac_status=$?
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } && {
12120 test -z "$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12122 } && test -s conftest$ac_exeext &&
12123 $as_test_x conftest$ac_exeext; then
12124 emacs_cv_xaw=yes
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 emacs_cv_xaw=no
12130 fi
12131
12132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12133 conftest$ac_exeext conftest.$ac_ext
12134 fi
12135
12136 if test $emacs_cv_xaw = yes; then
12137 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12138 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12139 USE_X_TOOLKIT=LUCID
12140 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12141 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12142 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12143 { (exit 1); exit 1; }; }
12144 else
12145 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12146 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12147 USE_X_TOOLKIT=none
12148 fi
12149 fi
12150 fi
12151
12152 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12153
12154 if test "${USE_X_TOOLKIT}" != "none"; then
12155 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12156 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12157 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 else
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h. */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 #include <X11/Intrinsic.h>
12167 int
12168 main ()
12169 {
12170 #if XtSpecificationRelease < 6
12171 fail;
12172 #endif
12173
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (ac_try="$ac_link"
12180 case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12183 esac
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_link") 2>conftest.er1
12186 ac_status=$?
12187 grep -v '^ *+' conftest.er1 >conftest.err
12188 rm -f conftest.er1
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest$ac_exeext &&
12195 $as_test_x conftest$ac_exeext; then
12196 emacs_cv_x11_toolkit_version_6=yes
12197 else
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 emacs_cv_x11_toolkit_version_6=no
12202 fi
12203
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12206 fi
12207
12208 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12209 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12210 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12211 echo "${ECHO_T}6 or newer" >&6; }
12212
12213 cat >>confdefs.h <<\_ACEOF
12214 #define HAVE_X11XTR6 1
12215 _ACEOF
12216
12217 else
12218 { echo "$as_me:$LINENO: result: before 6" >&5
12219 echo "${ECHO_T}before 6" >&6; }
12220 fi
12221
12222 OLDLIBS="$LIBS"
12223 if test x$HAVE_X11XTR6 = xyes; then
12224 LIBS="-lXt -lSM -lICE $LIBS"
12225 else
12226 LIBS="-lXt $LIBS"
12227 fi
12228
12229 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12230 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12231 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234 ac_check_lib_save_LIBS=$LIBS
12235 LIBS="-lXmu $LIBS"
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 char XmuConvertStandardSelection ();
12250 int
12251 main ()
12252 {
12253 return XmuConvertStandardSelection ();
12254 ;
12255 return 0;
12256 }
12257 _ACEOF
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_link") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest$ac_exeext &&
12275 $as_test_x conftest$ac_exeext; then
12276 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12277 else
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12280
12281 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12282 fi
12283
12284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12285 conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12287 fi
12288 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12289 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12290 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12291 cat >>confdefs.h <<_ACEOF
12292 #define HAVE_LIBXMU 1
12293 _ACEOF
12294
12295 LIBS="-lXmu $LIBS"
12296
12297 fi
12298
12299 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12300 fi
12301
12302 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12303 if test "${HAVE_X11}" = "yes"; then
12304 if test "${USE_X_TOOLKIT}" != "none"; then
12305
12306 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12307 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12308 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311 ac_check_lib_save_LIBS=$LIBS
12312 LIBS="-lXext $LIBS"
12313 cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h. */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319
12320 /* Override any GCC internal prototype to avoid an error.
12321 Use char because int might match the return type of a GCC
12322 builtin and then its argument prototype would still apply. */
12323 #ifdef __cplusplus
12324 extern "C"
12325 #endif
12326 char XShapeQueryExtension ();
12327 int
12328 main ()
12329 {
12330 return XShapeQueryExtension ();
12331 ;
12332 return 0;
12333 }
12334 _ACEOF
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (ac_try="$ac_link"
12337 case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12340 esac
12341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342 (eval "$ac_link") 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } && {
12349 test -z "$ac_c_werror_flag" ||
12350 test ! -s conftest.err
12351 } && test -s conftest$ac_exeext &&
12352 $as_test_x conftest$ac_exeext; then
12353 ac_cv_lib_Xext_XShapeQueryExtension=yes
12354 else
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12357
12358 ac_cv_lib_Xext_XShapeQueryExtension=no
12359 fi
12360
12361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12364 fi
12365 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12366 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12367 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12368 cat >>confdefs.h <<_ACEOF
12369 #define HAVE_LIBXEXT 1
12370 _ACEOF
12371
12372 LIBS="-lXext $LIBS"
12373
12374 fi
12375
12376 fi
12377 fi
12378
12379 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12380 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12381 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12382 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h. */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391 #include <Xm/Xm.h>
12392 int
12393 main ()
12394 {
12395 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12396 int x = 5;
12397 #else
12398 Motif version prior to 2.1.
12399 #endif
12400 ;
12401 return 0;
12402 }
12403 _ACEOF
12404 rm -f conftest.$ac_objext
12405 if { (ac_try="$ac_compile"
12406 case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409 esac
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_compile") 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } && {
12418 test -z "$ac_c_werror_flag" ||
12419 test ! -s conftest.err
12420 } && test -s conftest.$ac_objext; then
12421 emacs_cv_motif_version_2_1=yes
12422 else
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12425
12426 emacs_cv_motif_version_2_1=no
12427 fi
12428
12429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 fi
12431 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12432 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12433 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12434 if test $emacs_cv_motif_version_2_1 = yes; then
12435 HAVE_LIBXP=no
12436
12437 cat >>confdefs.h <<\_ACEOF
12438 #define HAVE_MOTIF_2_1 1
12439 _ACEOF
12440
12441 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12442 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12443 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446 ac_check_lib_save_LIBS=$LIBS
12447 LIBS="-lXp $LIBS"
12448 cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h. */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12454
12455 /* Override any GCC internal prototype to avoid an error.
12456 Use char because int might match the return type of a GCC
12457 builtin and then its argument prototype would still apply. */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 char XpCreateContext ();
12462 int
12463 main ()
12464 {
12465 return XpCreateContext ();
12466 ;
12467 return 0;
12468 }
12469 _ACEOF
12470 rm -f conftest.$ac_objext conftest$ac_exeext
12471 if { (ac_try="$ac_link"
12472 case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_link") 2>conftest.er1
12478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } && {
12484 test -z "$ac_c_werror_flag" ||
12485 test ! -s conftest.err
12486 } && test -s conftest$ac_exeext &&
12487 $as_test_x conftest$ac_exeext; then
12488 ac_cv_lib_Xp_XpCreateContext=yes
12489 else
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12492
12493 ac_cv_lib_Xp_XpCreateContext=no
12494 fi
12495
12496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12497 conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12499 fi
12500 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12501 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12502 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12503 HAVE_LIBXP=yes
12504 fi
12505
12506 if test ${HAVE_LIBXP} = yes; then
12507
12508 cat >>confdefs.h <<\_ACEOF
12509 #define HAVE_LIBXP 1
12510 _ACEOF
12511
12512 fi
12513 else
12514 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12515 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12516 if test "${emacs_cv_lesstif+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519 # We put this in CFLAGS temporarily to precede other -I options
12520 # that might be in CFLAGS temporarily.
12521 # We put this in CPPFLAGS where it precedes the other -I options.
12522 OLD_CPPFLAGS=$CPPFLAGS
12523 OLD_CFLAGS=$CFLAGS
12524 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12525 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12533 int
12534 main ()
12535 {
12536 int x = 5;
12537 ;
12538 return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext
12542 if { (ac_try="$ac_compile"
12543 case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546 esac
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_compile") 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 } && test -s conftest.$ac_objext; then
12558 emacs_cv_lesstif=yes
12559 else
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563 emacs_cv_lesstif=no
12564 fi
12565
12566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567 fi
12568 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12569 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12570 if test $emacs_cv_lesstif = yes; then
12571 # Make sure this -I option remains in CPPFLAGS after it is set
12572 # back to REAL_CPPFLAGS.
12573 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12574 # have those other -I options anyway. Ultimately, having this
12575 # directory ultimately in CPPFLAGS will be enough.
12576 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12577 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12578 else
12579 CFLAGS=$OLD_CFLAGS
12580 CPPFLAGS=$OLD_CPPFLAGS
12581 fi
12582 fi
12583 fi
12584
12585
12586
12587 USE_TOOLKIT_SCROLL_BARS=no
12588 if test "${with_toolkit_scroll_bars}" != "no"; then
12589 if test "${USE_X_TOOLKIT}" != "none"; then
12590 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12591 cat >>confdefs.h <<\_ACEOF
12592 #define USE_TOOLKIT_SCROLL_BARS 1
12593 _ACEOF
12594
12595 HAVE_XAW3D=no
12596 USE_TOOLKIT_SCROLL_BARS=yes
12597 elif test "${HAVE_XAW3D}" = "yes"; then
12598 cat >>confdefs.h <<\_ACEOF
12599 #define USE_TOOLKIT_SCROLL_BARS 1
12600 _ACEOF
12601
12602 USE_TOOLKIT_SCROLL_BARS=yes
12603 fi
12604 elif test "${HAVE_GTK}" = "yes"; then
12605 cat >>confdefs.h <<\_ACEOF
12606 #define USE_TOOLKIT_SCROLL_BARS 1
12607 _ACEOF
12608
12609 USE_TOOLKIT_SCROLL_BARS=yes
12610 elif test "${HAVE_CARBON}" = "yes"; then
12611 cat >>confdefs.h <<\_ACEOF
12612 #define USE_TOOLKIT_SCROLL_BARS 1
12613 _ACEOF
12614
12615 USE_TOOLKIT_SCROLL_BARS=yes
12616 fi
12617 fi
12618
12619 cat >conftest.$ac_ext <<_ACEOF
12620 /* confdefs.h. */
12621 _ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h. */
12625
12626 #include <X11/Xlib.h>
12627 #include <X11/Xresource.h>
12628 int
12629 main ()
12630 {
12631 XIMProc callback;
12632 ;
12633 return 0;
12634 }
12635 _ACEOF
12636 rm -f conftest.$ac_objext
12637 if { (ac_try="$ac_compile"
12638 case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_compile") 2>conftest.er1
12644 ac_status=$?
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } && {
12650 test -z "$ac_c_werror_flag" ||
12651 test ! -s conftest.err
12652 } && test -s conftest.$ac_objext; then
12653 HAVE_XIM=yes
12654
12655 cat >>confdefs.h <<\_ACEOF
12656 #define HAVE_XIM 1
12657 _ACEOF
12658
12659 else
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 HAVE_XIM=no
12664 fi
12665
12666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667
12668
12669 if test "${with_xim}" != "no"; then
12670
12671 cat >>confdefs.h <<\_ACEOF
12672 #define USE_XIM 1
12673 _ACEOF
12674
12675 fi
12676
12677
12678 if test "${HAVE_XIM}" != "no"; then
12679 late_CFLAGS=$CFLAGS
12680 if test "$GCC" = yes; then
12681 CFLAGS="$CFLAGS --pedantic-errors"
12682 fi
12683 cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h. */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689
12690 #include <X11/Xlib.h>
12691 #include <X11/Xresource.h>
12692 int
12693 main ()
12694 {
12695 Display *display;
12696 XrmDatabase db;
12697 char *res_name;
12698 char *res_class;
12699 XIMProc callback;
12700 XPointer *client_data;
12701 #ifndef __GNUC__
12702 /* If we're not using GCC, it's probably not XFree86, and this is
12703 probably right, but we can't use something like --pedantic-errors. */
12704 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12705 char*, XIMProc, XPointer*);
12706 #endif
12707 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12708 client_data);
12709 ;
12710 return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext
12714 if { (ac_try="$ac_compile"
12715 case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12718 esac
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720 (eval "$ac_compile") 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && {
12727 test -z "$ac_c_werror_flag" ||
12728 test ! -s conftest.err
12729 } && test -s conftest.$ac_objext; then
12730 emacs_cv_arg6_star=yes
12731 else
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12734
12735
12736 fi
12737
12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12739
12740 if test "$emacs_cv_arg6_star" = yes; then
12741 cat >>confdefs.h <<\_ACEOF
12742 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12743 _ACEOF
12744
12745 else
12746 cat >>confdefs.h <<\_ACEOF
12747 #define XRegisterIMInstantiateCallback_arg6 XPointer
12748 _ACEOF
12749
12750 fi
12751 CFLAGS=$late_CFLAGS
12752 fi
12753
12754 ### For font-backend
12755 if test "${USE_FONT_BACKEND}" = "yes"; then
12756
12757
12758 cat >>confdefs.h <<\_ACEOF
12759 #define USE_FONT_BACKEND 1
12760 _ACEOF
12761
12762
12763 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12764 HAVE_XFT=maybe
12765 if test "${HAVE_X11}" = "yes"; then
12766 if test "x${with_freetype}" = "xno"; then
12767 with_xft="no";
12768 fi
12769 if test "x${with_xft}" != "xno"; then
12770
12771 if test "X${with_pkg_config_prog}" != X; then
12772 PKG_CONFIG="${with_pkg_config_prog}"
12773 fi
12774
12775
12776 succeeded=no
12777
12778 if test -z "$PKG_CONFIG"; then
12779 # Extract the first word of "pkg-config", so it can be a program name with args.
12780 set dummy pkg-config; ac_word=$2
12781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12783 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 else
12786 case $PKG_CONFIG in
12787 [\\/]* | ?:[\\/]*)
12788 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12789 ;;
12790 *)
12791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12792 for as_dir in $PATH
12793 do
12794 IFS=$as_save_IFS
12795 test -z "$as_dir" && as_dir=.
12796 for ac_exec_ext in '' $ac_executable_extensions; do
12797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12798 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12800 break 2
12801 fi
12802 done
12803 done
12804 IFS=$as_save_IFS
12805
12806 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12807 ;;
12808 esac
12809 fi
12810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12811 if test -n "$PKG_CONFIG"; then
12812 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12813 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12814 else
12815 { echo "$as_me:$LINENO: result: no" >&5
12816 echo "${ECHO_T}no" >&6; }
12817 fi
12818
12819
12820 fi
12821
12822 if test "$PKG_CONFIG" = "no" ; then
12823 HAVE_XFT=no
12824 else
12825 PKG_CONFIG_MIN_VERSION=0.9.0
12826 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12827 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12828 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12829
12830 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12831 { echo "$as_me:$LINENO: result: yes" >&5
12832 echo "${ECHO_T}yes" >&6; }
12833 succeeded=yes
12834
12835 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12836 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12837 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12838 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12839 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12840
12841 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12842 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12843 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12844 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12845 echo "${ECHO_T}$XFT_LIBS" >&6; }
12846 else
12847 { echo "$as_me:$LINENO: result: no" >&5
12848 echo "${ECHO_T}no" >&6; }
12849 XFT_CFLAGS=""
12850 XFT_LIBS=""
12851 ## If we have a custom action on failure, don't print errors, but
12852 ## do set a variable so people can do so.
12853 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12854
12855 fi
12856
12857
12858
12859 else
12860 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12861 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12862 fi
12863 fi
12864
12865 if test $succeeded = yes; then
12866 :
12867 else
12868 HAVE_XFT=no
12869 fi
12870
12871 if test "$HAVE_XFT" != no; then
12872 OLD_CPPFLAGS="$CPPFLAGS"
12873 OLD_CFLAGS="$CFLAGS"
12874 OLD_LIBS="$LIBS"
12875 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12876 CFLAGS="$CFLAGS $XFT_CFLAGS"
12877 LIBS="$XFT_LIBS $LIBS"
12878 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12879 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12880 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12881 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 fi
12884 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12885 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12886 else
12887 # Is the header compilable?
12888 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12889 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12890 cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h. */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 $ac_includes_default
12897 #include <X11/Xft/Xft.h>
12898 _ACEOF
12899 rm -f conftest.$ac_objext
12900 if { (ac_try="$ac_compile"
12901 case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904 esac
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_compile") 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } && {
12913 test -z "$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12915 } && test -s conftest.$ac_objext; then
12916 ac_header_compiler=yes
12917 else
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12920
12921 ac_header_compiler=no
12922 fi
12923
12924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12926 echo "${ECHO_T}$ac_header_compiler" >&6; }
12927
12928 # Is the header present?
12929 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12930 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12931 cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h. */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 #include <X11/Xft/Xft.h>
12938 _ACEOF
12939 if { (ac_try="$ac_cpp conftest.$ac_ext"
12940 case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12943 esac
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12946 ac_status=$?
12947 grep -v '^ *+' conftest.er1 >conftest.err
12948 rm -f conftest.er1
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } >/dev/null && {
12952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12953 test ! -s conftest.err
12954 }; then
12955 ac_header_preproc=yes
12956 else
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960 ac_header_preproc=no
12961 fi
12962
12963 rm -f conftest.err conftest.$ac_ext
12964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12965 echo "${ECHO_T}$ac_header_preproc" >&6; }
12966
12967 # So? What about this header?
12968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12969 yes:no: )
12970 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12971 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12973 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12974 ac_header_preproc=yes
12975 ;;
12976 no:yes:* )
12977 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12978 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12979 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12980 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12981 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12982 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12983 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12984 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12986 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12988 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12989
12990 ;;
12991 esac
12992 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12993 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12994 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 else
12997 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12998 fi
12999 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13000 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13001
13002 fi
13003 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13004 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13005 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
13006 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 else
13009 ac_check_lib_save_LIBS=$LIBS
13010 LIBS="-lXft $XFT_LIBS $LIBS"
13011 cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h. */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13021 #ifdef __cplusplus
13022 extern "C"
13023 #endif
13024 char XftFontOpen ();
13025 int
13026 main ()
13027 {
13028 return XftFontOpen ();
13029 ;
13030 return 0;
13031 }
13032 _ACEOF
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (ac_try="$ac_link"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && {
13047 test -z "$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 } && test -s conftest$ac_exeext &&
13050 $as_test_x conftest$ac_exeext; then
13051 ac_cv_lib_Xft_XftFontOpen=yes
13052 else
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056 ac_cv_lib_Xft_XftFontOpen=no
13057 fi
13058
13059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13060 conftest$ac_exeext conftest.$ac_ext
13061 LIBS=$ac_check_lib_save_LIBS
13062 fi
13063 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13064 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
13065 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13066 HAVE_XFT=yes
13067 fi
13068
13069 fi
13070
13071
13072
13073 if test "${HAVE_XFT}" = "yes"; then
13074
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_XFT 1
13077 _ACEOF
13078
13079
13080 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13081 else
13082 CFLAGS="$OLD_CPPFLAGS"
13083 CFLAGS="$OLD_CFLAGS"
13084 LIBS="$OLD_LIBS"
13085 fi
13086 fi
13087 fi
13088 fi
13089
13090 HAVE_FREETYPE=no
13091 ### Use -lfreetype if available, unless `--with-freetype=no'.
13092 if test "${HAVE_XFT}" = "yes"; then
13093 HAVE_FREETYPE=yes
13094 elif test "x${with_freetype}" != "xno"; then
13095 if test "X${with_pkg_config_prog}" != X; then
13096 PKG_CONFIG="${with_pkg_config_prog}"
13097 fi
13098
13099
13100 succeeded=no
13101
13102 if test -z "$PKG_CONFIG"; then
13103 # Extract the first word of "pkg-config", so it can be a program name with args.
13104 set dummy pkg-config; ac_word=$2
13105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13107 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 else
13110 case $PKG_CONFIG in
13111 [\\/]* | ?:[\\/]*)
13112 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13113 ;;
13114 *)
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116 for as_dir in $PATH
13117 do
13118 IFS=$as_save_IFS
13119 test -z "$as_dir" && as_dir=.
13120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13122 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13124 break 2
13125 fi
13126 done
13127 done
13128 IFS=$as_save_IFS
13129
13130 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13131 ;;
13132 esac
13133 fi
13134 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13135 if test -n "$PKG_CONFIG"; then
13136 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13137 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13138 else
13139 { echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6; }
13141 fi
13142
13143
13144 fi
13145
13146 if test "$PKG_CONFIG" = "no" ; then
13147 HAVE_FREETYPE=no
13148 else
13149 PKG_CONFIG_MIN_VERSION=0.9.0
13150 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13151 { echo "$as_me:$LINENO: checking for freetype2" >&5
13152 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13153
13154 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13155 { echo "$as_me:$LINENO: result: yes" >&5
13156 echo "${ECHO_T}yes" >&6; }
13157 succeeded=yes
13158
13159 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13160 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13161 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13162 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13163 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13164
13165 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13166 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13167 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13168 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13169 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13170 else
13171 { echo "$as_me:$LINENO: result: no" >&5
13172 echo "${ECHO_T}no" >&6; }
13173 FREETYPE_CFLAGS=""
13174 FREETYPE_LIBS=""
13175 ## If we have a custom action on failure, don't print errors, but
13176 ## do set a variable so people can do so.
13177 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13178
13179 fi
13180
13181
13182
13183 else
13184 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13185 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13186 fi
13187 fi
13188
13189 if test $succeeded = yes; then
13190 HAVE_FREETYPE=yes
13191 else
13192 HAVE_FREETYPE=no
13193 fi
13194
13195 if test "${HAVE_FREETYPE}" = "yes"; then
13196
13197 succeeded=no
13198
13199 if test -z "$PKG_CONFIG"; then
13200 # Extract the first word of "pkg-config", so it can be a program name with args.
13201 set dummy pkg-config; ac_word=$2
13202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13204 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 case $PKG_CONFIG in
13208 [\\/]* | ?:[\\/]*)
13209 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13210 ;;
13211 *)
13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in $PATH
13214 do
13215 IFS=$as_save_IFS
13216 test -z "$as_dir" && as_dir=.
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13219 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13221 break 2
13222 fi
13223 done
13224 done
13225 IFS=$as_save_IFS
13226
13227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13228 ;;
13229 esac
13230 fi
13231 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13232 if test -n "$PKG_CONFIG"; then
13233 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13234 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13235 else
13236 { echo "$as_me:$LINENO: result: no" >&5
13237 echo "${ECHO_T}no" >&6; }
13238 fi
13239
13240
13241 fi
13242
13243 if test "$PKG_CONFIG" = "no" ; then
13244 HAVE_FC=no
13245 else
13246 PKG_CONFIG_MIN_VERSION=0.9.0
13247 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13248 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13249 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13250
13251 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13252 { echo "$as_me:$LINENO: result: yes" >&5
13253 echo "${ECHO_T}yes" >&6; }
13254 succeeded=yes
13255
13256 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13257 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13258 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13259 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13260 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13261
13262 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13263 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13264 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13265 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13266 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13267 else
13268 { echo "$as_me:$LINENO: result: no" >&5
13269 echo "${ECHO_T}no" >&6; }
13270 FONTCONFIG_CFLAGS=""
13271 FONTCONFIG_LIBS=""
13272 ## If we have a custom action on failure, don't print errors, but
13273 ## do set a variable so people can do so.
13274 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13275
13276 fi
13277
13278
13279
13280 else
13281 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13282 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13283 fi
13284 fi
13285
13286 if test $succeeded = yes; then
13287 HAVE_FC=yes
13288 else
13289 HAVE_FC=no
13290 fi
13291
13292 if test "${HAVE_FC}" = "no"; then
13293 HAVE_FREETYPE=no
13294 fi
13295 fi
13296 fi
13297 if test "${HAVE_FREETYPE}" = "yes"; then
13298
13299 cat >>confdefs.h <<\_ACEOF
13300 #define HAVE_FREETYPE 1
13301 _ACEOF
13302
13303 # Extract the first word of "libotf-config", so it can be a program name with args.
13304 set dummy libotf-config; ac_word=$2
13305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13307 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13308 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 else
13310 if test -n "$HAVE_LIBOTF"; then
13311 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13312 else
13313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314 for as_dir in $PATH
13315 do
13316 IFS=$as_save_IFS
13317 test -z "$as_dir" && as_dir=.
13318 for ac_exec_ext in '' $ac_executable_extensions; do
13319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13320 ac_cv_prog_HAVE_LIBOTF="yes"
13321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13322 break 2
13323 fi
13324 done
13325 done
13326 IFS=$as_save_IFS
13327
13328 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13329 fi
13330 fi
13331 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13332 if test -n "$HAVE_LIBOTF"; then
13333 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13334 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13335 else
13336 { echo "$as_me:$LINENO: result: no" >&5
13337 echo "${ECHO_T}no" >&6; }
13338 fi
13339
13340
13341 if test "${HAVE_LIBOTF}" = "yes"; then
13342
13343 { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
13344 echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
13345 if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 else
13348 ac_check_lib_save_LIBS=$LIBS
13349 LIBS="-lotf $LIBS"
13350 cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h. */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356
13357 /* Override any GCC internal prototype to avoid an error.
13358 Use char because int might match the return type of a GCC
13359 builtin and then its argument prototype would still apply. */
13360 #ifdef __cplusplus
13361 extern "C"
13362 #endif
13363 char OTF_get_features ();
13364 int
13365 main ()
13366 {
13367 return OTF_get_features ();
13368 ;
13369 return 0;
13370 }
13371 _ACEOF
13372 rm -f conftest.$ac_objext conftest$ac_exeext
13373 if { (ac_try="$ac_link"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_link") 2>conftest.er1
13380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } && {
13386 test -z "$ac_c_werror_flag" ||
13387 test ! -s conftest.err
13388 } && test -s conftest$ac_exeext &&
13389 $as_test_x conftest$ac_exeext; then
13390 ac_cv_lib_otf_OTF_get_features=yes
13391 else
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13394
13395 ac_cv_lib_otf_OTF_get_features=no
13396 fi
13397
13398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13399 conftest$ac_exeext conftest.$ac_ext
13400 LIBS=$ac_check_lib_save_LIBS
13401 fi
13402 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
13403 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
13404 if test $ac_cv_lib_otf_OTF_get_features = yes; then
13405 cat >>confdefs.h <<_ACEOF
13406 #define HAVE_LIBOTF 1
13407 _ACEOF
13408
13409 LIBS="-lotf $LIBS"
13410
13411 else
13412 HAVE_LIBOTF=no
13413 fi
13414
13415 if test "${HAVE_LIBOTF}" = "yes"; then
13416
13417 cat >>confdefs.h <<\_ACEOF
13418 #define HAVE_LIBOTF 1
13419 _ACEOF
13420
13421 LIBOTF_CFLAGS=`libotf-config --cflags`
13422 LIBOTF_LIBS=`libotf-config --libs`
13423 fi
13424 fi
13425 fi
13426
13427
13428
13429
13430
13431
13432
13433 fi
13434
13435 ### Use -lXpm if available, unless `--with-xpm=no'.
13436 HAVE_XPM=no
13437 if test "${HAVE_X11}" = "yes"; then
13438 if test "${with_xpm}" != "no"; then
13439 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13440 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13441 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13442 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 fi
13445 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13446 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13447 else
13448 # Is the header compilable?
13449 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13450 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13451 cat >conftest.$ac_ext <<_ACEOF
13452 /* confdefs.h. */
13453 _ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13457 $ac_includes_default
13458 #include <X11/xpm.h>
13459 _ACEOF
13460 rm -f conftest.$ac_objext
13461 if { (ac_try="$ac_compile"
13462 case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_compile") 2>conftest.er1
13468 ac_status=$?
13469 grep -v '^ *+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && {
13474 test -z "$ac_c_werror_flag" ||
13475 test ! -s conftest.err
13476 } && test -s conftest.$ac_objext; then
13477 ac_header_compiler=yes
13478 else
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482 ac_header_compiler=no
13483 fi
13484
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13487 echo "${ECHO_T}$ac_header_compiler" >&6; }
13488
13489 # Is the header present?
13490 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13491 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
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 #include <X11/xpm.h>
13499 _ACEOF
13500 if { (ac_try="$ac_cpp conftest.$ac_ext"
13501 case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504 esac
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } >/dev/null && {
13513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13514 test ! -s conftest.err
13515 }; then
13516 ac_header_preproc=yes
13517 else
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521 ac_header_preproc=no
13522 fi
13523
13524 rm -f conftest.err conftest.$ac_ext
13525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 echo "${ECHO_T}$ac_header_preproc" >&6; }
13527
13528 # So? What about this header?
13529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13530 yes:no: )
13531 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13532 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13534 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13535 ac_header_preproc=yes
13536 ;;
13537 no:yes:* )
13538 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13539 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13540 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13541 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13543 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13545 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13547 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13549 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13550
13551 ;;
13552 esac
13553 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13554 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13555 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558 ac_cv_header_X11_xpm_h=$ac_header_preproc
13559 fi
13560 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13561 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13562
13563 fi
13564 if test $ac_cv_header_X11_xpm_h = yes; then
13565 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13566 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13567 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570 ac_check_lib_save_LIBS=$LIBS
13571 LIBS="-lXpm -lX11 $LIBS"
13572 cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h. */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578
13579 /* Override any GCC internal prototype to avoid an error.
13580 Use char because int might match the return type of a GCC
13581 builtin and then its argument prototype would still apply. */
13582 #ifdef __cplusplus
13583 extern "C"
13584 #endif
13585 char XpmReadFileToPixmap ();
13586 int
13587 main ()
13588 {
13589 return XpmReadFileToPixmap ();
13590 ;
13591 return 0;
13592 }
13593 _ACEOF
13594 rm -f conftest.$ac_objext conftest$ac_exeext
13595 if { (ac_try="$ac_link"
13596 case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13599 esac
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_link") 2>conftest.er1
13602 ac_status=$?
13603 grep -v '^ *+' conftest.er1 >conftest.err
13604 rm -f conftest.er1
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } && {
13608 test -z "$ac_c_werror_flag" ||
13609 test ! -s conftest.err
13610 } && test -s conftest$ac_exeext &&
13611 $as_test_x conftest$ac_exeext; then
13612 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13613 else
13614 echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13616
13617 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13618 fi
13619
13620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13621 conftest$ac_exeext conftest.$ac_ext
13622 LIBS=$ac_check_lib_save_LIBS
13623 fi
13624 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13625 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13626 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13627 HAVE_XPM=yes
13628 fi
13629
13630 fi
13631
13632
13633 if test "${HAVE_XPM}" = "yes"; then
13634 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13635 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13636 cat >conftest.$ac_ext <<_ACEOF
13637 /* confdefs.h. */
13638 _ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 #include "X11/xpm.h"
13643 #ifndef XpmReturnAllocPixels
13644 no_return_alloc_pixels
13645 #endif
13646
13647 _ACEOF
13648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13649 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13650 HAVE_XPM=no
13651 else
13652 HAVE_XPM=yes
13653 fi
13654 rm -f conftest*
13655
13656
13657 if test "${HAVE_XPM}" = "yes"; then
13658 { echo "$as_me:$LINENO: result: yes" >&5
13659 echo "${ECHO_T}yes" >&6; }
13660 else
13661 { echo "$as_me:$LINENO: result: no" >&5
13662 echo "${ECHO_T}no" >&6; }
13663 fi
13664 fi
13665 fi
13666
13667 if test "${HAVE_XPM}" = "yes"; then
13668
13669 cat >>confdefs.h <<\_ACEOF
13670 #define HAVE_XPM 1
13671 _ACEOF
13672
13673 fi
13674 fi
13675
13676 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13677 HAVE_JPEG=no
13678 if test "${HAVE_X11}" = "yes"; then
13679 if test "${with_jpeg}" != "no"; then
13680 if test "${ac_cv_header_jerror_h+set}" = set; then
13681 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13682 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13683 if test "${ac_cv_header_jerror_h+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 fi
13686 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13687 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13688 else
13689 # Is the header compilable?
13690 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13691 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13692 cat >conftest.$ac_ext <<_ACEOF
13693 /* confdefs.h. */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13698 $ac_includes_default
13699 #include <jerror.h>
13700 _ACEOF
13701 rm -f conftest.$ac_objext
13702 if { (ac_try="$ac_compile"
13703 case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13706 esac
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_compile") 2>conftest.er1
13709 ac_status=$?
13710 grep -v '^ *+' conftest.er1 >conftest.err
13711 rm -f conftest.er1
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } && {
13715 test -z "$ac_c_werror_flag" ||
13716 test ! -s conftest.err
13717 } && test -s conftest.$ac_objext; then
13718 ac_header_compiler=yes
13719 else
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13722
13723 ac_header_compiler=no
13724 fi
13725
13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13728 echo "${ECHO_T}$ac_header_compiler" >&6; }
13729
13730 # Is the header present?
13731 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13732 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13733 cat >conftest.$ac_ext <<_ACEOF
13734 /* confdefs.h. */
13735 _ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13739 #include <jerror.h>
13740 _ACEOF
13741 if { (ac_try="$ac_cpp conftest.$ac_ext"
13742 case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13745 esac
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13748 ac_status=$?
13749 grep -v '^ *+' conftest.er1 >conftest.err
13750 rm -f conftest.er1
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } >/dev/null && {
13754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13755 test ! -s conftest.err
13756 }; then
13757 ac_header_preproc=yes
13758 else
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13761
13762 ac_header_preproc=no
13763 fi
13764
13765 rm -f conftest.err conftest.$ac_ext
13766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13767 echo "${ECHO_T}$ac_header_preproc" >&6; }
13768
13769 # So? What about this header?
13770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13771 yes:no: )
13772 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13773 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13775 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13776 ac_header_preproc=yes
13777 ;;
13778 no:yes:* )
13779 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13780 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13781 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13782 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13783 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13784 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13786 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13788 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13790 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13791
13792 ;;
13793 esac
13794 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13795 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13796 if test "${ac_cv_header_jerror_h+set}" = set; then
13797 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 else
13799 ac_cv_header_jerror_h=$ac_header_preproc
13800 fi
13801 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13802 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13803
13804 fi
13805 if test $ac_cv_header_jerror_h = yes; then
13806 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13807 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13808 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811 ac_check_lib_save_LIBS=$LIBS
13812 LIBS="-ljpeg $LIBS"
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819
13820 /* Override any GCC internal prototype to avoid an error.
13821 Use char because int might match the return type of a GCC
13822 builtin and then its argument prototype would still apply. */
13823 #ifdef __cplusplus
13824 extern "C"
13825 #endif
13826 char jpeg_destroy_compress ();
13827 int
13828 main ()
13829 {
13830 return jpeg_destroy_compress ();
13831 ;
13832 return 0;
13833 }
13834 _ACEOF
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (ac_try="$ac_link"
13837 case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840 esac
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_link") 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } && {
13849 test -z "$ac_c_werror_flag" ||
13850 test ! -s conftest.err
13851 } && test -s conftest$ac_exeext &&
13852 $as_test_x conftest$ac_exeext; then
13853 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13854 else
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13859 fi
13860
13861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13862 conftest$ac_exeext conftest.$ac_ext
13863 LIBS=$ac_check_lib_save_LIBS
13864 fi
13865 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13866 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13867 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13868 HAVE_JPEG=yes
13869 fi
13870
13871 fi
13872
13873
13874 fi
13875
13876
13877 if test "${HAVE_JPEG}" = "yes"; then
13878 cat >>confdefs.h <<\_ACEOF
13879 #define HAVE_JPEG 1
13880 _ACEOF
13881
13882 cat >conftest.$ac_ext <<_ACEOF
13883 /* confdefs.h. */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13888 #include <jpeglib.h>
13889 version=JPEG_LIB_VERSION
13890
13891 _ACEOF
13892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13893 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13894 cat >>confdefs.h <<\_ACEOF
13895 #define HAVE_JPEG 1
13896 _ACEOF
13897
13898 else
13899 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13900 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13901 HAVE_JPEG=no
13902 fi
13903 rm -f conftest*
13904
13905 fi
13906 fi
13907
13908 ### Use -lpng if available, unless `--with-png=no'.
13909 HAVE_PNG=no
13910 if test "${HAVE_X11}" = "yes"; then
13911 if test "${with_png}" != "no"; then
13912 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13913 # in /usr/include/libpng.
13914
13915
13916 for ac_header in png.h libpng/png.h
13917 do
13918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 fi
13925 ac_res=`eval echo '${'$as_ac_Header'}'`
13926 { echo "$as_me:$LINENO: result: $ac_res" >&5
13927 echo "${ECHO_T}$ac_res" >&6; }
13928 else
13929 # Is the header compilable?
13930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13932 cat >conftest.$ac_ext <<_ACEOF
13933 /* confdefs.h. */
13934 _ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13938 $ac_includes_default
13939 #include <$ac_header>
13940 _ACEOF
13941 rm -f conftest.$ac_objext
13942 if { (ac_try="$ac_compile"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13946 esac
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_compile") 2>conftest.er1
13949 ac_status=$?
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -f conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } && {
13955 test -z "$ac_c_werror_flag" ||
13956 test ! -s conftest.err
13957 } && test -s conftest.$ac_objext; then
13958 ac_header_compiler=yes
13959 else
13960 echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13962
13963 ac_header_compiler=no
13964 fi
13965
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13968 echo "${ECHO_T}$ac_header_compiler" >&6; }
13969
13970 # Is the header present?
13971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13973 cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h. */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 #include <$ac_header>
13980 _ACEOF
13981 if { (ac_try="$ac_cpp conftest.$ac_ext"
13982 case "(($ac_try" in
13983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984 *) ac_try_echo=$ac_try;;
13985 esac
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13988 ac_status=$?
13989 grep -v '^ *+' conftest.er1 >conftest.err
13990 rm -f conftest.er1
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } >/dev/null && {
13994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13995 test ! -s conftest.err
13996 }; then
13997 ac_header_preproc=yes
13998 else
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14001
14002 ac_header_preproc=no
14003 fi
14004
14005 rm -f conftest.err conftest.$ac_ext
14006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14007 echo "${ECHO_T}$ac_header_preproc" >&6; }
14008
14009 # So? What about this header?
14010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14011 yes:no: )
14012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14016 ac_header_preproc=yes
14017 ;;
14018 no:yes:* )
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14031
14032 ;;
14033 esac
14034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039 eval "$as_ac_Header=\$ac_header_preproc"
14040 fi
14041 ac_res=`eval echo '${'$as_ac_Header'}'`
14042 { echo "$as_me:$LINENO: result: $ac_res" >&5
14043 echo "${ECHO_T}$ac_res" >&6; }
14044
14045 fi
14046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14047 cat >>confdefs.h <<_ACEOF
14048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14049 _ACEOF
14050
14051 fi
14052
14053 done
14054
14055 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14056 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14057 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14058 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061 ac_check_lib_save_LIBS=$LIBS
14062 LIBS="-lpng -lz -lm $LIBS"
14063 cat >conftest.$ac_ext <<_ACEOF
14064 /* confdefs.h. */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069
14070 /* Override any GCC internal prototype to avoid an error.
14071 Use char because int might match the return type of a GCC
14072 builtin and then its argument prototype would still apply. */
14073 #ifdef __cplusplus
14074 extern "C"
14075 #endif
14076 char png_get_channels ();
14077 int
14078 main ()
14079 {
14080 return png_get_channels ();
14081 ;
14082 return 0;
14083 }
14084 _ACEOF
14085 rm -f conftest.$ac_objext conftest$ac_exeext
14086 if { (ac_try="$ac_link"
14087 case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14090 esac
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_link") 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } && {
14099 test -z "$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14101 } && test -s conftest$ac_exeext &&
14102 $as_test_x conftest$ac_exeext; then
14103 ac_cv_lib_png_png_get_channels=yes
14104 else
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14107
14108 ac_cv_lib_png_png_get_channels=no
14109 fi
14110
14111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14112 conftest$ac_exeext conftest.$ac_ext
14113 LIBS=$ac_check_lib_save_LIBS
14114 fi
14115 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14116 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14117 if test $ac_cv_lib_png_png_get_channels = yes; then
14118 HAVE_PNG=yes
14119 fi
14120
14121 fi
14122 fi
14123
14124 if test "${HAVE_PNG}" = "yes"; then
14125
14126 cat >>confdefs.h <<\_ACEOF
14127 #define HAVE_PNG 1
14128 _ACEOF
14129
14130 fi
14131 fi
14132
14133 ### Use -ltiff if available, unless `--with-tiff=no'.
14134 HAVE_TIFF=no
14135 if test "${HAVE_X11}" = "yes"; then
14136 if test "${with_tiff}" != "no"; then
14137 if test "${ac_cv_header_tiffio_h+set}" = set; then
14138 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14139 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14140 if test "${ac_cv_header_tiffio_h+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 fi
14143 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14144 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14145 else
14146 # Is the header compilable?
14147 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14148 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 $ac_includes_default
14156 #include <tiffio.h>
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 if { (ac_try="$ac_compile"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14163 esac
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_compile") 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } && {
14172 test -z "$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 } && test -s conftest.$ac_objext; then
14175 ac_header_compiler=yes
14176 else
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14179
14180 ac_header_compiler=no
14181 fi
14182
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14185 echo "${ECHO_T}$ac_header_compiler" >&6; }
14186
14187 # Is the header present?
14188 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14189 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14190 cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h. */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #include <tiffio.h>
14197 _ACEOF
14198 if { (ac_try="$ac_cpp conftest.$ac_ext"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202 esac
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } >/dev/null && {
14211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14213 }; then
14214 ac_header_preproc=yes
14215 else
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14218
14219 ac_header_preproc=no
14220 fi
14221
14222 rm -f conftest.err conftest.$ac_ext
14223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14224 echo "${ECHO_T}$ac_header_preproc" >&6; }
14225
14226 # So? What about this header?
14227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14228 yes:no: )
14229 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14230 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14231 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14232 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14233 ac_header_preproc=yes
14234 ;;
14235 no:yes:* )
14236 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14237 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14238 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14239 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14241 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14243 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14245 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14247 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14248
14249 ;;
14250 esac
14251 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14252 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14253 if test "${ac_cv_header_tiffio_h+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256 ac_cv_header_tiffio_h=$ac_header_preproc
14257 fi
14258 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14259 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14260
14261 fi
14262 if test $ac_cv_header_tiffio_h = yes; then
14263 tifflibs="-lz -lm"
14264 # At least one tiff package requires the jpeg library.
14265 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14266 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14267 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14268 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271 ac_check_lib_save_LIBS=$LIBS
14272 LIBS="-ltiff $tifflibs $LIBS"
14273 cat >conftest.$ac_ext <<_ACEOF
14274 /* confdefs.h. */
14275 _ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h. */
14279
14280 /* Override any GCC internal prototype to avoid an error.
14281 Use char because int might match the return type of a GCC
14282 builtin and then its argument prototype would still apply. */
14283 #ifdef __cplusplus
14284 extern "C"
14285 #endif
14286 char TIFFGetVersion ();
14287 int
14288 main ()
14289 {
14290 return TIFFGetVersion ();
14291 ;
14292 return 0;
14293 }
14294 _ACEOF
14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (ac_try="$ac_link"
14297 case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_link") 2>conftest.er1
14303 ac_status=$?
14304 grep -v '^ *+' conftest.er1 >conftest.err
14305 rm -f conftest.er1
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } && {
14309 test -z "$ac_c_werror_flag" ||
14310 test ! -s conftest.err
14311 } && test -s conftest$ac_exeext &&
14312 $as_test_x conftest$ac_exeext; then
14313 ac_cv_lib_tiff_TIFFGetVersion=yes
14314 else
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318 ac_cv_lib_tiff_TIFFGetVersion=no
14319 fi
14320
14321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14322 conftest$ac_exeext conftest.$ac_ext
14323 LIBS=$ac_check_lib_save_LIBS
14324 fi
14325 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14326 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14327 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14328 HAVE_TIFF=yes
14329 fi
14330
14331 fi
14332
14333
14334 fi
14335
14336 if test "${HAVE_TIFF}" = "yes"; then
14337
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_TIFF 1
14340 _ACEOF
14341
14342 fi
14343 fi
14344
14345 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14346 HAVE_GIF=no
14347 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14348 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14349 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14350 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14351 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14353 fi
14354 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14355 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14356 else
14357 # Is the header compilable?
14358 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14359 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h. */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 $ac_includes_default
14367 #include <gif_lib.h>
14368 _ACEOF
14369 rm -f conftest.$ac_objext
14370 if { (ac_try="$ac_compile"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_compile") 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } && {
14383 test -z "$ac_c_werror_flag" ||
14384 test ! -s conftest.err
14385 } && test -s conftest.$ac_objext; then
14386 ac_header_compiler=yes
14387 else
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14390
14391 ac_header_compiler=no
14392 fi
14393
14394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14396 echo "${ECHO_T}$ac_header_compiler" >&6; }
14397
14398 # Is the header present?
14399 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14400 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14401 cat >conftest.$ac_ext <<_ACEOF
14402 /* confdefs.h. */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14407 #include <gif_lib.h>
14408 _ACEOF
14409 if { (ac_try="$ac_cpp conftest.$ac_ext"
14410 case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14416 ac_status=$?
14417 grep -v '^ *+' conftest.er1 >conftest.err
14418 rm -f conftest.er1
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } >/dev/null && {
14422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14423 test ! -s conftest.err
14424 }; then
14425 ac_header_preproc=yes
14426 else
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430 ac_header_preproc=no
14431 fi
14432
14433 rm -f conftest.err conftest.$ac_ext
14434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14435 echo "${ECHO_T}$ac_header_preproc" >&6; }
14436
14437 # So? What about this header?
14438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14439 yes:no: )
14440 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14441 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14443 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14444 ac_header_preproc=yes
14445 ;;
14446 no:yes:* )
14447 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14448 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14450 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14452 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14454 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14456 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14458 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14459
14460 ;;
14461 esac
14462 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14463 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14464 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 else
14467 ac_cv_header_gif_lib_h=$ac_header_preproc
14468 fi
14469 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14470 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14471
14472 fi
14473 if test $ac_cv_header_gif_lib_h = yes; then
14474 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14475 # Earlier versions can crash Emacs.
14476 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14477 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14478 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481 ac_check_lib_save_LIBS=$LIBS
14482 LIBS="-lgif $LIBS"
14483 cat >conftest.$ac_ext <<_ACEOF
14484 /* confdefs.h. */
14485 _ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14489
14490 /* Override any GCC internal prototype to avoid an error.
14491 Use char because int might match the return type of a GCC
14492 builtin and then its argument prototype would still apply. */
14493 #ifdef __cplusplus
14494 extern "C"
14495 #endif
14496 char EGifPutExtensionLast ();
14497 int
14498 main ()
14499 {
14500 return EGifPutExtensionLast ();
14501 ;
14502 return 0;
14503 }
14504 _ACEOF
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (ac_try="$ac_link"
14507 case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14510 esac
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_link") 2>conftest.er1
14513 ac_status=$?
14514 grep -v '^ *+' conftest.er1 >conftest.err
14515 rm -f conftest.er1
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && {
14519 test -z "$ac_c_werror_flag" ||
14520 test ! -s conftest.err
14521 } && test -s conftest$ac_exeext &&
14522 $as_test_x conftest$ac_exeext; then
14523 ac_cv_lib_gif_EGifPutExtensionLast=yes
14524 else
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14527
14528 ac_cv_lib_gif_EGifPutExtensionLast=no
14529 fi
14530
14531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14532 conftest$ac_exeext conftest.$ac_ext
14533 LIBS=$ac_check_lib_save_LIBS
14534 fi
14535 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14536 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14537 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14538 HAVE_GIF=yes
14539 else
14540 try_libungif=yes
14541 fi
14542
14543 fi
14544
14545
14546
14547 if test "$HAVE_GIF" = yes; then
14548 ac_gif_lib_name="-lgif"
14549 fi
14550
14551 # If gif_lib.h but no libgif, try libungif.
14552 if test x"$try_libungif" = xyes; then
14553 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14554 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14555 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558 ac_check_lib_save_LIBS=$LIBS
14559 LIBS="-lungif $LIBS"
14560 cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h. */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566
14567 /* Override any GCC internal prototype to avoid an error.
14568 Use char because int might match the return type of a GCC
14569 builtin and then its argument prototype would still apply. */
14570 #ifdef __cplusplus
14571 extern "C"
14572 #endif
14573 char EGifPutExtensionLast ();
14574 int
14575 main ()
14576 {
14577 return EGifPutExtensionLast ();
14578 ;
14579 return 0;
14580 }
14581 _ACEOF
14582 rm -f conftest.$ac_objext conftest$ac_exeext
14583 if { (ac_try="$ac_link"
14584 case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_link") 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } && {
14596 test -z "$ac_c_werror_flag" ||
14597 test ! -s conftest.err
14598 } && test -s conftest$ac_exeext &&
14599 $as_test_x conftest$ac_exeext; then
14600 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14601 else
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 ac_cv_lib_ungif_EGifPutExtensionLast=no
14606 fi
14607
14608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14609 conftest$ac_exeext conftest.$ac_ext
14610 LIBS=$ac_check_lib_save_LIBS
14611 fi
14612 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14613 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14614 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14615 HAVE_GIF=yes
14616 fi
14617
14618
14619 if test "$HAVE_GIF" = yes; then
14620
14621 cat >>confdefs.h <<\_ACEOF
14622 #define LIBGIF -lungif
14623 _ACEOF
14624
14625 ac_gif_lib_name="-lungif"
14626 fi
14627 fi
14628
14629 if test "${HAVE_GIF}" = "yes"; then
14630
14631 cat >>confdefs.h <<\_ACEOF
14632 #define HAVE_GIF 1
14633 _ACEOF
14634
14635 fi
14636 fi
14637
14638 if test "${HAVE_X11}" = "yes"; then
14639 MISSING=""
14640 WITH_NO=""
14641 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14642 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14643 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14644 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14645 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14646 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14647 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14648 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14649 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14650 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14651
14652 if test "X${MISSING}" != X; then
14653 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14654 $MISSING
14655 Maybe some development libraries/packages are missing?
14656 If you don't want to link with them give
14657 $WITH_NO
14658 as options to configure" >&5
14659 echo "$as_me: error: The following required libraries were not found:
14660 $MISSING
14661 Maybe some development libraries/packages are missing?
14662 If you don't want to link with them give
14663 $WITH_NO
14664 as options to configure" >&2;}
14665 { (exit 1); exit 1; }; }
14666 fi
14667 fi
14668
14669 ### Use -lgpm if available, unless `--with-gpm=no'.
14670 HAVE_GPM=no
14671 if test "${with_gpm}" != "no"; then
14672 if test "${ac_cv_header_gpm_h+set}" = set; then
14673 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14674 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14675 if test "${ac_cv_header_gpm_h+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 fi
14678 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14679 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14680 else
14681 # Is the header compilable?
14682 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14683 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14684 cat >conftest.$ac_ext <<_ACEOF
14685 /* confdefs.h. */
14686 _ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14690 $ac_includes_default
14691 #include <gpm.h>
14692 _ACEOF
14693 rm -f conftest.$ac_objext
14694 if { (ac_try="$ac_compile"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_compile") 2>conftest.er1
14701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest.$ac_objext; then
14710 ac_header_compiler=yes
14711 else
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715 ac_header_compiler=no
14716 fi
14717
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14720 echo "${ECHO_T}$ac_header_compiler" >&6; }
14721
14722 # Is the header present?
14723 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14724 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 #include <gpm.h>
14732 _ACEOF
14733 if { (ac_try="$ac_cpp conftest.$ac_ext"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } >/dev/null && {
14746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14747 test ! -s conftest.err
14748 }; then
14749 ac_header_preproc=yes
14750 else
14751 echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754 ac_header_preproc=no
14755 fi
14756
14757 rm -f conftest.err conftest.$ac_ext
14758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14759 echo "${ECHO_T}$ac_header_preproc" >&6; }
14760
14761 # So? What about this header?
14762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14763 yes:no: )
14764 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14765 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14766 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14767 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14768 ac_header_preproc=yes
14769 ;;
14770 no:yes:* )
14771 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14772 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14774 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14776 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14778 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14780 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14782 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14783
14784 ;;
14785 esac
14786 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14787 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14788 if test "${ac_cv_header_gpm_h+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791 ac_cv_header_gpm_h=$ac_header_preproc
14792 fi
14793 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14794 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14795
14796 fi
14797 if test $ac_cv_header_gpm_h = yes; then
14798 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14799 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14800 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803 ac_check_lib_save_LIBS=$LIBS
14804 LIBS="-lgpm $LIBS"
14805 cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h. */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811
14812 /* Override any GCC internal prototype to avoid an error.
14813 Use char because int might match the return type of a GCC
14814 builtin and then its argument prototype would still apply. */
14815 #ifdef __cplusplus
14816 extern "C"
14817 #endif
14818 char Gpm_Open ();
14819 int
14820 main ()
14821 {
14822 return Gpm_Open ();
14823 ;
14824 return 0;
14825 }
14826 _ACEOF
14827 rm -f conftest.$ac_objext conftest$ac_exeext
14828 if { (ac_try="$ac_link"
14829 case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14832 esac
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_link") 2>conftest.er1
14835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } && {
14841 test -z "$ac_c_werror_flag" ||
14842 test ! -s conftest.err
14843 } && test -s conftest$ac_exeext &&
14844 $as_test_x conftest$ac_exeext; then
14845 ac_cv_lib_gpm_Gpm_Open=yes
14846 else
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14849
14850 ac_cv_lib_gpm_Gpm_Open=no
14851 fi
14852
14853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14854 conftest$ac_exeext conftest.$ac_ext
14855 LIBS=$ac_check_lib_save_LIBS
14856 fi
14857 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14858 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14859 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14860 HAVE_GPM=yes
14861 fi
14862
14863 fi
14864
14865
14866 fi
14867
14868 if test "${HAVE_GPM}" = "yes"; then
14869
14870 cat >>confdefs.h <<\_ACEOF
14871 #define HAVE_GPM 1
14872 _ACEOF
14873
14874 fi
14875
14876 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14877 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14878 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14879 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 fi
14882 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14883 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14884 else
14885 # Is the header compilable?
14886 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14887 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14888 cat >conftest.$ac_ext <<_ACEOF
14889 /* confdefs.h. */
14890 _ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h. */
14894 $ac_includes_default
14895 #include <malloc/malloc.h>
14896 _ACEOF
14897 rm -f conftest.$ac_objext
14898 if { (ac_try="$ac_compile"
14899 case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14902 esac
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_compile") 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } && {
14911 test -z "$ac_c_werror_flag" ||
14912 test ! -s conftest.err
14913 } && test -s conftest.$ac_objext; then
14914 ac_header_compiler=yes
14915 else
14916 echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14918
14919 ac_header_compiler=no
14920 fi
14921
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14924 echo "${ECHO_T}$ac_header_compiler" >&6; }
14925
14926 # Is the header present?
14927 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14928 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h. */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 #include <malloc/malloc.h>
14936 _ACEOF
14937 if { (ac_try="$ac_cpp conftest.$ac_ext"
14938 case "(($ac_try" in
14939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940 *) ac_try_echo=$ac_try;;
14941 esac
14942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14944 ac_status=$?
14945 grep -v '^ *+' conftest.er1 >conftest.err
14946 rm -f conftest.er1
14947 cat conftest.err >&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } >/dev/null && {
14950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14951 test ! -s conftest.err
14952 }; then
14953 ac_header_preproc=yes
14954 else
14955 echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14957
14958 ac_header_preproc=no
14959 fi
14960
14961 rm -f conftest.err conftest.$ac_ext
14962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14963 echo "${ECHO_T}$ac_header_preproc" >&6; }
14964
14965 # So? What about this header?
14966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14967 yes:no: )
14968 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14969 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14971 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14972 ac_header_preproc=yes
14973 ;;
14974 no:yes:* )
14975 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14976 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14978 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14980 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14982 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14984 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14986 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14987
14988 ;;
14989 esac
14990 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14991 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14992 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 else
14995 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14996 fi
14997 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14998 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14999
15000 fi
15001 if test $ac_cv_header_malloc_malloc_h = yes; then
15002
15003 cat >>confdefs.h <<\_ACEOF
15004 #define HAVE_MALLOC_MALLOC_H 1
15005 _ACEOF
15006
15007 fi
15008
15009
15010
15011 ### Use Mac OS X Carbon API to implement GUI.
15012 if test "${HAVE_CARBON}" = "yes"; then
15013
15014 cat >>confdefs.h <<\_ACEOF
15015 #define HAVE_CARBON 1
15016 _ACEOF
15017
15018 ## Specify the install directory
15019 carbon_appdir=
15020 if test "${carbon_appdir_x}" != ""; then
15021 case ${carbon_appdir_x} in
15022 y | ye | yes) carbon_appdir=/Applications ;;
15023 * ) carbon_appdir=${carbon_appdir_x} ;;
15024 esac
15025 fi
15026 # We also have mouse menus.
15027 HAVE_MENUS=yes
15028 fi
15029
15030 ### Use session management (-lSM -lICE) if available
15031 HAVE_X_SM=no
15032 if test "${HAVE_X11}" = "yes"; then
15033 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15034 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15035 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15036 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 fi
15039 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15040 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15041 else
15042 # Is the header compilable?
15043 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15044 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h. */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 $ac_includes_default
15052 #include <X11/SM/SMlib.h>
15053 _ACEOF
15054 rm -f conftest.$ac_objext
15055 if { (ac_try="$ac_compile"
15056 case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15059 esac
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_compile") 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } && {
15068 test -z "$ac_c_werror_flag" ||
15069 test ! -s conftest.err
15070 } && test -s conftest.$ac_objext; then
15071 ac_header_compiler=yes
15072 else
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076 ac_header_compiler=no
15077 fi
15078
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15081 echo "${ECHO_T}$ac_header_compiler" >&6; }
15082
15083 # Is the header present?
15084 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15085 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 #include <X11/SM/SMlib.h>
15093 _ACEOF
15094 if { (ac_try="$ac_cpp conftest.$ac_ext"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } >/dev/null && {
15107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 }; then
15110 ac_header_preproc=yes
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115 ac_header_preproc=no
15116 fi
15117
15118 rm -f conftest.err conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15120 echo "${ECHO_T}$ac_header_preproc" >&6; }
15121
15122 # So? What about this header?
15123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15124 yes:no: )
15125 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15126 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15128 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15129 ac_header_preproc=yes
15130 ;;
15131 no:yes:* )
15132 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15133 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15135 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15137 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15139 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15141 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15142 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15143 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15144
15145 ;;
15146 esac
15147 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15148 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15149 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15153 fi
15154 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15155 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15156
15157 fi
15158 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15159 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15160 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15161 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164 ac_check_lib_save_LIBS=$LIBS
15165 LIBS="-lSM -lICE $LIBS"
15166 cat >conftest.$ac_ext <<_ACEOF
15167 /* confdefs.h. */
15168 _ACEOF
15169 cat confdefs.h >>conftest.$ac_ext
15170 cat >>conftest.$ac_ext <<_ACEOF
15171 /* end confdefs.h. */
15172
15173 /* Override any GCC internal prototype to avoid an error.
15174 Use char because int might match the return type of a GCC
15175 builtin and then its argument prototype would still apply. */
15176 #ifdef __cplusplus
15177 extern "C"
15178 #endif
15179 char SmcOpenConnection ();
15180 int
15181 main ()
15182 {
15183 return SmcOpenConnection ();
15184 ;
15185 return 0;
15186 }
15187 _ACEOF
15188 rm -f conftest.$ac_objext conftest$ac_exeext
15189 if { (ac_try="$ac_link"
15190 case "(($ac_try" in
15191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15193 esac
15194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195 (eval "$ac_link") 2>conftest.er1
15196 ac_status=$?
15197 grep -v '^ *+' conftest.er1 >conftest.err
15198 rm -f conftest.er1
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } && {
15202 test -z "$ac_c_werror_flag" ||
15203 test ! -s conftest.err
15204 } && test -s conftest$ac_exeext &&
15205 $as_test_x conftest$ac_exeext; then
15206 ac_cv_lib_SM_SmcOpenConnection=yes
15207 else
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15210
15211 ac_cv_lib_SM_SmcOpenConnection=no
15212 fi
15213
15214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15215 conftest$ac_exeext conftest.$ac_ext
15216 LIBS=$ac_check_lib_save_LIBS
15217 fi
15218 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15219 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15220 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15221 HAVE_X_SM=yes
15222 fi
15223
15224 fi
15225
15226
15227
15228 if test "${HAVE_X_SM}" = "yes"; then
15229
15230 cat >>confdefs.h <<\_ACEOF
15231 #define HAVE_X_SM 1
15232 _ACEOF
15233
15234 case "$LIBS" in
15235 *-lSM*) ;;
15236 *) LIBS="-lSM -lICE $LIBS" ;;
15237 esac
15238 fi
15239 fi
15240
15241 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15242 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15243 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15244 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 else
15247 cat >conftest.$ac_ext <<_ACEOF
15248 /* confdefs.h. */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 #include <netdb.h>
15254 int
15255 main ()
15256 {
15257 return h_errno;
15258 ;
15259 return 0;
15260 }
15261 _ACEOF
15262 rm -f conftest.$ac_objext conftest$ac_exeext
15263 if { (ac_try="$ac_link"
15264 case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267 esac
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_link") 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest$ac_exeext &&
15279 $as_test_x conftest$ac_exeext; then
15280 emacs_cv_netdb_declares_h_errno=yes
15281 else
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15284
15285 emacs_cv_netdb_declares_h_errno=no
15286 fi
15287
15288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15289 conftest$ac_exeext conftest.$ac_ext
15290 fi
15291 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15292 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15293 if test $emacs_cv_netdb_declares_h_errno = yes; then
15294
15295 cat >>confdefs.h <<\_ACEOF
15296 #define HAVE_H_ERRNO 1
15297 _ACEOF
15298
15299 fi
15300
15301 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15302 # for constant arguments. Useless!
15303 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15304 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15305 if test "${ac_cv_working_alloca_h+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308 cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h. */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 #include <alloca.h>
15315 int
15316 main ()
15317 {
15318 char *p = (char *) alloca (2 * sizeof (int));
15319 if (p) return 0;
15320 ;
15321 return 0;
15322 }
15323 _ACEOF
15324 rm -f conftest.$ac_objext conftest$ac_exeext
15325 if { (ac_try="$ac_link"
15326 case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15329 esac
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_link") 2>conftest.er1
15332 ac_status=$?
15333 grep -v '^ *+' conftest.er1 >conftest.err
15334 rm -f conftest.er1
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } && {
15338 test -z "$ac_c_werror_flag" ||
15339 test ! -s conftest.err
15340 } && test -s conftest$ac_exeext &&
15341 $as_test_x conftest$ac_exeext; then
15342 ac_cv_working_alloca_h=yes
15343 else
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15346
15347 ac_cv_working_alloca_h=no
15348 fi
15349
15350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15351 conftest$ac_exeext conftest.$ac_ext
15352 fi
15353 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15354 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15355 if test $ac_cv_working_alloca_h = yes; then
15356
15357 cat >>confdefs.h <<\_ACEOF
15358 #define HAVE_ALLOCA_H 1
15359 _ACEOF
15360
15361 fi
15362
15363 { echo "$as_me:$LINENO: checking for alloca" >&5
15364 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15365 if test "${ac_cv_func_alloca_works+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368 cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h. */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15374 #ifdef __GNUC__
15375 # define alloca __builtin_alloca
15376 #else
15377 # ifdef _MSC_VER
15378 # include <malloc.h>
15379 # define alloca _alloca
15380 # else
15381 # ifdef HAVE_ALLOCA_H
15382 # include <alloca.h>
15383 # else
15384 # ifdef _AIX
15385 #pragma alloca
15386 # else
15387 # ifndef alloca /* predefined by HP cc +Olibcalls */
15388 char *alloca ();
15389 # endif
15390 # endif
15391 # endif
15392 # endif
15393 #endif
15394
15395 int
15396 main ()
15397 {
15398 char *p = (char *) alloca (1);
15399 if (p) return 0;
15400 ;
15401 return 0;
15402 }
15403 _ACEOF
15404 rm -f conftest.$ac_objext conftest$ac_exeext
15405 if { (ac_try="$ac_link"
15406 case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_link") 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } && {
15418 test -z "$ac_c_werror_flag" ||
15419 test ! -s conftest.err
15420 } && test -s conftest$ac_exeext &&
15421 $as_test_x conftest$ac_exeext; then
15422 ac_cv_func_alloca_works=yes
15423 else
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15426
15427 ac_cv_func_alloca_works=no
15428 fi
15429
15430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15431 conftest$ac_exeext conftest.$ac_ext
15432 fi
15433 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15434 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15435
15436 if test $ac_cv_func_alloca_works = yes; then
15437
15438 cat >>confdefs.h <<\_ACEOF
15439 #define HAVE_ALLOCA 1
15440 _ACEOF
15441
15442 else
15443 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15444 # that cause trouble. Some versions do not even contain alloca or
15445 # contain a buggy version. If you still want to use their alloca,
15446 # use ar to extract alloca.o from them instead of compiling alloca.c.
15447
15448 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15449
15450 cat >>confdefs.h <<\_ACEOF
15451 #define C_ALLOCA 1
15452 _ACEOF
15453
15454
15455 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15456 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15457 if test "${ac_cv_os_cray+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 else
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h. */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 #if defined CRAY && ! defined CRAY2
15467 webecray
15468 #else
15469 wenotbecray
15470 #endif
15471
15472 _ACEOF
15473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15474 $EGREP "webecray" >/dev/null 2>&1; then
15475 ac_cv_os_cray=yes
15476 else
15477 ac_cv_os_cray=no
15478 fi
15479 rm -f conftest*
15480
15481 fi
15482 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15483 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15484 if test $ac_cv_os_cray = yes; then
15485 for ac_func in _getb67 GETB67 getb67; do
15486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492 cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h. */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15500 #define $ac_func innocuous_$ac_func
15501
15502 /* System header to define __stub macros and hopefully few prototypes,
15503 which can conflict with char $ac_func (); below.
15504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15505 <limits.h> exists even on freestanding compilers. */
15506
15507 #ifdef __STDC__
15508 # include <limits.h>
15509 #else
15510 # include <assert.h>
15511 #endif
15512
15513 #undef $ac_func
15514
15515 /* Override any GCC internal prototype to avoid an error.
15516 Use char because int might match the return type of a GCC
15517 builtin and then its argument prototype would still apply. */
15518 #ifdef __cplusplus
15519 extern "C"
15520 #endif
15521 char $ac_func ();
15522 /* The GNU C library defines this for functions which it implements
15523 to always fail with ENOSYS. Some functions are actually named
15524 something starting with __ and the normal name is an alias. */
15525 #if defined __stub_$ac_func || defined __stub___$ac_func
15526 choke me
15527 #endif
15528
15529 int
15530 main ()
15531 {
15532 return $ac_func ();
15533 ;
15534 return 0;
15535 }
15536 _ACEOF
15537 rm -f conftest.$ac_objext conftest$ac_exeext
15538 if { (ac_try="$ac_link"
15539 case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15542 esac
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_link") 2>conftest.er1
15545 ac_status=$?
15546 grep -v '^ *+' conftest.er1 >conftest.err
15547 rm -f conftest.er1
15548 cat conftest.err >&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } && {
15551 test -z "$ac_c_werror_flag" ||
15552 test ! -s conftest.err
15553 } && test -s conftest$ac_exeext &&
15554 $as_test_x conftest$ac_exeext; then
15555 eval "$as_ac_var=yes"
15556 else
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560 eval "$as_ac_var=no"
15561 fi
15562
15563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15564 conftest$ac_exeext conftest.$ac_ext
15565 fi
15566 ac_res=`eval echo '${'$as_ac_var'}'`
15567 { echo "$as_me:$LINENO: result: $ac_res" >&5
15568 echo "${ECHO_T}$ac_res" >&6; }
15569 if test `eval echo '${'$as_ac_var'}'` = yes; then
15570
15571 cat >>confdefs.h <<_ACEOF
15572 #define CRAY_STACKSEG_END $ac_func
15573 _ACEOF
15574
15575 break
15576 fi
15577
15578 done
15579 fi
15580
15581 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15582 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15583 if test "${ac_cv_c_stack_direction+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 else
15586 if test "$cross_compiling" = yes; then
15587 ac_cv_c_stack_direction=0
15588 else
15589 cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h. */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15595 $ac_includes_default
15596 int
15597 find_stack_direction ()
15598 {
15599 static char *addr = 0;
15600 auto char dummy;
15601 if (addr == 0)
15602 {
15603 addr = &dummy;
15604 return find_stack_direction ();
15605 }
15606 else
15607 return (&dummy > addr) ? 1 : -1;
15608 }
15609
15610 int
15611 main ()
15612 {
15613 return find_stack_direction () < 0;
15614 }
15615 _ACEOF
15616 rm -f conftest$ac_exeext
15617 if { (ac_try="$ac_link"
15618 case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_link") 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15627 { (case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_try") 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_cv_c_stack_direction=1
15637 else
15638 echo "$as_me: program exited with status $ac_status" >&5
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15641
15642 ( exit $ac_status )
15643 ac_cv_c_stack_direction=-1
15644 fi
15645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15646 fi
15647
15648
15649 fi
15650 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15651 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15652
15653 cat >>confdefs.h <<_ACEOF
15654 #define STACK_DIRECTION $ac_cv_c_stack_direction
15655 _ACEOF
15656
15657
15658 fi
15659
15660
15661 if test x"$ac_cv_func_alloca_works" != xyes; then
15662 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15663 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15664 { (exit 1); exit 1; }; }
15665 fi
15666
15667 # fmod, logb, and frexp are found in -lm on most systems.
15668 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15669
15670 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15671 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15672 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675 ac_check_lib_save_LIBS=$LIBS
15676 LIBS="-lm $LIBS"
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683
15684 /* Override any GCC internal prototype to avoid an error.
15685 Use char because int might match the return type of a GCC
15686 builtin and then its argument prototype would still apply. */
15687 #ifdef __cplusplus
15688 extern "C"
15689 #endif
15690 char sqrt ();
15691 int
15692 main ()
15693 {
15694 return sqrt ();
15695 ;
15696 return 0;
15697 }
15698 _ACEOF
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_link") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } && {
15713 test -z "$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 } && test -s conftest$ac_exeext &&
15716 $as_test_x conftest$ac_exeext; then
15717 ac_cv_lib_m_sqrt=yes
15718 else
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722 ac_cv_lib_m_sqrt=no
15723 fi
15724
15725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15726 conftest$ac_exeext conftest.$ac_ext
15727 LIBS=$ac_check_lib_save_LIBS
15728 fi
15729 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15730 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15731 if test $ac_cv_lib_m_sqrt = yes; then
15732 cat >>confdefs.h <<_ACEOF
15733 #define HAVE_LIBM 1
15734 _ACEOF
15735
15736 LIBS="-lm $LIBS"
15737
15738 fi
15739
15740
15741 # Check for mail-locking functions in a "mail" library. Probably this should
15742 # have the same check as for liblockfile below.
15743
15744 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15745 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15746 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 else
15749 ac_check_lib_save_LIBS=$LIBS
15750 LIBS="-lmail $LIBS"
15751 cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h. */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757
15758 /* Override any GCC internal prototype to avoid an error.
15759 Use char because int might match the return type of a GCC
15760 builtin and then its argument prototype would still apply. */
15761 #ifdef __cplusplus
15762 extern "C"
15763 #endif
15764 char maillock ();
15765 int
15766 main ()
15767 {
15768 return maillock ();
15769 ;
15770 return 0;
15771 }
15772 _ACEOF
15773 rm -f conftest.$ac_objext conftest$ac_exeext
15774 if { (ac_try="$ac_link"
15775 case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15778 esac
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780 (eval "$ac_link") 2>conftest.er1
15781 ac_status=$?
15782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } && {
15787 test -z "$ac_c_werror_flag" ||
15788 test ! -s conftest.err
15789 } && test -s conftest$ac_exeext &&
15790 $as_test_x conftest$ac_exeext; then
15791 ac_cv_lib_mail_maillock=yes
15792 else
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15795
15796 ac_cv_lib_mail_maillock=no
15797 fi
15798
15799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15800 conftest$ac_exeext conftest.$ac_ext
15801 LIBS=$ac_check_lib_save_LIBS
15802 fi
15803 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15804 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15805 if test $ac_cv_lib_mail_maillock = yes; then
15806 cat >>confdefs.h <<_ACEOF
15807 #define HAVE_LIBMAIL 1
15808 _ACEOF
15809
15810 LIBS="-lmail $LIBS"
15811
15812 fi
15813
15814
15815 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15816 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15817 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 else
15820 ac_check_lib_save_LIBS=$LIBS
15821 LIBS="-llockfile $LIBS"
15822 cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h. */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828
15829 /* Override any GCC internal prototype to avoid an error.
15830 Use char because int might match the return type of a GCC
15831 builtin and then its argument prototype would still apply. */
15832 #ifdef __cplusplus
15833 extern "C"
15834 #endif
15835 char maillock ();
15836 int
15837 main ()
15838 {
15839 return maillock ();
15840 ;
15841 return 0;
15842 }
15843 _ACEOF
15844 rm -f conftest.$ac_objext conftest$ac_exeext
15845 if { (ac_try="$ac_link"
15846 case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_link") 2>conftest.er1
15852 ac_status=$?
15853 grep -v '^ *+' conftest.er1 >conftest.err
15854 rm -f conftest.er1
15855 cat conftest.err >&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } && {
15858 test -z "$ac_c_werror_flag" ||
15859 test ! -s conftest.err
15860 } && test -s conftest$ac_exeext &&
15861 $as_test_x conftest$ac_exeext; then
15862 ac_cv_lib_lockfile_maillock=yes
15863 else
15864 echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15866
15867 ac_cv_lib_lockfile_maillock=no
15868 fi
15869
15870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15871 conftest$ac_exeext conftest.$ac_ext
15872 LIBS=$ac_check_lib_save_LIBS
15873 fi
15874 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15875 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15876 if test $ac_cv_lib_lockfile_maillock = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878 #define HAVE_LIBLOCKFILE 1
15879 _ACEOF
15880
15881 LIBS="-llockfile $LIBS"
15882
15883 fi
15884
15885 # If we have the shared liblockfile, assume we must use it for mail
15886 # locking (e.g. Debian). If we couldn't link against liblockfile
15887 # (no liblockfile.a installed), ensure that we don't need to.
15888 if test "$ac_cv_lib_lockfile_maillock" = no; then
15889 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15890 set dummy liblockfile.so; ac_word=$2
15891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15893 if test "${ac_cv_prog_liblockfile+set}" = set; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15895 else
15896 if test -n "$liblockfile"; then
15897 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15898 else
15899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15900 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15901 for as_dir in $as_dummy
15902 do
15903 IFS=$as_save_IFS
15904 test -z "$as_dir" && as_dir=.
15905 for ac_exec_ext in '' $ac_executable_extensions; do
15906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15907 ac_cv_prog_liblockfile="yes"
15908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15909 break 2
15910 fi
15911 done
15912 done
15913 IFS=$as_save_IFS
15914
15915 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15916 fi
15917 fi
15918 liblockfile=$ac_cv_prog_liblockfile
15919 if test -n "$liblockfile"; then
15920 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15921 echo "${ECHO_T}$liblockfile" >&6; }
15922 else
15923 { echo "$as_me:$LINENO: result: no" >&5
15924 echo "${ECHO_T}no" >&6; }
15925 fi
15926
15927
15928 if test $ac_cv_prog_liblockfile = yes; then
15929 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15930 This probably means that movemail could lose mail.
15931 There may be a \`development' package to install containing liblockfile." >&5
15932 echo "$as_me: error: Shared liblockfile found but can't link against it.
15933 This probably means that movemail could lose mail.
15934 There may be a \`development' package to install containing liblockfile." >&2;}
15935 { (exit 1); exit 1; }; }
15936 else :
15937 fi
15938 fi
15939
15940 for ac_func in touchlock
15941 do
15942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948 cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h. */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15956 #define $ac_func innocuous_$ac_func
15957
15958 /* System header to define __stub macros and hopefully few prototypes,
15959 which can conflict with char $ac_func (); below.
15960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15961 <limits.h> exists even on freestanding compilers. */
15962
15963 #ifdef __STDC__
15964 # include <limits.h>
15965 #else
15966 # include <assert.h>
15967 #endif
15968
15969 #undef $ac_func
15970
15971 /* Override any GCC internal prototype to avoid an error.
15972 Use char because int might match the return type of a GCC
15973 builtin and then its argument prototype would still apply. */
15974 #ifdef __cplusplus
15975 extern "C"
15976 #endif
15977 char $ac_func ();
15978 /* The GNU C library defines this for functions which it implements
15979 to always fail with ENOSYS. Some functions are actually named
15980 something starting with __ and the normal name is an alias. */
15981 #if defined __stub_$ac_func || defined __stub___$ac_func
15982 choke me
15983 #endif
15984
15985 int
15986 main ()
15987 {
15988 return $ac_func ();
15989 ;
15990 return 0;
15991 }
15992 _ACEOF
15993 rm -f conftest.$ac_objext conftest$ac_exeext
15994 if { (ac_try="$ac_link"
15995 case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_link") 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && {
16007 test -z "$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16009 } && test -s conftest$ac_exeext &&
16010 $as_test_x conftest$ac_exeext; then
16011 eval "$as_ac_var=yes"
16012 else
16013 echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16015
16016 eval "$as_ac_var=no"
16017 fi
16018
16019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16020 conftest$ac_exeext conftest.$ac_ext
16021 fi
16022 ac_res=`eval echo '${'$as_ac_var'}'`
16023 { echo "$as_me:$LINENO: result: $ac_res" >&5
16024 echo "${ECHO_T}$ac_res" >&6; }
16025 if test `eval echo '${'$as_ac_var'}'` = yes; then
16026 cat >>confdefs.h <<_ACEOF
16027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16028 _ACEOF
16029
16030 fi
16031 done
16032
16033
16034 for ac_header in maillock.h
16035 do
16036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 fi
16043 ac_res=`eval echo '${'$as_ac_Header'}'`
16044 { echo "$as_me:$LINENO: result: $ac_res" >&5
16045 echo "${ECHO_T}$ac_res" >&6; }
16046 else
16047 # Is the header compilable?
16048 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h. */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16056 $ac_includes_default
16057 #include <$ac_header>
16058 _ACEOF
16059 rm -f conftest.$ac_objext
16060 if { (ac_try="$ac_compile"
16061 case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16064 esac
16065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_compile") 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } && {
16073 test -z "$ac_c_werror_flag" ||
16074 test ! -s conftest.err
16075 } && test -s conftest.$ac_objext; then
16076 ac_header_compiler=yes
16077 else
16078 echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16080
16081 ac_header_compiler=no
16082 fi
16083
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16086 echo "${ECHO_T}$ac_header_compiler" >&6; }
16087
16088 # Is the header present?
16089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16091 cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h. */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 #include <$ac_header>
16098 _ACEOF
16099 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
16112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16113 test ! -s conftest.err
16114 }; then
16115 ac_header_preproc=yes
16116 else
16117 echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16119
16120 ac_header_preproc=no
16121 fi
16122
16123 rm -f conftest.err conftest.$ac_ext
16124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16125 echo "${ECHO_T}$ac_header_preproc" >&6; }
16126
16127 # So? What about this header?
16128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16129 yes:no: )
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16134 ac_header_preproc=yes
16135 ;;
16136 no:yes:* )
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16149
16150 ;;
16151 esac
16152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16157 eval "$as_ac_Header=\$ac_header_preproc"
16158 fi
16159 ac_res=`eval echo '${'$as_ac_Header'}'`
16160 { echo "$as_me:$LINENO: result: $ac_res" >&5
16161 echo "${ECHO_T}$ac_res" >&6; }
16162
16163 fi
16164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16165 cat >>confdefs.h <<_ACEOF
16166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16167 _ACEOF
16168
16169 fi
16170
16171 done
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242 for ac_func in gethostname getdomainname dup2 \
16243 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16244 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16245 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16246 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16247 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16248 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16249 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16250 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16251 do
16252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258 cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h. */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16266 #define $ac_func innocuous_$ac_func
16267
16268 /* System header to define __stub macros and hopefully few prototypes,
16269 which can conflict with char $ac_func (); below.
16270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16271 <limits.h> exists even on freestanding compilers. */
16272
16273 #ifdef __STDC__
16274 # include <limits.h>
16275 #else
16276 # include <assert.h>
16277 #endif
16278
16279 #undef $ac_func
16280
16281 /* Override any GCC internal prototype to avoid an error.
16282 Use char because int might match the return type of a GCC
16283 builtin and then its argument prototype would still apply. */
16284 #ifdef __cplusplus
16285 extern "C"
16286 #endif
16287 char $ac_func ();
16288 /* The GNU C library defines this for functions which it implements
16289 to always fail with ENOSYS. Some functions are actually named
16290 something starting with __ and the normal name is an alias. */
16291 #if defined __stub_$ac_func || defined __stub___$ac_func
16292 choke me
16293 #endif
16294
16295 int
16296 main ()
16297 {
16298 return $ac_func ();
16299 ;
16300 return 0;
16301 }
16302 _ACEOF
16303 rm -f conftest.$ac_objext conftest$ac_exeext
16304 if { (ac_try="$ac_link"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_link") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } && {
16317 test -z "$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 } && test -s conftest$ac_exeext &&
16320 $as_test_x conftest$ac_exeext; then
16321 eval "$as_ac_var=yes"
16322 else
16323 echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16325
16326 eval "$as_ac_var=no"
16327 fi
16328
16329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16330 conftest$ac_exeext conftest.$ac_ext
16331 fi
16332 ac_res=`eval echo '${'$as_ac_var'}'`
16333 { echo "$as_me:$LINENO: result: $ac_res" >&5
16334 echo "${ECHO_T}$ac_res" >&6; }
16335 if test `eval echo '${'$as_ac_var'}'` = yes; then
16336 cat >>confdefs.h <<_ACEOF
16337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16338 _ACEOF
16339
16340 fi
16341 done
16342
16343
16344
16345 for ac_header in sys/un.h
16346 do
16347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 fi
16354 ac_res=`eval echo '${'$as_ac_Header'}'`
16355 { echo "$as_me:$LINENO: result: $ac_res" >&5
16356 echo "${ECHO_T}$ac_res" >&6; }
16357 else
16358 # Is the header compilable?
16359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16361 cat >conftest.$ac_ext <<_ACEOF
16362 /* confdefs.h. */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h. */
16367 $ac_includes_default
16368 #include <$ac_header>
16369 _ACEOF
16370 rm -f conftest.$ac_objext
16371 if { (ac_try="$ac_compile"
16372 case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_compile") 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest.$ac_objext; then
16387 ac_header_compiler=yes
16388 else
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16391
16392 ac_header_compiler=no
16393 fi
16394
16395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16397 echo "${ECHO_T}$ac_header_compiler" >&6; }
16398
16399 # Is the header present?
16400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16402 cat >conftest.$ac_ext <<_ACEOF
16403 /* confdefs.h. */
16404 _ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16408 #include <$ac_header>
16409 _ACEOF
16410 if { (ac_try="$ac_cpp conftest.$ac_ext"
16411 case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16414 esac
16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16417 ac_status=$?
16418 grep -v '^ *+' conftest.er1 >conftest.err
16419 rm -f conftest.er1
16420 cat conftest.err >&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } >/dev/null && {
16423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16424 test ! -s conftest.err
16425 }; then
16426 ac_header_preproc=yes
16427 else
16428 echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16430
16431 ac_header_preproc=no
16432 fi
16433
16434 rm -f conftest.err conftest.$ac_ext
16435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16436 echo "${ECHO_T}$ac_header_preproc" >&6; }
16437
16438 # So? What about this header?
16439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16440 yes:no: )
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16445 ac_header_preproc=yes
16446 ;;
16447 no:yes:* )
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16460
16461 ;;
16462 esac
16463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468 eval "$as_ac_Header=\$ac_header_preproc"
16469 fi
16470 ac_res=`eval echo '${'$as_ac_Header'}'`
16471 { echo "$as_me:$LINENO: result: $ac_res" >&5
16472 echo "${ECHO_T}$ac_res" >&6; }
16473
16474 fi
16475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16476 cat >>confdefs.h <<_ACEOF
16477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16478 _ACEOF
16479
16480 fi
16481
16482 done
16483
16484
16485
16486
16487
16488
16489 for ac_header in $ac_header_list
16490 do
16491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 fi
16498 ac_res=`eval echo '${'$as_ac_Header'}'`
16499 { echo "$as_me:$LINENO: result: $ac_res" >&5
16500 echo "${ECHO_T}$ac_res" >&6; }
16501 else
16502 # Is the header compilable?
16503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16505 cat >conftest.$ac_ext <<_ACEOF
16506 /* confdefs.h. */
16507 _ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16511 $ac_includes_default
16512 #include <$ac_header>
16513 _ACEOF
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519 esac
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } && {
16528 test -z "$ac_c_werror_flag" ||
16529 test ! -s conftest.err
16530 } && test -s conftest.$ac_objext; then
16531 ac_header_compiler=yes
16532 else
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16535
16536 ac_header_compiler=no
16537 fi
16538
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16541 echo "${ECHO_T}$ac_header_compiler" >&6; }
16542
16543 # Is the header present?
16544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16546 cat >conftest.$ac_ext <<_ACEOF
16547 /* confdefs.h. */
16548 _ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 #include <$ac_header>
16553 _ACEOF
16554 if { (ac_try="$ac_cpp conftest.$ac_ext"
16555 case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16558 esac
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } >/dev/null && {
16567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16568 test ! -s conftest.err
16569 }; then
16570 ac_header_preproc=yes
16571 else
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575 ac_header_preproc=no
16576 fi
16577
16578 rm -f conftest.err conftest.$ac_ext
16579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16580 echo "${ECHO_T}$ac_header_preproc" >&6; }
16581
16582 # So? What about this header?
16583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16584 yes:no: )
16585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16589 ac_header_preproc=yes
16590 ;;
16591 no:yes:* )
16592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16604
16605 ;;
16606 esac
16607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612 eval "$as_ac_Header=\$ac_header_preproc"
16613 fi
16614 ac_res=`eval echo '${'$as_ac_Header'}'`
16615 { echo "$as_me:$LINENO: result: $ac_res" >&5
16616 echo "${ECHO_T}$ac_res" >&6; }
16617
16618 fi
16619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16620 cat >>confdefs.h <<_ACEOF
16621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16622 _ACEOF
16623
16624 fi
16625
16626 done
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636 for ac_func in $ac_func_list
16637 do
16638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644 cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h. */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16652 #define $ac_func innocuous_$ac_func
16653
16654 /* System header to define __stub macros and hopefully few prototypes,
16655 which can conflict with char $ac_func (); below.
16656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16657 <limits.h> exists even on freestanding compilers. */
16658
16659 #ifdef __STDC__
16660 # include <limits.h>
16661 #else
16662 # include <assert.h>
16663 #endif
16664
16665 #undef $ac_func
16666
16667 /* Override any GCC internal prototype to avoid an error.
16668 Use char because int might match the return type of a GCC
16669 builtin and then its argument prototype would still apply. */
16670 #ifdef __cplusplus
16671 extern "C"
16672 #endif
16673 char $ac_func ();
16674 /* The GNU C library defines this for functions which it implements
16675 to always fail with ENOSYS. Some functions are actually named
16676 something starting with __ and the normal name is an alias. */
16677 #if defined __stub_$ac_func || defined __stub___$ac_func
16678 choke me
16679 #endif
16680
16681 int
16682 main ()
16683 {
16684 return $ac_func ();
16685 ;
16686 return 0;
16687 }
16688 _ACEOF
16689 rm -f conftest.$ac_objext conftest$ac_exeext
16690 if { (ac_try="$ac_link"
16691 case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16694 esac
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_link") 2>conftest.er1
16697 ac_status=$?
16698 grep -v '^ *+' conftest.er1 >conftest.err
16699 rm -f conftest.er1
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } && {
16703 test -z "$ac_c_werror_flag" ||
16704 test ! -s conftest.err
16705 } && test -s conftest$ac_exeext &&
16706 $as_test_x conftest$ac_exeext; then
16707 eval "$as_ac_var=yes"
16708 else
16709 echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16711
16712 eval "$as_ac_var=no"
16713 fi
16714
16715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16716 conftest$ac_exeext conftest.$ac_ext
16717 fi
16718 ac_res=`eval echo '${'$as_ac_var'}'`
16719 { echo "$as_me:$LINENO: result: $ac_res" >&5
16720 echo "${ECHO_T}$ac_res" >&6; }
16721 if test `eval echo '${'$as_ac_var'}'` = yes; then
16722 cat >>confdefs.h <<_ACEOF
16723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16724 _ACEOF
16725
16726 fi
16727 done
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745 { echo "$as_me:$LINENO: checking for working mktime" >&5
16746 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16747 if test "${ac_cv_func_working_mktime+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750 if test "$cross_compiling" = yes; then
16751 ac_cv_func_working_mktime=no
16752 else
16753 cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h. */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 /* Test program from Paul Eggert and Tony Leneis. */
16760 #ifdef TIME_WITH_SYS_TIME
16761 # include <sys/time.h>
16762 # include <time.h>
16763 #else
16764 # ifdef HAVE_SYS_TIME_H
16765 # include <sys/time.h>
16766 # else
16767 # include <time.h>
16768 # endif
16769 #endif
16770
16771 #include <stdlib.h>
16772
16773 #ifdef HAVE_UNISTD_H
16774 # include <unistd.h>
16775 #endif
16776
16777 #ifndef HAVE_ALARM
16778 # define alarm(X) /* empty */
16779 #endif
16780
16781 /* Work around redefinition to rpl_putenv by other config tests. */
16782 #undef putenv
16783
16784 static time_t time_t_max;
16785 static time_t time_t_min;
16786
16787 /* Values we'll use to set the TZ environment variable. */
16788 static char *tz_strings[] = {
16789 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16790 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16791 };
16792 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16793
16794 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16795 Based on a problem report from Andreas Jaeger. */
16796 static int
16797 spring_forward_gap ()
16798 {
16799 /* glibc (up to about 1998-10-07) failed this test. */
16800 struct tm tm;
16801
16802 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16803 instead of "TZ=America/Vancouver" in order to detect the bug even
16804 on systems that don't support the Olson extension, or don't have the
16805 full zoneinfo tables installed. */
16806 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16807
16808 tm.tm_year = 98;
16809 tm.tm_mon = 3;
16810 tm.tm_mday = 5;
16811 tm.tm_hour = 2;
16812 tm.tm_min = 0;
16813 tm.tm_sec = 0;
16814 tm.tm_isdst = -1;
16815 return mktime (&tm) != (time_t) -1;
16816 }
16817
16818 static int
16819 mktime_test1 (now)
16820 time_t now;
16821 {
16822 struct tm *lt;
16823 return ! (lt = localtime (&now)) || mktime (lt) == now;
16824 }
16825
16826 static int
16827 mktime_test (now)
16828 time_t now;
16829 {
16830 return (mktime_test1 (now)
16831 && mktime_test1 ((time_t) (time_t_max - now))
16832 && mktime_test1 ((time_t) (time_t_min + now)));
16833 }
16834
16835 static int
16836 irix_6_4_bug ()
16837 {
16838 /* Based on code from Ariel Faigon. */
16839 struct tm tm;
16840 tm.tm_year = 96;
16841 tm.tm_mon = 3;
16842 tm.tm_mday = 0;
16843 tm.tm_hour = 0;
16844 tm.tm_min = 0;
16845 tm.tm_sec = 0;
16846 tm.tm_isdst = -1;
16847 mktime (&tm);
16848 return tm.tm_mon == 2 && tm.tm_mday == 31;
16849 }
16850
16851 static int
16852 bigtime_test (j)
16853 int j;
16854 {
16855 struct tm tm;
16856 time_t now;
16857 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16858 now = mktime (&tm);
16859 if (now != (time_t) -1)
16860 {
16861 struct tm *lt = localtime (&now);
16862 if (! (lt
16863 && lt->tm_year == tm.tm_year
16864 && lt->tm_mon == tm.tm_mon
16865 && lt->tm_mday == tm.tm_mday
16866 && lt->tm_hour == tm.tm_hour
16867 && lt->tm_min == tm.tm_min
16868 && lt->tm_sec == tm.tm_sec
16869 && lt->tm_yday == tm.tm_yday
16870 && lt->tm_wday == tm.tm_wday
16871 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16872 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16873 return 0;
16874 }
16875 return 1;
16876 }
16877
16878 static int
16879 year_2050_test ()
16880 {
16881 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16882 ignoring leap seconds. */
16883 unsigned long int answer = 2527315200UL;
16884
16885 struct tm tm;
16886 time_t t;
16887 tm.tm_year = 2050 - 1900;
16888 tm.tm_mon = 2 - 1;
16889 tm.tm_mday = 1;
16890 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16891 tm.tm_isdst = -1;
16892
16893 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16894 instead of "TZ=America/Vancouver" in order to detect the bug even
16895 on systems that don't support the Olson extension, or don't have the
16896 full zoneinfo tables installed. */
16897 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16898
16899 t = mktime (&tm);
16900
16901 /* Check that the result is either a failure, or close enough
16902 to the correct answer that we can assume the discrepancy is
16903 due to leap seconds. */
16904 return (t == (time_t) -1
16905 || (0 < t && answer - 120 <= t && t <= answer + 120));
16906 }
16907
16908 int
16909 main ()
16910 {
16911 time_t t, delta;
16912 int i, j;
16913
16914 /* This test makes some buggy mktime implementations loop.
16915 Give up after 60 seconds; a mktime slower than that
16916 isn't worth using anyway. */
16917 alarm (60);
16918
16919 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16920 continue;
16921 time_t_max--;
16922 if ((time_t) -1 < 0)
16923 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16924 continue;
16925 delta = time_t_max / 997; /* a suitable prime number */
16926 for (i = 0; i < N_STRINGS; i++)
16927 {
16928 if (tz_strings[i])
16929 putenv (tz_strings[i]);
16930
16931 for (t = 0; t <= time_t_max - delta; t += delta)
16932 if (! mktime_test (t))
16933 return 1;
16934 if (! (mktime_test ((time_t) 1)
16935 && mktime_test ((time_t) (60 * 60))
16936 && mktime_test ((time_t) (60 * 60 * 24))))
16937 return 1;
16938
16939 for (j = 1; 0 < j; j *= 2)
16940 if (! bigtime_test (j))
16941 return 1;
16942 if (! bigtime_test (j - 1))
16943 return 1;
16944 }
16945 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16946 }
16947 _ACEOF
16948 rm -f conftest$ac_exeext
16949 if { (ac_try="$ac_link"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953 esac
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_link") 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16959 { (case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_try") 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_func_working_mktime=yes
16969 else
16970 echo "$as_me: program exited with status $ac_status" >&5
16971 echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16973
16974 ( exit $ac_status )
16975 ac_cv_func_working_mktime=no
16976 fi
16977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16978 fi
16979
16980
16981 fi
16982 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16983 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16984 if test $ac_cv_func_working_mktime = no; then
16985 case " $LIBOBJS " in
16986 *" mktime.$ac_objext "* ) ;;
16987 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16988 ;;
16989 esac
16990
16991 fi
16992
16993 if test "$ac_cv_func_working_mktime" = no; then
16994
16995 cat >>confdefs.h <<\_ACEOF
16996 #define BROKEN_MKTIME 1
16997 _ACEOF
16998
16999 fi
17000
17001 ac_have_func=no # yes means we've found a way to get the load average.
17002
17003 # Make sure getloadavg.c is where it belongs, at configure-time.
17004 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17005 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17006 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17007 { (exit 1); exit 1; }; }
17008
17009 ac_save_LIBS=$LIBS
17010
17011 # Check for getloadavg, but be sure not to touch the cache variable.
17012 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17013 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17014 if test "${ac_cv_func_getloadavg+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17017 cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h. */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17023 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17025 #define getloadavg innocuous_getloadavg
17026
17027 /* System header to define __stub macros and hopefully few prototypes,
17028 which can conflict with char getloadavg (); below.
17029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17030 <limits.h> exists even on freestanding compilers. */
17031
17032 #ifdef __STDC__
17033 # include <limits.h>
17034 #else
17035 # include <assert.h>
17036 #endif
17037
17038 #undef getloadavg
17039
17040 /* Override any GCC internal prototype to avoid an error.
17041 Use char because int might match the return type of a GCC
17042 builtin and then its argument prototype would still apply. */
17043 #ifdef __cplusplus
17044 extern "C"
17045 #endif
17046 char getloadavg ();
17047 /* The GNU C library defines this for functions which it implements
17048 to always fail with ENOSYS. Some functions are actually named
17049 something starting with __ and the normal name is an alias. */
17050 #if defined __stub_getloadavg || defined __stub___getloadavg
17051 choke me
17052 #endif
17053
17054 int
17055 main ()
17056 {
17057 return getloadavg ();
17058 ;
17059 return 0;
17060 }
17061 _ACEOF
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_link") 2>conftest.er1
17070 ac_status=$?
17071 grep -v '^ *+' conftest.er1 >conftest.err
17072 rm -f conftest.er1
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } && {
17076 test -z "$ac_c_werror_flag" ||
17077 test ! -s conftest.err
17078 } && test -s conftest$ac_exeext &&
17079 $as_test_x conftest$ac_exeext; then
17080 ac_cv_func_getloadavg=yes
17081 else
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17084
17085 ac_cv_func_getloadavg=no
17086 fi
17087
17088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17089 conftest$ac_exeext conftest.$ac_ext
17090 fi
17091 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17092 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17093 if test $ac_cv_func_getloadavg = yes; then
17094 exit 0
17095 else
17096 exit 1
17097 fi
17098 ) && ac_have_func=yes
17099
17100 # On HPUX9, an unprivileged user can get load averages through this function.
17101
17102 for ac_func in pstat_getdynamic
17103 do
17104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110 cat >conftest.$ac_ext <<_ACEOF
17111 /* confdefs.h. */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17118 #define $ac_func innocuous_$ac_func
17119
17120 /* System header to define __stub macros and hopefully few prototypes,
17121 which can conflict with char $ac_func (); below.
17122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17123 <limits.h> exists even on freestanding compilers. */
17124
17125 #ifdef __STDC__
17126 # include <limits.h>
17127 #else
17128 # include <assert.h>
17129 #endif
17130
17131 #undef $ac_func
17132
17133 /* Override any GCC internal prototype to avoid an error.
17134 Use char because int might match the return type of a GCC
17135 builtin and then its argument prototype would still apply. */
17136 #ifdef __cplusplus
17137 extern "C"
17138 #endif
17139 char $ac_func ();
17140 /* The GNU C library defines this for functions which it implements
17141 to always fail with ENOSYS. Some functions are actually named
17142 something starting with __ and the normal name is an alias. */
17143 #if defined __stub_$ac_func || defined __stub___$ac_func
17144 choke me
17145 #endif
17146
17147 int
17148 main ()
17149 {
17150 return $ac_func ();
17151 ;
17152 return 0;
17153 }
17154 _ACEOF
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (ac_try="$ac_link"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_link") 2>conftest.er1
17163 ac_status=$?
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest$ac_exeext &&
17172 $as_test_x conftest$ac_exeext; then
17173 eval "$as_ac_var=yes"
17174 else
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178 eval "$as_ac_var=no"
17179 fi
17180
17181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17182 conftest$ac_exeext conftest.$ac_ext
17183 fi
17184 ac_res=`eval echo '${'$as_ac_var'}'`
17185 { echo "$as_me:$LINENO: result: $ac_res" >&5
17186 echo "${ECHO_T}$ac_res" >&6; }
17187 if test `eval echo '${'$as_ac_var'}'` = yes; then
17188 cat >>confdefs.h <<_ACEOF
17189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17190 _ACEOF
17191
17192 fi
17193 done
17194
17195
17196 # Solaris has libkstat which does not require root.
17197
17198 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17199 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17200 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 else
17203 ac_check_lib_save_LIBS=$LIBS
17204 LIBS="-lkstat $LIBS"
17205 cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h. */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211
17212 /* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17215 #ifdef __cplusplus
17216 extern "C"
17217 #endif
17218 char kstat_open ();
17219 int
17220 main ()
17221 {
17222 return kstat_open ();
17223 ;
17224 return 0;
17225 }
17226 _ACEOF
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17235 ac_status=$?
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } && {
17241 test -z "$ac_c_werror_flag" ||
17242 test ! -s conftest.err
17243 } && test -s conftest$ac_exeext &&
17244 $as_test_x conftest$ac_exeext; then
17245 ac_cv_lib_kstat_kstat_open=yes
17246 else
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17249
17250 ac_cv_lib_kstat_kstat_open=no
17251 fi
17252
17253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17254 conftest$ac_exeext conftest.$ac_ext
17255 LIBS=$ac_check_lib_save_LIBS
17256 fi
17257 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17258 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17259 if test $ac_cv_lib_kstat_kstat_open = yes; then
17260 cat >>confdefs.h <<_ACEOF
17261 #define HAVE_LIBKSTAT 1
17262 _ACEOF
17263
17264 LIBS="-lkstat $LIBS"
17265
17266 fi
17267
17268 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17269
17270 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17271 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17272 # to get the right answer into the cache.
17273 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17274 if test $ac_have_func = no; then
17275 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17276 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17277 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280 ac_check_lib_save_LIBS=$LIBS
17281 LIBS="-lelf $LIBS"
17282 cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h. */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288
17289 /* Override any GCC internal prototype to avoid an error.
17290 Use char because int might match the return type of a GCC
17291 builtin and then its argument prototype would still apply. */
17292 #ifdef __cplusplus
17293 extern "C"
17294 #endif
17295 char elf_begin ();
17296 int
17297 main ()
17298 {
17299 return elf_begin ();
17300 ;
17301 return 0;
17302 }
17303 _ACEOF
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (ac_try="$ac_link"
17306 case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309 esac
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_link") 2>conftest.er1
17312 ac_status=$?
17313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } && {
17318 test -z "$ac_c_werror_flag" ||
17319 test ! -s conftest.err
17320 } && test -s conftest$ac_exeext &&
17321 $as_test_x conftest$ac_exeext; then
17322 ac_cv_lib_elf_elf_begin=yes
17323 else
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17326
17327 ac_cv_lib_elf_elf_begin=no
17328 fi
17329
17330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17331 conftest$ac_exeext conftest.$ac_ext
17332 LIBS=$ac_check_lib_save_LIBS
17333 fi
17334 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17335 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17336 if test $ac_cv_lib_elf_elf_begin = yes; then
17337 LIBS="-lelf $LIBS"
17338 fi
17339
17340 fi
17341 if test $ac_have_func = no; then
17342 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17343 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17344 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 else
17347 ac_check_lib_save_LIBS=$LIBS
17348 LIBS="-lkvm $LIBS"
17349 cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h. */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355
17356 /* Override any GCC internal prototype to avoid an error.
17357 Use char because int might match the return type of a GCC
17358 builtin and then its argument prototype would still apply. */
17359 #ifdef __cplusplus
17360 extern "C"
17361 #endif
17362 char kvm_open ();
17363 int
17364 main ()
17365 {
17366 return kvm_open ();
17367 ;
17368 return 0;
17369 }
17370 _ACEOF
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17379 ac_status=$?
17380 grep -v '^ *+' conftest.er1 >conftest.err
17381 rm -f conftest.er1
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } && {
17385 test -z "$ac_c_werror_flag" ||
17386 test ! -s conftest.err
17387 } && test -s conftest$ac_exeext &&
17388 $as_test_x conftest$ac_exeext; then
17389 ac_cv_lib_kvm_kvm_open=yes
17390 else
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17393
17394 ac_cv_lib_kvm_kvm_open=no
17395 fi
17396
17397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17398 conftest$ac_exeext conftest.$ac_ext
17399 LIBS=$ac_check_lib_save_LIBS
17400 fi
17401 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17402 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17403 if test $ac_cv_lib_kvm_kvm_open = yes; then
17404 LIBS="-lkvm $LIBS"
17405 fi
17406
17407 # Check for the 4.4BSD definition of getloadavg.
17408 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17409 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17410 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 else
17413 ac_check_lib_save_LIBS=$LIBS
17414 LIBS="-lutil $LIBS"
17415 cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h. */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17421
17422 /* Override any GCC internal prototype to avoid an error.
17423 Use char because int might match the return type of a GCC
17424 builtin and then its argument prototype would still apply. */
17425 #ifdef __cplusplus
17426 extern "C"
17427 #endif
17428 char getloadavg ();
17429 int
17430 main ()
17431 {
17432 return getloadavg ();
17433 ;
17434 return 0;
17435 }
17436 _ACEOF
17437 rm -f conftest.$ac_objext conftest$ac_exeext
17438 if { (ac_try="$ac_link"
17439 case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17442 esac
17443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444 (eval "$ac_link") 2>conftest.er1
17445 ac_status=$?
17446 grep -v '^ *+' conftest.er1 >conftest.err
17447 rm -f conftest.er1
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } && {
17451 test -z "$ac_c_werror_flag" ||
17452 test ! -s conftest.err
17453 } && test -s conftest$ac_exeext &&
17454 $as_test_x conftest$ac_exeext; then
17455 ac_cv_lib_util_getloadavg=yes
17456 else
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460 ac_cv_lib_util_getloadavg=no
17461 fi
17462
17463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17464 conftest$ac_exeext conftest.$ac_ext
17465 LIBS=$ac_check_lib_save_LIBS
17466 fi
17467 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17468 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17469 if test $ac_cv_lib_util_getloadavg = yes; then
17470 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17471 fi
17472
17473 fi
17474
17475 if test $ac_have_func = no; then
17476 # There is a commonly available library for RS/6000 AIX.
17477 # Since it is not a standard part of AIX, it might be installed locally.
17478 ac_getloadavg_LIBS=$LIBS
17479 LIBS="-L/usr/local/lib $LIBS"
17480 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17481 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17482 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 else
17485 ac_check_lib_save_LIBS=$LIBS
17486 LIBS="-lgetloadavg $LIBS"
17487 cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h. */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493
17494 /* Override any GCC internal prototype to avoid an error.
17495 Use char because int might match the return type of a GCC
17496 builtin and then its argument prototype would still apply. */
17497 #ifdef __cplusplus
17498 extern "C"
17499 #endif
17500 char getloadavg ();
17501 int
17502 main ()
17503 {
17504 return getloadavg ();
17505 ;
17506 return 0;
17507 }
17508 _ACEOF
17509 rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (ac_try="$ac_link"
17511 case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17514 esac
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_link") 2>conftest.er1
17517 ac_status=$?
17518 grep -v '^ *+' conftest.er1 >conftest.err
17519 rm -f conftest.er1
17520 cat conftest.err >&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); } && {
17523 test -z "$ac_c_werror_flag" ||
17524 test ! -s conftest.err
17525 } && test -s conftest$ac_exeext &&
17526 $as_test_x conftest$ac_exeext; then
17527 ac_cv_lib_getloadavg_getloadavg=yes
17528 else
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17531
17532 ac_cv_lib_getloadavg_getloadavg=no
17533 fi
17534
17535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17536 conftest$ac_exeext conftest.$ac_ext
17537 LIBS=$ac_check_lib_save_LIBS
17538 fi
17539 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17540 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17541 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17542 LIBS="-lgetloadavg $LIBS"
17543 else
17544 LIBS=$ac_getloadavg_LIBS
17545 fi
17546
17547 fi
17548
17549 # Make sure it is really in the library, if we think we found it,
17550 # otherwise set up the replacement function.
17551
17552 for ac_func in getloadavg
17553 do
17554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560 cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h. */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17568 #define $ac_func innocuous_$ac_func
17569
17570 /* System header to define __stub macros and hopefully few prototypes,
17571 which can conflict with char $ac_func (); below.
17572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573 <limits.h> exists even on freestanding compilers. */
17574
17575 #ifdef __STDC__
17576 # include <limits.h>
17577 #else
17578 # include <assert.h>
17579 #endif
17580
17581 #undef $ac_func
17582
17583 /* Override any GCC internal prototype to avoid an error.
17584 Use char because int might match the return type of a GCC
17585 builtin and then its argument prototype would still apply. */
17586 #ifdef __cplusplus
17587 extern "C"
17588 #endif
17589 char $ac_func ();
17590 /* The GNU C library defines this for functions which it implements
17591 to always fail with ENOSYS. Some functions are actually named
17592 something starting with __ and the normal name is an alias. */
17593 #if defined __stub_$ac_func || defined __stub___$ac_func
17594 choke me
17595 #endif
17596
17597 int
17598 main ()
17599 {
17600 return $ac_func ();
17601 ;
17602 return 0;
17603 }
17604 _ACEOF
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (ac_try="$ac_link"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_link") 2>conftest.er1
17613 ac_status=$?
17614 grep -v '^ *+' conftest.er1 >conftest.err
17615 rm -f conftest.er1
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && {
17619 test -z "$ac_c_werror_flag" ||
17620 test ! -s conftest.err
17621 } && test -s conftest$ac_exeext &&
17622 $as_test_x conftest$ac_exeext; then
17623 eval "$as_ac_var=yes"
17624 else
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628 eval "$as_ac_var=no"
17629 fi
17630
17631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17632 conftest$ac_exeext conftest.$ac_ext
17633 fi
17634 ac_res=`eval echo '${'$as_ac_var'}'`
17635 { echo "$as_me:$LINENO: result: $ac_res" >&5
17636 echo "${ECHO_T}$ac_res" >&6; }
17637 if test `eval echo '${'$as_ac_var'}'` = yes; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17640 _ACEOF
17641
17642 else
17643 case " $LIBOBJS " in
17644 *" getloadavg.$ac_objext "* ) ;;
17645 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17646 ;;
17647 esac
17648
17649
17650 cat >>confdefs.h <<\_ACEOF
17651 #define C_GETLOADAVG 1
17652 _ACEOF
17653
17654 # Figure out what our getloadavg.c needs.
17655 ac_have_func=no
17656 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17657 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17658 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17659 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17661 fi
17662 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17663 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17664 else
17665 # Is the header compilable?
17666 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17667 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17668 cat >conftest.$ac_ext <<_ACEOF
17669 /* confdefs.h. */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 $ac_includes_default
17675 #include <sys/dg_sys_info.h>
17676 _ACEOF
17677 rm -f conftest.$ac_objext
17678 if { (ac_try="$ac_compile"
17679 case "(($ac_try" in
17680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681 *) ac_try_echo=$ac_try;;
17682 esac
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_compile") 2>conftest.er1
17685 ac_status=$?
17686 grep -v '^ *+' conftest.er1 >conftest.err
17687 rm -f conftest.er1
17688 cat conftest.err >&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } && {
17691 test -z "$ac_c_werror_flag" ||
17692 test ! -s conftest.err
17693 } && test -s conftest.$ac_objext; then
17694 ac_header_compiler=yes
17695 else
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699 ac_header_compiler=no
17700 fi
17701
17702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17704 echo "${ECHO_T}$ac_header_compiler" >&6; }
17705
17706 # Is the header present?
17707 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17708 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17709 cat >conftest.$ac_ext <<_ACEOF
17710 /* confdefs.h. */
17711 _ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h. */
17715 #include <sys/dg_sys_info.h>
17716 _ACEOF
17717 if { (ac_try="$ac_cpp conftest.$ac_ext"
17718 case "(($ac_try" in
17719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720 *) ac_try_echo=$ac_try;;
17721 esac
17722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17724 ac_status=$?
17725 grep -v '^ *+' conftest.er1 >conftest.err
17726 rm -f conftest.er1
17727 cat conftest.err >&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } >/dev/null && {
17730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17731 test ! -s conftest.err
17732 }; then
17733 ac_header_preproc=yes
17734 else
17735 echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 ac_header_preproc=no
17739 fi
17740
17741 rm -f conftest.err conftest.$ac_ext
17742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17743 echo "${ECHO_T}$ac_header_preproc" >&6; }
17744
17745 # So? What about this header?
17746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17747 yes:no: )
17748 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17749 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17750 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17751 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17752 ac_header_preproc=yes
17753 ;;
17754 no:yes:* )
17755 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17756 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17757 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17758 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17759 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17760 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17761 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17762 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17763 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17764 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17765 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17766 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17767
17768 ;;
17769 esac
17770 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17771 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17772 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17776 fi
17777 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17778 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17779
17780 fi
17781 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17782 ac_have_func=yes
17783
17784 cat >>confdefs.h <<\_ACEOF
17785 #define DGUX 1
17786 _ACEOF
17787
17788
17789 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17790 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17791 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17792 echo $ECHO_N "(cached) $ECHO_C" >&6
17793 else
17794 ac_check_lib_save_LIBS=$LIBS
17795 LIBS="-ldgc $LIBS"
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h. */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802
17803 /* Override any GCC internal prototype to avoid an error.
17804 Use char because int might match the return type of a GCC
17805 builtin and then its argument prototype would still apply. */
17806 #ifdef __cplusplus
17807 extern "C"
17808 #endif
17809 char dg_sys_info ();
17810 int
17811 main ()
17812 {
17813 return dg_sys_info ();
17814 ;
17815 return 0;
17816 }
17817 _ACEOF
17818 rm -f conftest.$ac_objext conftest$ac_exeext
17819 if { (ac_try="$ac_link"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17823 esac
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825 (eval "$ac_link") 2>conftest.er1
17826 ac_status=$?
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } && {
17832 test -z "$ac_c_werror_flag" ||
17833 test ! -s conftest.err
17834 } && test -s conftest$ac_exeext &&
17835 $as_test_x conftest$ac_exeext; then
17836 ac_cv_lib_dgc_dg_sys_info=yes
17837 else
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 ac_cv_lib_dgc_dg_sys_info=no
17842 fi
17843
17844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17845 conftest$ac_exeext conftest.$ac_ext
17846 LIBS=$ac_check_lib_save_LIBS
17847 fi
17848 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17849 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17850 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17851 cat >>confdefs.h <<_ACEOF
17852 #define HAVE_LIBDGC 1
17853 _ACEOF
17854
17855 LIBS="-ldgc $LIBS"
17856
17857 fi
17858
17859 fi
17860
17861
17862
17863 if test "${ac_cv_header_locale_h+set}" = set; then
17864 { echo "$as_me:$LINENO: checking for locale.h" >&5
17865 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17866 if test "${ac_cv_header_locale_h+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 fi
17869 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17870 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17871 else
17872 # Is the header compilable?
17873 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17874 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17875 cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h. */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 $ac_includes_default
17882 #include <locale.h>
17883 _ACEOF
17884 rm -f conftest.$ac_objext
17885 if { (ac_try="$ac_compile"
17886 case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17889 esac
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_compile") 2>conftest.er1
17892 ac_status=$?
17893 grep -v '^ *+' conftest.er1 >conftest.err
17894 rm -f conftest.er1
17895 cat conftest.err >&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } && {
17898 test -z "$ac_c_werror_flag" ||
17899 test ! -s conftest.err
17900 } && test -s conftest.$ac_objext; then
17901 ac_header_compiler=yes
17902 else
17903 echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906 ac_header_compiler=no
17907 fi
17908
17909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17911 echo "${ECHO_T}$ac_header_compiler" >&6; }
17912
17913 # Is the header present?
17914 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17915 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17916 cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h. */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17922 #include <locale.h>
17923 _ACEOF
17924 if { (ac_try="$ac_cpp conftest.$ac_ext"
17925 case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } >/dev/null && {
17937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17938 test ! -s conftest.err
17939 }; then
17940 ac_header_preproc=yes
17941 else
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 ac_header_preproc=no
17946 fi
17947
17948 rm -f conftest.err conftest.$ac_ext
17949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17950 echo "${ECHO_T}$ac_header_preproc" >&6; }
17951
17952 # So? What about this header?
17953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17954 yes:no: )
17955 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17956 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17957 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17958 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17959 ac_header_preproc=yes
17960 ;;
17961 no:yes:* )
17962 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17963 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17964 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17965 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17966 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17967 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17968 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17969 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17970 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17971 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17972 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17973 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17974
17975 ;;
17976 esac
17977 { echo "$as_me:$LINENO: checking for locale.h" >&5
17978 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17979 if test "${ac_cv_header_locale_h+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982 ac_cv_header_locale_h=$ac_header_preproc
17983 fi
17984 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17985 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17986
17987 fi
17988
17989
17990
17991 for ac_func in setlocale
17992 do
17993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17997 echo $ECHO_N "(cached) $ECHO_C" >&6
17998 else
17999 cat >conftest.$ac_ext <<_ACEOF
18000 /* confdefs.h. */
18001 _ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18007 #define $ac_func innocuous_$ac_func
18008
18009 /* System header to define __stub macros and hopefully few prototypes,
18010 which can conflict with char $ac_func (); below.
18011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18012 <limits.h> exists even on freestanding compilers. */
18013
18014 #ifdef __STDC__
18015 # include <limits.h>
18016 #else
18017 # include <assert.h>
18018 #endif
18019
18020 #undef $ac_func
18021
18022 /* Override any GCC internal prototype to avoid an error.
18023 Use char because int might match the return type of a GCC
18024 builtin and then its argument prototype would still apply. */
18025 #ifdef __cplusplus
18026 extern "C"
18027 #endif
18028 char $ac_func ();
18029 /* The GNU C library defines this for functions which it implements
18030 to always fail with ENOSYS. Some functions are actually named
18031 something starting with __ and the normal name is an alias. */
18032 #if defined __stub_$ac_func || defined __stub___$ac_func
18033 choke me
18034 #endif
18035
18036 int
18037 main ()
18038 {
18039 return $ac_func ();
18040 ;
18041 return 0;
18042 }
18043 _ACEOF
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (ac_try="$ac_link"
18046 case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_link") 2>conftest.er1
18052 ac_status=$?
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } && {
18058 test -z "$ac_c_werror_flag" ||
18059 test ! -s conftest.err
18060 } && test -s conftest$ac_exeext &&
18061 $as_test_x conftest$ac_exeext; then
18062 eval "$as_ac_var=yes"
18063 else
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18066
18067 eval "$as_ac_var=no"
18068 fi
18069
18070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18071 conftest$ac_exeext conftest.$ac_ext
18072 fi
18073 ac_res=`eval echo '${'$as_ac_var'}'`
18074 { echo "$as_me:$LINENO: result: $ac_res" >&5
18075 echo "${ECHO_T}$ac_res" >&6; }
18076 if test `eval echo '${'$as_ac_var'}'` = yes; then
18077 cat >>confdefs.h <<_ACEOF
18078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18079 _ACEOF
18080
18081 fi
18082 done
18083
18084
18085 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18086 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18087 # Irix 4.0.5F has the header but not the library.
18088 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18089 ac_have_func=yes
18090
18091 cat >>confdefs.h <<\_ACEOF
18092 #define SVR4 1
18093 _ACEOF
18094
18095 fi
18096
18097 if test $ac_have_func = no; then
18098 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18099 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18100 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18101 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 fi
18104 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18105 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18106 else
18107 # Is the header compilable?
18108 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18109 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18110 cat >conftest.$ac_ext <<_ACEOF
18111 /* confdefs.h. */
18112 _ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h. */
18116 $ac_includes_default
18117 #include <inq_stats/cpustats.h>
18118 _ACEOF
18119 rm -f conftest.$ac_objext
18120 if { (ac_try="$ac_compile"
18121 case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18124 esac
18125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_compile") 2>conftest.er1
18127 ac_status=$?
18128 grep -v '^ *+' conftest.er1 >conftest.err
18129 rm -f conftest.er1
18130 cat conftest.err >&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } && {
18133 test -z "$ac_c_werror_flag" ||
18134 test ! -s conftest.err
18135 } && test -s conftest.$ac_objext; then
18136 ac_header_compiler=yes
18137 else
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141 ac_header_compiler=no
18142 fi
18143
18144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18146 echo "${ECHO_T}$ac_header_compiler" >&6; }
18147
18148 # Is the header present?
18149 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18150 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18151 cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h. */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18157 #include <inq_stats/cpustats.h>
18158 _ACEOF
18159 if { (ac_try="$ac_cpp conftest.$ac_ext"
18160 case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18166 ac_status=$?
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } >/dev/null && {
18172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18173 test ! -s conftest.err
18174 }; then
18175 ac_header_preproc=yes
18176 else
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180 ac_header_preproc=no
18181 fi
18182
18183 rm -f conftest.err conftest.$ac_ext
18184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18185 echo "${ECHO_T}$ac_header_preproc" >&6; }
18186
18187 # So? What about this header?
18188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18189 yes:no: )
18190 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18191 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18192 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18193 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18194 ac_header_preproc=yes
18195 ;;
18196 no:yes:* )
18197 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18198 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18199 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18200 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18201 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18202 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18203 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18204 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18205 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18206 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18207 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18208 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18209
18210 ;;
18211 esac
18212 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18213 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18214 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18215 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 else
18217 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18218 fi
18219 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18220 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18221
18222 fi
18223 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18224 ac_have_func=yes
18225
18226 cat >>confdefs.h <<\_ACEOF
18227 #define UMAX 1
18228 _ACEOF
18229
18230
18231 cat >>confdefs.h <<\_ACEOF
18232 #define UMAX4_3 1
18233 _ACEOF
18234
18235 fi
18236
18237
18238 fi
18239
18240 if test $ac_have_func = no; then
18241 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18242 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18243 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18244 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 fi
18247 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18248 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18249 else
18250 # Is the header compilable?
18251 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18252 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
18260 #include <sys/cpustats.h>
18261 _ACEOF
18262 rm -f conftest.$ac_objext
18263 if { (ac_try="$ac_compile"
18264 case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18267 esac
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_compile") 2>conftest.er1
18270 ac_status=$?
18271 grep -v '^ *+' conftest.er1 >conftest.err
18272 rm -f conftest.er1
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } && {
18276 test -z "$ac_c_werror_flag" ||
18277 test ! -s conftest.err
18278 } && test -s conftest.$ac_objext; then
18279 ac_header_compiler=yes
18280 else
18281 echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.$ac_ext >&5
18283
18284 ac_header_compiler=no
18285 fi
18286
18287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18289 echo "${ECHO_T}$ac_header_compiler" >&6; }
18290
18291 # Is the header present?
18292 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18293 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18294 cat >conftest.$ac_ext <<_ACEOF
18295 /* confdefs.h. */
18296 _ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18300 #include <sys/cpustats.h>
18301 _ACEOF
18302 if { (ac_try="$ac_cpp conftest.$ac_ext"
18303 case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18306 esac
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18309 ac_status=$?
18310 grep -v '^ *+' conftest.er1 >conftest.err
18311 rm -f conftest.er1
18312 cat conftest.err >&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } >/dev/null && {
18315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18316 test ! -s conftest.err
18317 }; then
18318 ac_header_preproc=yes
18319 else
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18322
18323 ac_header_preproc=no
18324 fi
18325
18326 rm -f conftest.err conftest.$ac_ext
18327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18328 echo "${ECHO_T}$ac_header_preproc" >&6; }
18329
18330 # So? What about this header?
18331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18332 yes:no: )
18333 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18334 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18335 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18336 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18337 ac_header_preproc=yes
18338 ;;
18339 no:yes:* )
18340 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18341 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18343 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18345 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18347 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18348 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18349 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18350 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18351 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18352
18353 ;;
18354 esac
18355 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18356 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18357 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18359 else
18360 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18361 fi
18362 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18363 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18364
18365 fi
18366 if test $ac_cv_header_sys_cpustats_h = yes; then
18367 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18368 #define UMAX 1
18369 _ACEOF
18370
18371 fi
18372
18373
18374 fi
18375
18376 if test $ac_have_func = no; then
18377
18378 for ac_header in mach/mach.h
18379 do
18380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18386 fi
18387 ac_res=`eval echo '${'$as_ac_Header'}'`
18388 { echo "$as_me:$LINENO: result: $ac_res" >&5
18389 echo "${ECHO_T}$ac_res" >&6; }
18390 else
18391 # Is the header compilable?
18392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18394 cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h. */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18400 $ac_includes_default
18401 #include <$ac_header>
18402 _ACEOF
18403 rm -f conftest.$ac_objext
18404 if { (ac_try="$ac_compile"
18405 case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18408 esac
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_compile") 2>conftest.er1
18411 ac_status=$?
18412 grep -v '^ *+' conftest.er1 >conftest.err
18413 rm -f conftest.er1
18414 cat conftest.err >&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } && {
18417 test -z "$ac_c_werror_flag" ||
18418 test ! -s conftest.err
18419 } && test -s conftest.$ac_objext; then
18420 ac_header_compiler=yes
18421 else
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18424
18425 ac_header_compiler=no
18426 fi
18427
18428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18430 echo "${ECHO_T}$ac_header_compiler" >&6; }
18431
18432 # Is the header present?
18433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18435 cat >conftest.$ac_ext <<_ACEOF
18436 /* confdefs.h. */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18441 #include <$ac_header>
18442 _ACEOF
18443 if { (ac_try="$ac_cpp conftest.$ac_ext"
18444 case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18447 esac
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18450 ac_status=$?
18451 grep -v '^ *+' conftest.er1 >conftest.err
18452 rm -f conftest.er1
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } >/dev/null && {
18456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18457 test ! -s conftest.err
18458 }; then
18459 ac_header_preproc=yes
18460 else
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 ac_header_preproc=no
18465 fi
18466
18467 rm -f conftest.err conftest.$ac_ext
18468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18469 echo "${ECHO_T}$ac_header_preproc" >&6; }
18470
18471 # So? What about this header?
18472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18473 yes:no: )
18474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18478 ac_header_preproc=yes
18479 ;;
18480 no:yes:* )
18481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18493
18494 ;;
18495 esac
18496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501 eval "$as_ac_Header=\$ac_header_preproc"
18502 fi
18503 ac_res=`eval echo '${'$as_ac_Header'}'`
18504 { echo "$as_me:$LINENO: result: $ac_res" >&5
18505 echo "${ECHO_T}$ac_res" >&6; }
18506
18507 fi
18508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18509 cat >>confdefs.h <<_ACEOF
18510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18511 _ACEOF
18512
18513 fi
18514
18515 done
18516
18517 fi
18518
18519
18520 for ac_header in nlist.h
18521 do
18522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18528 fi
18529 ac_res=`eval echo '${'$as_ac_Header'}'`
18530 { echo "$as_me:$LINENO: result: $ac_res" >&5
18531 echo "${ECHO_T}$ac_res" >&6; }
18532 else
18533 # Is the header compilable?
18534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18536 cat >conftest.$ac_ext <<_ACEOF
18537 /* confdefs.h. */
18538 _ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542 $ac_includes_default
18543 #include <$ac_header>
18544 _ACEOF
18545 rm -f conftest.$ac_objext
18546 if { (ac_try="$ac_compile"
18547 case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18550 esac
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_compile") 2>conftest.er1
18553 ac_status=$?
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } && {
18559 test -z "$ac_c_werror_flag" ||
18560 test ! -s conftest.err
18561 } && test -s conftest.$ac_objext; then
18562 ac_header_compiler=yes
18563 else
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18566
18567 ac_header_compiler=no
18568 fi
18569
18570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18572 echo "${ECHO_T}$ac_header_compiler" >&6; }
18573
18574 # Is the header present?
18575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h. */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 #include <$ac_header>
18584 _ACEOF
18585 if { (ac_try="$ac_cpp conftest.$ac_ext"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18589 esac
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18592 ac_status=$?
18593 grep -v '^ *+' conftest.er1 >conftest.err
18594 rm -f conftest.er1
18595 cat conftest.err >&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } >/dev/null && {
18598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18599 test ! -s conftest.err
18600 }; then
18601 ac_header_preproc=yes
18602 else
18603 echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606 ac_header_preproc=no
18607 fi
18608
18609 rm -f conftest.err conftest.$ac_ext
18610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18611 echo "${ECHO_T}$ac_header_preproc" >&6; }
18612
18613 # So? What about this header?
18614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18615 yes:no: )
18616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18620 ac_header_preproc=yes
18621 ;;
18622 no:yes:* )
18623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18635
18636 ;;
18637 esac
18638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 else
18643 eval "$as_ac_Header=\$ac_header_preproc"
18644 fi
18645 ac_res=`eval echo '${'$as_ac_Header'}'`
18646 { echo "$as_me:$LINENO: result: $ac_res" >&5
18647 echo "${ECHO_T}$ac_res" >&6; }
18648
18649 fi
18650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18651 cat >>confdefs.h <<_ACEOF
18652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18653 _ACEOF
18654 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18655 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18656 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 else
18659 cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h. */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18665 #include <nlist.h>
18666
18667 int
18668 main ()
18669 {
18670 static struct nlist ac_aggr;
18671 if (ac_aggr.n_un.n_name)
18672 return 0;
18673 ;
18674 return 0;
18675 }
18676 _ACEOF
18677 rm -f conftest.$ac_objext
18678 if { (ac_try="$ac_compile"
18679 case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18682 esac
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_compile") 2>conftest.er1
18685 ac_status=$?
18686 grep -v '^ *+' conftest.er1 >conftest.err
18687 rm -f conftest.er1
18688 cat conftest.err >&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } && {
18691 test -z "$ac_c_werror_flag" ||
18692 test ! -s conftest.err
18693 } && test -s conftest.$ac_objext; then
18694 ac_cv_member_struct_nlist_n_un_n_name=yes
18695 else
18696 echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18698
18699 cat >conftest.$ac_ext <<_ACEOF
18700 /* confdefs.h. */
18701 _ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h. */
18705 #include <nlist.h>
18706
18707 int
18708 main ()
18709 {
18710 static struct nlist ac_aggr;
18711 if (sizeof ac_aggr.n_un.n_name)
18712 return 0;
18713 ;
18714 return 0;
18715 }
18716 _ACEOF
18717 rm -f conftest.$ac_objext
18718 if { (ac_try="$ac_compile"
18719 case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_compile") 2>conftest.er1
18725 ac_status=$?
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } && {
18731 test -z "$ac_c_werror_flag" ||
18732 test ! -s conftest.err
18733 } && test -s conftest.$ac_objext; then
18734 ac_cv_member_struct_nlist_n_un_n_name=yes
18735 else
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18738
18739 ac_cv_member_struct_nlist_n_un_n_name=no
18740 fi
18741
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743 fi
18744
18745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18746 fi
18747 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18748 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18749 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18750
18751 cat >>confdefs.h <<_ACEOF
18752 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18753 _ACEOF
18754
18755
18756 cat >>confdefs.h <<\_ACEOF
18757 #define NLIST_NAME_UNION 1
18758 _ACEOF
18759
18760 fi
18761
18762
18763 fi
18764
18765 done
18766
18767 fi
18768 done
18769
18770
18771 # Some definitions of getloadavg require that the program be installed setgid.
18772 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18773 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18774 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777 cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h. */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18784 #ifdef LDAV_PRIVILEGED
18785 Yowza Am I SETGID yet
18786 #endif
18787 _ACEOF
18788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18789 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18790 ac_cv_func_getloadavg_setgid=yes
18791 else
18792 ac_cv_func_getloadavg_setgid=no
18793 fi
18794 rm -f conftest*
18795
18796 fi
18797 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18798 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18799 if test $ac_cv_func_getloadavg_setgid = yes; then
18800 NEED_SETGID=true
18801
18802 cat >>confdefs.h <<\_ACEOF
18803 #define GETLOADAVG_PRIVILEGED 1
18804 _ACEOF
18805
18806 else
18807 NEED_SETGID=false
18808 fi
18809
18810 if test $ac_cv_func_getloadavg_setgid = yes; then
18811 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18812 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18813 if test "${ac_cv_group_kmem+set}" = set; then
18814 echo $ECHO_N "(cached) $ECHO_C" >&6
18815 else
18816 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18817 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18818 # If we got an error (system does not support symlinks), try without -L.
18819 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18820 ac_cv_group_kmem=`echo $ac_ls_output \
18821 | sed -ne 's/[ ][ ]*/ /g;
18822 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18823 / /s/.* //;p;'`
18824
18825 fi
18826 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18827 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18828 KMEM_GROUP=$ac_cv_group_kmem
18829 fi
18830 if test "x$ac_save_LIBS" = x; then
18831 GETLOADAVG_LIBS=$LIBS
18832 else
18833 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18834 fi
18835 LIBS=$ac_save_LIBS
18836
18837
18838
18839 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18840 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18841 if test "${ac_cv_sys_largefile_source+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843 else
18844 while :; do
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h. */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18851 #include <stdio.h>
18852 int
18853 main ()
18854 {
18855 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18856 ;
18857 return 0;
18858 }
18859 _ACEOF
18860 rm -f conftest.$ac_objext conftest$ac_exeext
18861 if { (ac_try="$ac_link"
18862 case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18865 esac
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_link") 2>conftest.er1
18868 ac_status=$?
18869 grep -v '^ *+' conftest.er1 >conftest.err
18870 rm -f conftest.er1
18871 cat conftest.err >&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); } && {
18874 test -z "$ac_c_werror_flag" ||
18875 test ! -s conftest.err
18876 } && test -s conftest$ac_exeext &&
18877 $as_test_x conftest$ac_exeext; then
18878 ac_cv_sys_largefile_source=no; break
18879 else
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18882
18883
18884 fi
18885
18886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18887 conftest$ac_exeext conftest.$ac_ext
18888 cat >conftest.$ac_ext <<_ACEOF
18889 /* confdefs.h. */
18890 _ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18894 #define _LARGEFILE_SOURCE 1
18895 #include <stdio.h>
18896 int
18897 main ()
18898 {
18899 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18900 ;
18901 return 0;
18902 }
18903 _ACEOF
18904 rm -f conftest.$ac_objext conftest$ac_exeext
18905 if { (ac_try="$ac_link"
18906 case "(($ac_try" in
18907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908 *) ac_try_echo=$ac_try;;
18909 esac
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_link") 2>conftest.er1
18912 ac_status=$?
18913 grep -v '^ *+' conftest.er1 >conftest.err
18914 rm -f conftest.er1
18915 cat conftest.err >&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } && {
18918 test -z "$ac_c_werror_flag" ||
18919 test ! -s conftest.err
18920 } && test -s conftest$ac_exeext &&
18921 $as_test_x conftest$ac_exeext; then
18922 ac_cv_sys_largefile_source=1; break
18923 else
18924 echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18926
18927
18928 fi
18929
18930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18931 conftest$ac_exeext conftest.$ac_ext
18932 ac_cv_sys_largefile_source=unknown
18933 break
18934 done
18935 fi
18936 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18937 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18938 case $ac_cv_sys_largefile_source in #(
18939 no | unknown) ;;
18940 *)
18941 cat >>confdefs.h <<_ACEOF
18942 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18943 _ACEOF
18944 ;;
18945 esac
18946 rm -f conftest*
18947
18948 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18949 # in glibc 2.1.3, but that breaks too many other things.
18950 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18951 if test $ac_cv_sys_largefile_source != unknown; then
18952
18953 cat >>confdefs.h <<\_ACEOF
18954 #define HAVE_FSEEKO 1
18955 _ACEOF
18956
18957 fi
18958
18959
18960 # Configure getopt.
18961 # getopt.m4 serial 10
18962
18963 # The getopt module assume you want GNU getopt, with getopt_long etc,
18964 # rather than vanilla POSIX getopt. This means your your code should
18965 # always include <getopt.h> for the getopt prototypes.
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977 # Prerequisites of lib/getopt*.
18978
18979
18980
18981
18982 GETOPT_H=
18983
18984 for ac_header in getopt.h
18985 do
18986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 fi
18993 ac_res=`eval echo '${'$as_ac_Header'}'`
18994 { echo "$as_me:$LINENO: result: $ac_res" >&5
18995 echo "${ECHO_T}$ac_res" >&6; }
18996 else
18997 # Is the header compilable?
18998 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19000 cat >conftest.$ac_ext <<_ACEOF
19001 /* confdefs.h. */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19006 $ac_includes_default
19007 #include <$ac_header>
19008 _ACEOF
19009 rm -f conftest.$ac_objext
19010 if { (ac_try="$ac_compile"
19011 case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19014 esac
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_compile") 2>conftest.er1
19017 ac_status=$?
19018 grep -v '^ *+' conftest.er1 >conftest.err
19019 rm -f conftest.er1
19020 cat conftest.err >&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); } && {
19023 test -z "$ac_c_werror_flag" ||
19024 test ! -s conftest.err
19025 } && test -s conftest.$ac_objext; then
19026 ac_header_compiler=yes
19027 else
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19030
19031 ac_header_compiler=no
19032 fi
19033
19034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19036 echo "${ECHO_T}$ac_header_compiler" >&6; }
19037
19038 # Is the header present?
19039 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h. */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 #include <$ac_header>
19048 _ACEOF
19049 if { (ac_try="$ac_cpp conftest.$ac_ext"
19050 case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19056 ac_status=$?
19057 grep -v '^ *+' conftest.er1 >conftest.err
19058 rm -f conftest.er1
19059 cat conftest.err >&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } >/dev/null && {
19062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19063 test ! -s conftest.err
19064 }; then
19065 ac_header_preproc=yes
19066 else
19067 echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19069
19070 ac_header_preproc=no
19071 fi
19072
19073 rm -f conftest.err conftest.$ac_ext
19074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19075 echo "${ECHO_T}$ac_header_preproc" >&6; }
19076
19077 # So? What about this header?
19078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19079 yes:no: )
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19084 ac_header_preproc=yes
19085 ;;
19086 no:yes:* )
19087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19099
19100 ;;
19101 esac
19102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 else
19107 eval "$as_ac_Header=\$ac_header_preproc"
19108 fi
19109 ac_res=`eval echo '${'$as_ac_Header'}'`
19110 { echo "$as_me:$LINENO: result: $ac_res" >&5
19111 echo "${ECHO_T}$ac_res" >&6; }
19112
19113 fi
19114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19115 cat >>confdefs.h <<_ACEOF
19116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19117 _ACEOF
19118
19119 else
19120 GETOPT_H=getopt.h
19121 fi
19122
19123 done
19124
19125 if test -z "$GETOPT_H"; then
19126
19127 for ac_func in getopt_long_only
19128 do
19129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19143 #define $ac_func innocuous_$ac_func
19144
19145 /* System header to define __stub macros and hopefully few prototypes,
19146 which can conflict with char $ac_func (); below.
19147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19148 <limits.h> exists even on freestanding compilers. */
19149
19150 #ifdef __STDC__
19151 # include <limits.h>
19152 #else
19153 # include <assert.h>
19154 #endif
19155
19156 #undef $ac_func
19157
19158 /* Override any GCC internal prototype to avoid an error.
19159 Use char because int might match the return type of a GCC
19160 builtin and then its argument prototype would still apply. */
19161 #ifdef __cplusplus
19162 extern "C"
19163 #endif
19164 char $ac_func ();
19165 /* The GNU C library defines this for functions which it implements
19166 to always fail with ENOSYS. Some functions are actually named
19167 something starting with __ and the normal name is an alias. */
19168 #if defined __stub_$ac_func || defined __stub___$ac_func
19169 choke me
19170 #endif
19171
19172 int
19173 main ()
19174 {
19175 return $ac_func ();
19176 ;
19177 return 0;
19178 }
19179 _ACEOF
19180 rm -f conftest.$ac_objext conftest$ac_exeext
19181 if { (ac_try="$ac_link"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_link") 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } && {
19194 test -z "$ac_c_werror_flag" ||
19195 test ! -s conftest.err
19196 } && test -s conftest$ac_exeext &&
19197 $as_test_x conftest$ac_exeext; then
19198 eval "$as_ac_var=yes"
19199 else
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19202
19203 eval "$as_ac_var=no"
19204 fi
19205
19206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19207 conftest$ac_exeext conftest.$ac_ext
19208 fi
19209 ac_res=`eval echo '${'$as_ac_var'}'`
19210 { echo "$as_me:$LINENO: result: $ac_res" >&5
19211 echo "${ECHO_T}$ac_res" >&6; }
19212 if test `eval echo '${'$as_ac_var'}'` = yes; then
19213 cat >>confdefs.h <<_ACEOF
19214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19215 _ACEOF
19216
19217 else
19218 GETOPT_H=getopt.h
19219 fi
19220 done
19221
19222 fi
19223
19224 if test -z "$GETOPT_H"; then
19225 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19226 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19227 if test "${ac_cv_have_decl_optreset+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230 cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h. */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19236 #include <getopt.h>
19237
19238 int
19239 main ()
19240 {
19241 #ifndef optreset
19242 (void) optreset;
19243 #endif
19244
19245 ;
19246 return 0;
19247 }
19248 _ACEOF
19249 rm -f conftest.$ac_objext
19250 if { (ac_try="$ac_compile"
19251 case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_compile") 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } && {
19263 test -z "$ac_c_werror_flag" ||
19264 test ! -s conftest.err
19265 } && test -s conftest.$ac_objext; then
19266 ac_cv_have_decl_optreset=yes
19267 else
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19270
19271 ac_cv_have_decl_optreset=no
19272 fi
19273
19274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19275 fi
19276 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19277 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19278 if test $ac_cv_have_decl_optreset = yes; then
19279 GETOPT_H=getopt.h
19280 fi
19281
19282 fi
19283
19284 if test -z "$GETOPT_H"; then
19285 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19286 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19287 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19288 echo $ECHO_N "(cached) $ECHO_C" >&6
19289 else
19290 if test "$cross_compiling" = yes; then
19291 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19292 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19293 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 else
19296 cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h. */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 #include <getopt.h>
19303
19304 int
19305 main ()
19306 {
19307 #ifndef getopt_clip
19308 (void) getopt_clip;
19309 #endif
19310
19311 ;
19312 return 0;
19313 }
19314 _ACEOF
19315 rm -f conftest.$ac_objext
19316 if { (ac_try="$ac_compile"
19317 case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19320 esac
19321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_compile") 2>conftest.er1
19323 ac_status=$?
19324 grep -v '^ *+' conftest.er1 >conftest.err
19325 rm -f conftest.er1
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } && {
19329 test -z "$ac_c_werror_flag" ||
19330 test ! -s conftest.err
19331 } && test -s conftest.$ac_objext; then
19332 ac_cv_have_decl_getopt_clip=yes
19333 else
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337 ac_cv_have_decl_getopt_clip=no
19338 fi
19339
19340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19341 fi
19342 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19343 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19344 if test $ac_cv_have_decl_getopt_clip = yes; then
19345 gl_cv_func_gnu_getopt=no
19346 else
19347 gl_cv_func_gnu_getopt=yes
19348 fi
19349
19350 else
19351 cat >conftest.$ac_ext <<_ACEOF
19352 /* confdefs.h. */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19357 #include <getopt.h>
19358 int
19359 main ()
19360 {
19361
19362 char *myargv[3];
19363 myargv[0] = "conftest";
19364 myargv[1] = "-+";
19365 myargv[2] = 0;
19366 return getopt (2, myargv, "+a") != '?';
19367
19368 ;
19369 return 0;
19370 }
19371 _ACEOF
19372 rm -f conftest$ac_exeext
19373 if { (ac_try="$ac_link"
19374 case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19377 esac
19378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_link") 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19383 { (case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19386 esac
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388 (eval "$ac_try") 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 gl_cv_func_gnu_getopt=yes
19393 else
19394 echo "$as_me: program exited with status $ac_status" >&5
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398 ( exit $ac_status )
19399 gl_cv_func_gnu_getopt=no
19400 fi
19401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19402 fi
19403
19404
19405 fi
19406 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19407 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19408 if test "$gl_cv_func_gnu_getopt" = "no"; then
19409 GETOPT_H=getopt.h
19410 fi
19411 fi
19412
19413
19414
19415 if test -n "$GETOPT_H"; then
19416
19417
19418 GETOPT_H=getopt.h
19419
19420 cat >>confdefs.h <<\_ACEOF
19421 #define __GETOPT_PREFIX rpl_
19422 _ACEOF
19423
19424
19425
19426 :
19427 GETOPTOBJS='getopt.o getopt1.o'
19428
19429 fi
19430
19431
19432
19433
19434 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19435 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19436 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19438 else
19439 # Use it with a single arg.
19440 cat >conftest.$ac_ext <<_ACEOF
19441 /* confdefs.h. */
19442 _ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h. */
19446 $ac_includes_default
19447 int
19448 main ()
19449 {
19450 getpgrp (0);
19451 ;
19452 return 0;
19453 }
19454 _ACEOF
19455 rm -f conftest.$ac_objext
19456 if { (ac_try="$ac_compile"
19457 case "(($ac_try" in
19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19459 *) ac_try_echo=$ac_try;;
19460 esac
19461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19462 (eval "$ac_compile") 2>conftest.er1
19463 ac_status=$?
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } && {
19469 test -z "$ac_c_werror_flag" ||
19470 test ! -s conftest.err
19471 } && test -s conftest.$ac_objext; then
19472 ac_cv_func_getpgrp_void=no
19473 else
19474 echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19476
19477 ac_cv_func_getpgrp_void=yes
19478 fi
19479
19480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19481
19482 fi
19483 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19484 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19485 if test $ac_cv_func_getpgrp_void = yes; then
19486
19487 cat >>confdefs.h <<\_ACEOF
19488 #define GETPGRP_VOID 1
19489 _ACEOF
19490
19491 fi
19492
19493
19494
19495 for ac_func in strftime
19496 do
19497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19501 echo $ECHO_N "(cached) $ECHO_C" >&6
19502 else
19503 cat >conftest.$ac_ext <<_ACEOF
19504 /* confdefs.h. */
19505 _ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h. */
19509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19511 #define $ac_func innocuous_$ac_func
19512
19513 /* System header to define __stub macros and hopefully few prototypes,
19514 which can conflict with char $ac_func (); below.
19515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19516 <limits.h> exists even on freestanding compilers. */
19517
19518 #ifdef __STDC__
19519 # include <limits.h>
19520 #else
19521 # include <assert.h>
19522 #endif
19523
19524 #undef $ac_func
19525
19526 /* Override any GCC internal prototype to avoid an error.
19527 Use char because int might match the return type of a GCC
19528 builtin and then its argument prototype would still apply. */
19529 #ifdef __cplusplus
19530 extern "C"
19531 #endif
19532 char $ac_func ();
19533 /* The GNU C library defines this for functions which it implements
19534 to always fail with ENOSYS. Some functions are actually named
19535 something starting with __ and the normal name is an alias. */
19536 #if defined __stub_$ac_func || defined __stub___$ac_func
19537 choke me
19538 #endif
19539
19540 int
19541 main ()
19542 {
19543 return $ac_func ();
19544 ;
19545 return 0;
19546 }
19547 _ACEOF
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (ac_try="$ac_link"
19550 case "(($ac_try" in
19551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552 *) ac_try_echo=$ac_try;;
19553 esac
19554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555 (eval "$ac_link") 2>conftest.er1
19556 ac_status=$?
19557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } && {
19562 test -z "$ac_c_werror_flag" ||
19563 test ! -s conftest.err
19564 } && test -s conftest$ac_exeext &&
19565 $as_test_x conftest$ac_exeext; then
19566 eval "$as_ac_var=yes"
19567 else
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19570
19571 eval "$as_ac_var=no"
19572 fi
19573
19574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19575 conftest$ac_exeext conftest.$ac_ext
19576 fi
19577 ac_res=`eval echo '${'$as_ac_var'}'`
19578 { echo "$as_me:$LINENO: result: $ac_res" >&5
19579 echo "${ECHO_T}$ac_res" >&6; }
19580 if test `eval echo '${'$as_ac_var'}'` = yes; then
19581 cat >>confdefs.h <<_ACEOF
19582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19583 _ACEOF
19584
19585 else
19586 # strftime is in -lintl on SCO UNIX.
19587 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19588 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19589 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 else
19592 ac_check_lib_save_LIBS=$LIBS
19593 LIBS="-lintl $LIBS"
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h. */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600
19601 /* Override any GCC internal prototype to avoid an error.
19602 Use char because int might match the return type of a GCC
19603 builtin and then its argument prototype would still apply. */
19604 #ifdef __cplusplus
19605 extern "C"
19606 #endif
19607 char strftime ();
19608 int
19609 main ()
19610 {
19611 return strftime ();
19612 ;
19613 return 0;
19614 }
19615 _ACEOF
19616 rm -f conftest.$ac_objext conftest$ac_exeext
19617 if { (ac_try="$ac_link"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_link") 2>conftest.er1
19624 ac_status=$?
19625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } && {
19630 test -z "$ac_c_werror_flag" ||
19631 test ! -s conftest.err
19632 } && test -s conftest$ac_exeext &&
19633 $as_test_x conftest$ac_exeext; then
19634 ac_cv_lib_intl_strftime=yes
19635 else
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 ac_cv_lib_intl_strftime=no
19640 fi
19641
19642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19643 conftest$ac_exeext conftest.$ac_ext
19644 LIBS=$ac_check_lib_save_LIBS
19645 fi
19646 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19647 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19648 if test $ac_cv_lib_intl_strftime = yes; then
19649 cat >>confdefs.h <<\_ACEOF
19650 #define HAVE_STRFTIME 1
19651 _ACEOF
19652
19653 LIBS="-lintl $LIBS"
19654 fi
19655
19656 fi
19657 done
19658
19659
19660 # UNIX98 PTYs.
19661
19662 for ac_func in grantpt
19663 do
19664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19665 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19678 #define $ac_func innocuous_$ac_func
19679
19680 /* System header to define __stub macros and hopefully few prototypes,
19681 which can conflict with char $ac_func (); below.
19682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19683 <limits.h> exists even on freestanding compilers. */
19684
19685 #ifdef __STDC__
19686 # include <limits.h>
19687 #else
19688 # include <assert.h>
19689 #endif
19690
19691 #undef $ac_func
19692
19693 /* Override any GCC internal prototype to avoid an error.
19694 Use char because int might match the return type of a GCC
19695 builtin and then its argument prototype would still apply. */
19696 #ifdef __cplusplus
19697 extern "C"
19698 #endif
19699 char $ac_func ();
19700 /* The GNU C library defines this for functions which it implements
19701 to always fail with ENOSYS. Some functions are actually named
19702 something starting with __ and the normal name is an alias. */
19703 #if defined __stub_$ac_func || defined __stub___$ac_func
19704 choke me
19705 #endif
19706
19707 int
19708 main ()
19709 {
19710 return $ac_func ();
19711 ;
19712 return 0;
19713 }
19714 _ACEOF
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (ac_try="$ac_link"
19717 case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_link") 2>conftest.er1
19723 ac_status=$?
19724 grep -v '^ *+' conftest.er1 >conftest.err
19725 rm -f conftest.er1
19726 cat conftest.err >&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } && {
19729 test -z "$ac_c_werror_flag" ||
19730 test ! -s conftest.err
19731 } && test -s conftest$ac_exeext &&
19732 $as_test_x conftest$ac_exeext; then
19733 eval "$as_ac_var=yes"
19734 else
19735 echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19737
19738 eval "$as_ac_var=no"
19739 fi
19740
19741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19742 conftest$ac_exeext conftest.$ac_ext
19743 fi
19744 ac_res=`eval echo '${'$as_ac_var'}'`
19745 { echo "$as_me:$LINENO: result: $ac_res" >&5
19746 echo "${ECHO_T}$ac_res" >&6; }
19747 if test `eval echo '${'$as_ac_var'}'` = yes; then
19748 cat >>confdefs.h <<_ACEOF
19749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19750 _ACEOF
19751
19752 fi
19753 done
19754
19755
19756 # PTY-related GNU extensions.
19757
19758 for ac_func in getpt
19759 do
19760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 else
19766 cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h. */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19774 #define $ac_func innocuous_$ac_func
19775
19776 /* System header to define __stub macros and hopefully few prototypes,
19777 which can conflict with char $ac_func (); below.
19778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19779 <limits.h> exists even on freestanding compilers. */
19780
19781 #ifdef __STDC__
19782 # include <limits.h>
19783 #else
19784 # include <assert.h>
19785 #endif
19786
19787 #undef $ac_func
19788
19789 /* Override any GCC internal prototype to avoid an error.
19790 Use char because int might match the return type of a GCC
19791 builtin and then its argument prototype would still apply. */
19792 #ifdef __cplusplus
19793 extern "C"
19794 #endif
19795 char $ac_func ();
19796 /* The GNU C library defines this for functions which it implements
19797 to always fail with ENOSYS. Some functions are actually named
19798 something starting with __ and the normal name is an alias. */
19799 #if defined __stub_$ac_func || defined __stub___$ac_func
19800 choke me
19801 #endif
19802
19803 int
19804 main ()
19805 {
19806 return $ac_func ();
19807 ;
19808 return 0;
19809 }
19810 _ACEOF
19811 rm -f conftest.$ac_objext conftest$ac_exeext
19812 if { (ac_try="$ac_link"
19813 case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_link") 2>conftest.er1
19819 ac_status=$?
19820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } && {
19825 test -z "$ac_c_werror_flag" ||
19826 test ! -s conftest.err
19827 } && test -s conftest$ac_exeext &&
19828 $as_test_x conftest$ac_exeext; then
19829 eval "$as_ac_var=yes"
19830 else
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19833
19834 eval "$as_ac_var=no"
19835 fi
19836
19837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19838 conftest$ac_exeext conftest.$ac_ext
19839 fi
19840 ac_res=`eval echo '${'$as_ac_var'}'`
19841 { echo "$as_me:$LINENO: result: $ac_res" >&5
19842 echo "${ECHO_T}$ac_res" >&6; }
19843 if test `eval echo '${'$as_ac_var'}'` = yes; then
19844 cat >>confdefs.h <<_ACEOF
19845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19846 _ACEOF
19847
19848 fi
19849 done
19850
19851
19852 # Check this now, so that we will NOT find the above functions in ncurses.
19853 # That is because we have not set up to link ncurses in lib-src.
19854 # It's better to believe a function is not available
19855 # than to expect to find it in ncurses.
19856
19857 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19858 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19859 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19861 else
19862 ac_check_lib_save_LIBS=$LIBS
19863 LIBS="-lncurses $LIBS"
19864 cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h. */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870
19871 /* Override any GCC internal prototype to avoid an error.
19872 Use char because int might match the return type of a GCC
19873 builtin and then its argument prototype would still apply. */
19874 #ifdef __cplusplus
19875 extern "C"
19876 #endif
19877 char tparm ();
19878 int
19879 main ()
19880 {
19881 return tparm ();
19882 ;
19883 return 0;
19884 }
19885 _ACEOF
19886 rm -f conftest.$ac_objext conftest$ac_exeext
19887 if { (ac_try="$ac_link"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_link") 2>conftest.er1
19894 ac_status=$?
19895 grep -v '^ *+' conftest.er1 >conftest.err
19896 rm -f conftest.er1
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } && {
19900 test -z "$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19902 } && test -s conftest$ac_exeext &&
19903 $as_test_x conftest$ac_exeext; then
19904 ac_cv_lib_ncurses_tparm=yes
19905 else
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19908
19909 ac_cv_lib_ncurses_tparm=no
19910 fi
19911
19912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19913 conftest$ac_exeext conftest.$ac_ext
19914 LIBS=$ac_check_lib_save_LIBS
19915 fi
19916 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19917 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19918 if test $ac_cv_lib_ncurses_tparm = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920 #define HAVE_LIBNCURSES 1
19921 _ACEOF
19922
19923 LIBS="-lncurses $LIBS"
19924
19925 fi
19926
19927
19928 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19929
19930 resolv=no
19931 { echo "$as_me:$LINENO: checking for res_init" >&5
19932 echo $ECHO_N "checking for res_init... $ECHO_C" >&6; }
19933 if test "${ac_cv_func_res_init+set}" = set; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 else
19936 cat >conftest.$ac_ext <<_ACEOF
19937 /* confdefs.h. */
19938 _ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h. */
19942 /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
19943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19944 #define res_init innocuous_res_init
19945
19946 /* System header to define __stub macros and hopefully few prototypes,
19947 which can conflict with char res_init (); below.
19948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19949 <limits.h> exists even on freestanding compilers. */
19950
19951 #ifdef __STDC__
19952 # include <limits.h>
19953 #else
19954 # include <assert.h>
19955 #endif
19956
19957 #undef res_init
19958
19959 /* Override any GCC internal prototype to avoid an error.
19960 Use char because int might match the return type of a GCC
19961 builtin and then its argument prototype would still apply. */
19962 #ifdef __cplusplus
19963 extern "C"
19964 #endif
19965 char res_init ();
19966 /* The GNU C library defines this for functions which it implements
19967 to always fail with ENOSYS. Some functions are actually named
19968 something starting with __ and the normal name is an alias. */
19969 #if defined __stub_res_init || defined __stub___res_init
19970 choke me
19971 #endif
19972
19973 int
19974 main ()
19975 {
19976 return res_init ();
19977 ;
19978 return 0;
19979 }
19980 _ACEOF
19981 rm -f conftest.$ac_objext conftest$ac_exeext
19982 if { (ac_try="$ac_link"
19983 case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_link") 2>conftest.er1
19989 ac_status=$?
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest$ac_exeext &&
19998 $as_test_x conftest$ac_exeext; then
19999 ac_cv_func_res_init=yes
20000 else
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20003
20004 ac_cv_func_res_init=no
20005 fi
20006
20007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20008 conftest$ac_exeext conftest.$ac_ext
20009 fi
20010 { echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
20011 echo "${ECHO_T}$ac_cv_func_res_init" >&6; }
20012 if test $ac_cv_func_res_init = yes; then
20013 have_res_init=yes
20014 else
20015 have_res_init=no
20016 fi
20017
20018 if test "$have_res_init" = no; then
20019 OLIBS="$LIBS"
20020 LIBS="$LIBS -lresolv"
20021 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20022 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h. */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 #include <netinet/in.h>
20030 #include <arpa/nameser.h>
20031 #include <resolv.h>
20032 int
20033 main ()
20034 {
20035 res_init();
20036 ;
20037 return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest$ac_exeext &&
20057 $as_test_x conftest$ac_exeext; then
20058 have_res_init=yes
20059 else
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063 have_res_init=no
20064 fi
20065
20066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20067 conftest$ac_exeext conftest.$ac_ext
20068 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20069 echo "${ECHO_T}$have_res_init" >&6; }
20070 if test "$have_res_init" = yes ; then
20071 resolv=yes
20072 fi
20073 LIBS="$OLIBS"
20074 fi
20075
20076 if test "$have_res_init" = yes; then
20077
20078 cat >>confdefs.h <<\_ACEOF
20079 #define HAVE_RES_INIT 1
20080 _ACEOF
20081
20082 fi
20083
20084 # Do we need the Hesiod library to provide the support routines?
20085 if test "$with_hesiod" = yes ; then
20086 # Don't set $LIBS here -- see comments above.
20087 { echo "$as_me:$LINENO: checking for res_send" >&5
20088 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20089 if test "${ac_cv_func_res_send+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092 cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h. */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20100 #define res_send innocuous_res_send
20101
20102 /* System header to define __stub macros and hopefully few prototypes,
20103 which can conflict with char res_send (); below.
20104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20105 <limits.h> exists even on freestanding compilers. */
20106
20107 #ifdef __STDC__
20108 # include <limits.h>
20109 #else
20110 # include <assert.h>
20111 #endif
20112
20113 #undef res_send
20114
20115 /* Override any GCC internal prototype to avoid an error.
20116 Use char because int might match the return type of a GCC
20117 builtin and then its argument prototype would still apply. */
20118 #ifdef __cplusplus
20119 extern "C"
20120 #endif
20121 char res_send ();
20122 /* The GNU C library defines this for functions which it implements
20123 to always fail with ENOSYS. Some functions are actually named
20124 something starting with __ and the normal name is an alias. */
20125 #if defined __stub_res_send || defined __stub___res_send
20126 choke me
20127 #endif
20128
20129 int
20130 main ()
20131 {
20132 return res_send ();
20133 ;
20134 return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest.$ac_objext conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_link") 2>conftest.er1
20145 ac_status=$?
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && {
20151 test -z "$ac_c_werror_flag" ||
20152 test ! -s conftest.err
20153 } && test -s conftest$ac_exeext &&
20154 $as_test_x conftest$ac_exeext; then
20155 ac_cv_func_res_send=yes
20156 else
20157 echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160 ac_cv_func_res_send=no
20161 fi
20162
20163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20164 conftest$ac_exeext conftest.$ac_ext
20165 fi
20166 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20167 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20168 if test $ac_cv_func_res_send = yes; then
20169 :
20170 else
20171 { echo "$as_me:$LINENO: checking for __res_send" >&5
20172 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20173 if test "${ac_cv_func___res_send+set}" = set; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20175 else
20176 cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h. */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20182 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20184 #define __res_send innocuous___res_send
20185
20186 /* System header to define __stub macros and hopefully few prototypes,
20187 which can conflict with char __res_send (); below.
20188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20189 <limits.h> exists even on freestanding compilers. */
20190
20191 #ifdef __STDC__
20192 # include <limits.h>
20193 #else
20194 # include <assert.h>
20195 #endif
20196
20197 #undef __res_send
20198
20199 /* Override any GCC internal prototype to avoid an error.
20200 Use char because int might match the return type of a GCC
20201 builtin and then its argument prototype would still apply. */
20202 #ifdef __cplusplus
20203 extern "C"
20204 #endif
20205 char __res_send ();
20206 /* The GNU C library defines this for functions which it implements
20207 to always fail with ENOSYS. Some functions are actually named
20208 something starting with __ and the normal name is an alias. */
20209 #if defined __stub___res_send || defined __stub_____res_send
20210 choke me
20211 #endif
20212
20213 int
20214 main ()
20215 {
20216 return __res_send ();
20217 ;
20218 return 0;
20219 }
20220 _ACEOF
20221 rm -f conftest.$ac_objext conftest$ac_exeext
20222 if { (ac_try="$ac_link"
20223 case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20226 esac
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_link") 2>conftest.er1
20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && {
20235 test -z "$ac_c_werror_flag" ||
20236 test ! -s conftest.err
20237 } && test -s conftest$ac_exeext &&
20238 $as_test_x conftest$ac_exeext; then
20239 ac_cv_func___res_send=yes
20240 else
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20243
20244 ac_cv_func___res_send=no
20245 fi
20246
20247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20248 conftest$ac_exeext conftest.$ac_ext
20249 fi
20250 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20251 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20252 if test $ac_cv_func___res_send = yes; then
20253 :
20254 else
20255 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20256 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20257 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 else
20260 ac_check_lib_save_LIBS=$LIBS
20261 LIBS="-lresolv $LIBS"
20262 cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h. */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20268
20269 /* Override any GCC internal prototype to avoid an error.
20270 Use char because int might match the return type of a GCC
20271 builtin and then its argument prototype would still apply. */
20272 #ifdef __cplusplus
20273 extern "C"
20274 #endif
20275 char res_send ();
20276 int
20277 main ()
20278 {
20279 return res_send ();
20280 ;
20281 return 0;
20282 }
20283 _ACEOF
20284 rm -f conftest.$ac_objext conftest$ac_exeext
20285 if { (ac_try="$ac_link"
20286 case "(($ac_try" in
20287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288 *) ac_try_echo=$ac_try;;
20289 esac
20290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20291 (eval "$ac_link") 2>conftest.er1
20292 ac_status=$?
20293 grep -v '^ *+' conftest.er1 >conftest.err
20294 rm -f conftest.er1
20295 cat conftest.err >&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } && {
20298 test -z "$ac_c_werror_flag" ||
20299 test ! -s conftest.err
20300 } && test -s conftest$ac_exeext &&
20301 $as_test_x conftest$ac_exeext; then
20302 ac_cv_lib_resolv_res_send=yes
20303 else
20304 echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20306
20307 ac_cv_lib_resolv_res_send=no
20308 fi
20309
20310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20311 conftest$ac_exeext conftest.$ac_ext
20312 LIBS=$ac_check_lib_save_LIBS
20313 fi
20314 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20315 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20316 if test $ac_cv_lib_resolv_res_send = yes; then
20317 resolv=yes
20318 else
20319 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20320 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20321 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324 ac_check_lib_save_LIBS=$LIBS
20325 LIBS="-lresolv $LIBS"
20326 cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h. */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20332
20333 /* Override any GCC internal prototype to avoid an error.
20334 Use char because int might match the return type of a GCC
20335 builtin and then its argument prototype would still apply. */
20336 #ifdef __cplusplus
20337 extern "C"
20338 #endif
20339 char __res_send ();
20340 int
20341 main ()
20342 {
20343 return __res_send ();
20344 ;
20345 return 0;
20346 }
20347 _ACEOF
20348 rm -f conftest.$ac_objext conftest$ac_exeext
20349 if { (ac_try="$ac_link"
20350 case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_link") 2>conftest.er1
20356 ac_status=$?
20357 grep -v '^ *+' conftest.er1 >conftest.err
20358 rm -f conftest.er1
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } && {
20362 test -z "$ac_c_werror_flag" ||
20363 test ! -s conftest.err
20364 } && test -s conftest$ac_exeext &&
20365 $as_test_x conftest$ac_exeext; then
20366 ac_cv_lib_resolv___res_send=yes
20367 else
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20370
20371 ac_cv_lib_resolv___res_send=no
20372 fi
20373
20374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20375 conftest$ac_exeext conftest.$ac_ext
20376 LIBS=$ac_check_lib_save_LIBS
20377 fi
20378 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20379 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20380 if test $ac_cv_lib_resolv___res_send = yes; then
20381 resolv=yes
20382 fi
20383
20384 fi
20385
20386 fi
20387
20388 fi
20389
20390 if test "$resolv" = yes ; then
20391 RESOLVLIB=-lresolv
20392 else
20393 RESOLVLIB=
20394 fi
20395 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20396 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20397 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 else
20400 cat >conftest.$ac_ext <<_ACEOF
20401 /* confdefs.h. */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20406 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20408 #define hes_getmailhost innocuous_hes_getmailhost
20409
20410 /* System header to define __stub macros and hopefully few prototypes,
20411 which can conflict with char hes_getmailhost (); below.
20412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20413 <limits.h> exists even on freestanding compilers. */
20414
20415 #ifdef __STDC__
20416 # include <limits.h>
20417 #else
20418 # include <assert.h>
20419 #endif
20420
20421 #undef hes_getmailhost
20422
20423 /* Override any GCC internal prototype to avoid an error.
20424 Use char because int might match the return type of a GCC
20425 builtin and then its argument prototype would still apply. */
20426 #ifdef __cplusplus
20427 extern "C"
20428 #endif
20429 char hes_getmailhost ();
20430 /* The GNU C library defines this for functions which it implements
20431 to always fail with ENOSYS. Some functions are actually named
20432 something starting with __ and the normal name is an alias. */
20433 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20434 choke me
20435 #endif
20436
20437 int
20438 main ()
20439 {
20440 return hes_getmailhost ();
20441 ;
20442 return 0;
20443 }
20444 _ACEOF
20445 rm -f conftest.$ac_objext conftest$ac_exeext
20446 if { (ac_try="$ac_link"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_link") 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } && {
20459 test -z "$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest$ac_exeext &&
20462 $as_test_x conftest$ac_exeext; then
20463 ac_cv_func_hes_getmailhost=yes
20464 else
20465 echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.$ac_ext >&5
20467
20468 ac_cv_func_hes_getmailhost=no
20469 fi
20470
20471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20472 conftest$ac_exeext conftest.$ac_ext
20473 fi
20474 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20475 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20476 if test $ac_cv_func_hes_getmailhost = yes; then
20477 :
20478 else
20479 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20480 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20481 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20483 else
20484 ac_check_lib_save_LIBS=$LIBS
20485 LIBS="-lhesiod $RESOLVLIB $LIBS"
20486 cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h. */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20492
20493 /* Override any GCC internal prototype to avoid an error.
20494 Use char because int might match the return type of a GCC
20495 builtin and then its argument prototype would still apply. */
20496 #ifdef __cplusplus
20497 extern "C"
20498 #endif
20499 char hes_getmailhost ();
20500 int
20501 main ()
20502 {
20503 return hes_getmailhost ();
20504 ;
20505 return 0;
20506 }
20507 _ACEOF
20508 rm -f conftest.$ac_objext conftest$ac_exeext
20509 if { (ac_try="$ac_link"
20510 case "(($ac_try" in
20511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512 *) ac_try_echo=$ac_try;;
20513 esac
20514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20515 (eval "$ac_link") 2>conftest.er1
20516 ac_status=$?
20517 grep -v '^ *+' conftest.er1 >conftest.err
20518 rm -f conftest.er1
20519 cat conftest.err >&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } && {
20522 test -z "$ac_c_werror_flag" ||
20523 test ! -s conftest.err
20524 } && test -s conftest$ac_exeext &&
20525 $as_test_x conftest$ac_exeext; then
20526 ac_cv_lib_hesiod_hes_getmailhost=yes
20527 else
20528 echo "$as_me: failed program was:" >&5
20529 sed 's/^/| /' conftest.$ac_ext >&5
20530
20531 ac_cv_lib_hesiod_hes_getmailhost=no
20532 fi
20533
20534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20535 conftest$ac_exeext conftest.$ac_ext
20536 LIBS=$ac_check_lib_save_LIBS
20537 fi
20538 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20539 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20540 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20541
20542 cat >>confdefs.h <<\_ACEOF
20543 #define HAVE_LIBHESIOD 1
20544 _ACEOF
20545
20546 else
20547 :
20548 fi
20549
20550 fi
20551
20552 fi
20553
20554 # Do we need libresolv (due to res_init or Hesiod)?
20555 if test "$resolv" = yes ; then
20556
20557 cat >>confdefs.h <<\_ACEOF
20558 #define HAVE_LIBRESOLV 1
20559 _ACEOF
20560
20561 fi
20562
20563 # These tell us which Kerberos-related libraries to use.
20564 if test "${with_kerberos+set}" = set; then
20565
20566 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20567 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20568 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 else
20571 ac_check_lib_save_LIBS=$LIBS
20572 LIBS="-lcom_err $LIBS"
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h. */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579
20580 /* Override any GCC internal prototype to avoid an error.
20581 Use char because int might match the return type of a GCC
20582 builtin and then its argument prototype would still apply. */
20583 #ifdef __cplusplus
20584 extern "C"
20585 #endif
20586 char com_err ();
20587 int
20588 main ()
20589 {
20590 return com_err ();
20591 ;
20592 return 0;
20593 }
20594 _ACEOF
20595 rm -f conftest.$ac_objext conftest$ac_exeext
20596 if { (ac_try="$ac_link"
20597 case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20600 esac
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_link") 2>conftest.er1
20603 ac_status=$?
20604 grep -v '^ *+' conftest.er1 >conftest.err
20605 rm -f conftest.er1
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } && {
20609 test -z "$ac_c_werror_flag" ||
20610 test ! -s conftest.err
20611 } && test -s conftest$ac_exeext &&
20612 $as_test_x conftest$ac_exeext; then
20613 ac_cv_lib_com_err_com_err=yes
20614 else
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20617
20618 ac_cv_lib_com_err_com_err=no
20619 fi
20620
20621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20622 conftest$ac_exeext conftest.$ac_ext
20623 LIBS=$ac_check_lib_save_LIBS
20624 fi
20625 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20626 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20627 if test $ac_cv_lib_com_err_com_err = yes; then
20628 cat >>confdefs.h <<_ACEOF
20629 #define HAVE_LIBCOM_ERR 1
20630 _ACEOF
20631
20632 LIBS="-lcom_err $LIBS"
20633
20634 fi
20635
20636
20637 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20638 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20639 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20641 else
20642 ac_check_lib_save_LIBS=$LIBS
20643 LIBS="-lk5crypto $LIBS"
20644 cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h. */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650
20651 /* Override any GCC internal prototype to avoid an error.
20652 Use char because int might match the return type of a GCC
20653 builtin and then its argument prototype would still apply. */
20654 #ifdef __cplusplus
20655 extern "C"
20656 #endif
20657 char mit_des_cbc_encrypt ();
20658 int
20659 main ()
20660 {
20661 return mit_des_cbc_encrypt ();
20662 ;
20663 return 0;
20664 }
20665 _ACEOF
20666 rm -f conftest.$ac_objext conftest$ac_exeext
20667 if { (ac_try="$ac_link"
20668 case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_link") 2>conftest.er1
20674 ac_status=$?
20675 grep -v '^ *+' conftest.er1 >conftest.err
20676 rm -f conftest.er1
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } && {
20680 test -z "$ac_c_werror_flag" ||
20681 test ! -s conftest.err
20682 } && test -s conftest$ac_exeext &&
20683 $as_test_x conftest$ac_exeext; then
20684 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20685 else
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20690 fi
20691
20692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20693 conftest$ac_exeext conftest.$ac_ext
20694 LIBS=$ac_check_lib_save_LIBS
20695 fi
20696 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20697 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20698 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20699 cat >>confdefs.h <<_ACEOF
20700 #define HAVE_LIBK5CRYPTO 1
20701 _ACEOF
20702
20703 LIBS="-lk5crypto $LIBS"
20704
20705 fi
20706
20707
20708 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20709 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20710 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20711 echo $ECHO_N "(cached) $ECHO_C" >&6
20712 else
20713 ac_check_lib_save_LIBS=$LIBS
20714 LIBS="-lcrypto $LIBS"
20715 cat >conftest.$ac_ext <<_ACEOF
20716 /* confdefs.h. */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20721
20722 /* Override any GCC internal prototype to avoid an error.
20723 Use char because int might match the return type of a GCC
20724 builtin and then its argument prototype would still apply. */
20725 #ifdef __cplusplus
20726 extern "C"
20727 #endif
20728 char mit_des_cbc_encrypt ();
20729 int
20730 main ()
20731 {
20732 return mit_des_cbc_encrypt ();
20733 ;
20734 return 0;
20735 }
20736 _ACEOF
20737 rm -f conftest.$ac_objext conftest$ac_exeext
20738 if { (ac_try="$ac_link"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_link") 2>conftest.er1
20745 ac_status=$?
20746 grep -v '^ *+' conftest.er1 >conftest.err
20747 rm -f conftest.er1
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } && {
20751 test -z "$ac_c_werror_flag" ||
20752 test ! -s conftest.err
20753 } && test -s conftest$ac_exeext &&
20754 $as_test_x conftest$ac_exeext; then
20755 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20756 else
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20761 fi
20762
20763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20764 conftest$ac_exeext conftest.$ac_ext
20765 LIBS=$ac_check_lib_save_LIBS
20766 fi
20767 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20768 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20769 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20770 cat >>confdefs.h <<_ACEOF
20771 #define HAVE_LIBCRYPTO 1
20772 _ACEOF
20773
20774 LIBS="-lcrypto $LIBS"
20775
20776 fi
20777
20778
20779 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20780 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20781 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20783 else
20784 ac_check_lib_save_LIBS=$LIBS
20785 LIBS="-lkrb5 $LIBS"
20786 cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h. */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792
20793 /* Override any GCC internal prototype to avoid an error.
20794 Use char because int might match the return type of a GCC
20795 builtin and then its argument prototype would still apply. */
20796 #ifdef __cplusplus
20797 extern "C"
20798 #endif
20799 char krb5_init_context ();
20800 int
20801 main ()
20802 {
20803 return krb5_init_context ();
20804 ;
20805 return 0;
20806 }
20807 _ACEOF
20808 rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (ac_try="$ac_link"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_link") 2>conftest.er1
20816 ac_status=$?
20817 grep -v '^ *+' conftest.er1 >conftest.err
20818 rm -f conftest.er1
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } && {
20822 test -z "$ac_c_werror_flag" ||
20823 test ! -s conftest.err
20824 } && test -s conftest$ac_exeext &&
20825 $as_test_x conftest$ac_exeext; then
20826 ac_cv_lib_krb5_krb5_init_context=yes
20827 else
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20830
20831 ac_cv_lib_krb5_krb5_init_context=no
20832 fi
20833
20834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20835 conftest$ac_exeext conftest.$ac_ext
20836 LIBS=$ac_check_lib_save_LIBS
20837 fi
20838 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20839 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20840 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20841 cat >>confdefs.h <<_ACEOF
20842 #define HAVE_LIBKRB5 1
20843 _ACEOF
20844
20845 LIBS="-lkrb5 $LIBS"
20846
20847 fi
20848
20849 if test "${with_kerberos5+set}" != set; then
20850
20851 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20852 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20853 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20855 else
20856 ac_check_lib_save_LIBS=$LIBS
20857 LIBS="-ldes425 $LIBS"
20858 cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h. */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20864
20865 /* Override any GCC internal prototype to avoid an error.
20866 Use char because int might match the return type of a GCC
20867 builtin and then its argument prototype would still apply. */
20868 #ifdef __cplusplus
20869 extern "C"
20870 #endif
20871 char des_cbc_encrypt ();
20872 int
20873 main ()
20874 {
20875 return des_cbc_encrypt ();
20876 ;
20877 return 0;
20878 }
20879 _ACEOF
20880 rm -f conftest.$ac_objext conftest$ac_exeext
20881 if { (ac_try="$ac_link"
20882 case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20885 esac
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_link") 2>conftest.er1
20888 ac_status=$?
20889 grep -v '^ *+' conftest.er1 >conftest.err
20890 rm -f conftest.er1
20891 cat conftest.err >&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && {
20894 test -z "$ac_c_werror_flag" ||
20895 test ! -s conftest.err
20896 } && test -s conftest$ac_exeext &&
20897 $as_test_x conftest$ac_exeext; then
20898 ac_cv_lib_des425_des_cbc_encrypt=yes
20899 else
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20902
20903 ac_cv_lib_des425_des_cbc_encrypt=no
20904 fi
20905
20906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20907 conftest$ac_exeext conftest.$ac_ext
20908 LIBS=$ac_check_lib_save_LIBS
20909 fi
20910 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20911 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20912 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20913 cat >>confdefs.h <<_ACEOF
20914 #define HAVE_LIBDES425 1
20915 _ACEOF
20916
20917 LIBS="-ldes425 $LIBS"
20918
20919 else
20920
20921 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20922 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20923 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926 ac_check_lib_save_LIBS=$LIBS
20927 LIBS="-ldes $LIBS"
20928 cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h. */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h. */
20934
20935 /* Override any GCC internal prototype to avoid an error.
20936 Use char because int might match the return type of a GCC
20937 builtin and then its argument prototype would still apply. */
20938 #ifdef __cplusplus
20939 extern "C"
20940 #endif
20941 char des_cbc_encrypt ();
20942 int
20943 main ()
20944 {
20945 return des_cbc_encrypt ();
20946 ;
20947 return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest.$ac_objext conftest$ac_exeext
20951 if { (ac_try="$ac_link"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_link") 2>conftest.er1
20958 ac_status=$?
20959 grep -v '^ *+' conftest.er1 >conftest.err
20960 rm -f conftest.er1
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } && {
20964 test -z "$ac_c_werror_flag" ||
20965 test ! -s conftest.err
20966 } && test -s conftest$ac_exeext &&
20967 $as_test_x conftest$ac_exeext; then
20968 ac_cv_lib_des_des_cbc_encrypt=yes
20969 else
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20972
20973 ac_cv_lib_des_des_cbc_encrypt=no
20974 fi
20975
20976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20977 conftest$ac_exeext conftest.$ac_ext
20978 LIBS=$ac_check_lib_save_LIBS
20979 fi
20980 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20981 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20982 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20983 cat >>confdefs.h <<_ACEOF
20984 #define HAVE_LIBDES 1
20985 _ACEOF
20986
20987 LIBS="-ldes $LIBS"
20988
20989 fi
20990
20991 fi
20992
20993
20994 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20995 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20996 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 else
20999 ac_check_lib_save_LIBS=$LIBS
21000 LIBS="-lkrb4 $LIBS"
21001 cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h. */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007
21008 /* Override any GCC internal prototype to avoid an error.
21009 Use char because int might match the return type of a GCC
21010 builtin and then its argument prototype would still apply. */
21011 #ifdef __cplusplus
21012 extern "C"
21013 #endif
21014 char krb_get_cred ();
21015 int
21016 main ()
21017 {
21018 return krb_get_cred ();
21019 ;
21020 return 0;
21021 }
21022 _ACEOF
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (ac_try="$ac_link"
21025 case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21028 esac
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_link") 2>conftest.er1
21031 ac_status=$?
21032 grep -v '^ *+' conftest.er1 >conftest.err
21033 rm -f conftest.er1
21034 cat conftest.err >&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest$ac_exeext &&
21040 $as_test_x conftest$ac_exeext; then
21041 ac_cv_lib_krb4_krb_get_cred=yes
21042 else
21043 echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21045
21046 ac_cv_lib_krb4_krb_get_cred=no
21047 fi
21048
21049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21050 conftest$ac_exeext conftest.$ac_ext
21051 LIBS=$ac_check_lib_save_LIBS
21052 fi
21053 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21054 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21055 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21056 cat >>confdefs.h <<_ACEOF
21057 #define HAVE_LIBKRB4 1
21058 _ACEOF
21059
21060 LIBS="-lkrb4 $LIBS"
21061
21062 else
21063
21064 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21065 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21066 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21069 ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-lkrb $LIBS"
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h. */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077
21078 /* Override any GCC internal prototype to avoid an error.
21079 Use char because int might match the return type of a GCC
21080 builtin and then its argument prototype would still apply. */
21081 #ifdef __cplusplus
21082 extern "C"
21083 #endif
21084 char krb_get_cred ();
21085 int
21086 main ()
21087 {
21088 return krb_get_cred ();
21089 ;
21090 return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_link") 2>conftest.er1
21101 ac_status=$?
21102 grep -v '^ *+' conftest.er1 >conftest.err
21103 rm -f conftest.er1
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } && {
21107 test -z "$ac_c_werror_flag" ||
21108 test ! -s conftest.err
21109 } && test -s conftest$ac_exeext &&
21110 $as_test_x conftest$ac_exeext; then
21111 ac_cv_lib_krb_krb_get_cred=yes
21112 else
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21115
21116 ac_cv_lib_krb_krb_get_cred=no
21117 fi
21118
21119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21120 conftest$ac_exeext conftest.$ac_ext
21121 LIBS=$ac_check_lib_save_LIBS
21122 fi
21123 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21124 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21125 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21126 cat >>confdefs.h <<_ACEOF
21127 #define HAVE_LIBKRB 1
21128 _ACEOF
21129
21130 LIBS="-lkrb $LIBS"
21131
21132 fi
21133
21134 fi
21135
21136 fi
21137
21138 if test "${with_kerberos5+set}" = set; then
21139
21140 for ac_header in krb5.h
21141 do
21142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21148 fi
21149 ac_res=`eval echo '${'$as_ac_Header'}'`
21150 { echo "$as_me:$LINENO: result: $ac_res" >&5
21151 echo "${ECHO_T}$ac_res" >&6; }
21152 else
21153 # Is the header compilable?
21154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h. */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 $ac_includes_default
21163 #include <$ac_header>
21164 _ACEOF
21165 rm -f conftest.$ac_objext
21166 if { (ac_try="$ac_compile"
21167 case "(($ac_try" in
21168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169 *) ac_try_echo=$ac_try;;
21170 esac
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172 (eval "$ac_compile") 2>conftest.er1
21173 ac_status=$?
21174 grep -v '^ *+' conftest.er1 >conftest.err
21175 rm -f conftest.er1
21176 cat conftest.err >&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } && {
21179 test -z "$ac_c_werror_flag" ||
21180 test ! -s conftest.err
21181 } && test -s conftest.$ac_objext; then
21182 ac_header_compiler=yes
21183 else
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21186
21187 ac_header_compiler=no
21188 fi
21189
21190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21192 echo "${ECHO_T}$ac_header_compiler" >&6; }
21193
21194 # Is the header present?
21195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21197 cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h. */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21203 #include <$ac_header>
21204 _ACEOF
21205 if { (ac_try="$ac_cpp conftest.$ac_ext"
21206 case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21209 esac
21210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21212 ac_status=$?
21213 grep -v '^ *+' conftest.er1 >conftest.err
21214 rm -f conftest.er1
21215 cat conftest.err >&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } >/dev/null && {
21218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21219 test ! -s conftest.err
21220 }; then
21221 ac_header_preproc=yes
21222 else
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226 ac_header_preproc=no
21227 fi
21228
21229 rm -f conftest.err conftest.$ac_ext
21230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21231 echo "${ECHO_T}$ac_header_preproc" >&6; }
21232
21233 # So? What about this header?
21234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21235 yes:no: )
21236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21240 ac_header_preproc=yes
21241 ;;
21242 no:yes:* )
21243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21255
21256 ;;
21257 esac
21258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 else
21263 eval "$as_ac_Header=\$ac_header_preproc"
21264 fi
21265 ac_res=`eval echo '${'$as_ac_Header'}'`
21266 { echo "$as_me:$LINENO: result: $ac_res" >&5
21267 echo "${ECHO_T}$ac_res" >&6; }
21268
21269 fi
21270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21271 cat >>confdefs.h <<_ACEOF
21272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21273 _ACEOF
21274
21275 fi
21276
21277 done
21278
21279 else
21280
21281 for ac_header in des.h
21282 do
21283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21289 fi
21290 ac_res=`eval echo '${'$as_ac_Header'}'`
21291 { echo "$as_me:$LINENO: result: $ac_res" >&5
21292 echo "${ECHO_T}$ac_res" >&6; }
21293 else
21294 # Is the header compilable?
21295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21297 cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h. */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 $ac_includes_default
21304 #include <$ac_header>
21305 _ACEOF
21306 rm -f conftest.$ac_objext
21307 if { (ac_try="$ac_compile"
21308 case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21311 esac
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313 (eval "$ac_compile") 2>conftest.er1
21314 ac_status=$?
21315 grep -v '^ *+' conftest.er1 >conftest.err
21316 rm -f conftest.er1
21317 cat conftest.err >&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); } && {
21320 test -z "$ac_c_werror_flag" ||
21321 test ! -s conftest.err
21322 } && test -s conftest.$ac_objext; then
21323 ac_header_compiler=yes
21324 else
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328 ac_header_compiler=no
21329 fi
21330
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21333 echo "${ECHO_T}$ac_header_compiler" >&6; }
21334
21335 # Is the header present?
21336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21338 cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h. */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 #include <$ac_header>
21345 _ACEOF
21346 if { (ac_try="$ac_cpp conftest.$ac_ext"
21347 case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21350 esac
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21353 ac_status=$?
21354 grep -v '^ *+' conftest.er1 >conftest.err
21355 rm -f conftest.er1
21356 cat conftest.err >&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } >/dev/null && {
21359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21360 test ! -s conftest.err
21361 }; then
21362 ac_header_preproc=yes
21363 else
21364 echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21366
21367 ac_header_preproc=no
21368 fi
21369
21370 rm -f conftest.err conftest.$ac_ext
21371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21372 echo "${ECHO_T}$ac_header_preproc" >&6; }
21373
21374 # So? What about this header?
21375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21376 yes:no: )
21377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21381 ac_header_preproc=yes
21382 ;;
21383 no:yes:* )
21384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21396
21397 ;;
21398 esac
21399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21403 else
21404 eval "$as_ac_Header=\$ac_header_preproc"
21405 fi
21406 ac_res=`eval echo '${'$as_ac_Header'}'`
21407 { echo "$as_me:$LINENO: result: $ac_res" >&5
21408 echo "${ECHO_T}$ac_res" >&6; }
21409
21410 fi
21411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21412 cat >>confdefs.h <<_ACEOF
21413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21414 _ACEOF
21415
21416 else
21417
21418 for ac_header in kerberosIV/des.h
21419 do
21420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21426 fi
21427 ac_res=`eval echo '${'$as_ac_Header'}'`
21428 { echo "$as_me:$LINENO: result: $ac_res" >&5
21429 echo "${ECHO_T}$ac_res" >&6; }
21430 else
21431 # Is the header compilable?
21432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21434 cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h. */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h. */
21440 $ac_includes_default
21441 #include <$ac_header>
21442 _ACEOF
21443 rm -f conftest.$ac_objext
21444 if { (ac_try="$ac_compile"
21445 case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21448 esac
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_compile") 2>conftest.er1
21451 ac_status=$?
21452 grep -v '^ *+' conftest.er1 >conftest.err
21453 rm -f conftest.er1
21454 cat conftest.err >&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } && {
21457 test -z "$ac_c_werror_flag" ||
21458 test ! -s conftest.err
21459 } && test -s conftest.$ac_objext; then
21460 ac_header_compiler=yes
21461 else
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21464
21465 ac_header_compiler=no
21466 fi
21467
21468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21470 echo "${ECHO_T}$ac_header_compiler" >&6; }
21471
21472 # Is the header present?
21473 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21475 cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h. */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 #include <$ac_header>
21482 _ACEOF
21483 if { (ac_try="$ac_cpp conftest.$ac_ext"
21484 case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21487 esac
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21490 ac_status=$?
21491 grep -v '^ *+' conftest.er1 >conftest.err
21492 rm -f conftest.er1
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } >/dev/null && {
21496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21497 test ! -s conftest.err
21498 }; then
21499 ac_header_preproc=yes
21500 else
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504 ac_header_preproc=no
21505 fi
21506
21507 rm -f conftest.err conftest.$ac_ext
21508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21509 echo "${ECHO_T}$ac_header_preproc" >&6; }
21510
21511 # So? What about this header?
21512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21513 yes:no: )
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21518 ac_header_preproc=yes
21519 ;;
21520 no:yes:* )
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21533
21534 ;;
21535 esac
21536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 else
21541 eval "$as_ac_Header=\$ac_header_preproc"
21542 fi
21543 ac_res=`eval echo '${'$as_ac_Header'}'`
21544 { echo "$as_me:$LINENO: result: $ac_res" >&5
21545 echo "${ECHO_T}$ac_res" >&6; }
21546
21547 fi
21548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21549 cat >>confdefs.h <<_ACEOF
21550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21551 _ACEOF
21552
21553 else
21554
21555 for ac_header in kerberos/des.h
21556 do
21557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21563 fi
21564 ac_res=`eval echo '${'$as_ac_Header'}'`
21565 { echo "$as_me:$LINENO: result: $ac_res" >&5
21566 echo "${ECHO_T}$ac_res" >&6; }
21567 else
21568 # Is the header compilable?
21569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21571 cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h. */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 $ac_includes_default
21578 #include <$ac_header>
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (ac_try="$ac_compile"
21582 case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_compile") 2>conftest.er1
21588 ac_status=$?
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } && {
21594 test -z "$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 } && test -s conftest.$ac_objext; then
21597 ac_header_compiler=yes
21598 else
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21601
21602 ac_header_compiler=no
21603 fi
21604
21605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21607 echo "${ECHO_T}$ac_header_compiler" >&6; }
21608
21609 # Is the header present?
21610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21612 cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h. */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 #include <$ac_header>
21619 _ACEOF
21620 if { (ac_try="$ac_cpp conftest.$ac_ext"
21621 case "(($ac_try" in
21622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623 *) ac_try_echo=$ac_try;;
21624 esac
21625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21627 ac_status=$?
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } >/dev/null && {
21633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21634 test ! -s conftest.err
21635 }; then
21636 ac_header_preproc=yes
21637 else
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641 ac_header_preproc=no
21642 fi
21643
21644 rm -f conftest.err conftest.$ac_ext
21645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21646 echo "${ECHO_T}$ac_header_preproc" >&6; }
21647
21648 # So? What about this header?
21649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21650 yes:no: )
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21655 ac_header_preproc=yes
21656 ;;
21657 no:yes:* )
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21670
21671 ;;
21672 esac
21673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678 eval "$as_ac_Header=\$ac_header_preproc"
21679 fi
21680 ac_res=`eval echo '${'$as_ac_Header'}'`
21681 { echo "$as_me:$LINENO: result: $ac_res" >&5
21682 echo "${ECHO_T}$ac_res" >&6; }
21683
21684 fi
21685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21686 cat >>confdefs.h <<_ACEOF
21687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21688 _ACEOF
21689
21690 fi
21691
21692 done
21693
21694 fi
21695
21696 done
21697
21698 fi
21699
21700 done
21701
21702
21703 for ac_header in krb.h
21704 do
21705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21711 fi
21712 ac_res=`eval echo '${'$as_ac_Header'}'`
21713 { echo "$as_me:$LINENO: result: $ac_res" >&5
21714 echo "${ECHO_T}$ac_res" >&6; }
21715 else
21716 # Is the header compilable?
21717 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21719 cat >conftest.$ac_ext <<_ACEOF
21720 /* confdefs.h. */
21721 _ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21725 $ac_includes_default
21726 #include <$ac_header>
21727 _ACEOF
21728 rm -f conftest.$ac_objext
21729 if { (ac_try="$ac_compile"
21730 case "(($ac_try" in
21731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732 *) ac_try_echo=$ac_try;;
21733 esac
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735 (eval "$ac_compile") 2>conftest.er1
21736 ac_status=$?
21737 grep -v '^ *+' conftest.er1 >conftest.err
21738 rm -f conftest.er1
21739 cat conftest.err >&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } && {
21742 test -z "$ac_c_werror_flag" ||
21743 test ! -s conftest.err
21744 } && test -s conftest.$ac_objext; then
21745 ac_header_compiler=yes
21746 else
21747 echo "$as_me: failed program was:" >&5
21748 sed 's/^/| /' conftest.$ac_ext >&5
21749
21750 ac_header_compiler=no
21751 fi
21752
21753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21755 echo "${ECHO_T}$ac_header_compiler" >&6; }
21756
21757 # Is the header present?
21758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21760 cat >conftest.$ac_ext <<_ACEOF
21761 /* confdefs.h. */
21762 _ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h. */
21766 #include <$ac_header>
21767 _ACEOF
21768 if { (ac_try="$ac_cpp conftest.$ac_ext"
21769 case "(($ac_try" in
21770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771 *) ac_try_echo=$ac_try;;
21772 esac
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21775 ac_status=$?
21776 grep -v '^ *+' conftest.er1 >conftest.err
21777 rm -f conftest.er1
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } >/dev/null && {
21781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21782 test ! -s conftest.err
21783 }; then
21784 ac_header_preproc=yes
21785 else
21786 echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21788
21789 ac_header_preproc=no
21790 fi
21791
21792 rm -f conftest.err conftest.$ac_ext
21793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21794 echo "${ECHO_T}$ac_header_preproc" >&6; }
21795
21796 # So? What about this header?
21797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21798 yes:no: )
21799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21803 ac_header_preproc=yes
21804 ;;
21805 no:yes:* )
21806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21818
21819 ;;
21820 esac
21821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 else
21826 eval "$as_ac_Header=\$ac_header_preproc"
21827 fi
21828 ac_res=`eval echo '${'$as_ac_Header'}'`
21829 { echo "$as_me:$LINENO: result: $ac_res" >&5
21830 echo "${ECHO_T}$ac_res" >&6; }
21831
21832 fi
21833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21834 cat >>confdefs.h <<_ACEOF
21835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21836 _ACEOF
21837
21838 else
21839
21840 for ac_header in kerberosIV/krb.h
21841 do
21842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21847 echo $ECHO_N "(cached) $ECHO_C" >&6
21848 fi
21849 ac_res=`eval echo '${'$as_ac_Header'}'`
21850 { echo "$as_me:$LINENO: result: $ac_res" >&5
21851 echo "${ECHO_T}$ac_res" >&6; }
21852 else
21853 # Is the header compilable?
21854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21856 cat >conftest.$ac_ext <<_ACEOF
21857 /* confdefs.h. */
21858 _ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21862 $ac_includes_default
21863 #include <$ac_header>
21864 _ACEOF
21865 rm -f conftest.$ac_objext
21866 if { (ac_try="$ac_compile"
21867 case "(($ac_try" in
21868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869 *) ac_try_echo=$ac_try;;
21870 esac
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872 (eval "$ac_compile") 2>conftest.er1
21873 ac_status=$?
21874 grep -v '^ *+' conftest.er1 >conftest.err
21875 rm -f conftest.er1
21876 cat conftest.err >&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } && {
21879 test -z "$ac_c_werror_flag" ||
21880 test ! -s conftest.err
21881 } && test -s conftest.$ac_objext; then
21882 ac_header_compiler=yes
21883 else
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21886
21887 ac_header_compiler=no
21888 fi
21889
21890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21892 echo "${ECHO_T}$ac_header_compiler" >&6; }
21893
21894 # Is the header present?
21895 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21897 cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h. */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 #include <$ac_header>
21904 _ACEOF
21905 if { (ac_try="$ac_cpp conftest.$ac_ext"
21906 case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21909 esac
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21912 ac_status=$?
21913 grep -v '^ *+' conftest.er1 >conftest.err
21914 rm -f conftest.er1
21915 cat conftest.err >&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } >/dev/null && {
21918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 }; then
21921 ac_header_preproc=yes
21922 else
21923 echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21925
21926 ac_header_preproc=no
21927 fi
21928
21929 rm -f conftest.err conftest.$ac_ext
21930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21931 echo "${ECHO_T}$ac_header_preproc" >&6; }
21932
21933 # So? What about this header?
21934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21935 yes:no: )
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21940 ac_header_preproc=yes
21941 ;;
21942 no:yes:* )
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21955
21956 ;;
21957 esac
21958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21963 eval "$as_ac_Header=\$ac_header_preproc"
21964 fi
21965 ac_res=`eval echo '${'$as_ac_Header'}'`
21966 { echo "$as_me:$LINENO: result: $ac_res" >&5
21967 echo "${ECHO_T}$ac_res" >&6; }
21968
21969 fi
21970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21971 cat >>confdefs.h <<_ACEOF
21972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21973 _ACEOF
21974
21975 else
21976
21977 for ac_header in kerberos/krb.h
21978 do
21979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21984 echo $ECHO_N "(cached) $ECHO_C" >&6
21985 fi
21986 ac_res=`eval echo '${'$as_ac_Header'}'`
21987 { echo "$as_me:$LINENO: result: $ac_res" >&5
21988 echo "${ECHO_T}$ac_res" >&6; }
21989 else
21990 # Is the header compilable?
21991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h. */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 $ac_includes_default
22000 #include <$ac_header>
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_compile") 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && {
22016 test -z "$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22018 } && test -s conftest.$ac_objext; then
22019 ac_header_compiler=yes
22020 else
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22023
22024 ac_header_compiler=no
22025 fi
22026
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22029 echo "${ECHO_T}$ac_header_compiler" >&6; }
22030
22031 # Is the header present?
22032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22034 cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h. */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 #include <$ac_header>
22041 _ACEOF
22042 if { (ac_try="$ac_cpp conftest.$ac_ext"
22043 case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22046 esac
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22049 ac_status=$?
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } >/dev/null && {
22055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22057 }; then
22058 ac_header_preproc=yes
22059 else
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22062
22063 ac_header_preproc=no
22064 fi
22065
22066 rm -f conftest.err conftest.$ac_ext
22067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22068 echo "${ECHO_T}$ac_header_preproc" >&6; }
22069
22070 # So? What about this header?
22071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22072 yes:no: )
22073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22077 ac_header_preproc=yes
22078 ;;
22079 no:yes:* )
22080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22092
22093 ;;
22094 esac
22095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 else
22100 eval "$as_ac_Header=\$ac_header_preproc"
22101 fi
22102 ac_res=`eval echo '${'$as_ac_Header'}'`
22103 { echo "$as_me:$LINENO: result: $ac_res" >&5
22104 echo "${ECHO_T}$ac_res" >&6; }
22105
22106 fi
22107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22108 cat >>confdefs.h <<_ACEOF
22109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22110 _ACEOF
22111
22112 fi
22113
22114 done
22115
22116 fi
22117
22118 done
22119
22120 fi
22121
22122 done
22123
22124 fi
22125
22126 for ac_header in com_err.h
22127 do
22128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 fi
22135 ac_res=`eval echo '${'$as_ac_Header'}'`
22136 { echo "$as_me:$LINENO: result: $ac_res" >&5
22137 echo "${ECHO_T}$ac_res" >&6; }
22138 else
22139 # Is the header compilable?
22140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22142 cat >conftest.$ac_ext <<_ACEOF
22143 /* confdefs.h. */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22148 $ac_includes_default
22149 #include <$ac_header>
22150 _ACEOF
22151 rm -f conftest.$ac_objext
22152 if { (ac_try="$ac_compile"
22153 case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22156 esac
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_compile") 2>conftest.er1
22159 ac_status=$?
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } && {
22165 test -z "$ac_c_werror_flag" ||
22166 test ! -s conftest.err
22167 } && test -s conftest.$ac_objext; then
22168 ac_header_compiler=yes
22169 else
22170 echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22172
22173 ac_header_compiler=no
22174 fi
22175
22176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22178 echo "${ECHO_T}$ac_header_compiler" >&6; }
22179
22180 # Is the header present?
22181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22183 cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h. */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22189 #include <$ac_header>
22190 _ACEOF
22191 if { (ac_try="$ac_cpp conftest.$ac_ext"
22192 case "(($ac_try" in
22193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22194 *) ac_try_echo=$ac_try;;
22195 esac
22196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22198 ac_status=$?
22199 grep -v '^ *+' conftest.er1 >conftest.err
22200 rm -f conftest.er1
22201 cat conftest.err >&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } >/dev/null && {
22204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22205 test ! -s conftest.err
22206 }; then
22207 ac_header_preproc=yes
22208 else
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22211
22212 ac_header_preproc=no
22213 fi
22214
22215 rm -f conftest.err conftest.$ac_ext
22216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22217 echo "${ECHO_T}$ac_header_preproc" >&6; }
22218
22219 # So? What about this header?
22220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22221 yes:no: )
22222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22226 ac_header_preproc=yes
22227 ;;
22228 no:yes:* )
22229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22241
22242 ;;
22243 esac
22244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 else
22249 eval "$as_ac_Header=\$ac_header_preproc"
22250 fi
22251 ac_res=`eval echo '${'$as_ac_Header'}'`
22252 { echo "$as_me:$LINENO: result: $ac_res" >&5
22253 echo "${ECHO_T}$ac_res" >&6; }
22254
22255 fi
22256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22257 cat >>confdefs.h <<_ACEOF
22258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22259 _ACEOF
22260
22261 fi
22262
22263 done
22264
22265 fi
22266
22267 # Solaris requires -lintl if you want strerror (which calls dgettext)
22268 # to return localized messages.
22269
22270 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22271 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22272 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22273 echo $ECHO_N "(cached) $ECHO_C" >&6
22274 else
22275 ac_check_lib_save_LIBS=$LIBS
22276 LIBS="-lintl $LIBS"
22277 cat >conftest.$ac_ext <<_ACEOF
22278 /* confdefs.h. */
22279 _ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h. */
22283
22284 /* Override any GCC internal prototype to avoid an error.
22285 Use char because int might match the return type of a GCC
22286 builtin and then its argument prototype would still apply. */
22287 #ifdef __cplusplus
22288 extern "C"
22289 #endif
22290 char dgettext ();
22291 int
22292 main ()
22293 {
22294 return dgettext ();
22295 ;
22296 return 0;
22297 }
22298 _ACEOF
22299 rm -f conftest.$ac_objext conftest$ac_exeext
22300 if { (ac_try="$ac_link"
22301 case "(($ac_try" in
22302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303 *) ac_try_echo=$ac_try;;
22304 esac
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306 (eval "$ac_link") 2>conftest.er1
22307 ac_status=$?
22308 grep -v '^ *+' conftest.er1 >conftest.err
22309 rm -f conftest.er1
22310 cat conftest.err >&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } && {
22313 test -z "$ac_c_werror_flag" ||
22314 test ! -s conftest.err
22315 } && test -s conftest$ac_exeext &&
22316 $as_test_x conftest$ac_exeext; then
22317 ac_cv_lib_intl_dgettext=yes
22318 else
22319 echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22321
22322 ac_cv_lib_intl_dgettext=no
22323 fi
22324
22325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22326 conftest$ac_exeext conftest.$ac_ext
22327 LIBS=$ac_check_lib_save_LIBS
22328 fi
22329 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22330 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22331 if test $ac_cv_lib_intl_dgettext = yes; then
22332 cat >>confdefs.h <<_ACEOF
22333 #define HAVE_LIBINTL 1
22334 _ACEOF
22335
22336 LIBS="-lintl $LIBS"
22337
22338 fi
22339
22340
22341 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22342 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22343 if test "${emacs_cv_localtime_cache+set}" = set; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346 if test x$ac_cv_func_tzset = xyes; then
22347 if test "$cross_compiling" = yes; then
22348 # If we have tzset, assume the worst when cross-compiling.
22349 emacs_cv_localtime_cache=yes
22350 else
22351 cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h. */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 #include <time.h>
22358 extern char **environ;
22359 unset_TZ ()
22360 {
22361 char **from, **to;
22362 for (to = from = environ; (*to = *from); from++)
22363 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22364 to++;
22365 }
22366 char TZ_GMT0[] = "TZ=GMT0";
22367 char TZ_PST8[] = "TZ=PST8";
22368 main()
22369 {
22370 time_t now = time ((time_t *) 0);
22371 int hour_GMT0, hour_unset;
22372 if (putenv (TZ_GMT0) != 0)
22373 exit (1);
22374 hour_GMT0 = localtime (&now)->tm_hour;
22375 unset_TZ ();
22376 hour_unset = localtime (&now)->tm_hour;
22377 if (putenv (TZ_PST8) != 0)
22378 exit (1);
22379 if (localtime (&now)->tm_hour == hour_GMT0)
22380 exit (1);
22381 unset_TZ ();
22382 if (localtime (&now)->tm_hour != hour_unset)
22383 exit (1);
22384 exit (0);
22385 }
22386 _ACEOF
22387 rm -f conftest$ac_exeext
22388 if { (ac_try="$ac_link"
22389 case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22392 esac
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_link") 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22398 { (case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_try") 2>&5
22404 ac_status=$?
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22407 emacs_cv_localtime_cache=no
22408 else
22409 echo "$as_me: program exited with status $ac_status" >&5
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413 ( exit $ac_status )
22414 emacs_cv_localtime_cache=yes
22415 fi
22416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22417 fi
22418
22419
22420 else
22421 # If we lack tzset, report that localtime does not cache TZ,
22422 # since we can't invalidate the cache if we don't have tzset.
22423 emacs_cv_localtime_cache=no
22424 fi
22425 fi
22426 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22427 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22428 if test $emacs_cv_localtime_cache = yes; then
22429
22430 cat >>confdefs.h <<\_ACEOF
22431 #define LOCALTIME_CACHE 1
22432 _ACEOF
22433
22434 fi
22435
22436 if test "x$HAVE_TIMEVAL" = xyes; then
22437
22438 for ac_func in gettimeofday
22439 do
22440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 else
22446 cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h. */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22454 #define $ac_func innocuous_$ac_func
22455
22456 /* System header to define __stub macros and hopefully few prototypes,
22457 which can conflict with char $ac_func (); below.
22458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22459 <limits.h> exists even on freestanding compilers. */
22460
22461 #ifdef __STDC__
22462 # include <limits.h>
22463 #else
22464 # include <assert.h>
22465 #endif
22466
22467 #undef $ac_func
22468
22469 /* Override any GCC internal prototype to avoid an error.
22470 Use char because int might match the return type of a GCC
22471 builtin and then its argument prototype would still apply. */
22472 #ifdef __cplusplus
22473 extern "C"
22474 #endif
22475 char $ac_func ();
22476 /* The GNU C library defines this for functions which it implements
22477 to always fail with ENOSYS. Some functions are actually named
22478 something starting with __ and the normal name is an alias. */
22479 #if defined __stub_$ac_func || defined __stub___$ac_func
22480 choke me
22481 #endif
22482
22483 int
22484 main ()
22485 {
22486 return $ac_func ();
22487 ;
22488 return 0;
22489 }
22490 _ACEOF
22491 rm -f conftest.$ac_objext conftest$ac_exeext
22492 if { (ac_try="$ac_link"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_link") 2>conftest.er1
22499 ac_status=$?
22500 grep -v '^ *+' conftest.er1 >conftest.err
22501 rm -f conftest.er1
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } && {
22505 test -z "$ac_c_werror_flag" ||
22506 test ! -s conftest.err
22507 } && test -s conftest$ac_exeext &&
22508 $as_test_x conftest$ac_exeext; then
22509 eval "$as_ac_var=yes"
22510 else
22511 echo "$as_me: failed program was:" >&5
22512 sed 's/^/| /' conftest.$ac_ext >&5
22513
22514 eval "$as_ac_var=no"
22515 fi
22516
22517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22518 conftest$ac_exeext conftest.$ac_ext
22519 fi
22520 ac_res=`eval echo '${'$as_ac_var'}'`
22521 { echo "$as_me:$LINENO: result: $ac_res" >&5
22522 echo "${ECHO_T}$ac_res" >&6; }
22523 if test `eval echo '${'$as_ac_var'}'` = yes; then
22524 cat >>confdefs.h <<_ACEOF
22525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22526 _ACEOF
22527
22528 fi
22529 done
22530
22531 if test $ac_cv_func_gettimeofday = yes; then
22532 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22533 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22534 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22536 else
22537 cat >conftest.$ac_ext <<_ACEOF
22538 /* confdefs.h. */
22539 _ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h. */
22543
22544 #ifdef TIME_WITH_SYS_TIME
22545 #include <sys/time.h>
22546 #include <time.h>
22547 #else
22548 #ifdef HAVE_SYS_TIME_H
22549 #include <sys/time.h>
22550 #else
22551 #include <time.h>
22552 #endif
22553 #endif
22554 int
22555 main ()
22556 {
22557 struct timeval time;
22558 gettimeofday (&time, 0);
22559 ;
22560 return 0;
22561 }
22562 _ACEOF
22563 rm -f conftest.$ac_objext
22564 if { (ac_try="$ac_compile"
22565 case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22568 esac
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570 (eval "$ac_compile") 2>conftest.er1
22571 ac_status=$?
22572 grep -v '^ *+' conftest.er1 >conftest.err
22573 rm -f conftest.er1
22574 cat conftest.err >&5
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } && {
22577 test -z "$ac_c_werror_flag" ||
22578 test ! -s conftest.err
22579 } && test -s conftest.$ac_objext; then
22580 emacs_cv_gettimeofday_two_arguments=yes
22581 else
22582 echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585 emacs_cv_gettimeofday_two_arguments=no
22586 fi
22587
22588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22589 fi
22590 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22591 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22592 if test $emacs_cv_gettimeofday_two_arguments = no; then
22593
22594 cat >>confdefs.h <<\_ACEOF
22595 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22596 _ACEOF
22597
22598 fi
22599 fi
22600 fi
22601
22602 ok_so_far=yes
22603 { echo "$as_me:$LINENO: checking for socket" >&5
22604 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22605 if test "${ac_cv_func_socket+set}" = set; then
22606 echo $ECHO_N "(cached) $ECHO_C" >&6
22607 else
22608 cat >conftest.$ac_ext <<_ACEOF
22609 /* confdefs.h. */
22610 _ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h. */
22614 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22616 #define socket innocuous_socket
22617
22618 /* System header to define __stub macros and hopefully few prototypes,
22619 which can conflict with char socket (); below.
22620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22621 <limits.h> exists even on freestanding compilers. */
22622
22623 #ifdef __STDC__
22624 # include <limits.h>
22625 #else
22626 # include <assert.h>
22627 #endif
22628
22629 #undef socket
22630
22631 /* Override any GCC internal prototype to avoid an error.
22632 Use char because int might match the return type of a GCC
22633 builtin and then its argument prototype would still apply. */
22634 #ifdef __cplusplus
22635 extern "C"
22636 #endif
22637 char socket ();
22638 /* The GNU C library defines this for functions which it implements
22639 to always fail with ENOSYS. Some functions are actually named
22640 something starting with __ and the normal name is an alias. */
22641 #if defined __stub_socket || defined __stub___socket
22642 choke me
22643 #endif
22644
22645 int
22646 main ()
22647 {
22648 return socket ();
22649 ;
22650 return 0;
22651 }
22652 _ACEOF
22653 rm -f conftest.$ac_objext conftest$ac_exeext
22654 if { (ac_try="$ac_link"
22655 case "(($ac_try" in
22656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22657 *) ac_try_echo=$ac_try;;
22658 esac
22659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22660 (eval "$ac_link") 2>conftest.er1
22661 ac_status=$?
22662 grep -v '^ *+' conftest.er1 >conftest.err
22663 rm -f conftest.er1
22664 cat conftest.err >&5
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); } && {
22667 test -z "$ac_c_werror_flag" ||
22668 test ! -s conftest.err
22669 } && test -s conftest$ac_exeext &&
22670 $as_test_x conftest$ac_exeext; then
22671 ac_cv_func_socket=yes
22672 else
22673 echo "$as_me: failed program was:" >&5
22674 sed 's/^/| /' conftest.$ac_ext >&5
22675
22676 ac_cv_func_socket=no
22677 fi
22678
22679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22680 conftest$ac_exeext conftest.$ac_ext
22681 fi
22682 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22683 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22684 if test $ac_cv_func_socket = yes; then
22685 :
22686 else
22687 ok_so_far=no
22688 fi
22689
22690 if test $ok_so_far = yes; then
22691 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22692 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22693 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22694 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22695 echo $ECHO_N "(cached) $ECHO_C" >&6
22696 fi
22697 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22698 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22699 else
22700 # Is the header compilable?
22701 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22702 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22703 cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h. */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22709 $ac_includes_default
22710 #include <netinet/in.h>
22711 _ACEOF
22712 rm -f conftest.$ac_objext
22713 if { (ac_try="$ac_compile"
22714 case "(($ac_try" in
22715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716 *) ac_try_echo=$ac_try;;
22717 esac
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719 (eval "$ac_compile") 2>conftest.er1
22720 ac_status=$?
22721 grep -v '^ *+' conftest.er1 >conftest.err
22722 rm -f conftest.er1
22723 cat conftest.err >&5
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } && {
22726 test -z "$ac_c_werror_flag" ||
22727 test ! -s conftest.err
22728 } && test -s conftest.$ac_objext; then
22729 ac_header_compiler=yes
22730 else
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22733
22734 ac_header_compiler=no
22735 fi
22736
22737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22739 echo "${ECHO_T}$ac_header_compiler" >&6; }
22740
22741 # Is the header present?
22742 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22743 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22744 cat >conftest.$ac_ext <<_ACEOF
22745 /* confdefs.h. */
22746 _ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h. */
22750 #include <netinet/in.h>
22751 _ACEOF
22752 if { (ac_try="$ac_cpp conftest.$ac_ext"
22753 case "(($ac_try" in
22754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755 *) ac_try_echo=$ac_try;;
22756 esac
22757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22759 ac_status=$?
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } >/dev/null && {
22765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22766 test ! -s conftest.err
22767 }; then
22768 ac_header_preproc=yes
22769 else
22770 echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22772
22773 ac_header_preproc=no
22774 fi
22775
22776 rm -f conftest.err conftest.$ac_ext
22777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22778 echo "${ECHO_T}$ac_header_preproc" >&6; }
22779
22780 # So? What about this header?
22781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22782 yes:no: )
22783 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22784 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22785 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22786 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22787 ac_header_preproc=yes
22788 ;;
22789 no:yes:* )
22790 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22791 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22792 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22793 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22794 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22795 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22796 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22797 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22798 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22799 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22800 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22801 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22802
22803 ;;
22804 esac
22805 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22806 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22807 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22808 echo $ECHO_N "(cached) $ECHO_C" >&6
22809 else
22810 ac_cv_header_netinet_in_h=$ac_header_preproc
22811 fi
22812 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22813 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22814
22815 fi
22816 if test $ac_cv_header_netinet_in_h = yes; then
22817 :
22818 else
22819 ok_so_far=no
22820 fi
22821
22822
22823 fi
22824 if test $ok_so_far = yes; then
22825 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22826 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22827 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22828 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22829 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 fi
22831 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22832 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22833 else
22834 # Is the header compilable?
22835 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22836 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22837 cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h. */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h. */
22843 $ac_includes_default
22844 #include <arpa/inet.h>
22845 _ACEOF
22846 rm -f conftest.$ac_objext
22847 if { (ac_try="$ac_compile"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22851 esac
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_compile") 2>conftest.er1
22854 ac_status=$?
22855 grep -v '^ *+' conftest.er1 >conftest.err
22856 rm -f conftest.er1
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } && {
22860 test -z "$ac_c_werror_flag" ||
22861 test ! -s conftest.err
22862 } && test -s conftest.$ac_objext; then
22863 ac_header_compiler=yes
22864 else
22865 echo "$as_me: failed program was:" >&5
22866 sed 's/^/| /' conftest.$ac_ext >&5
22867
22868 ac_header_compiler=no
22869 fi
22870
22871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22873 echo "${ECHO_T}$ac_header_compiler" >&6; }
22874
22875 # Is the header present?
22876 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22877 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22878 cat >conftest.$ac_ext <<_ACEOF
22879 /* confdefs.h. */
22880 _ACEOF
22881 cat confdefs.h >>conftest.$ac_ext
22882 cat >>conftest.$ac_ext <<_ACEOF
22883 /* end confdefs.h. */
22884 #include <arpa/inet.h>
22885 _ACEOF
22886 if { (ac_try="$ac_cpp conftest.$ac_ext"
22887 case "(($ac_try" in
22888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22889 *) ac_try_echo=$ac_try;;
22890 esac
22891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22893 ac_status=$?
22894 grep -v '^ *+' conftest.er1 >conftest.err
22895 rm -f conftest.er1
22896 cat conftest.err >&5
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); } >/dev/null && {
22899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22900 test ! -s conftest.err
22901 }; then
22902 ac_header_preproc=yes
22903 else
22904 echo "$as_me: failed program was:" >&5
22905 sed 's/^/| /' conftest.$ac_ext >&5
22906
22907 ac_header_preproc=no
22908 fi
22909
22910 rm -f conftest.err conftest.$ac_ext
22911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22912 echo "${ECHO_T}$ac_header_preproc" >&6; }
22913
22914 # So? What about this header?
22915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22916 yes:no: )
22917 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22918 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22919 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22920 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22921 ac_header_preproc=yes
22922 ;;
22923 no:yes:* )
22924 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22925 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22926 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22927 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22928 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22929 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22930 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22931 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22932 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22933 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22934 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22935 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22936
22937 ;;
22938 esac
22939 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22940 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22941 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22942 echo $ECHO_N "(cached) $ECHO_C" >&6
22943 else
22944 ac_cv_header_arpa_inet_h=$ac_header_preproc
22945 fi
22946 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22947 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22948
22949 fi
22950 if test $ac_cv_header_arpa_inet_h = yes; then
22951 :
22952 else
22953 ok_so_far=no
22954 fi
22955
22956
22957 fi
22958 if test $ok_so_far = yes; then
22959
22960 cat >>confdefs.h <<\_ACEOF
22961 #define HAVE_INET_SOCKETS 1
22962 _ACEOF
22963
22964 fi
22965
22966
22967 for ac_header in sys/ioctl.h
22968 do
22969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22974 echo $ECHO_N "(cached) $ECHO_C" >&6
22975 fi
22976 ac_res=`eval echo '${'$as_ac_Header'}'`
22977 { echo "$as_me:$LINENO: result: $ac_res" >&5
22978 echo "${ECHO_T}$ac_res" >&6; }
22979 else
22980 # Is the header compilable?
22981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22983 cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h. */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22989 $ac_includes_default
22990 #include <$ac_header>
22991 _ACEOF
22992 rm -f conftest.$ac_objext
22993 if { (ac_try="$ac_compile"
22994 case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22997 esac
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999 (eval "$ac_compile") 2>conftest.er1
23000 ac_status=$?
23001 grep -v '^ *+' conftest.er1 >conftest.err
23002 rm -f conftest.er1
23003 cat conftest.err >&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); } && {
23006 test -z "$ac_c_werror_flag" ||
23007 test ! -s conftest.err
23008 } && test -s conftest.$ac_objext; then
23009 ac_header_compiler=yes
23010 else
23011 echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23013
23014 ac_header_compiler=no
23015 fi
23016
23017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23019 echo "${ECHO_T}$ac_header_compiler" >&6; }
23020
23021 # Is the header present?
23022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23024 cat >conftest.$ac_ext <<_ACEOF
23025 /* confdefs.h. */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030 #include <$ac_header>
23031 _ACEOF
23032 if { (ac_try="$ac_cpp conftest.$ac_ext"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23036 esac
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23039 ac_status=$?
23040 grep -v '^ *+' conftest.er1 >conftest.err
23041 rm -f conftest.er1
23042 cat conftest.err >&5
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } >/dev/null && {
23045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23046 test ! -s conftest.err
23047 }; then
23048 ac_header_preproc=yes
23049 else
23050 echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23052
23053 ac_header_preproc=no
23054 fi
23055
23056 rm -f conftest.err conftest.$ac_ext
23057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23058 echo "${ECHO_T}$ac_header_preproc" >&6; }
23059
23060 # So? What about this header?
23061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23062 yes:no: )
23063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23067 ac_header_preproc=yes
23068 ;;
23069 no:yes:* )
23070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23082
23083 ;;
23084 esac
23085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
23089 else
23090 eval "$as_ac_Header=\$ac_header_preproc"
23091 fi
23092 ac_res=`eval echo '${'$as_ac_Header'}'`
23093 { echo "$as_me:$LINENO: result: $ac_res" >&5
23094 echo "${ECHO_T}$ac_res" >&6; }
23095
23096 fi
23097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23098 cat >>confdefs.h <<_ACEOF
23099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23100 _ACEOF
23101
23102 fi
23103
23104 done
23105
23106
23107 if test -f /usr/lpp/X11/bin/smt.exp; then
23108
23109 cat >>confdefs.h <<\_ACEOF
23110 #define HAVE_AIX_SMT_EXP 1
23111 _ACEOF
23112
23113 fi
23114
23115 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23116 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23117 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23118 { echo "$as_me:$LINENO: result: yes" >&5
23119 echo "${ECHO_T}yes" >&6; }
23120
23121 cat >>confdefs.h <<\_ACEOF
23122 #define HAVE_DEV_PTMX 1
23123 _ACEOF
23124
23125 else
23126 { echo "$as_me:$LINENO: result: no" >&5
23127 echo "${ECHO_T}no" >&6; }
23128 fi
23129
23130 { echo "$as_me:$LINENO: checking for pid_t" >&5
23131 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23132 if test "${ac_cv_type_pid_t+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23134 else
23135 cat >conftest.$ac_ext <<_ACEOF
23136 /* confdefs.h. */
23137 _ACEOF
23138 cat confdefs.h >>conftest.$ac_ext
23139 cat >>conftest.$ac_ext <<_ACEOF
23140 /* end confdefs.h. */
23141 $ac_includes_default
23142 typedef pid_t ac__type_new_;
23143 int
23144 main ()
23145 {
23146 if ((ac__type_new_ *) 0)
23147 return 0;
23148 if (sizeof (ac__type_new_))
23149 return 0;
23150 ;
23151 return 0;
23152 }
23153 _ACEOF
23154 rm -f conftest.$ac_objext
23155 if { (ac_try="$ac_compile"
23156 case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23159 esac
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161 (eval "$ac_compile") 2>conftest.er1
23162 ac_status=$?
23163 grep -v '^ *+' conftest.er1 >conftest.err
23164 rm -f conftest.er1
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } && {
23168 test -z "$ac_c_werror_flag" ||
23169 test ! -s conftest.err
23170 } && test -s conftest.$ac_objext; then
23171 ac_cv_type_pid_t=yes
23172 else
23173 echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23175
23176 ac_cv_type_pid_t=no
23177 fi
23178
23179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23180 fi
23181 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23182 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23183 if test $ac_cv_type_pid_t = yes; then
23184 :
23185 else
23186
23187 cat >>confdefs.h <<_ACEOF
23188 #define pid_t int
23189 _ACEOF
23190
23191 fi
23192
23193
23194 for ac_header in vfork.h
23195 do
23196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23202 fi
23203 ac_res=`eval echo '${'$as_ac_Header'}'`
23204 { echo "$as_me:$LINENO: result: $ac_res" >&5
23205 echo "${ECHO_T}$ac_res" >&6; }
23206 else
23207 # Is the header compilable?
23208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23210 cat >conftest.$ac_ext <<_ACEOF
23211 /* confdefs.h. */
23212 _ACEOF
23213 cat confdefs.h >>conftest.$ac_ext
23214 cat >>conftest.$ac_ext <<_ACEOF
23215 /* end confdefs.h. */
23216 $ac_includes_default
23217 #include <$ac_header>
23218 _ACEOF
23219 rm -f conftest.$ac_objext
23220 if { (ac_try="$ac_compile"
23221 case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23224 esac
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_compile") 2>conftest.er1
23227 ac_status=$?
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
23236 ac_header_compiler=yes
23237 else
23238 echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241 ac_header_compiler=no
23242 fi
23243
23244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23246 echo "${ECHO_T}$ac_header_compiler" >&6; }
23247
23248 # Is the header present?
23249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23251 cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h. */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 #include <$ac_header>
23258 _ACEOF
23259 if { (ac_try="$ac_cpp conftest.$ac_ext"
23260 case "(($ac_try" in
23261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23262 *) ac_try_echo=$ac_try;;
23263 esac
23264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23266 ac_status=$?
23267 grep -v '^ *+' conftest.er1 >conftest.err
23268 rm -f conftest.er1
23269 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } >/dev/null && {
23272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23273 test ! -s conftest.err
23274 }; then
23275 ac_header_preproc=yes
23276 else
23277 echo "$as_me: failed program was:" >&5
23278 sed 's/^/| /' conftest.$ac_ext >&5
23279
23280 ac_header_preproc=no
23281 fi
23282
23283 rm -f conftest.err conftest.$ac_ext
23284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23285 echo "${ECHO_T}$ac_header_preproc" >&6; }
23286
23287 # So? What about this header?
23288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23289 yes:no: )
23290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23294 ac_header_preproc=yes
23295 ;;
23296 no:yes:* )
23297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23309
23310 ;;
23311 esac
23312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23316 else
23317 eval "$as_ac_Header=\$ac_header_preproc"
23318 fi
23319 ac_res=`eval echo '${'$as_ac_Header'}'`
23320 { echo "$as_me:$LINENO: result: $ac_res" >&5
23321 echo "${ECHO_T}$ac_res" >&6; }
23322
23323 fi
23324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23325 cat >>confdefs.h <<_ACEOF
23326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23327 _ACEOF
23328
23329 fi
23330
23331 done
23332
23333
23334
23335 for ac_func in fork vfork
23336 do
23337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23342 else
23343 cat >conftest.$ac_ext <<_ACEOF
23344 /* confdefs.h. */
23345 _ACEOF
23346 cat confdefs.h >>conftest.$ac_ext
23347 cat >>conftest.$ac_ext <<_ACEOF
23348 /* end confdefs.h. */
23349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23351 #define $ac_func innocuous_$ac_func
23352
23353 /* System header to define __stub macros and hopefully few prototypes,
23354 which can conflict with char $ac_func (); below.
23355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23356 <limits.h> exists even on freestanding compilers. */
23357
23358 #ifdef __STDC__
23359 # include <limits.h>
23360 #else
23361 # include <assert.h>
23362 #endif
23363
23364 #undef $ac_func
23365
23366 /* Override any GCC internal prototype to avoid an error.
23367 Use char because int might match the return type of a GCC
23368 builtin and then its argument prototype would still apply. */
23369 #ifdef __cplusplus
23370 extern "C"
23371 #endif
23372 char $ac_func ();
23373 /* The GNU C library defines this for functions which it implements
23374 to always fail with ENOSYS. Some functions are actually named
23375 something starting with __ and the normal name is an alias. */
23376 #if defined __stub_$ac_func || defined __stub___$ac_func
23377 choke me
23378 #endif
23379
23380 int
23381 main ()
23382 {
23383 return $ac_func ();
23384 ;
23385 return 0;
23386 }
23387 _ACEOF
23388 rm -f conftest.$ac_objext conftest$ac_exeext
23389 if { (ac_try="$ac_link"
23390 case "(($ac_try" in
23391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392 *) ac_try_echo=$ac_try;;
23393 esac
23394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23395 (eval "$ac_link") 2>conftest.er1
23396 ac_status=$?
23397 grep -v '^ *+' conftest.er1 >conftest.err
23398 rm -f conftest.er1
23399 cat conftest.err >&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } && {
23402 test -z "$ac_c_werror_flag" ||
23403 test ! -s conftest.err
23404 } && test -s conftest$ac_exeext &&
23405 $as_test_x conftest$ac_exeext; then
23406 eval "$as_ac_var=yes"
23407 else
23408 echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23410
23411 eval "$as_ac_var=no"
23412 fi
23413
23414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23415 conftest$ac_exeext conftest.$ac_ext
23416 fi
23417 ac_res=`eval echo '${'$as_ac_var'}'`
23418 { echo "$as_me:$LINENO: result: $ac_res" >&5
23419 echo "${ECHO_T}$ac_res" >&6; }
23420 if test `eval echo '${'$as_ac_var'}'` = yes; then
23421 cat >>confdefs.h <<_ACEOF
23422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23423 _ACEOF
23424
23425 fi
23426 done
23427
23428 if test "x$ac_cv_func_fork" = xyes; then
23429 { echo "$as_me:$LINENO: checking for working fork" >&5
23430 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23431 if test "${ac_cv_func_fork_works+set}" = set; then
23432 echo $ECHO_N "(cached) $ECHO_C" >&6
23433 else
23434 if test "$cross_compiling" = yes; then
23435 ac_cv_func_fork_works=cross
23436 else
23437 cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h. */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 $ac_includes_default
23444 int
23445 main ()
23446 {
23447
23448 /* By Ruediger Kuhlmann. */
23449 return fork () < 0;
23450
23451 ;
23452 return 0;
23453 }
23454 _ACEOF
23455 rm -f conftest$ac_exeext
23456 if { (ac_try="$ac_link"
23457 case "(($ac_try" in
23458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23459 *) ac_try_echo=$ac_try;;
23460 esac
23461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23462 (eval "$ac_link") 2>&5
23463 ac_status=$?
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23466 { (case "(($ac_try" in
23467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468 *) ac_try_echo=$ac_try;;
23469 esac
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471 (eval "$ac_try") 2>&5
23472 ac_status=$?
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); }; }; then
23475 ac_cv_func_fork_works=yes
23476 else
23477 echo "$as_me: program exited with status $ac_status" >&5
23478 echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23480
23481 ( exit $ac_status )
23482 ac_cv_func_fork_works=no
23483 fi
23484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23485 fi
23486
23487
23488 fi
23489 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23490 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23491
23492 else
23493 ac_cv_func_fork_works=$ac_cv_func_fork
23494 fi
23495 if test "x$ac_cv_func_fork_works" = xcross; then
23496 case $host in
23497 *-*-amigaos* | *-*-msdosdjgpp*)
23498 # Override, as these systems have only a dummy fork() stub
23499 ac_cv_func_fork_works=no
23500 ;;
23501 *)
23502 ac_cv_func_fork_works=yes
23503 ;;
23504 esac
23505 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23506 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23507 fi
23508 ac_cv_func_vfork_works=$ac_cv_func_vfork
23509 if test "x$ac_cv_func_vfork" = xyes; then
23510 { echo "$as_me:$LINENO: checking for working vfork" >&5
23511 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23512 if test "${ac_cv_func_vfork_works+set}" = set; then
23513 echo $ECHO_N "(cached) $ECHO_C" >&6
23514 else
23515 if test "$cross_compiling" = yes; then
23516 ac_cv_func_vfork_works=cross
23517 else
23518 cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h. */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 /* Thanks to Paul Eggert for this test. */
23525 $ac_includes_default
23526 #include <sys/wait.h>
23527 #ifdef HAVE_VFORK_H
23528 # include <vfork.h>
23529 #endif
23530 /* On some sparc systems, changes by the child to local and incoming
23531 argument registers are propagated back to the parent. The compiler
23532 is told about this with #include <vfork.h>, but some compilers
23533 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23534 static variable whose address is put into a register that is
23535 clobbered by the vfork. */
23536 static void
23537 #ifdef __cplusplus
23538 sparc_address_test (int arg)
23539 # else
23540 sparc_address_test (arg) int arg;
23541 #endif
23542 {
23543 static pid_t child;
23544 if (!child) {
23545 child = vfork ();
23546 if (child < 0) {
23547 perror ("vfork");
23548 _exit(2);
23549 }
23550 if (!child) {
23551 arg = getpid();
23552 write(-1, "", 0);
23553 _exit (arg);
23554 }
23555 }
23556 }
23557
23558 int
23559 main ()
23560 {
23561 pid_t parent = getpid ();
23562 pid_t child;
23563
23564 sparc_address_test (0);
23565
23566 child = vfork ();
23567
23568 if (child == 0) {
23569 /* Here is another test for sparc vfork register problems. This
23570 test uses lots of local variables, at least as many local
23571 variables as main has allocated so far including compiler
23572 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23573 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23574 reuse the register of parent for one of the local variables,
23575 since it will think that parent can't possibly be used any more
23576 in this routine. Assigning to the local variable will thus
23577 munge parent in the parent process. */
23578 pid_t
23579 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23580 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23581 /* Convince the compiler that p..p7 are live; otherwise, it might
23582 use the same hardware register for all 8 local variables. */
23583 if (p != p1 || p != p2 || p != p3 || p != p4
23584 || p != p5 || p != p6 || p != p7)
23585 _exit(1);
23586
23587 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23588 from child file descriptors. If the child closes a descriptor
23589 before it execs or exits, this munges the parent's descriptor
23590 as well. Test for this by closing stdout in the child. */
23591 _exit(close(fileno(stdout)) != 0);
23592 } else {
23593 int status;
23594 struct stat st;
23595
23596 while (wait(&status) != child)
23597 ;
23598 return (
23599 /* Was there some problem with vforking? */
23600 child < 0
23601
23602 /* Did the child fail? (This shouldn't happen.) */
23603 || status
23604
23605 /* Did the vfork/compiler bug occur? */
23606 || parent != getpid()
23607
23608 /* Did the file descriptor bug occur? */
23609 || fstat(fileno(stdout), &st) != 0
23610 );
23611 }
23612 }
23613 _ACEOF
23614 rm -f conftest$ac_exeext
23615 if { (ac_try="$ac_link"
23616 case "(($ac_try" in
23617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618 *) ac_try_echo=$ac_try;;
23619 esac
23620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23621 (eval "$ac_link") 2>&5
23622 ac_status=$?
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23625 { (case "(($ac_try" in
23626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627 *) ac_try_echo=$ac_try;;
23628 esac
23629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630 (eval "$ac_try") 2>&5
23631 ac_status=$?
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; }; then
23634 ac_cv_func_vfork_works=yes
23635 else
23636 echo "$as_me: program exited with status $ac_status" >&5
23637 echo "$as_me: failed program was:" >&5
23638 sed 's/^/| /' conftest.$ac_ext >&5
23639
23640 ( exit $ac_status )
23641 ac_cv_func_vfork_works=no
23642 fi
23643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23644 fi
23645
23646
23647 fi
23648 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23649 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23650
23651 fi;
23652 if test "x$ac_cv_func_fork_works" = xcross; then
23653 ac_cv_func_vfork_works=$ac_cv_func_vfork
23654 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23655 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23656 fi
23657
23658 if test "x$ac_cv_func_vfork_works" = xyes; then
23659
23660 cat >>confdefs.h <<\_ACEOF
23661 #define HAVE_WORKING_VFORK 1
23662 _ACEOF
23663
23664 else
23665
23666 cat >>confdefs.h <<\_ACEOF
23667 #define vfork fork
23668 _ACEOF
23669
23670 fi
23671 if test "x$ac_cv_func_fork_works" = xyes; then
23672
23673 cat >>confdefs.h <<\_ACEOF
23674 #define HAVE_WORKING_FORK 1
23675 _ACEOF
23676
23677 fi
23678
23679
23680 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23681 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23682 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23683 echo $ECHO_N "(cached) $ECHO_C" >&6
23684 else
23685 cat >conftest.$ac_ext <<_ACEOF
23686 /* confdefs.h. */
23687 _ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23691 #include <langinfo.h>
23692 int
23693 main ()
23694 {
23695 char* cs = nl_langinfo(CODESET);
23696 ;
23697 return 0;
23698 }
23699 _ACEOF
23700 rm -f conftest.$ac_objext conftest$ac_exeext
23701 if { (ac_try="$ac_link"
23702 case "(($ac_try" in
23703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23705 esac
23706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707 (eval "$ac_link") 2>conftest.er1
23708 ac_status=$?
23709 grep -v '^ *+' conftest.er1 >conftest.err
23710 rm -f conftest.er1
23711 cat conftest.err >&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } && {
23714 test -z "$ac_c_werror_flag" ||
23715 test ! -s conftest.err
23716 } && test -s conftest$ac_exeext &&
23717 $as_test_x conftest$ac_exeext; then
23718 emacs_cv_langinfo_codeset=yes
23719 else
23720 echo "$as_me: failed program was:" >&5
23721 sed 's/^/| /' conftest.$ac_ext >&5
23722
23723 emacs_cv_langinfo_codeset=no
23724 fi
23725
23726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23727 conftest$ac_exeext conftest.$ac_ext
23728
23729 fi
23730 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23731 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23732 if test $emacs_cv_langinfo_codeset = yes; then
23733
23734 cat >>confdefs.h <<\_ACEOF
23735 #define HAVE_LANGINFO_CODESET 1
23736 _ACEOF
23737
23738 fi
23739
23740 { echo "$as_me:$LINENO: checking for size_t" >&5
23741 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23742 if test "${ac_cv_type_size_t+set}" = set; then
23743 echo $ECHO_N "(cached) $ECHO_C" >&6
23744 else
23745 cat >conftest.$ac_ext <<_ACEOF
23746 /* confdefs.h. */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h. */
23751 $ac_includes_default
23752 typedef size_t ac__type_new_;
23753 int
23754 main ()
23755 {
23756 if ((ac__type_new_ *) 0)
23757 return 0;
23758 if (sizeof (ac__type_new_))
23759 return 0;
23760 ;
23761 return 0;
23762 }
23763 _ACEOF
23764 rm -f conftest.$ac_objext
23765 if { (ac_try="$ac_compile"
23766 case "(($ac_try" in
23767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23768 *) ac_try_echo=$ac_try;;
23769 esac
23770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23771 (eval "$ac_compile") 2>conftest.er1
23772 ac_status=$?
23773 grep -v '^ *+' conftest.er1 >conftest.err
23774 rm -f conftest.er1
23775 cat conftest.err >&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } && {
23778 test -z "$ac_c_werror_flag" ||
23779 test ! -s conftest.err
23780 } && test -s conftest.$ac_objext; then
23781 ac_cv_type_size_t=yes
23782 else
23783 echo "$as_me: failed program was:" >&5
23784 sed 's/^/| /' conftest.$ac_ext >&5
23785
23786 ac_cv_type_size_t=no
23787 fi
23788
23789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790 fi
23791 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23792 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23793 if test $ac_cv_type_size_t = yes; then
23794
23795 cat >>confdefs.h <<_ACEOF
23796 #define HAVE_SIZE_T 1
23797 _ACEOF
23798
23799
23800 fi
23801
23802
23803 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23804 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23805 if test "${ac_cv_type_mbstate_t+set}" = set; then
23806 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 else
23808 cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h. */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814 $ac_includes_default
23815 # include <wchar.h>
23816 int
23817 main ()
23818 {
23819 mbstate_t x; return sizeof x;
23820 ;
23821 return 0;
23822 }
23823 _ACEOF
23824 rm -f conftest.$ac_objext
23825 if { (ac_try="$ac_compile"
23826 case "(($ac_try" in
23827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828 *) ac_try_echo=$ac_try;;
23829 esac
23830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23831 (eval "$ac_compile") 2>conftest.er1
23832 ac_status=$?
23833 grep -v '^ *+' conftest.er1 >conftest.err
23834 rm -f conftest.er1
23835 cat conftest.err >&5
23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); } && {
23838 test -z "$ac_c_werror_flag" ||
23839 test ! -s conftest.err
23840 } && test -s conftest.$ac_objext; then
23841 ac_cv_type_mbstate_t=yes
23842 else
23843 echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23845
23846 ac_cv_type_mbstate_t=no
23847 fi
23848
23849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23850 fi
23851 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23852 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23853 if test $ac_cv_type_mbstate_t = yes; then
23854
23855 cat >>confdefs.h <<\_ACEOF
23856 #define HAVE_MBSTATE_T 1
23857 _ACEOF
23858
23859 else
23860
23861 cat >>confdefs.h <<\_ACEOF
23862 #define mbstate_t int
23863 _ACEOF
23864
23865 fi
23866
23867 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23868 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23869 if test "${emacs_cv_c_restrict+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 void fred (int *restrict x);
23879 int
23880 main ()
23881 {
23882
23883 ;
23884 return 0;
23885 }
23886 _ACEOF
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23892 esac
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_compile") 2>conftest.er1
23895 ac_status=$?
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest.$ac_objext; then
23904 emacs_cv_c_restrict=yes
23905 else
23906 echo "$as_me: failed program was:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23908
23909 cat >conftest.$ac_ext <<_ACEOF
23910 /* confdefs.h. */
23911 _ACEOF
23912 cat confdefs.h >>conftest.$ac_ext
23913 cat >>conftest.$ac_ext <<_ACEOF
23914 /* end confdefs.h. */
23915 void fred (int *__restrict x);
23916 int
23917 main ()
23918 {
23919
23920 ;
23921 return 0;
23922 }
23923 _ACEOF
23924 rm -f conftest.$ac_objext
23925 if { (ac_try="$ac_compile"
23926 case "(($ac_try" in
23927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928 *) ac_try_echo=$ac_try;;
23929 esac
23930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23931 (eval "$ac_compile") 2>conftest.er1
23932 ac_status=$?
23933 grep -v '^ *+' conftest.er1 >conftest.err
23934 rm -f conftest.er1
23935 cat conftest.err >&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } && {
23938 test -z "$ac_c_werror_flag" ||
23939 test ! -s conftest.err
23940 } && test -s conftest.$ac_objext; then
23941 emacs_cv_c_restrict=__restrict
23942 else
23943 echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946 emacs_cv_c_restrict=no
23947 fi
23948
23949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950 fi
23951
23952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23953 fi
23954 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23955 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23956 case "$emacs_cv_c_restrict" in
23957 yes) emacs_restrict=restrict;;
23958 no) emacs_restrict="";;
23959 *) emacs_restrict="$emacs_cv_c_restrict";;
23960 esac
23961 if test "$emacs_restrict" != __restrict; then
23962
23963 cat >>confdefs.h <<_ACEOF
23964 #define __restrict $emacs_restrict
23965 _ACEOF
23966
23967 fi
23968
23969 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23970 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23971 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23972 echo $ECHO_N "(cached) $ECHO_C" >&6
23973 else
23974 cat >conftest.$ac_ext <<_ACEOF
23975 /* confdefs.h. */
23976 _ACEOF
23977 cat confdefs.h >>conftest.$ac_ext
23978 cat >>conftest.$ac_ext <<_ACEOF
23979 /* end confdefs.h. */
23980 void fred (int x[__restrict]);
23981 int
23982 main ()
23983 {
23984
23985 ;
23986 return 0;
23987 }
23988 _ACEOF
23989 rm -f conftest.$ac_objext
23990 if { (ac_try="$ac_compile"
23991 case "(($ac_try" in
23992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993 *) ac_try_echo=$ac_try;;
23994 esac
23995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996 (eval "$ac_compile") 2>conftest.er1
23997 ac_status=$?
23998 grep -v '^ *+' conftest.er1 >conftest.err
23999 rm -f conftest.er1
24000 cat conftest.err >&5
24001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); } && {
24003 test -z "$ac_c_werror_flag" ||
24004 test ! -s conftest.err
24005 } && test -s conftest.$ac_objext; then
24006 emacs_cv_c_restrict_arr=yes
24007 else
24008 echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24010
24011 emacs_cv_c_restrict_arr=no
24012 fi
24013
24014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24015 fi
24016 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24017 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24018 if test "$emacs_cv_c_restrict_arr" = yes; then
24019
24020 cat >>confdefs.h <<\_ACEOF
24021 #define __restrict_arr __restrict
24022 _ACEOF
24023
24024 fi
24025
24026
24027
24028 # Set up the CFLAGS for real compilation, so we can substitute it.
24029 CFLAGS="$REAL_CFLAGS"
24030 CPPFLAGS="$REAL_CPPFLAGS"
24031
24032 #### Find out which version of Emacs this is.
24033 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24034 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24035 if test x"${version}" = x; then
24036 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24037 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24038 { (exit 1); exit 1; }; }
24039 fi
24040
24041 ### Specify what sort of things we'll be editing into Makefile and config.h.
24042 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078 cat >>confdefs.h <<_ACEOF
24079 #define EMACS_CONFIGURATION "${canonical}"
24080 _ACEOF
24081
24082
24083 cat >>confdefs.h <<_ACEOF
24084 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24085 _ACEOF
24086
24087
24088 cat >>confdefs.h <<_ACEOF
24089 #define config_machfile "${machfile}"
24090 _ACEOF
24091
24092
24093 cat >>confdefs.h <<_ACEOF
24094 #define config_opsysfile "${opsysfile}"
24095 _ACEOF
24096
24097
24098 cat >>confdefs.h <<_ACEOF
24099 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24100 _ACEOF
24101
24102
24103 cat >>confdefs.h <<_ACEOF
24104 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24105 _ACEOF
24106
24107
24108 cat >>confdefs.h <<_ACEOF
24109 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24110 _ACEOF
24111
24112
24113 cat >>confdefs.h <<_ACEOF
24114 #define UNEXEC_SRC ${UNEXEC_SRC}
24115 _ACEOF
24116
24117
24118 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24119
24120 cat >>confdefs.h <<\_ACEOF
24121 #define HAVE_X_WINDOWS 1
24122 _ACEOF
24123
24124 fi
24125 if test "${USE_X_TOOLKIT}" != "none" ; then
24126
24127 cat >>confdefs.h <<\_ACEOF
24128 #define USE_X_TOOLKIT 1
24129 _ACEOF
24130
24131 fi
24132 if test "${HAVE_X11}" = "yes" ; then
24133
24134 cat >>confdefs.h <<\_ACEOF
24135 #define HAVE_X11 1
24136 _ACEOF
24137
24138 fi
24139 if test "${HAVE_XFREE386}" = "yes" ; then
24140
24141 cat >>confdefs.h <<\_ACEOF
24142 #define HAVE_XFREE386 1
24143 _ACEOF
24144
24145 fi
24146 if test "${HAVE_MENUS}" = "yes" ; then
24147
24148 cat >>confdefs.h <<\_ACEOF
24149 #define HAVE_MENUS 1
24150 _ACEOF
24151
24152 fi
24153 if test "${GNU_MALLOC}" = "yes" ; then
24154
24155 cat >>confdefs.h <<\_ACEOF
24156 #define GNU_MALLOC 1
24157 _ACEOF
24158
24159 fi
24160 if test "${REL_ALLOC}" = "yes" ; then
24161
24162 cat >>confdefs.h <<\_ACEOF
24163 #define REL_ALLOC 1
24164 _ACEOF
24165
24166 fi
24167
24168
24169
24170
24171
24172
24173 #### Report on what we decided to do.
24174 #### Report GTK as a toolkit, even if it doesn't use Xt.
24175 #### It makes printing result more understandable as using GTK sets
24176 #### toolkit_scroll_bars to yes by default.
24177 if test "${HAVE_GTK}" = "yes"; then
24178 USE_X_TOOLKIT=GTK
24179 fi
24180
24181 echo "
24182 Configured for \`${canonical}'.
24183
24184 Where should the build process find the source code? ${srcdir}
24185 What operating system and machine description files should Emacs use?
24186 \`${opsysfile}' and \`${machfile}'
24187 What compiler should emacs be built with? ${CC} ${CFLAGS}
24188 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24189 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24190 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24191 What window system should Emacs use? ${window_system}
24192 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24193
24194 if test -n "${x_includes}"; then
24195 echo " Where do we find X Windows header files? ${x_includes}"
24196 else
24197 echo " Where do we find X Windows header files? Standard dirs"
24198 fi
24199 if test -n "${x_libraries}"; then
24200 echo " Where do we find X Windows libraries? ${x_libraries}"
24201 else
24202 echo " Where do we find X Windows libraries? Standard dirs"
24203 fi
24204
24205 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24206 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24207 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24208 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24209 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24210 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24211 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24212 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24213 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24214 echo
24215
24216 if test $USE_XASSERTS = yes; then
24217 echo " Compiling with asserts turned on."
24218 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24219 echo
24220 fi
24221
24222 if test "$USE_X_TOOLKIT" = GTK; then
24223 case "$canonical" in
24224 *cygwin*)
24225 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24226 will probably get a crash on startup. If this happens, please use another
24227 toolkit for Emacs. See etc/PROBLEMS for more information."
24228 ;;
24229 esac
24230 fi
24231
24232
24233 if test "$HAVE_CARBON" = "yes"; then
24234 echo
24235 echo "Warning: The Mac Carbon port is currently unsupported and has
24236 known problems. It is not recommended for use by non-developers.
24237 Read the emacs-devel archives for more information."
24238 echo
24239 fi
24240
24241
24242 # Remove any trailing slashes in these variables.
24243 test "${prefix}" != NONE &&
24244 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24245 test "${exec_prefix}" != NONE &&
24246 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24247
24248 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24249 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24250 ## from Makefile.c can correctly provide the arg `-traditional' to the
24251 ## C preprocessor.
24252
24253 cat >conftest.$ac_ext <<_ACEOF
24254 /* confdefs.h. */
24255 _ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h. */
24259 yes..yes
24260 _ACEOF
24261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24262 $EGREP "yes..yes" >/dev/null 2>&1; then
24263 CPP_NEED_TRADITIONAL=no
24264 else
24265 CPP_NEED_TRADITIONAL=yes
24266 fi
24267 rm -f conftest*
24268
24269
24270 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"
24271
24272 ac_config_commands="$ac_config_commands default"
24273
24274 cat >confcache <<\_ACEOF
24275 # This file is a shell script that caches the results of configure
24276 # tests run on this system so they can be shared between configure
24277 # scripts and configure runs, see configure's option --config-cache.
24278 # It is not useful on other systems. If it contains results you don't
24279 # want to keep, you may remove or edit it.
24280 #
24281 # config.status only pays attention to the cache file if you give it
24282 # the --recheck option to rerun configure.
24283 #
24284 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24285 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24286 # following values.
24287
24288 _ACEOF
24289
24290 # The following way of writing the cache mishandles newlines in values,
24291 # but we know of no workaround that is simple, portable, and efficient.
24292 # So, we kill variables containing newlines.
24293 # Ultrix sh set writes to stderr and can't be redirected directly,
24294 # and sets the high bit in the cache file unless we assign to the vars.
24295 (
24296 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24297 eval ac_val=\$$ac_var
24298 case $ac_val in #(
24299 *${as_nl}*)
24300 case $ac_var in #(
24301 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24302 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24303 esac
24304 case $ac_var in #(
24305 _ | IFS | as_nl) ;; #(
24306 *) $as_unset $ac_var ;;
24307 esac ;;
24308 esac
24309 done
24310
24311 (set) 2>&1 |
24312 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24313 *${as_nl}ac_space=\ *)
24314 # `set' does not quote correctly, so add quotes (double-quote
24315 # substitution turns \\\\ into \\, and sed turns \\ into \).
24316 sed -n \
24317 "s/'/'\\\\''/g;
24318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24319 ;; #(
24320 *)
24321 # `set' quotes correctly as required by POSIX, so do not add quotes.
24322 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24323 ;;
24324 esac |
24325 sort
24326 ) |
24327 sed '
24328 /^ac_cv_env_/b end
24329 t clear
24330 :clear
24331 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24332 t end
24333 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24334 :end' >>confcache
24335 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24336 if test -w "$cache_file"; then
24337 test "x$cache_file" != "x/dev/null" &&
24338 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24339 echo "$as_me: updating cache $cache_file" >&6;}
24340 cat confcache >$cache_file
24341 else
24342 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24343 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24344 fi
24345 fi
24346 rm -f confcache
24347
24348 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24349 # Let make expand exec_prefix.
24350 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24351
24352 DEFS=-DHAVE_CONFIG_H
24353
24354 ac_libobjs=
24355 ac_ltlibobjs=
24356 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24357 # 1. Remove the extension, and $U if already installed.
24358 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24359 ac_i=`echo "$ac_i" | sed "$ac_script"`
24360 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24361 # will be set to the directory where LIBOBJS objects are built.
24362 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24363 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24364 done
24365 LIBOBJS=$ac_libobjs
24366
24367 LTLIBOBJS=$ac_ltlibobjs
24368
24369
24370
24371 : ${CONFIG_STATUS=./config.status}
24372 ac_clean_files_save=$ac_clean_files
24373 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24374 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24375 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24376 cat >$CONFIG_STATUS <<_ACEOF
24377 #! $SHELL
24378 # Generated by $as_me.
24379 # Run this file to recreate the current configuration.
24380 # Compiler output produced by configure, useful for debugging
24381 # configure, is in config.log if it exists.
24382
24383 debug=false
24384 ac_cs_recheck=false
24385 ac_cs_silent=false
24386 SHELL=\${CONFIG_SHELL-$SHELL}
24387 _ACEOF
24388
24389 cat >>$CONFIG_STATUS <<\_ACEOF
24390 ## --------------------- ##
24391 ## M4sh Initialization. ##
24392 ## --------------------- ##
24393
24394 # Be more Bourne compatible
24395 DUALCASE=1; export DUALCASE # for MKS sh
24396 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24397 emulate sh
24398 NULLCMD=:
24399 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24400 # is contrary to our usage. Disable this feature.
24401 alias -g '${1+"$@"}'='"$@"'
24402 setopt NO_GLOB_SUBST
24403 else
24404 case `(set -o) 2>/dev/null` in
24405 *posix*) set -o posix ;;
24406 esac
24407
24408 fi
24409
24410
24411
24412
24413 # PATH needs CR
24414 # Avoid depending upon Character Ranges.
24415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24418 as_cr_digits='0123456789'
24419 as_cr_alnum=$as_cr_Letters$as_cr_digits
24420
24421 # The user is always right.
24422 if test "${PATH_SEPARATOR+set}" != set; then
24423 echo "#! /bin/sh" >conf$$.sh
24424 echo "exit 0" >>conf$$.sh
24425 chmod +x conf$$.sh
24426 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24427 PATH_SEPARATOR=';'
24428 else
24429 PATH_SEPARATOR=:
24430 fi
24431 rm -f conf$$.sh
24432 fi
24433
24434 # Support unset when possible.
24435 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24436 as_unset=unset
24437 else
24438 as_unset=false
24439 fi
24440
24441
24442 # IFS
24443 # We need space, tab and new line, in precisely that order. Quoting is
24444 # there to prevent editors from complaining about space-tab.
24445 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24446 # splitting by setting IFS to empty value.)
24447 as_nl='
24448 '
24449 IFS=" "" $as_nl"
24450
24451 # Find who we are. Look in the path if we contain no directory separator.
24452 case $0 in
24453 *[\\/]* ) as_myself=$0 ;;
24454 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24455 for as_dir in $PATH
24456 do
24457 IFS=$as_save_IFS
24458 test -z "$as_dir" && as_dir=.
24459 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24460 done
24461 IFS=$as_save_IFS
24462
24463 ;;
24464 esac
24465 # We did not find ourselves, most probably we were run as `sh COMMAND'
24466 # in which case we are not to be found in the path.
24467 if test "x$as_myself" = x; then
24468 as_myself=$0
24469 fi
24470 if test ! -f "$as_myself"; then
24471 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24472 { (exit 1); exit 1; }
24473 fi
24474
24475 # Work around bugs in pre-3.0 UWIN ksh.
24476 for as_var in ENV MAIL MAILPATH
24477 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24478 done
24479 PS1='$ '
24480 PS2='> '
24481 PS4='+ '
24482
24483 # NLS nuisances.
24484 for as_var in \
24485 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24486 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24487 LC_TELEPHONE LC_TIME
24488 do
24489 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24490 eval $as_var=C; export $as_var
24491 else
24492 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24493 fi
24494 done
24495
24496 # Required to use basename.
24497 if expr a : '\(a\)' >/dev/null 2>&1 &&
24498 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24499 as_expr=expr
24500 else
24501 as_expr=false
24502 fi
24503
24504 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24505 as_basename=basename
24506 else
24507 as_basename=false
24508 fi
24509
24510
24511 # Name of the executable.
24512 as_me=`$as_basename -- "$0" ||
24513 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24514 X"$0" : 'X\(//\)$' \| \
24515 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24516 echo X/"$0" |
24517 sed '/^.*\/\([^/][^/]*\)\/*$/{
24518 s//\1/
24519 q
24520 }
24521 /^X\/\(\/\/\)$/{
24522 s//\1/
24523 q
24524 }
24525 /^X\/\(\/\).*/{
24526 s//\1/
24527 q
24528 }
24529 s/.*/./; q'`
24530
24531 # CDPATH.
24532 $as_unset CDPATH
24533
24534
24535
24536 as_lineno_1=$LINENO
24537 as_lineno_2=$LINENO
24538 test "x$as_lineno_1" != "x$as_lineno_2" &&
24539 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24540
24541 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24542 # uniformly replaced by the line number. The first 'sed' inserts a
24543 # line-number line after each line using $LINENO; the second 'sed'
24544 # does the real work. The second script uses 'N' to pair each
24545 # line-number line with the line containing $LINENO, and appends
24546 # trailing '-' during substitution so that $LINENO is not a special
24547 # case at line end.
24548 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24549 # scripts with optimization help from Paolo Bonzini. Blame Lee
24550 # E. McMahon (1931-1989) for sed's syntax. :-)
24551 sed -n '
24552 p
24553 /[$]LINENO/=
24554 ' <$as_myself |
24555 sed '
24556 s/[$]LINENO.*/&-/
24557 t lineno
24558 b
24559 :lineno
24560 N
24561 :loop
24562 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24563 t loop
24564 s/-\n.*//
24565 ' >$as_me.lineno &&
24566 chmod +x "$as_me.lineno" ||
24567 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24568 { (exit 1); exit 1; }; }
24569
24570 # Don't try to exec as it changes $[0], causing all sort of problems
24571 # (the dirname of $[0] is not the place where we might find the
24572 # original and so on. Autoconf is especially sensitive to this).
24573 . "./$as_me.lineno"
24574 # Exit status is that of the last command.
24575 exit
24576 }
24577
24578
24579 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24580 as_dirname=dirname
24581 else
24582 as_dirname=false
24583 fi
24584
24585 ECHO_C= ECHO_N= ECHO_T=
24586 case `echo -n x` in
24587 -n*)
24588 case `echo 'x\c'` in
24589 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24590 *) ECHO_C='\c';;
24591 esac;;
24592 *)
24593 ECHO_N='-n';;
24594 esac
24595
24596 if expr a : '\(a\)' >/dev/null 2>&1 &&
24597 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24598 as_expr=expr
24599 else
24600 as_expr=false
24601 fi
24602
24603 rm -f conf$$ conf$$.exe conf$$.file
24604 if test -d conf$$.dir; then
24605 rm -f conf$$.dir/conf$$.file
24606 else
24607 rm -f conf$$.dir
24608 mkdir conf$$.dir
24609 fi
24610 echo >conf$$.file
24611 if ln -s conf$$.file conf$$ 2>/dev/null; then
24612 as_ln_s='ln -s'
24613 # ... but there are two gotchas:
24614 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24615 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24616 # In both cases, we have to default to `cp -p'.
24617 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24618 as_ln_s='cp -p'
24619 elif ln conf$$.file conf$$ 2>/dev/null; then
24620 as_ln_s=ln
24621 else
24622 as_ln_s='cp -p'
24623 fi
24624 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24625 rmdir conf$$.dir 2>/dev/null
24626
24627 if mkdir -p . 2>/dev/null; then
24628 as_mkdir_p=:
24629 else
24630 test -d ./-p && rmdir ./-p
24631 as_mkdir_p=false
24632 fi
24633
24634 if test -x / >/dev/null 2>&1; then
24635 as_test_x='test -x'
24636 else
24637 if ls -dL / >/dev/null 2>&1; then
24638 as_ls_L_option=L
24639 else
24640 as_ls_L_option=
24641 fi
24642 as_test_x='
24643 eval sh -c '\''
24644 if test -d "$1"; then
24645 test -d "$1/.";
24646 else
24647 case $1 in
24648 -*)set "./$1";;
24649 esac;
24650 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24651 ???[sx]*):;;*)false;;esac;fi
24652 '\'' sh
24653 '
24654 fi
24655 as_executable_p=$as_test_x
24656
24657 # Sed expression to map a string onto a valid CPP name.
24658 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24659
24660 # Sed expression to map a string onto a valid variable name.
24661 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24662
24663
24664 exec 6>&1
24665
24666 # Save the log message, to keep $[0] and so on meaningful, and to
24667 # report actual input values of CONFIG_FILES etc. instead of their
24668 # values after options handling.
24669 ac_log="
24670 This file was extended by $as_me, which was
24671 generated by GNU Autoconf 2.61. Invocation command line was
24672
24673 CONFIG_FILES = $CONFIG_FILES
24674 CONFIG_HEADERS = $CONFIG_HEADERS
24675 CONFIG_LINKS = $CONFIG_LINKS
24676 CONFIG_COMMANDS = $CONFIG_COMMANDS
24677 $ $0 $@
24678
24679 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24680 "
24681
24682 _ACEOF
24683
24684 cat >>$CONFIG_STATUS <<_ACEOF
24685 # Files that config.status was made for.
24686 config_files="$ac_config_files"
24687 config_headers="$ac_config_headers"
24688 config_commands="$ac_config_commands"
24689
24690 _ACEOF
24691
24692 cat >>$CONFIG_STATUS <<\_ACEOF
24693 ac_cs_usage="\
24694 \`$as_me' instantiates files from templates according to the
24695 current configuration.
24696
24697 Usage: $0 [OPTIONS] [FILE]...
24698
24699 -h, --help print this help, then exit
24700 -V, --version print version number and configuration settings, then exit
24701 -q, --quiet do not print progress messages
24702 -d, --debug don't remove temporary files
24703 --recheck update $as_me by reconfiguring in the same conditions
24704 --file=FILE[:TEMPLATE]
24705 instantiate the configuration file FILE
24706 --header=FILE[:TEMPLATE]
24707 instantiate the configuration header FILE
24708
24709 Configuration files:
24710 $config_files
24711
24712 Configuration headers:
24713 $config_headers
24714
24715 Configuration commands:
24716 $config_commands
24717
24718 Report bugs to <bug-autoconf@gnu.org>."
24719
24720 _ACEOF
24721 cat >>$CONFIG_STATUS <<_ACEOF
24722 ac_cs_version="\\
24723 config.status
24724 configured by $0, generated by GNU Autoconf 2.61,
24725 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24726
24727 Copyright (C) 2006 Free Software Foundation, Inc.
24728 This config.status script is free software; the Free Software Foundation
24729 gives unlimited permission to copy, distribute and modify it."
24730
24731 ac_pwd='$ac_pwd'
24732 srcdir='$srcdir'
24733 INSTALL='$INSTALL'
24734 _ACEOF
24735
24736 cat >>$CONFIG_STATUS <<\_ACEOF
24737 # If no file are specified by the user, then we need to provide default
24738 # value. By we need to know if files were specified by the user.
24739 ac_need_defaults=:
24740 while test $# != 0
24741 do
24742 case $1 in
24743 --*=*)
24744 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24745 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24746 ac_shift=:
24747 ;;
24748 *)
24749 ac_option=$1
24750 ac_optarg=$2
24751 ac_shift=shift
24752 ;;
24753 esac
24754
24755 case $ac_option in
24756 # Handling of the options.
24757 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24758 ac_cs_recheck=: ;;
24759 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24760 echo "$ac_cs_version"; exit ;;
24761 --debug | --debu | --deb | --de | --d | -d )
24762 debug=: ;;
24763 --file | --fil | --fi | --f )
24764 $ac_shift
24765 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24766 ac_need_defaults=false;;
24767 --header | --heade | --head | --hea )
24768 $ac_shift
24769 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24770 ac_need_defaults=false;;
24771 --he | --h)
24772 # Conflict between --help and --header
24773 { echo "$as_me: error: ambiguous option: $1
24774 Try \`$0 --help' for more information." >&2
24775 { (exit 1); exit 1; }; };;
24776 --help | --hel | -h )
24777 echo "$ac_cs_usage"; exit ;;
24778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24779 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24780 ac_cs_silent=: ;;
24781
24782 # This is an error.
24783 -*) { echo "$as_me: error: unrecognized option: $1
24784 Try \`$0 --help' for more information." >&2
24785 { (exit 1); exit 1; }; } ;;
24786
24787 *) ac_config_targets="$ac_config_targets $1"
24788 ac_need_defaults=false ;;
24789
24790 esac
24791 shift
24792 done
24793
24794 ac_configure_extra_args=
24795
24796 if $ac_cs_silent; then
24797 exec 6>/dev/null
24798 ac_configure_extra_args="$ac_configure_extra_args --silent"
24799 fi
24800
24801 _ACEOF
24802 cat >>$CONFIG_STATUS <<_ACEOF
24803 if \$ac_cs_recheck; then
24804 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24805 CONFIG_SHELL=$SHELL
24806 export CONFIG_SHELL
24807 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24808 fi
24809
24810 _ACEOF
24811 cat >>$CONFIG_STATUS <<\_ACEOF
24812 exec 5>>config.log
24813 {
24814 echo
24815 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24816 ## Running $as_me. ##
24817 _ASBOX
24818 echo "$ac_log"
24819 } >&5
24820
24821 _ACEOF
24822 cat >>$CONFIG_STATUS <<_ACEOF
24823 #
24824 # INIT-COMMANDS
24825 #
24826 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24827
24828 _ACEOF
24829
24830 cat >>$CONFIG_STATUS <<\_ACEOF
24831
24832 # Handling of arguments.
24833 for ac_config_target in $ac_config_targets
24834 do
24835 case $ac_config_target in
24836 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24837 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24838 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24839 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24840 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24841 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24842 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24843 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24844 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24845 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24846 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24847 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24848 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24849
24850 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24851 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24852 { (exit 1); exit 1; }; };;
24853 esac
24854 done
24855
24856
24857 # If the user did not use the arguments to specify the items to instantiate,
24858 # then the envvar interface is used. Set only those that are not.
24859 # We use the long form for the default assignment because of an extremely
24860 # bizarre bug on SunOS 4.1.3.
24861 if $ac_need_defaults; then
24862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24864 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24865 fi
24866
24867 # Have a temporary directory for convenience. Make it in the build tree
24868 # simply because there is no reason against having it here, and in addition,
24869 # creating and moving files from /tmp can sometimes cause problems.
24870 # Hook for its removal unless debugging.
24871 # Note that there is a small window in which the directory will not be cleaned:
24872 # after its creation but before its name has been assigned to `$tmp'.
24873 $debug ||
24874 {
24875 tmp=
24876 trap 'exit_status=$?
24877 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24878 ' 0
24879 trap '{ (exit 1); exit 1; }' 1 2 13 15
24880 }
24881 # Create a (secure) tmp directory for tmp files.
24882
24883 {
24884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24885 test -n "$tmp" && test -d "$tmp"
24886 } ||
24887 {
24888 tmp=./conf$$-$RANDOM
24889 (umask 077 && mkdir "$tmp")
24890 } ||
24891 {
24892 echo "$me: cannot create a temporary directory in ." >&2
24893 { (exit 1); exit 1; }
24894 }
24895
24896 #
24897 # Set up the sed scripts for CONFIG_FILES section.
24898 #
24899
24900 # No need to generate the scripts if there are no CONFIG_FILES.
24901 # This happens for instance when ./config.status config.h
24902 if test -n "$CONFIG_FILES"; then
24903
24904 _ACEOF
24905
24906
24907
24908 ac_delim='%!_!# '
24909 for ac_last_try in false false false false false :; do
24910 cat >conf$$subs.sed <<_ACEOF
24911 SHELL!$SHELL$ac_delim
24912 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24913 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24914 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24915 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24916 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24917 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24918 exec_prefix!$exec_prefix$ac_delim
24919 prefix!$prefix$ac_delim
24920 program_transform_name!$program_transform_name$ac_delim
24921 bindir!$bindir$ac_delim
24922 sbindir!$sbindir$ac_delim
24923 libexecdir!$libexecdir$ac_delim
24924 datarootdir!$datarootdir$ac_delim
24925 datadir!$datadir$ac_delim
24926 sysconfdir!$sysconfdir$ac_delim
24927 sharedstatedir!$sharedstatedir$ac_delim
24928 localstatedir!$localstatedir$ac_delim
24929 includedir!$includedir$ac_delim
24930 oldincludedir!$oldincludedir$ac_delim
24931 docdir!$docdir$ac_delim
24932 infodir!$infodir$ac_delim
24933 htmldir!$htmldir$ac_delim
24934 dvidir!$dvidir$ac_delim
24935 pdfdir!$pdfdir$ac_delim
24936 psdir!$psdir$ac_delim
24937 libdir!$libdir$ac_delim
24938 localedir!$localedir$ac_delim
24939 mandir!$mandir$ac_delim
24940 DEFS!$DEFS$ac_delim
24941 ECHO_C!$ECHO_C$ac_delim
24942 ECHO_N!$ECHO_N$ac_delim
24943 ECHO_T!$ECHO_T$ac_delim
24944 LIBS!$LIBS$ac_delim
24945 build_alias!$build_alias$ac_delim
24946 host_alias!$host_alias$ac_delim
24947 target_alias!$target_alias$ac_delim
24948 MAINT!$MAINT$ac_delim
24949 build!$build$ac_delim
24950 build_cpu!$build_cpu$ac_delim
24951 build_vendor!$build_vendor$ac_delim
24952 build_os!$build_os$ac_delim
24953 host!$host$ac_delim
24954 host_cpu!$host_cpu$ac_delim
24955 host_vendor!$host_vendor$ac_delim
24956 host_os!$host_os$ac_delim
24957 CC!$CC$ac_delim
24958 CFLAGS!$CFLAGS$ac_delim
24959 LDFLAGS!$LDFLAGS$ac_delim
24960 CPPFLAGS!$CPPFLAGS$ac_delim
24961 ac_ct_CC!$ac_ct_CC$ac_delim
24962 EXEEXT!$EXEEXT$ac_delim
24963 OBJEXT!$OBJEXT$ac_delim
24964 CPP!$CPP$ac_delim
24965 GREP!$GREP$ac_delim
24966 EGREP!$EGREP$ac_delim
24967 LN_S!$LN_S$ac_delim
24968 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24969 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24970 INSTALL_DATA!$INSTALL_DATA$ac_delim
24971 RANLIB!$RANLIB$ac_delim
24972 INSTALL_INFO!$INSTALL_INFO$ac_delim
24973 GZIP_PROG!$GZIP_PROG$ac_delim
24974 MAKEINFO!$MAKEINFO$ac_delim
24975 LIBSOUND!$LIBSOUND$ac_delim
24976 PKG_CONFIG!$PKG_CONFIG$ac_delim
24977 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24978 ALSA_LIBS!$ALSA_LIBS$ac_delim
24979 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24980 SET_MAKE!$SET_MAKE$ac_delim
24981 XMKMF!$XMKMF$ac_delim
24982 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24983 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24984 RSVG_LIBS!$RSVG_LIBS$ac_delim
24985 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24986 GTK_LIBS!$GTK_LIBS$ac_delim
24987 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24988 XFT_LIBS!$XFT_LIBS$ac_delim
24989 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24990 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24991 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24992 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24993 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24994 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24995 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24996 ALLOCA!$ALLOCA$ac_delim
24997 liblockfile!$liblockfile$ac_delim
24998 LIBOBJS!$LIBOBJS$ac_delim
24999 NEED_SETGID!$NEED_SETGID$ac_delim
25000 KMEM_GROUP!$KMEM_GROUP$ac_delim
25001 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25002 GETOPT_H!$GETOPT_H$ac_delim
25003 GETOPTOBJS!$GETOPTOBJS$ac_delim
25004 version!$version$ac_delim
25005 configuration!$configuration$ac_delim
25006 canonical!$canonical$ac_delim
25007 srcdir!$srcdir$ac_delim
25008 _ACEOF
25009
25010 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25011 break
25012 elif $ac_last_try; then
25013 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25014 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25015 { (exit 1); exit 1; }; }
25016 else
25017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25018 fi
25019 done
25020
25021 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25022 if test -n "$ac_eof"; then
25023 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25024 ac_eof=`expr $ac_eof + 1`
25025 fi
25026
25027 cat >>$CONFIG_STATUS <<_ACEOF
25028 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25030 _ACEOF
25031 sed '
25032 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25033 s/^/s,@/; s/!/@,|#_!!_#|/
25034 :n
25035 t n
25036 s/'"$ac_delim"'$/,g/; t
25037 s/$/\\/; p
25038 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25039 ' >>$CONFIG_STATUS <conf$$subs.sed
25040 rm -f conf$$subs.sed
25041 cat >>$CONFIG_STATUS <<_ACEOF
25042 CEOF$ac_eof
25043 _ACEOF
25044
25045
25046 ac_delim='%!_!# '
25047 for ac_last_try in false false false false false :; do
25048 cat >conf$$subs.sed <<_ACEOF
25049 lispdir!$lispdir$ac_delim
25050 locallisppath!$locallisppath$ac_delim
25051 lisppath!$lisppath$ac_delim
25052 x_default_search_path!$x_default_search_path$ac_delim
25053 etcdir!$etcdir$ac_delim
25054 archlibdir!$archlibdir$ac_delim
25055 bitmapdir!$bitmapdir$ac_delim
25056 gamedir!$gamedir$ac_delim
25057 gameuser!$gameuser$ac_delim
25058 c_switch_system!$c_switch_system$ac_delim
25059 c_switch_machine!$c_switch_machine$ac_delim
25060 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25061 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25062 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25063 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25064 machfile!$machfile$ac_delim
25065 opsysfile!$opsysfile$ac_delim
25066 carbon_appdir!$carbon_appdir$ac_delim
25067 LTLIBOBJS!$LTLIBOBJS$ac_delim
25068 _ACEOF
25069
25070 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
25071 break
25072 elif $ac_last_try; then
25073 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25074 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25075 { (exit 1); exit 1; }; }
25076 else
25077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25078 fi
25079 done
25080
25081 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25082 if test -n "$ac_eof"; then
25083 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25084 ac_eof=`expr $ac_eof + 1`
25085 fi
25086
25087 cat >>$CONFIG_STATUS <<_ACEOF
25088 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25090 _ACEOF
25091 sed '
25092 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25093 s/^/s,@/; s/!/@,|#_!!_#|/
25094 :n
25095 t n
25096 s/'"$ac_delim"'$/,g/; t
25097 s/$/\\/; p
25098 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25099 ' >>$CONFIG_STATUS <conf$$subs.sed
25100 rm -f conf$$subs.sed
25101 cat >>$CONFIG_STATUS <<_ACEOF
25102 :end
25103 s/|#_!!_#|//g
25104 CEOF$ac_eof
25105 _ACEOF
25106
25107
25108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25110 # trailing colons and then remove the whole line if VPATH becomes empty
25111 # (actually we leave an empty line to preserve line numbers).
25112 if test "x$srcdir" = x.; then
25113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25114 s/:*\$(srcdir):*/:/
25115 s/:*\${srcdir}:*/:/
25116 s/:*@srcdir@:*/:/
25117 s/^\([^=]*=[ ]*\):*/\1/
25118 s/:*$//
25119 s/^[^=]*=[ ]*$//
25120 }'
25121 fi
25122
25123 cat >>$CONFIG_STATUS <<\_ACEOF
25124 fi # test -n "$CONFIG_FILES"
25125
25126
25127 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25128 do
25129 case $ac_tag in
25130 :[FHLC]) ac_mode=$ac_tag; continue;;
25131 esac
25132 case $ac_mode$ac_tag in
25133 :[FHL]*:*);;
25134 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25135 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25136 { (exit 1); exit 1; }; };;
25137 :[FH]-) ac_tag=-:-;;
25138 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25139 esac
25140 ac_save_IFS=$IFS
25141 IFS=:
25142 set x $ac_tag
25143 IFS=$ac_save_IFS
25144 shift
25145 ac_file=$1
25146 shift
25147
25148 case $ac_mode in
25149 :L) ac_source=$1;;
25150 :[FH])
25151 ac_file_inputs=
25152 for ac_f
25153 do
25154 case $ac_f in
25155 -) ac_f="$tmp/stdin";;
25156 *) # Look for the file first in the build tree, then in the source tree
25157 # (if the path is not absolute). The absolute path cannot be DOS-style,
25158 # because $ac_f cannot contain `:'.
25159 test -f "$ac_f" ||
25160 case $ac_f in
25161 [\\/$]*) false;;
25162 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25163 esac ||
25164 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25165 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25166 { (exit 1); exit 1; }; };;
25167 esac
25168 ac_file_inputs="$ac_file_inputs $ac_f"
25169 done
25170
25171 # Let's still pretend it is `configure' which instantiates (i.e., don't
25172 # use $as_me), people would be surprised to read:
25173 # /* config.h. Generated by config.status. */
25174 configure_input="Generated from "`IFS=:
25175 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25176 if test x"$ac_file" != x-; then
25177 configure_input="$ac_file. $configure_input"
25178 { echo "$as_me:$LINENO: creating $ac_file" >&5
25179 echo "$as_me: creating $ac_file" >&6;}
25180 fi
25181
25182 case $ac_tag in
25183 *:-:* | *:-) cat >"$tmp/stdin";;
25184 esac
25185 ;;
25186 esac
25187
25188 ac_dir=`$as_dirname -- "$ac_file" ||
25189 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25190 X"$ac_file" : 'X\(//\)[^/]' \| \
25191 X"$ac_file" : 'X\(//\)$' \| \
25192 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25193 echo X"$ac_file" |
25194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25195 s//\1/
25196 q
25197 }
25198 /^X\(\/\/\)[^/].*/{
25199 s//\1/
25200 q
25201 }
25202 /^X\(\/\/\)$/{
25203 s//\1/
25204 q
25205 }
25206 /^X\(\/\).*/{
25207 s//\1/
25208 q
25209 }
25210 s/.*/./; q'`
25211 { as_dir="$ac_dir"
25212 case $as_dir in #(
25213 -*) as_dir=./$as_dir;;
25214 esac
25215 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25216 as_dirs=
25217 while :; do
25218 case $as_dir in #(
25219 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25220 *) as_qdir=$as_dir;;
25221 esac
25222 as_dirs="'$as_qdir' $as_dirs"
25223 as_dir=`$as_dirname -- "$as_dir" ||
25224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25225 X"$as_dir" : 'X\(//\)[^/]' \| \
25226 X"$as_dir" : 'X\(//\)$' \| \
25227 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25228 echo X"$as_dir" |
25229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25230 s//\1/
25231 q
25232 }
25233 /^X\(\/\/\)[^/].*/{
25234 s//\1/
25235 q
25236 }
25237 /^X\(\/\/\)$/{
25238 s//\1/
25239 q
25240 }
25241 /^X\(\/\).*/{
25242 s//\1/
25243 q
25244 }
25245 s/.*/./; q'`
25246 test -d "$as_dir" && break
25247 done
25248 test -z "$as_dirs" || eval "mkdir $as_dirs"
25249 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25250 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25251 { (exit 1); exit 1; }; }; }
25252 ac_builddir=.
25253
25254 case "$ac_dir" in
25255 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25256 *)
25257 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25258 # A ".." for each directory in $ac_dir_suffix.
25259 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25260 case $ac_top_builddir_sub in
25261 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25262 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25263 esac ;;
25264 esac
25265 ac_abs_top_builddir=$ac_pwd
25266 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25267 # for backward compatibility:
25268 ac_top_builddir=$ac_top_build_prefix
25269
25270 case $srcdir in
25271 .) # We are building in place.
25272 ac_srcdir=.
25273 ac_top_srcdir=$ac_top_builddir_sub
25274 ac_abs_top_srcdir=$ac_pwd ;;
25275 [\\/]* | ?:[\\/]* ) # Absolute name.
25276 ac_srcdir=$srcdir$ac_dir_suffix;
25277 ac_top_srcdir=$srcdir
25278 ac_abs_top_srcdir=$srcdir ;;
25279 *) # Relative name.
25280 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25281 ac_top_srcdir=$ac_top_build_prefix$srcdir
25282 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25283 esac
25284 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25285
25286
25287 case $ac_mode in
25288 :F)
25289 #
25290 # CONFIG_FILE
25291 #
25292
25293 case $INSTALL in
25294 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25295 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25296 esac
25297 _ACEOF
25298
25299 cat >>$CONFIG_STATUS <<\_ACEOF
25300 # If the template does not know about datarootdir, expand it.
25301 # FIXME: This hack should be removed a few years after 2.60.
25302 ac_datarootdir_hack=; ac_datarootdir_seen=
25303
25304 case `sed -n '/datarootdir/ {
25305 p
25306 q
25307 }
25308 /@datadir@/p
25309 /@docdir@/p
25310 /@infodir@/p
25311 /@localedir@/p
25312 /@mandir@/p
25313 ' $ac_file_inputs` in
25314 *datarootdir*) ac_datarootdir_seen=yes;;
25315 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25316 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25317 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25318 _ACEOF
25319 cat >>$CONFIG_STATUS <<_ACEOF
25320 ac_datarootdir_hack='
25321 s&@datadir@&$datadir&g
25322 s&@docdir@&$docdir&g
25323 s&@infodir@&$infodir&g
25324 s&@localedir@&$localedir&g
25325 s&@mandir@&$mandir&g
25326 s&\\\${datarootdir}&$datarootdir&g' ;;
25327 esac
25328 _ACEOF
25329
25330 # Neutralize VPATH when `$srcdir' = `.'.
25331 # Shell code in configure.ac might set extrasub.
25332 # FIXME: do we really want to maintain this feature?
25333 cat >>$CONFIG_STATUS <<_ACEOF
25334 sed "$ac_vpsub
25335 $extrasub
25336 _ACEOF
25337 cat >>$CONFIG_STATUS <<\_ACEOF
25338 :t
25339 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25340 s&@configure_input@&$configure_input&;t t
25341 s&@top_builddir@&$ac_top_builddir_sub&;t t
25342 s&@srcdir@&$ac_srcdir&;t t
25343 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25344 s&@top_srcdir@&$ac_top_srcdir&;t t
25345 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25346 s&@builddir@&$ac_builddir&;t t
25347 s&@abs_builddir@&$ac_abs_builddir&;t t
25348 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25349 s&@INSTALL@&$ac_INSTALL&;t t
25350 $ac_datarootdir_hack
25351 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25352
25353 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25354 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25355 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25356 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25357 which seems to be undefined. Please make sure it is defined." >&5
25358 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25359 which seems to be undefined. Please make sure it is defined." >&2;}
25360
25361 rm -f "$tmp/stdin"
25362 case $ac_file in
25363 -) cat "$tmp/out"; rm -f "$tmp/out";;
25364 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25365 esac
25366 ;;
25367 :H)
25368 #
25369 # CONFIG_HEADER
25370 #
25371 _ACEOF
25372
25373 # Transform confdefs.h into a sed script `conftest.defines', that
25374 # substitutes the proper values into config.h.in to produce config.h.
25375 rm -f conftest.defines conftest.tail
25376 # First, append a space to every undef/define line, to ease matching.
25377 echo 's/$/ /' >conftest.defines
25378 # Then, protect against being on the right side of a sed subst, or in
25379 # an unquoted here document, in config.status. If some macros were
25380 # called several times there might be several #defines for the same
25381 # symbol, which is useless. But do not sort them, since the last
25382 # AC_DEFINE must be honored.
25383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25384 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25385 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25386 # PARAMS is the parameter list in the macro definition--in most cases, it's
25387 # just an empty string.
25388 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25389 ac_dB='\\)[ (].*,\\1define\\2'
25390 ac_dC=' '
25391 ac_dD=' ,'
25392
25393 uniq confdefs.h |
25394 sed -n '
25395 t rset
25396 :rset
25397 s/^[ ]*#[ ]*define[ ][ ]*//
25398 t ok
25399 d
25400 :ok
25401 s/[\\&,]/\\&/g
25402 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25403 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25404 ' >>conftest.defines
25405
25406 # Remove the space that was appended to ease matching.
25407 # Then replace #undef with comments. This is necessary, for
25408 # example, in the case of _POSIX_SOURCE, which is predefined and required
25409 # on some systems where configure will not decide to define it.
25410 # (The regexp can be short, since the line contains either #define or #undef.)
25411 echo 's/ $//
25412 s,^[ #]*u.*,/* & */,' >>conftest.defines
25413
25414 # Break up conftest.defines:
25415 ac_max_sed_lines=50
25416
25417 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25418 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25419 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25420 # et cetera.
25421 ac_in='$ac_file_inputs'
25422 ac_out='"$tmp/out1"'
25423 ac_nxt='"$tmp/out2"'
25424
25425 while :
25426 do
25427 # Write a here document:
25428 cat >>$CONFIG_STATUS <<_ACEOF
25429 # First, check the format of the line:
25430 cat >"\$tmp/defines.sed" <<\\CEOF
25431 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25432 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25433 b
25434 :def
25435 _ACEOF
25436 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25437 echo 'CEOF
25438 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25439 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25440 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25441 grep . conftest.tail >/dev/null || break
25442 rm -f conftest.defines
25443 mv conftest.tail conftest.defines
25444 done
25445 rm -f conftest.defines conftest.tail
25446
25447 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25448 cat >>$CONFIG_STATUS <<\_ACEOF
25449 if test x"$ac_file" != x-; then
25450 echo "/* $configure_input */" >"$tmp/config.h"
25451 cat "$ac_result" >>"$tmp/config.h"
25452 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25453 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25454 echo "$as_me: $ac_file is unchanged" >&6;}
25455 else
25456 rm -f $ac_file
25457 mv "$tmp/config.h" $ac_file
25458 fi
25459 else
25460 echo "/* $configure_input */"
25461 cat "$ac_result"
25462 fi
25463 rm -f "$tmp/out12"
25464 ;;
25465
25466 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25467 echo "$as_me: executing $ac_file commands" >&6;}
25468 ;;
25469 esac
25470
25471
25472 case $ac_file$ac_mode in
25473 "default":C)
25474
25475 ### Make the necessary directories, if they don't exist.
25476 for dir in etc lisp ; do
25477 test -d ${dir} || mkdir ${dir}
25478 done
25479
25480 # Build src/Makefile from ${srcdir}/src/Makefile.c
25481 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25482 # This must be done after src/config.h is built, since we rely on that file.
25483
25484 # Now get this: Some word that is part of the ${srcdir} directory name
25485 # or the ${configuration} value might, just might, happen to be an
25486 # identifier like `sun4' or `i386' or something, and be predefined by
25487 # the C preprocessor to some helpful value like 1, or maybe the empty
25488 # string. Needless to say consequent macro substitutions are less
25489 # than conducive to the makefile finding the correct directory.
25490 undefs="`echo $top_srcdir $configuration $canonical |
25491 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25492 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25493 `"
25494
25495 echo creating src/epaths.h
25496 ${MAKE-make} epaths-force
25497
25498 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25499 # `..' to `. .' unless invoked with -traditional
25500
25501 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25502 CPPFLAGS="$CPPFLAGS -traditional"
25503 fi
25504
25505 echo creating lib-src/Makefile
25506 ( cd lib-src
25507 rm -f junk.c junk1.c junk2.c
25508 sed -e '/start of cpp stuff/q' \
25509 < Makefile.c > junk1.c
25510 sed -e '1,/start of cpp stuff/d'\
25511 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25512 < Makefile.c > junk.c
25513 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25514 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25515 cat junk1.c junk2.c > Makefile.new
25516 rm -f junk.c junk1.c junk2.c
25517 chmod 444 Makefile.new
25518 mv -f Makefile.new Makefile
25519 )
25520
25521 echo creating src/Makefile
25522 ( cd src
25523 rm -f junk.c junk1.c junk2.c
25524 sed -e '/start of cpp stuff/q' \
25525 < Makefile.c > junk1.c
25526 sed -e '1,/start of cpp stuff/d'\
25527 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25528 < Makefile.c > junk.c
25529 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25530 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25531 fi
25532 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25533 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25534 cat junk1.c junk2.c > Makefile.new
25535 rm -f junk.c junk1.c junk2.c
25536 chmod 444 Makefile.new
25537 mv -f Makefile.new Makefile
25538 )
25539
25540 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25541 echo creating src/.gdbinit
25542 echo source $srcdir/src/.gdbinit > src/.gdbinit
25543 fi
25544
25545 # This is how we know whether to re-run configure in certain cases.
25546 touch src/config.stamp
25547
25548 ;;
25549
25550 esac
25551 done # for ac_tag
25552
25553
25554 { (exit 0); exit 0; }
25555 _ACEOF
25556 chmod +x $CONFIG_STATUS
25557 ac_clean_files=$ac_clean_files_save
25558
25559
25560 # configure is writing to config.log, and then calls config.status.
25561 # config.status does its own redirection, appending to config.log.
25562 # Unfortunately, on DOS this fails, as config.log is still kept open
25563 # by configure, so config.status won't be able to write to it; its
25564 # output is simply discarded. So we exec the FD to /dev/null,
25565 # effectively closing config.log, so it can be properly (re)opened and
25566 # appended to by config.status. When coming back to configure, we
25567 # need to make the FD available again.
25568 if test "$no_create" != yes; then
25569 ac_cs_success=:
25570 ac_config_status_args=
25571 test "$silent" = yes &&
25572 ac_config_status_args="$ac_config_status_args --quiet"
25573 exec 5>/dev/null
25574 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25575 exec 5>>config.log
25576 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25577 # would make configure fail if this is the last instruction.
25578 $ac_cs_success || { (exit 1); exit 1; }
25579 fi
25580
25581