Regenerate, with the manual shell-function-message patch back from the dead.
[bpt/emacs.git] / 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 Please tell bug-autoconf@gnu.org about your system,
416 echo including any error possibly output before this message.
417 echo This can help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
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 ALLOCA
698 liblockfile
699 LIBOBJS
700 NEED_SETGID
701 KMEM_GROUP
702 GETLOADAVG_LIBS
703 GETOPT_H
704 GETOPTOBJS
705 version
706 configuration
707 canonical
708 srcdir
709 lispdir
710 locallisppath
711 lisppath
712 x_default_search_path
713 etcdir
714 archlibdir
715 bitmapdir
716 gamedir
717 gameuser
718 c_switch_system
719 c_switch_machine
720 LD_SWITCH_X_SITE
721 LD_SWITCH_X_SITE_AUX
722 C_SWITCH_X_SITE
723 X_TOOLKIT_TYPE
724 machfile
725 opsysfile
726 carbon_appdir
727 LTLIBOBJS'
728 ac_subst_files=''
729 ac_precious_vars='build_alias
730 host_alias
731 target_alias
732 CC
733 CFLAGS
734 LDFLAGS
735 LIBS
736 CPPFLAGS
737 CPP
738 XMKMF'
739
740
741 # Initialize some variables set by options.
742 ac_init_help=
743 ac_init_version=false
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
746 cache_file=/dev/null
747 exec_prefix=NONE
748 no_create=
749 no_recursion=
750 prefix=NONE
751 program_prefix=NONE
752 program_suffix=NONE
753 program_transform_name=s,x,x,
754 silent=
755 site=
756 srcdir=
757 verbose=
758 x_includes=NONE
759 x_libraries=NONE
760
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE}'
778 infodir='${datarootdir}/info'
779 htmldir='${docdir}'
780 dvidir='${docdir}'
781 pdfdir='${docdir}'
782 psdir='${docdir}'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
786
787 ac_prev=
788 ac_dashdash=
789 for ac_option
790 do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
796 fi
797
798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
833
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
841 -disable-* | --disable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=no ;;
849
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
854
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
859
860 -enable-* | --enable-*)
861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_$ac_feature=\$ac_optarg ;;
868
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
877
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
881
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
888
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
893
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
899
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
906
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
911
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
916
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
923
924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
928
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
935
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
940
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
944
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
948
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
952
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
961
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
966
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
973
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
980
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
997
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1002
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1007
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1011
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1017
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1028
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1033
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1038
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1045
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1050
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1053
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1056
1057 -with-* | --with-*)
1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_$ac_package=\$ac_optarg ;;
1065
1066 -without-* | --without-*)
1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094 Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1096 ;;
1097
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 ;;
1114
1115 esac
1116 done
1117
1118 if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1122 fi
1123
1124 # Be sure to have absolute directory names.
1125 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1129 do
1130 eval ac_val=\$$ac_var
1131 case $ac_val in
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 esac
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1137 done
1138
1139 # There might be people who depend on the old broken behavior: `$host'
1140 # used to hold the argument of --host etc.
1141 # FIXME: To remove some day.
1142 build=$build_alias
1143 host=$host_alias
1144 target=$target_alias
1145
1146 # FIXME: To remove some day.
1147 if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1154 fi
1155 fi
1156
1157 ac_tool_prefix=
1158 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160 test "$silent" = yes && exec 6>/dev/null
1161
1162
1163 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164 ac_ls_di=`ls -di .` &&
1165 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1171
1172
1173 # Find the source files, if location was not specified.
1174 if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$0" ||
1178 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182 echo X"$0" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\).*/{
1196 s//\1/
1197 q
1198 }
1199 s/.*/./; q'`
1200 srcdir=$ac_confdir
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 srcdir=..
1203 fi
1204 else
1205 ac_srcdir_defaulted=no
1206 fi
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1211 fi
1212 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213 ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1216 pwd)`
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220 fi
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1224 case $srcdir in
1225 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226 esac
1227 for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232 done
1233
1234 #
1235 # Report the --help message.
1236 #
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241 \`configure' configures this package to adapt to many kinds of systems.
1242
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248 Defaults for the options are specified in brackets.
1249
1250 Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1266
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1271
1272 For better control, use the options below.
1273
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294 _ACEOF
1295
1296 cat <<\_ACEOF
1297
1298 Program names:
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1302
1303 X features:
1304 --x-includes=DIR X include files are in DIR
1305 --x-libraries=DIR X library files are in DIR
1306
1307 System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310 _ACEOF
1311 fi
1312
1313 if test -n "$ac_init_help"; then
1314
1315 cat <<\_ACEOF
1316
1317 Optional Features:
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-carbon-app[=DIR]
1321 specify install directory for Emacs.app on Mac OS X
1322 [DIR=/Application]
1323 --enable-asserts compile code with asserts enabled
1324 --enable-maintainer-mode
1325 enable make rules and dependencies not useful (and
1326 sometimes confusing) to the casual installer
1327 --enable-locallisppath=PATH
1328 directories Emacs should search for lisp files
1329 specific to this site
1330 --disable-largefile omit support for large files
1331
1332 Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --without-gcc don't use GCC to compile Emacs if GCC is found
1336 --without-pop don't support POP mail retrieval with movemail
1337 --with-kerberos support Kerberos-authenticated POP
1338 --with-kerberos5 support Kerberos version 5 authenticated POP
1339 --with-hesiod support Hesiod to get the POP server host
1340 --without-sound don't compile with sound support
1341 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1342 motif, gtk, no)
1343 --with-xpm use -lXpm for displaying XPM images
1344 --with-jpeg use -ljpeg for displaying JPEG images
1345 --with-tiff use -ltiff for displaying TIFF images
1346 --with-gif use -lgif (or -lungif) for displaying GIF images
1347 --with-png use -lpng for displaying PNG images
1348 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1349 --with-rsvg use -lrsvg-2 for displaying SVG images
1350 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1351 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1352 --without-toolkit-scroll-bars
1353 don't use Motif or Xaw3d scroll bars
1354 --without-xaw3d don't use Xaw3d
1355 --without-xim don't use X11 XIM
1356 --without-carbon don't use Carbon GUI on Mac OS X
1357 --with-x use the X Window System
1358
1359 Some influential environment variables:
1360 CC C compiler command
1361 CFLAGS C compiler flags
1362 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1363 nonstandard directory <lib dir>
1364 LIBS libraries to pass to the linker, e.g. -l<library>
1365 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1366 you have headers in a nonstandard directory <include dir>
1367 CPP C preprocessor
1368 XMKMF Path to xmkmf, Makefile generator for X Window System
1369
1370 Use these variables to override the choices made by `configure' or to help
1371 it to find libraries and programs with nonstandard names/locations.
1372
1373 _ACEOF
1374 ac_status=$?
1375 fi
1376
1377 if test "$ac_init_help" = "recursive"; then
1378 # If there are subdirs, report their specific --help.
1379 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1380 test -d "$ac_dir" || continue
1381 ac_builddir=.
1382
1383 case "$ac_dir" in
1384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *)
1386 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1387 # A ".." for each directory in $ac_dir_suffix.
1388 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1389 case $ac_top_builddir_sub in
1390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392 esac ;;
1393 esac
1394 ac_abs_top_builddir=$ac_pwd
1395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1396 # for backward compatibility:
1397 ac_top_builddir=$ac_top_build_prefix
1398
1399 case $srcdir in
1400 .) # We are building in place.
1401 ac_srcdir=.
1402 ac_top_srcdir=$ac_top_builddir_sub
1403 ac_abs_top_srcdir=$ac_pwd ;;
1404 [\\/]* | ?:[\\/]* ) # Absolute name.
1405 ac_srcdir=$srcdir$ac_dir_suffix;
1406 ac_top_srcdir=$srcdir
1407 ac_abs_top_srcdir=$srcdir ;;
1408 *) # Relative name.
1409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410 ac_top_srcdir=$ac_top_build_prefix$srcdir
1411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1412 esac
1413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1414
1415 cd "$ac_dir" || { ac_status=$?; continue; }
1416 # Check for guested configure.
1417 if test -f "$ac_srcdir/configure.gnu"; then
1418 echo &&
1419 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420 elif test -f "$ac_srcdir/configure"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure" --help=recursive
1423 else
1424 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1425 fi || ac_status=$?
1426 cd "$ac_pwd" || { ac_status=$?; break; }
1427 done
1428 fi
1429
1430 test -n "$ac_init_help" && exit $ac_status
1431 if $ac_init_version; then
1432 cat <<\_ACEOF
1433 configure
1434 generated by GNU Autoconf 2.61
1435
1436 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1437 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1438 This configure script is free software; the Free Software Foundation
1439 gives unlimited permission to copy, distribute and modify it.
1440 _ACEOF
1441 exit
1442 fi
1443 cat >config.log <<_ACEOF
1444 This file contains any messages produced by compilers while
1445 running configure, to aid debugging if configure makes a mistake.
1446
1447 It was created by $as_me, which was
1448 generated by GNU Autoconf 2.61. Invocation command line was
1449
1450 $ $0 $@
1451
1452 _ACEOF
1453 exec 5>>config.log
1454 {
1455 cat <<_ASUNAME
1456 ## --------- ##
1457 ## Platform. ##
1458 ## --------- ##
1459
1460 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1461 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1462 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1463 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1464 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1465
1466 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1467 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1468
1469 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1470 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1471 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1472 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1473 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1474 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1475 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1476
1477 _ASUNAME
1478
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1481 do
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 echo "PATH: $as_dir"
1485 done
1486 IFS=$as_save_IFS
1487
1488 } >&5
1489
1490 cat >&5 <<_ACEOF
1491
1492
1493 ## ----------- ##
1494 ## Core tests. ##
1495 ## ----------- ##
1496
1497 _ACEOF
1498
1499
1500 # Keep a trace of the command line.
1501 # Strip out --no-create and --no-recursion so they do not pile up.
1502 # Strip out --silent because we don't want to record it for future runs.
1503 # Also quote any args containing shell meta-characters.
1504 # Make two passes to allow for proper duplicate-argument suppression.
1505 ac_configure_args=
1506 ac_configure_args0=
1507 ac_configure_args1=
1508 ac_must_keep_next=false
1509 for ac_pass in 1 2
1510 do
1511 for ac_arg
1512 do
1513 case $ac_arg in
1514 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1516 | -silent | --silent | --silen | --sile | --sil)
1517 continue ;;
1518 *\'*)
1519 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1520 esac
1521 case $ac_pass in
1522 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1523 2)
1524 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1525 if test $ac_must_keep_next = true; then
1526 ac_must_keep_next=false # Got value, back to normal.
1527 else
1528 case $ac_arg in
1529 *=* | --config-cache | -C | -disable-* | --disable-* \
1530 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1531 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1532 | -with-* | --with-* | -without-* | --without-* | --x)
1533 case "$ac_configure_args0 " in
1534 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1535 esac
1536 ;;
1537 -* ) ac_must_keep_next=true ;;
1538 esac
1539 fi
1540 ac_configure_args="$ac_configure_args '$ac_arg'"
1541 ;;
1542 esac
1543 done
1544 done
1545 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1546 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1547
1548 # When interrupted or exit'd, cleanup temporary files, and complete
1549 # config.log. We remove comments because anyway the quotes in there
1550 # would cause problems or look ugly.
1551 # WARNING: Use '\'' to represent an apostrophe within the trap.
1552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1553 trap 'exit_status=$?
1554 # Save into config.log some information that might help in debugging.
1555 {
1556 echo
1557
1558 cat <<\_ASBOX
1559 ## ---------------- ##
1560 ## Cache variables. ##
1561 ## ---------------- ##
1562 _ASBOX
1563 echo
1564 # The following way of writing the cache mishandles newlines in values,
1565 (
1566 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1567 eval ac_val=\$$ac_var
1568 case $ac_val in #(
1569 *${as_nl}*)
1570 case $ac_var in #(
1571 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1572 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1573 esac
1574 case $ac_var in #(
1575 _ | IFS | as_nl) ;; #(
1576 *) $as_unset $ac_var ;;
1577 esac ;;
1578 esac
1579 done
1580 (set) 2>&1 |
1581 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1582 *${as_nl}ac_space=\ *)
1583 sed -n \
1584 "s/'\''/'\''\\\\'\'''\''/g;
1585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1586 ;; #(
1587 *)
1588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1589 ;;
1590 esac |
1591 sort
1592 )
1593 echo
1594
1595 cat <<\_ASBOX
1596 ## ----------------- ##
1597 ## Output variables. ##
1598 ## ----------------- ##
1599 _ASBOX
1600 echo
1601 for ac_var in $ac_subst_vars
1602 do
1603 eval ac_val=\$$ac_var
1604 case $ac_val in
1605 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1606 esac
1607 echo "$ac_var='\''$ac_val'\''"
1608 done | sort
1609 echo
1610
1611 if test -n "$ac_subst_files"; then
1612 cat <<\_ASBOX
1613 ## ------------------- ##
1614 ## File substitutions. ##
1615 ## ------------------- ##
1616 _ASBOX
1617 echo
1618 for ac_var in $ac_subst_files
1619 do
1620 eval ac_val=\$$ac_var
1621 case $ac_val in
1622 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1623 esac
1624 echo "$ac_var='\''$ac_val'\''"
1625 done | sort
1626 echo
1627 fi
1628
1629 if test -s confdefs.h; then
1630 cat <<\_ASBOX
1631 ## ----------- ##
1632 ## confdefs.h. ##
1633 ## ----------- ##
1634 _ASBOX
1635 echo
1636 cat confdefs.h
1637 echo
1638 fi
1639 test "$ac_signal" != 0 &&
1640 echo "$as_me: caught signal $ac_signal"
1641 echo "$as_me: exit $exit_status"
1642 } >&5
1643 rm -f core *.core core.conftest.* &&
1644 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1645 exit $exit_status
1646 ' 0
1647 for ac_signal in 1 2 13 15; do
1648 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1649 done
1650 ac_signal=0
1651
1652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1653 rm -f -r conftest* confdefs.h
1654
1655 # Predefined preprocessor variables.
1656
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_NAME "$PACKAGE_NAME"
1659 _ACEOF
1660
1661
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1664 _ACEOF
1665
1666
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1669 _ACEOF
1670
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_STRING "$PACKAGE_STRING"
1674 _ACEOF
1675
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1679 _ACEOF
1680
1681
1682 # Let the site file select an alternate cache file if it wants to.
1683 # Prefer explicitly selected file to automatically selected ones.
1684 if test -n "$CONFIG_SITE"; then
1685 set x "$CONFIG_SITE"
1686 elif test "x$prefix" != xNONE; then
1687 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1688 else
1689 set x "$ac_default_prefix/share/config.site" \
1690 "$ac_default_prefix/etc/config.site"
1691 fi
1692 shift
1693 for ac_site_file
1694 do
1695 if test -r "$ac_site_file"; then
1696 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1697 echo "$as_me: loading site script $ac_site_file" >&6;}
1698 sed 's/^/| /' "$ac_site_file" >&5
1699 . "$ac_site_file"
1700 fi
1701 done
1702
1703 if test -r "$cache_file"; then
1704 # Some versions of bash will fail to source /dev/null (special
1705 # files actually), so we avoid doing that.
1706 if test -f "$cache_file"; then
1707 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1708 echo "$as_me: loading cache $cache_file" >&6;}
1709 case $cache_file in
1710 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1711 *) . "./$cache_file";;
1712 esac
1713 fi
1714 else
1715 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1716 echo "$as_me: creating cache $cache_file" >&6;}
1717 >$cache_file
1718 fi
1719
1720 ac_header_list="$ac_header_list sys/time.h"
1721 ac_header_list="$ac_header_list unistd.h"
1722 ac_func_list="$ac_func_list alarm"
1723 # Check that the precious variables saved in the cache have kept the same
1724 # value.
1725 ac_cache_corrupted=false
1726 for ac_var in $ac_precious_vars; do
1727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728 eval ac_new_set=\$ac_env_${ac_var}_set
1729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730 eval ac_new_val=\$ac_env_${ac_var}_value
1731 case $ac_old_set,$ac_new_set in
1732 set,)
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1736 ,set)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1738 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,);;
1741 *)
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
1743 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1744 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1745 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1746 echo "$as_me: former value: $ac_old_val" >&2;}
1747 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1748 echo "$as_me: current value: $ac_new_val" >&2;}
1749 ac_cache_corrupted=:
1750 fi;;
1751 esac
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1754 case $ac_new_val in
1755 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 *) ac_arg=$ac_var=$ac_new_val ;;
1757 esac
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1761 esac
1762 fi
1763 done
1764 if $ac_cache_corrupted; then
1765 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1766 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1767 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1768 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1769 { (exit 1); exit 1; }; }
1770 fi
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788 ac_ext=c
1789 ac_cpp='$CPP $CPPFLAGS'
1790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1793
1794
1795 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1796
1797
1798 test "$program_prefix" != NONE &&
1799 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1800 # Use a double $ so make ignores it.
1801 test "$program_suffix" != NONE &&
1802 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1803 # Double any \ or $. echo might interpret backslashes.
1804 # By default was `s,x,x', remove it if useless.
1805 cat <<\_ACEOF >conftest.sed
1806 s/[\\$]/&&/g;s/;s,x,x,$//
1807 _ACEOF
1808 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1809 rm -f conftest.sed
1810
1811
1812 lispdir='${datadir}/emacs/${version}/lisp'
1813 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1814 '${datadir}/emacs/site-lisp'
1815 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1816 etcdir='${datadir}/emacs/${version}/etc'
1817 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1818 docdir='${datadir}/emacs/${version}/etc'
1819 gamedir='${localstatedir}/games/emacs'
1820
1821 gameuser=games
1822
1823
1824
1825 # Check whether --with-gcc was given.
1826 if test "${with_gcc+set}" = set; then
1827 withval=$with_gcc;
1828 fi
1829
1830
1831
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1837 _ACEOF
1838
1839 else :
1840 fi
1841 else
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1844 _ACEOF
1845
1846 fi
1847
1848
1849
1850
1851 # Check whether --with-kerberos was given.
1852 if test "${with_kerberos+set}" = set; then
1853 withval=$with_kerberos; if test "$withval" = yes; then
1854 cat >>confdefs.h <<\_ACEOF
1855 #define KERBEROS 1
1856 _ACEOF
1857
1858 fi
1859 fi
1860
1861
1862
1863
1864 # Check whether --with-kerberos5 was given.
1865 if test "${with_kerberos5+set}" = set; then
1866 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1867 if test "${with_kerberos+set}" != set; then
1868 with_kerberos=yes
1869 cat >>confdefs.h <<\_ACEOF
1870 #define KERBEROS 1
1871 _ACEOF
1872
1873 fi
1874
1875 cat >>confdefs.h <<\_ACEOF
1876 #define KERBEROS5 1
1877 _ACEOF
1878
1879 fi
1880 fi
1881
1882
1883
1884 # Check whether --with-hesiod was given.
1885 if test "${with_hesiod+set}" = set; then
1886 withval=$with_hesiod; if test "$withval" = yes; then
1887
1888 cat >>confdefs.h <<\_ACEOF
1889 #define HESIOD 1
1890 _ACEOF
1891
1892 fi
1893 fi
1894
1895
1896
1897 # Check whether --with-sound was given.
1898 if test "${with_sound+set}" = set; then
1899 withval=$with_sound;
1900 fi
1901
1902
1903
1904 # Check whether --with-x-toolkit was given.
1905 if test "${with_x_toolkit+set}" = set; then
1906 withval=$with_x_toolkit; case "${withval}" in
1907 y | ye | yes ) val=gtk ;;
1908 n | no ) val=no ;;
1909 l | lu | luc | luci | lucid ) val=lucid ;;
1910 a | at | ath | athe | athen | athena ) val=athena ;;
1911 m | mo | mot | moti | motif ) val=motif ;;
1912 g | gt | gtk ) val=gtk ;;
1913 * )
1914 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1915 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1916 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1917 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1918 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1919 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1920 { (exit 1); exit 1; }; }
1921 ;;
1922 esac
1923 with_x_toolkit=$val
1924
1925 fi
1926
1927
1928
1929 # Check whether --with-xpm was given.
1930 if test "${with_xpm+set}" = set; then
1931 withval=$with_xpm;
1932 fi
1933
1934
1935 # Check whether --with-jpeg was given.
1936 if test "${with_jpeg+set}" = set; then
1937 withval=$with_jpeg;
1938 fi
1939
1940
1941 # Check whether --with-tiff was given.
1942 if test "${with_tiff+set}" = set; then
1943 withval=$with_tiff;
1944 fi
1945
1946
1947 # Check whether --with-gif was given.
1948 if test "${with_gif+set}" = set; then
1949 withval=$with_gif;
1950 fi
1951
1952
1953 # Check whether --with-png was given.
1954 if test "${with_png+set}" = set; then
1955 withval=$with_png;
1956 fi
1957
1958
1959 # Check whether --with-gpm was given.
1960 if test "${with_gpm+set}" = set; then
1961 withval=$with_gpm;
1962 fi
1963
1964
1965 # Check whether --with-rsvg was given.
1966 if test "${with_rsvg+set}" = set; then
1967 withval=$with_rsvg;
1968 fi
1969
1970
1971 # Check whether --with-gtk was given.
1972 if test "${with_gtk+set}" = set; then
1973 withval=$with_gtk;
1974 fi
1975
1976
1977 # Check whether --with-pkg-config-prog was given.
1978 if test "${with_pkg_config_prog+set}" = set; then
1979 withval=$with_pkg_config_prog;
1980 fi
1981
1982
1983 # Check whether --with-toolkit-scroll-bars was given.
1984 if test "${with_toolkit_scroll_bars+set}" = set; then
1985 withval=$with_toolkit_scroll_bars;
1986 fi
1987
1988
1989 # Check whether --with-xaw3d was given.
1990 if test "${with_xaw3d+set}" = set; then
1991 withval=$with_xaw3d;
1992 fi
1993
1994
1995 # Check whether --with-xim was given.
1996 if test "${with_xim+set}" = set; then
1997 withval=$with_xim;
1998 fi
1999
2000
2001 # Check whether --with-carbon was given.
2002 if test "${with_carbon+set}" = set; then
2003 withval=$with_carbon;
2004 fi
2005
2006
2007 # Check whether --enable-carbon-app was given.
2008 if test "${enable_carbon_app+set}" = set; then
2009 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2010 fi
2011
2012
2013 # Check whether --enable-asserts was given.
2014 if test "${enable_asserts+set}" = set; then
2015 enableval=$enable_asserts; USE_XASSERTS=$enableval
2016 else
2017 USE_XASSERTS=no
2018 fi
2019
2020
2021 # Check whether --enable-maintainer-mode was given.
2022 if test "${enable_maintainer_mode+set}" = set; then
2023 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2024 else
2025 USE_MAINTAINER_MODE=no
2026 fi
2027
2028 if test $USE_MAINTAINER_MODE = yes; then
2029 MAINT=
2030 else
2031 MAINT=#
2032 fi
2033
2034
2035 # Check whether --enable-locallisppath was given.
2036 if test "${enable_locallisppath+set}" = set; then
2037 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2038 locallisppath=
2039 elif test "${enableval}" != "yes"; then
2040 locallisppath=${enableval}
2041 fi
2042 fi
2043
2044
2045 #### Make srcdir absolute, if it isn't already. It's important to
2046 #### avoid running the path through pwd unnecessarily, since pwd can
2047 #### give you automounter prefixes, which can go away. We do all this
2048 #### so Emacs can find its files when run uninstalled.
2049 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2050 unset CDPATH
2051 case "${srcdir}" in
2052 /* ) ;;
2053 . )
2054 ## We may be able to use the $PWD environment variable to make this
2055 ## absolute. But sometimes PWD is inaccurate.
2056 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2057 ## but that tested only for a well-formed and valid PWD,
2058 ## it did not object when PWD was well-formed and valid but just wrong.
2059 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2060 then
2061 srcdir="$PWD"
2062 else
2063 srcdir="`(cd ${srcdir}; pwd)`"
2064 fi
2065 ;;
2066 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2067 esac
2068
2069 #### Check if the source directory already has a configured system in it.
2070 if test `pwd` != `(cd ${srcdir} && pwd)` \
2071 && test -f "${srcdir}/src/config.h" ; then
2072 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2073 as a build directory right now; it has been configured in its own
2074 right. To configure in another directory as well, you MUST
2075 use GNU make. If you do not have GNU make, then you must
2076 now do \`make distclean' in ${srcdir},
2077 and then run $0 again." >&5
2078 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2079 as a build directory right now; it has been configured in its own
2080 right. To configure in another directory as well, you MUST
2081 use GNU make. If you do not have GNU make, then you must
2082 now do \`make distclean' in ${srcdir},
2083 and then run $0 again." >&2;}
2084 fi
2085
2086 #### Given the configuration name, set machfile and opsysfile to the
2087 #### names of the m/*.h and s/*.h files we should use.
2088
2089 ### Canonicalize the configuration name.
2090
2091 ac_aux_dir=
2092 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2093 if test -f "$ac_dir/install-sh"; then
2094 ac_aux_dir=$ac_dir
2095 ac_install_sh="$ac_aux_dir/install-sh -c"
2096 break
2097 elif test -f "$ac_dir/install.sh"; then
2098 ac_aux_dir=$ac_dir
2099 ac_install_sh="$ac_aux_dir/install.sh -c"
2100 break
2101 elif test -f "$ac_dir/shtool"; then
2102 ac_aux_dir=$ac_dir
2103 ac_install_sh="$ac_aux_dir/shtool install -c"
2104 break
2105 fi
2106 done
2107 if test -z "$ac_aux_dir"; then
2108 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2109 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2110 { (exit 1); exit 1; }; }
2111 fi
2112
2113 # These three variables are undocumented and unsupported,
2114 # and are intended to be withdrawn in a future Autoconf release.
2115 # They can cause serious problems if a builder's source tree is in a directory
2116 # whose full name contains unusual characters.
2117 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2118 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2119 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2120
2121
2122 # Make sure we can run config.sub.
2123 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2124 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2126 { (exit 1); exit 1; }; }
2127
2128 { echo "$as_me:$LINENO: checking build system type" >&5
2129 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_build+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 ac_build_alias=$build_alias
2134 test "x$ac_build_alias" = x &&
2135 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2136 test "x$ac_build_alias" = x &&
2137 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139 { (exit 1); exit 1; }; }
2140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2144
2145 fi
2146 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147 echo "${ECHO_T}$ac_cv_build" >&6; }
2148 case $ac_cv_build in
2149 *-*-*) ;;
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151 echo "$as_me: error: invalid value of canonical build" >&2;}
2152 { (exit 1); exit 1; }; };;
2153 esac
2154 build=$ac_cv_build
2155 ac_save_IFS=$IFS; IFS='-'
2156 set x $ac_cv_build
2157 shift
2158 build_cpu=$1
2159 build_vendor=$2
2160 shift; shift
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2163 build_os=$*
2164 IFS=$ac_save_IFS
2165 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2166
2167
2168 { echo "$as_me:$LINENO: checking host system type" >&5
2169 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_host+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test "x$host_alias" = x; then
2174 ac_cv_host=$ac_cv_build
2175 else
2176 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2179 { (exit 1); exit 1; }; }
2180 fi
2181
2182 fi
2183 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184 echo "${ECHO_T}$ac_cv_host" >&6; }
2185 case $ac_cv_host in
2186 *-*-*) ;;
2187 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188 echo "$as_me: error: invalid value of canonical host" >&2;}
2189 { (exit 1); exit 1; }; };;
2190 esac
2191 host=$ac_cv_host
2192 ac_save_IFS=$IFS; IFS='-'
2193 set x $ac_cv_host
2194 shift
2195 host_cpu=$1
2196 host_vendor=$2
2197 shift; shift
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2200 host_os=$*
2201 IFS=$ac_save_IFS
2202 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2203
2204
2205 canonical=$host
2206 configuration=${host_alias-${build_alias-$host}}
2207
2208
2209
2210 ### If you add support for a new configuration, add code to this
2211 ### switch statement to recognize your configuration name and select
2212 ### the appropriate operating system and machine description files.
2213
2214 ### You would hope that you could choose an m/*.h file pretty much
2215 ### based on the machine portion of the configuration name, and an s-
2216 ### file based on the operating system portion. However, it turns out
2217 ### that each m/*.h file is pretty manufacturer-specific - for
2218 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2219 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2220 ### machines. So we basically have to have a special case for each
2221 ### configuration name.
2222 ###
2223 ### As far as handling version numbers on operating systems is
2224 ### concerned, make sure things will fail in a fixable way. If
2225 ### /etc/MACHINES doesn't say anything about version numbers, be
2226 ### prepared to handle anything reasonably. If version numbers
2227 ### matter, be sure /etc/MACHINES says something about it.
2228 ###
2229 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2230 ### "System V Release 4"; he writes, "The old convention encouraged
2231 ### confusion between `system' and `release' levels'."
2232
2233 machine='' opsys='' unported=no
2234 case "${canonical}" in
2235
2236 ## FreeBSD ports
2237 *-*-freebsd* )
2238 opsys=freebsd
2239 case "${canonical}" in
2240 alpha*-*-freebsd*) machine=alpha ;;
2241 ia64-*-freebsd*) machine=ia64 ;;
2242 sparc64-*-freebsd*) machine=sparc ;;
2243 powerpc-*-freebsd*) machine=macppc ;;
2244 i[3456]86-*-freebsd*) machine=intel386 ;;
2245 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2246 esac
2247 ;;
2248
2249 ## FreeBSD kernel + glibc based userland
2250 *-*-kfreebsd*gnu* )
2251 opsys=gnu-kfreebsd
2252 case "${canonical}" in
2253 alpha*-*-kfreebsd*) machine=alpha ;;
2254 ia64-*-kfreebsd*) machine=ia64 ;;
2255 sparc64-*-kfreebsd*) machine=sparc ;;
2256 powerpc-*-kfreebsd*) machine=macppc ;;
2257 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2258 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2259 esac
2260 ;;
2261
2262 ## NetBSD ports
2263 *-*-netbsd* )
2264 opsys=netbsd
2265 if test -f /usr/lib/crti.o; then
2266
2267 cat >>confdefs.h <<\_ACEOF
2268 #define HAVE_CRTIN
2269 _ACEOF
2270
2271 fi
2272
2273 case "${canonical}" in
2274 alpha*-*-netbsd*) machine=alpha ;;
2275 i[3456]86-*-netbsd*) machine=intel386 ;;
2276 m68k-*-netbsd*)
2277 # This is somewhat bogus.
2278 machine=hp9000s300 ;;
2279 mips-*-netbsd*) machine=pmax ;;
2280 mipsel-*-netbsd*) machine=pmax ;;
2281 mipseb-*-netbsd*) machine=pmax ;;
2282 ns32k-*-netbsd*) machine=ns32000 ;;
2283 powerpc-*-netbsd*) machine=macppc ;;
2284 sparc*-*-netbsd*) machine=sparc ;;
2285 vax-*-netbsd*) machine=vax ;;
2286 arm-*-netbsd*) machine=arm ;;
2287 x86_64-*-netbsd*) machine=amdx86-64 ;;
2288 hppa-*-netbsd*) machine=hp800 ;;
2289 shle-*-netbsd*) machine=sh3el ;;
2290 esac
2291 ;;
2292
2293 ## OpenBSD ports
2294 *-*-openbsd* )
2295 opsys=openbsd
2296 case "${canonical}" in
2297 alpha*-*-openbsd*) machine=alpha ;;
2298 arm-*-openbsd*) machine=arm ;;
2299 hppa-*-openbsd*) machine=hp9000s300 ;;
2300 i386-*-openbsd*) machine=intel386 ;;
2301 m68k-*-openbsd*) machine=hp9000s300 ;;
2302 m88k-*-openbsd*) machine=aviion ;;
2303 mips64-*-openbsd*) machine=mips64 ;;
2304 powerpc-*-openbsd*) machine=macppc ;;
2305 sh-*-openbsd*) machine=sh3el ;;
2306 sparc*-*-openbsd*) machine=sparc ;;
2307 vax-*-openbsd*) machine=vax ;;
2308 x86_64-*-openbsd*) machine=amdx86-64 ;;
2309 esac
2310 ;;
2311
2312 ## LynxOS ports
2313 *-*-lynxos* )
2314 opsys=lynxos
2315 case "${canonical}" in
2316 i[3456]86-*-lynxos*) machine=intel386 ;;
2317 powerpc-*-lynxos*) machine=powerpc ;;
2318 esac
2319 ;;
2320
2321 ## Acorn RISCiX:
2322 arm-acorn-riscix1.1* )
2323 machine=acorn opsys=riscix1-1
2324 ;;
2325 arm-acorn-riscix1.2* | arm-acorn-riscix )
2326 ## This name is riscix12 instead of riscix1.2
2327 ## to avoid a file name conflict on MSDOS.
2328 machine=acorn opsys=riscix12
2329 ;;
2330
2331 ## BSDI ports
2332 *-*-bsdi* )
2333 opsys=bsdi
2334 case "${canonical}" in
2335 i[345]86-*-bsdi*) machine=intel386 ;;
2336 sparc-*-bsdi*) machine=sparc ;;
2337 powerpc-*-bsdi*) machine=macppc ;;
2338 esac
2339 case "${canonical}" in
2340 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2341 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2342 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2343 *-*-bsdi3* ) opsys=bsdos3 ;;
2344 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2345 esac
2346 ;;
2347
2348 ## Alliant machines
2349 ## Strictly speaking, we need the version of the alliant operating
2350 ## system to choose the right machine file, but currently the
2351 ## configuration name doesn't tell us enough to choose the right
2352 ## one; we need to give alliants their own operating system name to
2353 ## do this right. When someone cares, they can help us.
2354 fx80-alliant-* )
2355 machine=alliant4 opsys=bsd4-2
2356 ;;
2357 i860-alliant-* )
2358 machine=alliant-2800 opsys=bsd4-3
2359 ;;
2360
2361 ## Alpha (DEC) machines.
2362 alpha*-dec-osf* )
2363 machine=alpha opsys=osf1
2364 # This is needed to find X11R6.1 libraries for certain tests.
2365 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2366 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2367 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2368 # due to non-traditional preprocessing with the current compiler
2369 # defaults. OSF 4 can also have that compiler version, and there
2370 # seems always to have been a usable /usr/bin/cpp.
2371 NON_GNU_CPP=/usr/bin/cpp
2372 case "${canonical}" in
2373 alpha*-dec-osf[5-9]*)
2374 opsys=osf5-0 ;;
2375 esac
2376 ;;
2377
2378 alpha*-*-linux-gnu* )
2379 machine=alpha opsys=gnu-linux
2380 ;;
2381
2382 arm*-*-linux-gnu* )
2383 machine=arm opsys=gnu-linux
2384 ;;
2385
2386 ## Altos 3068
2387 m68*-altos-sysv* )
2388 machine=altos opsys=usg5-2
2389 ;;
2390
2391 ## Amdahl UTS
2392 580-amdahl-sysv* )
2393 machine=amdahl opsys=usg5-2-2
2394 ;;
2395
2396 ## Apollo, Domain/OS
2397 m68*-apollo-* )
2398 machine=apollo opsys=bsd4-3
2399 ;;
2400
2401 ## Apple Darwin / Mac OS X
2402 *-apple-darwin* )
2403 case "${canonical}" in
2404 i[3456]86-* ) machine=intel386 ;;
2405 powerpc-* ) machine=powermac ;;
2406 * ) unported=yes ;;
2407 esac
2408 opsys=darwin
2409 # Define CPP as follows to make autoconf work correctly.
2410 CPP="${CC-cc} -E -no-cpp-precomp"
2411 # Use fink packages if available.
2412 if test -d /sw/include && test -d /sw/lib; then
2413 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2414 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2415 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2416 fi
2417 ;;
2418
2419 ## AT&T 3b2, 3b5, 3b15, 3b20
2420 we32k-att-sysv* )
2421 machine=att3b opsys=usg5-2-2
2422 ;;
2423
2424 ## AT&T 3b1 - The Mighty Unix PC!
2425 m68*-att-sysv* )
2426 machine=7300 opsys=usg5-2-2
2427 ;;
2428
2429 ## Bull dpx20
2430 rs6000-bull-bosx* )
2431 machine=ibmrs6000 opsys=aix3-2
2432 ;;
2433
2434 ## Bull dpx2
2435 m68*-bull-sysv3* )
2436 machine=dpx2 opsys=usg5-3
2437 ;;
2438
2439 ## Bull sps7
2440 m68*-bull-sysv2* )
2441 machine=sps7 opsys=usg5-2
2442 ;;
2443
2444 ## CCI 5/32, 6/32 -- see "Tahoe".
2445
2446 ## Celerity
2447 ## I don't know what configuration name to use for this; config.sub
2448 ## doesn't seem to know anything about it. Hey, Celerity users, get
2449 ## in touch with us!
2450 celerity-celerity-bsd* )
2451 machine=celerity opsys=bsd4-2
2452 ;;
2453
2454 ## Clipper
2455 ## What operating systems does this chip run that Emacs has been
2456 ## tested on?
2457 clipper-* )
2458 machine=clipper
2459 ## We'll use the catch-all code at the bottom to guess the
2460 ## operating system.
2461 ;;
2462
2463 ## Compaq Nonstop
2464 mips-compaq-nonstopux* )
2465 machine=nonstopux opsys=nonstopux
2466 ;;
2467
2468 ## Convex
2469 *-convex-bsd* | *-convex-convexos* )
2470 machine=convex opsys=bsd4-3
2471 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2472 NON_GNU_CPP="cc -E -P"
2473 ;;
2474
2475 ## Cubix QBx/386
2476 i[3456]86-cubix-sysv* )
2477 machine=intel386 opsys=usg5-3
2478 ;;
2479
2480 ## Cydra 5
2481 cydra*-cydrome-sysv* )
2482 machine=cydra5 opsys=usg5-3
2483 ;;
2484
2485 ## Data General AViiON Machines
2486 ## DG changed naming conventions with the release of 5.4.4.10, they
2487 ## dropped the initial 5.4 but left the intervening R. Because of the
2488 ## R this shouldn't conflict with older versions of the OS (which I
2489 ## think were named like dgux4.*). In addition, DG new AViiONs series
2490 ## uses either Motorola M88k or Intel Pentium CPUs.
2491 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2492 machine=aviion opsys=dgux4
2493 ;;
2494 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2495 ## This name is dgux5-4-3 instead of dgux5-4r3
2496 ## to avoid a file name conflict on MSDOS.
2497 machine=aviion opsys=dgux5-4-3
2498 ;;
2499 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2500 machine=aviion opsys=dgux5-4r2
2501 ;;
2502 m88k-dg-dgux* )
2503 machine=aviion opsys=dgux
2504 ;;
2505
2506 ## Data General AViiON Intel (x86) Machines
2507 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2508 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2509 i[345]86-dg-dguxR4* )
2510 machine=aviion-intel opsys=dgux4
2511 ;;
2512
2513 ## DECstations
2514 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2515 machine=pmax opsys=bsd4-2
2516 ;;
2517 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2518 machine=pmax opsys=bsd4-3
2519 ;;
2520 mips-dec-ultrix* )
2521 machine=pmax opsys=ultrix4-3
2522 ;;
2523 mips-dec-osf* )
2524 machine=pmax opsys=osf1
2525 ;;
2526 mips-dec-mach_bsd4.3* )
2527 machine=pmax opsys=mach-bsd4-3
2528 ;;
2529
2530 ## Motorola Delta machines
2531 m68k-motorola-sysv* | m68000-motorola-sysv* )
2532 machine=delta opsys=usg5-3
2533 if test -z "`type gnucc | grep 'not found'`"
2534 then
2535 if test -s /etc/167config
2536 then CC="gnucc -m68040"
2537 else CC="gnucc -m68881"
2538 fi
2539 else
2540 if test -z "`type gcc | grep 'not found'`"
2541 then CC=gcc
2542 else CC=cc
2543 fi
2544 fi
2545 ;;
2546 m88k-motorola-sysv4* )
2547 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2548 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2549 # I hope there are not other 4.0 versions for this machine
2550 # which really need usg5-4 instead.
2551 machine=delta88k opsys=usg5-4-2
2552 ;;
2553 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2554 machine=delta88k opsys=usg5-3
2555 ;;
2556
2557 ## Dual machines
2558 m68*-dual-sysv* )
2559 machine=dual opsys=usg5-2
2560 ;;
2561 m68*-dual-uniplus* )
2562 machine=dual opsys=unipl5-2
2563 ;;
2564
2565 ## Elxsi 6400
2566 elxsi-elxsi-sysv* )
2567 machine=elxsi opsys=usg5-2
2568 ;;
2569
2570 ## Encore machines
2571 ns16k-encore-bsd* )
2572 machine=ns16000 opsys=umax
2573 ;;
2574
2575 ## The GEC 63 - apparently, this port isn't really finished yet.
2576 # I'm sure we finished off the last of the machines, though. -- fx
2577
2578 ## Gould Power Node and NP1
2579 pn-gould-bsd4.2* )
2580 machine=gould opsys=bsd4-2
2581 ;;
2582 pn-gould-bsd4.3* )
2583 machine=gould opsys=bsd4-3
2584 ;;
2585 np1-gould-bsd* )
2586 machine=gould-np1 opsys=bsd4-3
2587 ;;
2588
2589 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2590 ## as far as Emacs is concerned).
2591 m88k-harris-cxux* )
2592 # Build needs to be different on 7.0 and later releases
2593 case "`uname -r`" in
2594 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2595 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2596 esac
2597 NON_GNU_CPP="/lib/cpp"
2598 ;;
2599 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2600 m68k-harris-cxux* )
2601 machine=nh3000 opsys=cxux
2602 ;;
2603 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2604 powerpc-harris-powerunix )
2605 machine=nh6000 opsys=powerunix
2606 NON_GNU_CPP="cc -Xo -E -P"
2607 ;;
2608 ## SR2001/SR2201 running HI-UX/MPP
2609 hppa1.1-hitachi-hiuxmpp* )
2610 machine=sr2k opsys=hiuxmpp
2611 ;;
2612 hppa1.1-hitachi-hiuxwe2* )
2613 machine=sr2k opsys=hiuxwe2
2614 ;;
2615 ## Honeywell XPS100
2616 xps*-honeywell-sysv* )
2617 machine=xps100 opsys=usg5-2
2618 ;;
2619
2620 ## HP 9000 series 200 or 300
2621 m68*-hp-bsd* )
2622 machine=hp9000s300 opsys=bsd4-3
2623 ;;
2624 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2625 m68*-hp-hpux* )
2626 case "`uname -r`" in
2627 ## Someone's system reports A.B8.05 for this.
2628 ## I wonder what other possibilities there are.
2629 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2630 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2631 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2632 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2633 *) machine=hp9000s300 opsys=hpux ;;
2634 esac
2635 ;;
2636
2637 ## HP 9000 series 700 and 800, running HP/UX
2638 hppa*-hp-hpux7* )
2639 machine=hp800 opsys=hpux
2640 ;;
2641 hppa*-hp-hpux8* )
2642 machine=hp800 opsys=hpux8
2643 ;;
2644 hppa*-hp-hpux9shr* )
2645 machine=hp800 opsys=hpux9shr
2646 ;;
2647 hppa*-hp-hpux9* )
2648 machine=hp800 opsys=hpux9
2649 ;;
2650 hppa*-hp-hpux10.2* )
2651 machine=hp800 opsys=hpux10-20
2652 ;;
2653 hppa*-hp-hpux10* )
2654 machine=hp800 opsys=hpux10
2655 ;;
2656 hppa*-hp-hpux1[1-9]* )
2657 machine=hp800 opsys=hpux11
2658 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2659 ;;
2660
2661 hppa*-*-linux-gnu* )
2662 machine=hp800 opsys=gnu-linux
2663 ;;
2664
2665 ## HP 9000 series 700 and 800, running HP/UX
2666 hppa*-hp-hpux* )
2667 ## Cross-compilation? Nah!
2668 case "`uname -r`" in
2669 ## Someone's system reports A.B8.05 for this.
2670 ## I wonder what other possibilities there are.
2671 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2672 *.08.* ) machine=hp800 opsys=hpux8 ;;
2673 *.09.* ) machine=hp800 opsys=hpux9 ;;
2674 *) machine=hp800 opsys=hpux10 ;;
2675 esac
2676 ;;
2677 hppa*-*-nextstep* )
2678 machine=hp800 opsys=nextstep
2679 ;;
2680
2681 ## Orion machines
2682 orion-orion-bsd* )
2683 machine=orion opsys=bsd4-2
2684 ;;
2685 clipper-orion-bsd* )
2686 machine=orion105 opsys=bsd4-2
2687 ;;
2688
2689 ## IBM machines
2690 i[3456]86-ibm-aix1.1* )
2691 machine=ibmps2-aix opsys=usg5-2-2
2692 ;;
2693 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2694 machine=ibmps2-aix opsys=usg5-3
2695 ;;
2696 i370-ibm-aix*)
2697 machine=ibm370aix opsys=usg5-3
2698 ;;
2699 s390-*-linux-gnu* )
2700 machine=ibms390 opsys=gnu-linux
2701 ;;
2702 s390x-*-linux-gnu* )
2703 machine=ibms390x opsys=gnu-linux
2704 ;;
2705 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2706 machine=ibmrs6000 opsys=aix3-1
2707 ;;
2708 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2709 machine=ibmrs6000 opsys=aix3-2-5
2710 ;;
2711 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2712 machine=ibmrs6000 opsys=aix4-1
2713 ;;
2714 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2715 machine=ibmrs6000 opsys=aix4-2
2716 ;;
2717 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2718 machine=ibmrs6000 opsys=aix4-2
2719 ;;
2720 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2721 machine=ibmrs6000 opsys=aix4-2
2722 ;;
2723 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2724 machine=ibmrs6000 opsys=aix4
2725 ;;
2726 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2727 machine=ibmrs6000 opsys=aix4-1
2728 ;;
2729 rs6000-ibm-aix* | powerpc-ibm-aix* )
2730 machine=ibmrs6000 opsys=aix3-2
2731 ;;
2732 romp-ibm-bsd4.3* )
2733 machine=ibmrt opsys=bsd4-3
2734 ;;
2735 romp-ibm-bsd4.2* )
2736 machine=ibmrt opsys=bsd4-2
2737 ;;
2738 romp-ibm-aos4.3* )
2739 machine=ibmrt opsys=bsd4-3
2740 ;;
2741 romp-ibm-aos4.2* )
2742 machine=ibmrt opsys=bsd4-2
2743 ;;
2744 romp-ibm-aos* )
2745 machine=ibmrt opsys=bsd4-3
2746 ;;
2747 romp-ibm-bsd* )
2748 machine=ibmrt opsys=bsd4-3
2749 ;;
2750 romp-ibm-aix* )
2751 machine=ibmrt-aix opsys=usg5-2-2
2752 ;;
2753
2754 ## Integrated Solutions `Optimum V'
2755 m68*-isi-bsd4.2* )
2756 machine=isi-ov opsys=bsd4-2
2757 ;;
2758 m68*-isi-bsd4.3* )
2759 machine=isi-ov opsys=bsd4-3
2760 ;;
2761
2762 ## Intel 386 machines where we do care about the manufacturer
2763 i[3456]86-intsys-sysv* )
2764 machine=is386 opsys=usg5-2-2
2765 ;;
2766
2767 ## Prime EXL
2768 i[3456]86-prime-sysv* )
2769 machine=i386 opsys=usg5-3
2770 ;;
2771
2772 ## Sequent Symmetry running Dynix
2773 i[3456]86-sequent-bsd* )
2774 machine=symmetry opsys=bsd4-3
2775 ;;
2776
2777 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2778 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2779 machine=sequent-ptx opsys=ptx4
2780 NON_GNU_CPP=/lib/cpp
2781 ;;
2782
2783 ## Sequent Symmetry running DYNIX/ptx
2784 ## Use the old cpp rather than the newer ANSI one.
2785 i[3456]86-sequent-ptx* )
2786 machine=sequent-ptx opsys=ptx
2787 NON_GNU_CPP="/lib/cpp"
2788 ;;
2789
2790 ## ncr machine running svr4.3.
2791 i[3456]86-ncr-sysv4.3 )
2792 machine=ncr386 opsys=usg5-4-3
2793 ;;
2794
2795 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2796 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2797 i[3456]86-ncr-sysv* )
2798 machine=ncr386 opsys=usg5-4-2
2799 ;;
2800
2801 ## Intel Paragon OSF/1
2802 i860-intel-osf1* )
2803 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2804 ;;
2805
2806 ## Intel 860
2807 i860-*-sysv4* )
2808 machine=i860 opsys=usg5-4
2809 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2810 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2811 ;;
2812
2813 ## Macintosh PowerPC
2814 powerpc*-*-linux-gnu* )
2815 machine=macppc opsys=gnu-linux
2816 ;;
2817
2818 ## Masscomp machines
2819 m68*-masscomp-rtu* )
2820 machine=masscomp opsys=rtu
2821 ;;
2822
2823 ## Megatest machines
2824 m68*-megatest-bsd* )
2825 machine=mega68 opsys=bsd4-2
2826 ;;
2827
2828 ## Workstations sold by MIPS
2829 ## This is not necessarily all workstations using the MIPS processor -
2830 ## Irises are produced by SGI, and DECstations by DEC.
2831
2832 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2833 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2834 ## it gives for choosing between the alternatives seems to be "Use
2835 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2836 ## the BSD world." I'll assume that these are instructions for
2837 ## handling two odd situations, and that every other situation
2838 ## should use mips.h and usg5-2-2, they being listed first.
2839 mips-mips-usg* )
2840 machine=mips4
2841 ## Fall through to the general code at the bottom to decide on the OS.
2842 ;;
2843 mips-mips-riscos4* )
2844 machine=mips4 opsys=bsd4-3
2845 NON_GNU_CC="cc -systype bsd43"
2846 NON_GNU_CPP="cc -systype bsd43 -E"
2847 ;;
2848 mips-mips-riscos5* )
2849 machine=mips4 opsys=riscos5
2850 NON_GNU_CC="cc -systype bsd43"
2851 NON_GNU_CPP="cc -systype bsd43 -E"
2852 ;;
2853 mips-mips-bsd* )
2854 machine=mips opsys=bsd4-3
2855 ;;
2856 mips-mips-* )
2857 machine=mips opsys=usg5-2-2
2858 ;;
2859
2860 ## NeXT
2861 m68*-next-* | m68k-*-nextstep* )
2862 machine=m68k opsys=nextstep
2863 ;;
2864
2865 ## The complete machine from National Semiconductor
2866 ns32k-ns-genix* )
2867 machine=ns32000 opsys=usg5-2
2868 ;;
2869
2870 ## NCR machines
2871 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2872 machine=tower32 opsys=usg5-2-2
2873 ;;
2874 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2875 machine=tower32v3 opsys=usg5-3
2876 ;;
2877
2878 ## NEC EWS4800
2879 mips-nec-sysv4*)
2880 machine=ews4800 opsys=ux4800
2881 ;;
2882
2883 ## Nixdorf Targon 31
2884 m68*-nixdorf-sysv* )
2885 machine=targon31 opsys=usg5-2-2
2886 ;;
2887
2888 ## Nu (TI or LMI)
2889 m68*-nu-sysv* )
2890 machine=nu opsys=usg5-2
2891 ;;
2892
2893 ## Plexus
2894 m68*-plexus-sysv* )
2895 machine=plexus opsys=usg5-2
2896 ;;
2897
2898 ## Pyramid machines
2899 ## I don't really have any idea what sort of processor the Pyramid has,
2900 ## so I'm assuming it is its own architecture.
2901 pyramid-pyramid-bsd* )
2902 machine=pyramid opsys=bsd4-2
2903 ;;
2904
2905 ## Sequent Balance
2906 ns32k-sequent-bsd4.2* )
2907 machine=sequent opsys=bsd4-2
2908 ;;
2909 ns32k-sequent-bsd4.3* )
2910 machine=sequent opsys=bsd4-3
2911 ;;
2912
2913 ## Siemens Nixdorf
2914 mips-siemens-sysv* | mips-sni-sysv*)
2915 machine=mips-siemens opsys=usg5-4
2916 NON_GNU_CC=/usr/ccs/bin/cc
2917 NON_GNU_CPP=/usr/ccs/lib/cpp
2918 ;;
2919
2920 ## Silicon Graphics machines
2921 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2922 m68*-sgi-iris3.5* )
2923 machine=irist opsys=iris3-5
2924 ;;
2925 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2926 machine=irist opsys=iris3-6
2927 ;;
2928 ## Iris 4D
2929 mips-sgi-irix3* )
2930 machine=iris4d opsys=irix3-3
2931 ;;
2932 mips-sgi-irix4* )
2933 machine=iris4d opsys=irix4-0
2934 ;;
2935 mips-sgi-irix6.5 )
2936 machine=iris4d opsys=irix6-5
2937 # Without defining _LANGUAGE_C, things get masked out in the headers
2938 # so that, for instance, grepping for `free' in stdlib.h fails and
2939 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2940 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2941 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2942 ;;
2943 mips-sgi-irix6* )
2944 machine=iris4d opsys=irix6-0
2945 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2946 # but presumably it does no harm.
2947 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2948 # -32 probably isn't necessary in later v.6s -- anyone know which?
2949 NON_GCC_TEST_OPTIONS=-32
2950 ;;
2951 mips-sgi-irix5.[01]* )
2952 machine=iris4d opsys=irix5-0
2953 ;;
2954 mips-sgi-irix5* | mips-sgi-irix* )
2955 machine=iris4d opsys=irix5-2
2956 ;;
2957
2958 ## SONY machines
2959 m68*-sony-bsd4.2* )
2960 machine=news opsys=bsd4-2
2961 ;;
2962 m68*-sony-bsd4.3* )
2963 machine=news opsys=bsd4-3
2964 ;;
2965 m68*-sony-newsos3* | m68*-sony-news3*)
2966 machine=news opsys=bsd4-3
2967 ;;
2968 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2969 machine=news-risc opsys=bsd4-3
2970 ;;
2971 mips-sony-newsos6* )
2972 machine=news-r6 opsys=newsos6
2973 ;;
2974 mips-sony-news* )
2975 machine=news-risc opsys=newsos5
2976 ;;
2977
2978 ## Stride
2979 m68*-stride-sysv* )
2980 machine=stride opsys=usg5-2
2981 ;;
2982
2983 ## Suns
2984 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2985 machine=sparc opsys=gnu-linux
2986 ;;
2987
2988 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2989 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2990 | rs6000-*-solaris2*)
2991 case "${canonical}" in
2992 m68*-sunos1* ) machine=sun1 ;;
2993 m68*-sunos2* ) machine=sun2 ;;
2994 m68* ) machine=sun3 ;;
2995 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2996 i[3456]86-*-* ) machine=intel386 ;;
2997 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2998 powerpcle* ) machine=powerpcle ;;
2999 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3000 sparc* ) machine=sparc ;;
3001 * ) unported=yes ;;
3002 esac
3003 case "${canonical}" in
3004 ## The Sun386 didn't get past 4.0.
3005 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
3006 *-sunos4.0* ) opsys=sunos4-0 ;;
3007 *-sunos4.1.[3-9]*noshare )
3008 ## This name is sunos413 instead of sunos4-1-3
3009 ## to avoid a file name conflict on MSDOS.
3010 opsys=sunos413
3011 NON_GNU_CPP=/usr/lib/cpp
3012 NON_GCC_TEST_OPTIONS=-Bstatic
3013 GCC_TEST_OPTIONS=-static
3014 ;;
3015 *-sunos4.1.[3-9]* | *-sunos4shr*)
3016 opsys=sunos4shr
3017 NON_GNU_CPP=/usr/lib/cpp
3018 ;;
3019 *-sunos4* | *-sunos )
3020 opsys=sunos4-1
3021 NON_GCC_TEST_OPTIONS=-Bstatic
3022 GCC_TEST_OPTIONS=-static
3023 ;;
3024 *-sunos5.3* | *-solaris2.3* )
3025 opsys=sol2-3
3026 NON_GNU_CPP=/usr/ccs/lib/cpp
3027 ;;
3028 *-sunos5.4* | *-solaris2.4* )
3029 opsys=sol2-4
3030 NON_GNU_CPP=/usr/ccs/lib/cpp
3031 RANLIB="ar -ts"
3032 ;;
3033 *-sunos5.5* | *-solaris2.5* )
3034 opsys=sol2-5
3035 NON_GNU_CPP=/usr/ccs/lib/cpp
3036 RANLIB="ar -ts"
3037 ;;
3038 *-sunos5.6* | *-solaris2.6* )
3039 opsys=sol2-6
3040 NON_GNU_CPP=/usr/ccs/lib/cpp
3041 RANLIB="ar -ts"
3042 ;;
3043 *-sunos5* | *-solaris* )
3044 opsys=sol2-6
3045 emacs_check_sunpro_c=yes
3046 NON_GNU_CPP=/usr/ccs/lib/cpp
3047 ;;
3048 * ) opsys=bsd4-2 ;;
3049 esac
3050 ## Watch out for a compiler that we know will not work.
3051 case "${canonical}" in
3052 *-solaris* | *-sunos5* )
3053 if [ "x$CC" = x/usr/ucb/cc ]; then
3054 ## /usr/ucb/cc doesn't work;
3055 ## we should find some other compiler that does work.
3056 unset CC
3057 fi
3058 ;;
3059 *) ;;
3060 esac
3061 ;;
3062 sparc-*-nextstep* )
3063 machine=sparc opsys=nextstep
3064 ;;
3065
3066 ## Tadpole 68k
3067 m68*-tadpole-sysv* )
3068 machine=tad68k opsys=usg5-3
3069 ;;
3070
3071 ## Tahoe machines
3072 tahoe-tahoe-bsd4.2* )
3073 machine=tahoe opsys=bsd4-2
3074 ;;
3075 tahoe-tahoe-bsd4.3* )
3076 machine=tahoe opsys=bsd4-3
3077 ;;
3078
3079 ## Tandem Integrity S2
3080 mips-tandem-sysv* )
3081 machine=tandem-s2 opsys=usg5-3
3082 ;;
3083
3084 ## Tektronix XD88
3085 m88k-tektronix-sysv3* )
3086 machine=tekxd88 opsys=usg5-3
3087 ;;
3088
3089 ## Tektronix 16000 box (6130?)
3090 ns16k-tektronix-bsd* )
3091 machine=ns16000 opsys=bsd4-2
3092 ;;
3093 ## Tektronix 4300
3094 ## src/m/tek4300.h hints that this is a m68k machine.
3095 m68*-tektronix-bsd* )
3096 machine=tek4300 opsys=bsd4-3
3097 ;;
3098
3099 ## Titan P2 or P3
3100 ## We seem to have lost the machine-description file titan.h!
3101 titan-titan-sysv* )
3102 machine=titan opsys=usg5-3
3103 ;;
3104
3105 ## Ustation E30 (SS5E)
3106 m68*-unisys-uniplus* )
3107 machine=ustation opsystem=unipl5-2
3108 ;;
3109
3110 ## Vaxen.
3111 vax-dec-* )
3112 machine=vax
3113 case "${canonical}" in
3114 *-bsd4.1* ) opsys=bsd4-1 ;;
3115 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3116 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3117 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3118 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3119 *-vms* ) opsys=vms ;;
3120 * ) unported=yes
3121 esac
3122 ;;
3123
3124 ## Whitechapel MG1
3125 ns16k-whitechapel-* )
3126 machine=mg1
3127 ## We don't know what sort of OS runs on these; we'll let the
3128 ## operating system guessing code below try.
3129 ;;
3130
3131 ## Wicat
3132 m68*-wicat-sysv* )
3133 machine=wicat opsys=usg5-2
3134 ;;
3135
3136 ## IA-64
3137 ia64*-*-linux* )
3138 machine=ia64 opsys=gnu-linux
3139 ;;
3140
3141 ## Intel 386 machines where we don't care about the manufacturer
3142 i[3456]86-*-* )
3143 machine=intel386
3144 case "${canonical}" in
3145 *-cygwin ) opsys=cygwin ;;
3146 *-darwin* ) opsys=darwin
3147 CPP="${CC-cc} -E -no-cpp-precomp"
3148 ;;
3149 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3150 *-isc2.2* ) opsys=isc2-2 ;;
3151 *-isc4.0* ) opsys=isc4-0 ;;
3152 *-isc4.* ) opsys=isc4-1
3153 GCC_TEST_OPTIONS=-posix
3154 NON_GCC_TEST_OPTIONS=-Xp
3155 ;;
3156 *-isc* ) opsys=isc3-0 ;;
3157 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3158 *-esix* ) opsys=esix ;;
3159 *-xenix* ) opsys=xenix ;;
3160 *-linux-gnu* ) opsys=gnu-linux ;;
3161 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3162 *-sco3.2v5* ) opsys=sco5
3163 NON_GNU_CPP=/lib/cpp
3164 # Prevent -belf from being passed to $CPP.
3165 # /lib/cpp does not accept it.
3166 OVERRIDE_CPPFLAGS=" "
3167 ;;
3168 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3169 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3170 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3171 *-386bsd* ) opsys=386bsd ;;
3172 *-nextstep* ) opsys=nextstep ;;
3173 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3174 esac
3175 ;;
3176
3177 ## m68k Linux-based GNU system
3178 m68k-*-linux-gnu* )
3179 machine=m68k opsys=gnu-linux
3180 ;;
3181
3182 ## Mips Linux-based GNU system
3183 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3184 machine=mips opsys=gnu-linux
3185 ;;
3186
3187 ## UXP/DS
3188 sparc-fujitsu-sysv4* )
3189 machine=sparc opsys=uxpds
3190 NON_GNU_CPP=/usr/ccs/lib/cpp
3191 RANLIB="ar -ts"
3192 ;;
3193
3194 ## UXP/V
3195 f301-fujitsu-uxpv4.1)
3196 machine=f301 opsys=uxpv
3197 ;;
3198
3199 ## AMD x86-64 Linux-based GNU system
3200 x86_64-*-linux-gnu* )
3201 machine=amdx86-64 opsys=gnu-linux
3202 ;;
3203
3204 ## Tensilica Xtensa Linux-based GNU system
3205 xtensa-*-linux-gnu* )
3206 machine=xtensa opsys=gnu-linux
3207 ;;
3208
3209 * )
3210 unported=yes
3211 ;;
3212 esac
3213
3214 ### If the code above didn't choose an operating system, just choose
3215 ### an operating system based on the configuration name. You really
3216 ### only want to use this when you have no idea what the right
3217 ### operating system is; if you know what operating systems a machine
3218 ### runs, it's cleaner to make it explicit in the case statement
3219 ### above.
3220 if test x"${opsys}" = x; then
3221 case "${canonical}" in
3222 *-gnu* ) opsys=gnu ;;
3223 *-bsd4.[01] ) opsys=bsd4-1 ;;
3224 *-bsd4.2 ) opsys=bsd4-2 ;;
3225 *-bsd4.3 ) opsys=bsd4-3 ;;
3226 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3227 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3228 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3229 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3230 *-sysv4.2uw* ) opsys=unixware ;;
3231 *-sysv5uw* ) opsys=unixware ;;
3232 *-sysv5OpenUNIX* ) opsys=unixware ;;
3233 *-sysv4.1* | *-sysvr4.1* )
3234 NON_GNU_CPP=/usr/lib/cpp
3235 opsys=usg5-4 ;;
3236 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3237 if [ x$NON_GNU_CPP = x ]; then
3238 if [ -f /usr/ccs/lib/cpp ]; then
3239 NON_GNU_CPP=/usr/ccs/lib/cpp
3240 else
3241 NON_GNU_CPP=/lib/cpp
3242 fi
3243 fi
3244 opsys=usg5-4-2 ;;
3245 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3246 * )
3247 unported=yes
3248 ;;
3249 esac
3250 fi
3251
3252
3253
3254 if test $unported = yes; then
3255 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3256 Check \`etc/MACHINES' for recognized configuration names." >&5
3257 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3258 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3259 { (exit 1); exit 1; }; }
3260 fi
3261
3262 machfile="m/${machine}.h"
3263 opsysfile="s/${opsys}.h"
3264
3265
3266 #### Choose a compiler.
3267 test -n "$CC" && cc_specified=yes
3268
3269 # Save the value of CFLAGS that the user specified.
3270 SPECIFIED_CFLAGS="$CFLAGS"
3271
3272 case ${with_gcc} in
3273 "yes" ) CC="gcc" GCC=yes ;;
3274 "no" ) : ${CC=cc} ;;
3275 * )
3276 esac
3277 ac_ext=c
3278 ac_cpp='$CPP $CPPFLAGS'
3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304 done
3305 done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312 { echo "$as_me:$LINENO: result: $CC" >&5
3313 echo "${ECHO_T}$CC" >&6; }
3314 else
3315 { echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6; }
3317 fi
3318
3319
3320 fi
3321 if test -z "$ac_cv_prog_CC"; then
3322 ac_ct_CC=$CC
3323 # Extract the first word of "gcc", so it can be a program name with args.
3324 set dummy gcc; ac_word=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330 if test -n "$ac_ct_CC"; then
3331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_prog_ac_ct_CC="gcc"
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3343 fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3351 if test -n "$ac_ct_CC"; then
3352 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3353 echo "${ECHO_T}$ac_ct_CC" >&6; }
3354 else
3355 { echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6; }
3357 fi
3358
3359 if test "x$ac_ct_CC" = x; then
3360 CC=""
3361 else
3362 case $cross_compiling:$ac_tool_warned in
3363 yes:)
3364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3365 whose name does not start with the host triplet. If you think this
3366 configuration is useful to you, please write to autoconf@gnu.org." >&5
3367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3368 whose name does not start with the host triplet. If you think this
3369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3370 ac_tool_warned=yes ;;
3371 esac
3372 CC=$ac_ct_CC
3373 fi
3374 else
3375 CC="$ac_cv_prog_CC"
3376 fi
3377
3378 if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}cc; ac_word=$2
3382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_CC="${ac_tool_prefix}cc"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401 done
3402 done
3403 IFS=$as_save_IFS
3404
3405 fi
3406 fi
3407 CC=$ac_cv_prog_CC
3408 if test -n "$CC"; then
3409 { echo "$as_me:$LINENO: result: $CC" >&5
3410 echo "${ECHO_T}$CC" >&6; }
3411 else
3412 { echo "$as_me:$LINENO: result: no" >&5
3413 echo "${ECHO_T}no" >&6; }
3414 fi
3415
3416
3417 fi
3418 fi
3419 if test -z "$CC"; then
3420 # Extract the first word of "cc", so it can be a program name with args.
3421 set dummy cc; ac_word=$2
3422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 ac_prog_rejected=no
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3439 ac_prog_rejected=yes
3440 continue
3441 fi
3442 ac_cv_prog_CC="cc"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446 done
3447 done
3448 IFS=$as_save_IFS
3449
3450 if test $ac_prog_rejected = yes; then
3451 # We found a bogon in the path, so make sure we never use it.
3452 set dummy $ac_cv_prog_CC
3453 shift
3454 if test $# != 0; then
3455 # We chose a different compiler from the bogus one.
3456 # However, it has the same basename, so the bogon will be chosen
3457 # first if we set CC to just the basename; use the full file name.
3458 shift
3459 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3460 fi
3461 fi
3462 fi
3463 fi
3464 CC=$ac_cv_prog_CC
3465 if test -n "$CC"; then
3466 { echo "$as_me:$LINENO: result: $CC" >&5
3467 echo "${ECHO_T}$CC" >&6; }
3468 else
3469 { echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6; }
3471 fi
3472
3473
3474 fi
3475 if test -z "$CC"; then
3476 if test -n "$ac_tool_prefix"; then
3477 for ac_prog in cl.exe
3478 do
3479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3483 if test "${ac_cv_prog_CC+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486 if test -n "$CC"; then
3487 ac_cv_prog_CC="$CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3499 fi
3500 done
3501 done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 CC=$ac_cv_prog_CC
3507 if test -n "$CC"; then
3508 { echo "$as_me:$LINENO: result: $CC" >&5
3509 echo "${ECHO_T}$CC" >&6; }
3510 else
3511 { echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6; }
3513 fi
3514
3515
3516 test -n "$CC" && break
3517 done
3518 fi
3519 if test -z "$CC"; then
3520 ac_ct_CC=$CC
3521 for ac_prog in cl.exe
3522 do
3523 # Extract the first word of "$ac_prog", so it can be a program name with args.
3524 set dummy $ac_prog; ac_word=$2
3525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 if test -n "$ac_ct_CC"; then
3531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 ac_cv_prog_ac_ct_CC="$ac_prog"
3541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3543 fi
3544 done
3545 done
3546 IFS=$as_save_IFS
3547
3548 fi
3549 fi
3550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3551 if test -n "$ac_ct_CC"; then
3552 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3553 echo "${ECHO_T}$ac_ct_CC" >&6; }
3554 else
3555 { echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6; }
3557 fi
3558
3559
3560 test -n "$ac_ct_CC" && break
3561 done
3562
3563 if test "x$ac_ct_CC" = x; then
3564 CC=""
3565 else
3566 case $cross_compiling:$ac_tool_warned in
3567 yes:)
3568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3569 whose name does not start with the host triplet. If you think this
3570 configuration is useful to you, please write to autoconf@gnu.org." >&5
3571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3572 whose name does not start with the host triplet. If you think this
3573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 CC=$ac_ct_CC
3577 fi
3578 fi
3579
3580 fi
3581
3582
3583 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3584 See \`config.log' for more details." >&5
3585 echo "$as_me: error: no acceptable C compiler found in \$PATH
3586 See \`config.log' for more details." >&2;}
3587 { (exit 1); exit 1; }; }
3588
3589 # Provide some information about the compiler.
3590 echo "$as_me:$LINENO: checking for C compiler version" >&5
3591 ac_compiler=`set X $ac_compile; echo $2`
3592 { (ac_try="$ac_compiler --version >&5"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compiler --version >&5") 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3602 { (ac_try="$ac_compiler -v >&5"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compiler -v >&5") 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3612 { (ac_try="$ac_compiler -V >&5"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compiler -V >&5") 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }
3622
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629
3630 int
3631 main ()
3632 {
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 ac_clean_files_save=$ac_clean_files
3639 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3640 # Try to create an executable without -o first, disregard a.out.
3641 # It will help us diagnose broken compilers, and finding out an intuition
3642 # of exeext.
3643 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3644 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3645 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3646 #
3647 # List of possible output files, starting from the most likely.
3648 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3649 # only as a last resort. b.out is created by i960 compilers.
3650 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3651 #
3652 # The IRIX 6 linker writes into existing files which may not be
3653 # executable, retaining their permissions. Remove them first so a
3654 # subsequent execution test works.
3655 ac_rmfiles=
3656 for ac_file in $ac_files
3657 do
3658 case $ac_file in
3659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3660 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3661 esac
3662 done
3663 rm -f $ac_rmfiles
3664
3665 if { (ac_try="$ac_link_default"
3666 case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_link_default") 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; then
3675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3676 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3677 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3678 # so that the user can short-circuit this test for compilers unknown to
3679 # Autoconf.
3680 for ac_file in $ac_files ''
3681 do
3682 test -f "$ac_file" || continue
3683 case $ac_file in
3684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3685 ;;
3686 [ab].out )
3687 # We found the default executable, but exeext='' is most
3688 # certainly right.
3689 break;;
3690 *.* )
3691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3692 then :; else
3693 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3694 fi
3695 # We set ac_cv_exeext here because the later test for it is not
3696 # safe: cross compilers may not add the suffix if given an `-o'
3697 # argument, so we may need to know it at that point already.
3698 # Even if this section looks crufty: it has the advantage of
3699 # actually working.
3700 break;;
3701 * )
3702 break;;
3703 esac
3704 done
3705 test "$ac_cv_exeext" = no && ac_cv_exeext=
3706
3707 else
3708 ac_file=''
3709 fi
3710
3711 { echo "$as_me:$LINENO: result: $ac_file" >&5
3712 echo "${ECHO_T}$ac_file" >&6; }
3713 if test -z "$ac_file"; then
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3716
3717 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3718 See \`config.log' for more details." >&5
3719 echo "$as_me: error: C compiler cannot create executables
3720 See \`config.log' for more details." >&2;}
3721 { (exit 77); exit 77; }; }
3722 fi
3723
3724 ac_exeext=$ac_cv_exeext
3725
3726 # Check that the compiler produces executables we can run. If not, either
3727 # the compiler is broken, or we cross compile.
3728 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3729 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3730 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3731 # If not cross compiling, check that we can run a simple program.
3732 if test "$cross_compiling" != yes; then
3733 if { ac_try='./$ac_file'
3734 { (case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_try") 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 cross_compiling=no
3744 else
3745 if test "$cross_compiling" = maybe; then
3746 cross_compiling=yes
3747 else
3748 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3749 If you meant to cross compile, use \`--host'.
3750 See \`config.log' for more details." >&5
3751 echo "$as_me: error: cannot run C compiled programs.
3752 If you meant to cross compile, use \`--host'.
3753 See \`config.log' for more details." >&2;}
3754 { (exit 1); exit 1; }; }
3755 fi
3756 fi
3757 fi
3758 { echo "$as_me:$LINENO: result: yes" >&5
3759 echo "${ECHO_T}yes" >&6; }
3760
3761 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3762 ac_clean_files=$ac_clean_files_save
3763 # Check that the compiler produces executables we can run. If not, either
3764 # the compiler is broken, or we cross compile.
3765 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3766 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3767 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3768 echo "${ECHO_T}$cross_compiling" >&6; }
3769
3770 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3771 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3772 if { (ac_try="$ac_link"
3773 case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776 esac
3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778 (eval "$ac_link") 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; then
3782 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3783 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3784 # work properly (i.e., refer to `conftest.exe'), while it won't with
3785 # `rm'.
3786 for ac_file in conftest.exe conftest conftest.*; do
3787 test -f "$ac_file" || continue
3788 case $ac_file in
3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3790 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3791 break;;
3792 * ) break;;
3793 esac
3794 done
3795 else
3796 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3797 See \`config.log' for more details." >&5
3798 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3799 See \`config.log' for more details." >&2;}
3800 { (exit 1); exit 1; }; }
3801 fi
3802
3803 rm -f conftest$ac_cv_exeext
3804 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3805 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3806
3807 rm -f conftest.$ac_ext
3808 EXEEXT=$ac_cv_exeext
3809 ac_exeext=$EXEEXT
3810 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3811 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3812 if test "${ac_cv_objext+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821
3822 int
3823 main ()
3824 {
3825
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 rm -f conftest.o conftest.obj
3831 if { (ac_try="$ac_compile"
3832 case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_compile") 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; then
3841 for ac_file in conftest.o conftest.obj conftest.*; do
3842 test -f "$ac_file" || continue;
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3845 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3846 break;;
3847 esac
3848 done
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3852
3853 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3854 See \`config.log' for more details." >&5
3855 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3856 See \`config.log' for more details." >&2;}
3857 { (exit 1); exit 1; }; }
3858 fi
3859
3860 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3861 fi
3862 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3863 echo "${ECHO_T}$ac_cv_objext" >&6; }
3864 OBJEXT=$ac_cv_objext
3865 ac_objext=$OBJEXT
3866 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3867 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3868 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3877
3878 int
3879 main ()
3880 {
3881 #ifndef __GNUC__
3882 choke me
3883 #endif
3884
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3906 ac_compiler_gnu=yes
3907 else
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911 ac_compiler_gnu=no
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3916
3917 fi
3918 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3919 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3920 GCC=`test $ac_compiler_gnu = yes && echo yes`
3921 ac_test_CFLAGS=${CFLAGS+set}
3922 ac_save_CFLAGS=$CFLAGS
3923 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3924 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3925 if test "${ac_cv_prog_cc_g+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928 ac_save_c_werror_flag=$ac_c_werror_flag
3929 ac_c_werror_flag=yes
3930 ac_cv_prog_cc_g=no
3931 CFLAGS="-g"
3932 cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h. */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938
3939 int
3940 main ()
3941 {
3942
3943 ;
3944 return 0;
3945 }
3946 _ACEOF
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3964 ac_cv_prog_cc_g=yes
3965 else
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 CFLAGS=""
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976
3977 int
3978 main ()
3979 {
3980
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest.$ac_objext; then
4002 :
4003 else
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007 ac_c_werror_flag=$ac_save_c_werror_flag
4008 CFLAGS="-g"
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h. */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015
4016 int
4017 main ()
4018 {
4019
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4026 case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029 esac
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_compile") 2>conftest.er1
4032 ac_status=$?
4033 grep -v '^ *+' conftest.er1 >conftest.err
4034 rm -f conftest.er1
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } && {
4038 test -z "$ac_c_werror_flag" ||
4039 test ! -s conftest.err
4040 } && test -s conftest.$ac_objext; then
4041 ac_cv_prog_cc_g=yes
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046
4047 fi
4048
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 fi
4051
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 fi
4054
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_c_werror_flag=$ac_save_c_werror_flag
4057 fi
4058 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4060 if test "$ac_test_CFLAGS" = set; then
4061 CFLAGS=$ac_save_CFLAGS
4062 elif test $ac_cv_prog_cc_g = yes; then
4063 if test "$GCC" = yes; then
4064 CFLAGS="-g -O2"
4065 else
4066 CFLAGS="-g"
4067 fi
4068 else
4069 if test "$GCC" = yes; then
4070 CFLAGS="-O2"
4071 else
4072 CFLAGS=
4073 fi
4074 fi
4075 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4076 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4077 if test "${ac_cv_prog_cc_c89+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 ac_cv_prog_cc_c89=no
4081 ac_save_CC=$CC
4082 cat >conftest.$ac_ext <<_ACEOF
4083 /* confdefs.h. */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4088 #include <stdarg.h>
4089 #include <stdio.h>
4090 #include <sys/types.h>
4091 #include <sys/stat.h>
4092 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4093 struct buf { int x; };
4094 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4095 static char *e (p, i)
4096 char **p;
4097 int i;
4098 {
4099 return p[i];
4100 }
4101 static char *f (char * (*g) (char **, int), char **p, ...)
4102 {
4103 char *s;
4104 va_list v;
4105 va_start (v,p);
4106 s = g (p, va_arg (v,int));
4107 va_end (v);
4108 return s;
4109 }
4110
4111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4112 function prototypes and stuff, but not '\xHH' hex character constants.
4113 These don't provoke an error unfortunately, instead are silently treated
4114 as 'x'. The following induces an error, until -std is added to get
4115 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4116 array size at least. It's necessary to write '\x00'==0 to get something
4117 that's true only with -std. */
4118 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4119
4120 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4121 inside strings and character constants. */
4122 #define FOO(x) 'x'
4123 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4124
4125 int test (int i, double x);
4126 struct s1 {int (*f) (int a);};
4127 struct s2 {int (*f) (double a);};
4128 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4129 int argc;
4130 char **argv;
4131 int
4132 main ()
4133 {
4134 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4140 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4141 do
4142 CC="$ac_save_CC $ac_arg"
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4145 case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } && {
4157 test -z "$ac_c_werror_flag" ||
4158 test ! -s conftest.err
4159 } && test -s conftest.$ac_objext; then
4160 ac_cv_prog_cc_c89=$ac_arg
4161 else
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165
4166 fi
4167
4168 rm -f core conftest.err conftest.$ac_objext
4169 test "x$ac_cv_prog_cc_c89" != "xno" && break
4170 done
4171 rm -f conftest.$ac_ext
4172 CC=$ac_save_CC
4173
4174 fi
4175 # AC_CACHE_VAL
4176 case "x$ac_cv_prog_cc_c89" in
4177 x)
4178 { echo "$as_me:$LINENO: result: none needed" >&5
4179 echo "${ECHO_T}none needed" >&6; } ;;
4180 xno)
4181 { echo "$as_me:$LINENO: result: unsupported" >&5
4182 echo "${ECHO_T}unsupported" >&6; } ;;
4183 *)
4184 CC="$CC $ac_cv_prog_cc_c89"
4185 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4186 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4187 esac
4188
4189
4190 ac_ext=c
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195
4196
4197 # On Suns, sometimes $CPP names a directory.
4198 if test -n "$CPP" && test -d "$CPP"; then
4199 CPP=
4200 fi
4201
4202 ## If not using gcc, and on Solaris, and no CPP specified, see if
4203 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4204 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4205 test x"$CPP" = x; then
4206 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4207 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4208
4209 if test "${emacs_cv_sunpro_c+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h. */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218
4219 int
4220 main ()
4221 {
4222 #ifndef __SUNPRO_C
4223 fail;
4224 #endif
4225
4226 ;
4227 return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest.$ac_objext conftest$ac_exeext
4231 if { (ac_try="$ac_link"
4232 case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_link") 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } && {
4244 test -z "$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4246 } && test -s conftest$ac_exeext &&
4247 $as_test_x conftest$ac_exeext; then
4248 emacs_cv_sunpro_c=yes
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 emacs_cv_sunpro_c=no
4254 fi
4255
4256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4257 conftest$ac_exeext conftest.$ac_ext
4258 fi
4259
4260 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4261 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4262
4263 if test x"$emacs_cv_sunpro_c" = xyes; then
4264 NON_GNU_CPP="$CC -E -Xs"
4265 fi
4266 fi
4267
4268 #### Some systems specify a CPP to use unless we are using GCC.
4269 #### Now that we know whether we are using GCC, we can decide whether
4270 #### to use that one.
4271 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4272 then
4273 CPP="$NON_GNU_CPP"
4274 fi
4275
4276 #### Some systems specify a CC to use unless we are using GCC.
4277 #### Now that we know whether we are using GCC, we can decide whether
4278 #### to use that one.
4279 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4280 test x$cc_specified != xyes
4281 then
4282 CC="$NON_GNU_CC"
4283 fi
4284
4285 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4286 then
4287 CC="$CC $GCC_TEST_OPTIONS"
4288 fi
4289
4290 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4291 then
4292 CC="$CC $NON_GCC_TEST_OPTIONS"
4293 fi
4294
4295 ac_ext=c
4296 ac_cpp='$CPP $CPPFLAGS'
4297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4302 # On Suns, sometimes $CPP names a directory.
4303 if test -n "$CPP" && test -d "$CPP"; then
4304 CPP=
4305 fi
4306 if test -z "$CPP"; then
4307 if test "${ac_cv_prog_CPP+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 # Double quotes because CPP needs to be expanded
4311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4312 do
4313 ac_preproc_ok=false
4314 for ac_c_preproc_warn_flag in '' yes
4315 do
4316 # Use a header file that comes with gcc, so configuring glibc
4317 # with a fresh cross-compiler works.
4318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4319 # <limits.h> exists even on freestanding compilers.
4320 # On the NeXT, cc -E runs the code through the compiler's parser,
4321 # not just through cpp. "Syntax error" is here to catch this case.
4322 cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h. */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 #ifdef __STDC__
4329 # include <limits.h>
4330 #else
4331 # include <assert.h>
4332 #endif
4333 Syntax error
4334 _ACEOF
4335 if { (ac_try="$ac_cpp conftest.$ac_ext"
4336 case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } >/dev/null && {
4348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4350 }; then
4351 :
4352 else
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356 # Broken: fails on valid input.
4357 continue
4358 fi
4359
4360 rm -f conftest.err conftest.$ac_ext
4361
4362 # OK, works on sane cases. Now check whether nonexistent headers
4363 # can be detected and how.
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h. */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 #include <ac_nonexistent.h>
4371 _ACEOF
4372 if { (ac_try="$ac_cpp conftest.$ac_ext"
4373 case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4379 ac_status=$?
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } >/dev/null && {
4385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4387 }; then
4388 # Broken: success on invalid input.
4389 continue
4390 else
4391 echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4393
4394 # Passes both tests.
4395 ac_preproc_ok=:
4396 break
4397 fi
4398
4399 rm -f conftest.err conftest.$ac_ext
4400
4401 done
4402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4403 rm -f conftest.err conftest.$ac_ext
4404 if $ac_preproc_ok; then
4405 break
4406 fi
4407
4408 done
4409 ac_cv_prog_CPP=$CPP
4410
4411 fi
4412 CPP=$ac_cv_prog_CPP
4413 else
4414 ac_cv_prog_CPP=$CPP
4415 fi
4416 { echo "$as_me:$LINENO: result: $CPP" >&5
4417 echo "${ECHO_T}$CPP" >&6; }
4418 ac_preproc_ok=false
4419 for ac_c_preproc_warn_flag in '' yes
4420 do
4421 # Use a header file that comes with gcc, so configuring glibc
4422 # with a fresh cross-compiler works.
4423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4424 # <limits.h> exists even on freestanding compilers.
4425 # On the NeXT, cc -E runs the code through the compiler's parser,
4426 # not just through cpp. "Syntax error" is here to catch this case.
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h. */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #ifdef __STDC__
4434 # include <limits.h>
4435 #else
4436 # include <assert.h>
4437 #endif
4438 Syntax error
4439 _ACEOF
4440 if { (ac_try="$ac_cpp conftest.$ac_ext"
4441 case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444 esac
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } >/dev/null && {
4453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4454 test ! -s conftest.err
4455 }; then
4456 :
4457 else
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4460
4461 # Broken: fails on valid input.
4462 continue
4463 fi
4464
4465 rm -f conftest.err conftest.$ac_ext
4466
4467 # OK, works on sane cases. Now check whether nonexistent headers
4468 # can be detected and how.
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <ac_nonexistent.h>
4476 _ACEOF
4477 if { (ac_try="$ac_cpp conftest.$ac_ext"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } >/dev/null && {
4490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4491 test ! -s conftest.err
4492 }; then
4493 # Broken: success on invalid input.
4494 continue
4495 else
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499 # Passes both tests.
4500 ac_preproc_ok=:
4501 break
4502 fi
4503
4504 rm -f conftest.err conftest.$ac_ext
4505
4506 done
4507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4508 rm -f conftest.err conftest.$ac_ext
4509 if $ac_preproc_ok; then
4510 :
4511 else
4512 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4513 See \`config.log' for more details." >&5
4514 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4515 See \`config.log' for more details." >&2;}
4516 { (exit 1); exit 1; }; }
4517 fi
4518
4519 ac_ext=c
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524
4525
4526 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4527 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4528 if test "${ac_cv_path_GREP+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 # Extract the first word of "grep ggrep" to use in msg output
4532 if test -z "$GREP"; then
4533 set dummy grep ggrep; ac_prog_name=$2
4534 if test "${ac_cv_path_GREP+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 ac_path_GREP_found=false
4538 # Loop through the user's path and test for each of PROGNAME-LIST
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4541 do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_prog in grep ggrep; do
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4547 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4548 # Check for GNU ac_path_GREP and select it if it is found.
4549 # Check for GNU $ac_path_GREP
4550 case `"$ac_path_GREP" --version 2>&1` in
4551 *GNU*)
4552 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4553 *)
4554 ac_count=0
4555 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4556 while :
4557 do
4558 cat "conftest.in" "conftest.in" >"conftest.tmp"
4559 mv "conftest.tmp" "conftest.in"
4560 cp "conftest.in" "conftest.nl"
4561 echo 'GREP' >> "conftest.nl"
4562 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4564 ac_count=`expr $ac_count + 1`
4565 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4566 # Best one so far, save it but keep looking for a better one
4567 ac_cv_path_GREP="$ac_path_GREP"
4568 ac_path_GREP_max=$ac_count
4569 fi
4570 # 10*(2^10) chars as input seems more than enough
4571 test $ac_count -gt 10 && break
4572 done
4573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4574 esac
4575
4576
4577 $ac_path_GREP_found && break 3
4578 done
4579 done
4580
4581 done
4582 IFS=$as_save_IFS
4583
4584
4585 fi
4586
4587 GREP="$ac_cv_path_GREP"
4588 if test -z "$GREP"; then
4589 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4590 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4591 { (exit 1); exit 1; }; }
4592 fi
4593
4594 else
4595 ac_cv_path_GREP=$GREP
4596 fi
4597
4598
4599 fi
4600 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4601 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4602 GREP="$ac_cv_path_GREP"
4603
4604
4605 { echo "$as_me:$LINENO: checking for egrep" >&5
4606 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4607 if test "${ac_cv_path_EGREP+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4611 then ac_cv_path_EGREP="$GREP -E"
4612 else
4613 # Extract the first word of "egrep" to use in msg output
4614 if test -z "$EGREP"; then
4615 set dummy egrep; ac_prog_name=$2
4616 if test "${ac_cv_path_EGREP+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619 ac_path_EGREP_found=false
4620 # Loop through the user's path and test for each of PROGNAME-LIST
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623 do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_prog in egrep; do
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4629 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4630 # Check for GNU ac_path_EGREP and select it if it is found.
4631 # Check for GNU $ac_path_EGREP
4632 case `"$ac_path_EGREP" --version 2>&1` in
4633 *GNU*)
4634 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4635 *)
4636 ac_count=0
4637 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4638 while :
4639 do
4640 cat "conftest.in" "conftest.in" >"conftest.tmp"
4641 mv "conftest.tmp" "conftest.in"
4642 cp "conftest.in" "conftest.nl"
4643 echo 'EGREP' >> "conftest.nl"
4644 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646 ac_count=`expr $ac_count + 1`
4647 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4648 # Best one so far, save it but keep looking for a better one
4649 ac_cv_path_EGREP="$ac_path_EGREP"
4650 ac_path_EGREP_max=$ac_count
4651 fi
4652 # 10*(2^10) chars as input seems more than enough
4653 test $ac_count -gt 10 && break
4654 done
4655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 esac
4657
4658
4659 $ac_path_EGREP_found && break 3
4660 done
4661 done
4662
4663 done
4664 IFS=$as_save_IFS
4665
4666
4667 fi
4668
4669 EGREP="$ac_cv_path_EGREP"
4670 if test -z "$EGREP"; then
4671 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4672 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4673 { (exit 1); exit 1; }; }
4674 fi
4675
4676 else
4677 ac_cv_path_EGREP=$EGREP
4678 fi
4679
4680
4681 fi
4682 fi
4683 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4684 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4685 EGREP="$ac_cv_path_EGREP"
4686
4687
4688
4689 { echo "$as_me:$LINENO: checking for AIX" >&5
4690 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4691 cat >conftest.$ac_ext <<_ACEOF
4692 /* confdefs.h. */
4693 _ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4697 #ifdef _AIX
4698 yes
4699 #endif
4700
4701 _ACEOF
4702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4703 $EGREP "yes" >/dev/null 2>&1; then
4704 { echo "$as_me:$LINENO: result: yes" >&5
4705 echo "${ECHO_T}yes" >&6; }
4706 cat >>confdefs.h <<\_ACEOF
4707 #define _ALL_SOURCE 1
4708 _ACEOF
4709
4710 else
4711 { echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6; }
4713 fi
4714 rm -f conftest*
4715
4716
4717
4718 cat >>confdefs.h <<\_ACEOF
4719 #define _GNU_SOURCE 1
4720 _ACEOF
4721
4722
4723
4724 ### Use -Wno-pointer-sign if the compiler supports it
4725 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4726 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4727 SAVE_CFLAGS="$CFLAGS"
4728 CFLAGS="$CFLAGS -Wno-pointer-sign"
4729 cat >conftest.$ac_ext <<_ACEOF
4730 /* confdefs.h. */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735
4736 int
4737 main ()
4738 {
4739
4740 ;
4741 return 0;
4742 }
4743 _ACEOF
4744 rm -f conftest.$ac_objext
4745 if { (ac_try="$ac_compile"
4746 case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749 esac
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_compile") 2>conftest.er1
4752 ac_status=$?
4753 grep -v '^ *+' conftest.er1 >conftest.err
4754 rm -f conftest.er1
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } && {
4758 test -z "$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4760 } && test -s conftest.$ac_objext; then
4761 has_option=yes
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 has_option=no
4767 fi
4768
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 if test $has_option = yes; then
4771 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4772 fi
4773 { echo "$as_me:$LINENO: result: $has_option" >&5
4774 echo "${ECHO_T}$has_option" >&6; }
4775 CFLAGS="$SAVE_CFLAGS"
4776 unset has_option
4777 unset SAVE_CFLAGS
4778
4779 #### Some other nice autoconf tests.
4780
4781 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4782 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4783 LN_S=$as_ln_s
4784 if test "$LN_S" = "ln -s"; then
4785 { echo "$as_me:$LINENO: result: yes" >&5
4786 echo "${ECHO_T}yes" >&6; }
4787 else
4788 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4789 echo "${ECHO_T}no, using $LN_S" >&6; }
4790 fi
4791
4792 ac_ext=c
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4798 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4799 # On Suns, sometimes $CPP names a directory.
4800 if test -n "$CPP" && test -d "$CPP"; then
4801 CPP=
4802 fi
4803 if test -z "$CPP"; then
4804 if test "${ac_cv_prog_CPP+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 # Double quotes because CPP needs to be expanded
4808 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4809 do
4810 ac_preproc_ok=false
4811 for ac_c_preproc_warn_flag in '' yes
4812 do
4813 # Use a header file that comes with gcc, so configuring glibc
4814 # with a fresh cross-compiler works.
4815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4816 # <limits.h> exists even on freestanding compilers.
4817 # On the NeXT, cc -E runs the code through the compiler's parser,
4818 # not just through cpp. "Syntax error" is here to catch this case.
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 #ifdef __STDC__
4826 # include <limits.h>
4827 #else
4828 # include <assert.h>
4829 #endif
4830 Syntax error
4831 _ACEOF
4832 if { (ac_try="$ac_cpp conftest.$ac_ext"
4833 case "(($ac_try" in
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4836 esac
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } >/dev/null && {
4845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 }; then
4848 :
4849 else
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853 # Broken: fails on valid input.
4854 continue
4855 fi
4856
4857 rm -f conftest.err conftest.$ac_ext
4858
4859 # OK, works on sane cases. Now check whether nonexistent headers
4860 # can be detected and how.
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #include <ac_nonexistent.h>
4868 _ACEOF
4869 if { (ac_try="$ac_cpp conftest.$ac_ext"
4870 case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873 esac
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null && {
4882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 }; then
4885 # Broken: success on invalid input.
4886 continue
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 # Passes both tests.
4892 ac_preproc_ok=:
4893 break
4894 fi
4895
4896 rm -f conftest.err conftest.$ac_ext
4897
4898 done
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.err conftest.$ac_ext
4901 if $ac_preproc_ok; then
4902 break
4903 fi
4904
4905 done
4906 ac_cv_prog_CPP=$CPP
4907
4908 fi
4909 CPP=$ac_cv_prog_CPP
4910 else
4911 ac_cv_prog_CPP=$CPP
4912 fi
4913 { echo "$as_me:$LINENO: result: $CPP" >&5
4914 echo "${ECHO_T}$CPP" >&6; }
4915 ac_preproc_ok=false
4916 for ac_c_preproc_warn_flag in '' yes
4917 do
4918 # Use a header file that comes with gcc, so configuring glibc
4919 # with a fresh cross-compiler works.
4920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 # <limits.h> exists even on freestanding compilers.
4922 # On the NeXT, cc -E runs the code through the compiler's parser,
4923 # not just through cpp. "Syntax error" is here to catch this case.
4924 cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h. */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 #ifdef __STDC__
4931 # include <limits.h>
4932 #else
4933 # include <assert.h>
4934 #endif
4935 Syntax error
4936 _ACEOF
4937 if { (ac_try="$ac_cpp conftest.$ac_ext"
4938 case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4944 ac_status=$?
4945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } >/dev/null && {
4950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4951 test ! -s conftest.err
4952 }; then
4953 :
4954 else
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 # Broken: fails on valid input.
4959 continue
4960 fi
4961
4962 rm -f conftest.err conftest.$ac_ext
4963
4964 # OK, works on sane cases. Now check whether nonexistent headers
4965 # can be detected and how.
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 #include <ac_nonexistent.h>
4973 _ACEOF
4974 if { (ac_try="$ac_cpp conftest.$ac_ext"
4975 case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978 esac
4979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev/null && {
4987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4989 }; then
4990 # Broken: success on invalid input.
4991 continue
4992 else
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996 # Passes both tests.
4997 ac_preproc_ok=:
4998 break
4999 fi
5000
5001 rm -f conftest.err conftest.$ac_ext
5002
5003 done
5004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005 rm -f conftest.err conftest.$ac_ext
5006 if $ac_preproc_ok; then
5007 :
5008 else
5009 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5010 See \`config.log' for more details." >&5
5011 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5012 See \`config.log' for more details." >&2;}
5013 { (exit 1); exit 1; }; }
5014 fi
5015
5016 ac_ext=c
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021
5022 # Find a good install program. We prefer a C program (faster),
5023 # so one script is as good as another. But avoid the broken or
5024 # incompatible versions:
5025 # SysV /etc/install, /usr/sbin/install
5026 # SunOS /usr/etc/install
5027 # IRIX /sbin/install
5028 # AIX /bin/install
5029 # AmigaOS /C/install, which installs bootblocks on floppy discs
5030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5033 # OS/2's system install, which has a completely different semantic
5034 # ./install, which can be erroneously created by make from ./install.sh.
5035 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5036 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5037 if test -z "$INSTALL"; then
5038 if test "${ac_cv_path_install+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 # Account for people who put trailing slashes in PATH elements.
5047 case $as_dir/ in
5048 ./ | .// | /cC/* | \
5049 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5050 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5051 /usr/ucb/* ) ;;
5052 *)
5053 # OSF1 and SCO ODT 3.0 have their own names for install.
5054 # Don't use installbsd from OSF since it installs stuff as root
5055 # by default.
5056 for ac_prog in ginstall scoinst install; do
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5059 if test $ac_prog = install &&
5060 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5061 # AIX install. It has an incompatible calling convention.
5062 :
5063 elif test $ac_prog = install &&
5064 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5065 # program-specific install script used by HP pwplus--don't use.
5066 :
5067 else
5068 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5069 break 3
5070 fi
5071 fi
5072 done
5073 done
5074 ;;
5075 esac
5076 done
5077 IFS=$as_save_IFS
5078
5079
5080 fi
5081 if test "${ac_cv_path_install+set}" = set; then
5082 INSTALL=$ac_cv_path_install
5083 else
5084 # As a last resort, use the slow shell script. Don't cache a
5085 # value for INSTALL within a source directory, because that will
5086 # break other packages using the cache if that directory is
5087 # removed, or if the value is a relative name.
5088 INSTALL=$ac_install_sh
5089 fi
5090 fi
5091 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5092 echo "${ECHO_T}$INSTALL" >&6; }
5093
5094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5095 # It thinks the first close brace ends the variable substitution.
5096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5097
5098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5099
5100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5101
5102 if test "x$RANLIB" = x; then
5103 if test -n "$ac_tool_prefix"; then
5104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108 if test "${ac_cv_prog_RANLIB+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111 if test -n "$RANLIB"; then
5112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125 done
5126 done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 RANLIB=$ac_cv_prog_RANLIB
5132 if test -n "$RANLIB"; then
5133 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5134 echo "${ECHO_T}$RANLIB" >&6; }
5135 else
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5138 fi
5139
5140
5141 fi
5142 if test -z "$ac_cv_prog_RANLIB"; then
5143 ac_ct_RANLIB=$RANLIB
5144 # Extract the first word of "ranlib", so it can be a program name with args.
5145 set dummy ranlib; ac_word=$2
5146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 if test -n "$ac_ct_RANLIB"; then
5152 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_prog_ac_ct_RANLIB="ranlib"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165 done
5166 done
5167 IFS=$as_save_IFS
5168
5169 fi
5170 fi
5171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5172 if test -n "$ac_ct_RANLIB"; then
5173 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5174 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5175 else
5176 { echo "$as_me:$LINENO: result: no" >&5
5177 echo "${ECHO_T}no" >&6; }
5178 fi
5179
5180 if test "x$ac_ct_RANLIB" = x; then
5181 RANLIB=":"
5182 else
5183 case $cross_compiling:$ac_tool_warned in
5184 yes:)
5185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5186 whose name does not start with the host triplet. If you think this
5187 configuration is useful to you, please write to autoconf@gnu.org." >&5
5188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5189 whose name does not start with the host triplet. If you think this
5190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5191 ac_tool_warned=yes ;;
5192 esac
5193 RANLIB=$ac_ct_RANLIB
5194 fi
5195 else
5196 RANLIB="$ac_cv_prog_RANLIB"
5197 fi
5198
5199 fi
5200 # Extract the first word of "install-info", so it can be a program name with args.
5201 set dummy install-info; ac_word=$2
5202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5204 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 case $INSTALL_INFO in
5208 [\\/]* | ?:[\\/]*)
5209 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5210 ;;
5211 *)
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5222 fi
5223 done
5224 done
5225 IFS=$as_save_IFS
5226
5227 ;;
5228 esac
5229 fi
5230 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5231 if test -n "$INSTALL_INFO"; then
5232 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5233 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5234 else
5235 { echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; }
5237 fi
5238
5239
5240 # Extract the first word of "install-info", so it can be a program name with args.
5241 set dummy install-info; ac_word=$2
5242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5244 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 case $INSTALL_INFO in
5248 [\\/]* | ?:[\\/]*)
5249 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5250 ;;
5251 *)
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in /usr/sbin
5254 do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263 done
5264 done
5265 IFS=$as_save_IFS
5266
5267 ;;
5268 esac
5269 fi
5270 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5271 if test -n "$INSTALL_INFO"; then
5272 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5273 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5274 else
5275 { echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6; }
5277 fi
5278
5279
5280 # Extract the first word of "install-info", so it can be a program name with args.
5281 set dummy install-info; ac_word=$2
5282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5284 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287 case $INSTALL_INFO in
5288 [\\/]* | ?:[\\/]*)
5289 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5290 ;;
5291 *)
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in /sbin
5294 do
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 break 2
5302 fi
5303 done
5304 done
5305 IFS=$as_save_IFS
5306
5307 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5308 ;;
5309 esac
5310 fi
5311 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5312 if test -n "$INSTALL_INFO"; then
5313 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5314 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5315 else
5316 { echo "$as_me:$LINENO: result: no" >&5
5317 echo "${ECHO_T}no" >&6; }
5318 fi
5319
5320
5321 # Extract the first word of "gzip", so it can be a program name with args.
5322 set dummy gzip; ac_word=$2
5323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5325 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328 case $GZIP_PROG in
5329 [\\/]* | ?:[\\/]*)
5330 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5331 ;;
5332 *)
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5343 fi
5344 done
5345 done
5346 IFS=$as_save_IFS
5347
5348 ;;
5349 esac
5350 fi
5351 GZIP_PROG=$ac_cv_path_GZIP_PROG
5352 if test -n "$GZIP_PROG"; then
5353 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5354 echo "${ECHO_T}$GZIP_PROG" >&6; }
5355 else
5356 { echo "$as_me:$LINENO: result: no" >&5
5357 echo "${ECHO_T}no" >&6; }
5358 fi
5359
5360
5361
5362
5363 ## Need makeinfo >= 4.6 (?) to build the manuals.
5364 # Extract the first word of "makeinfo", so it can be a program name with args.
5365 set dummy makeinfo; ac_word=$2
5366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5368 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 case $MAKEINFO in
5372 [\\/]* | ?:[\\/]*)
5373 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5374 ;;
5375 *)
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5378 do
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5386 fi
5387 done
5388 done
5389 IFS=$as_save_IFS
5390
5391 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5392 ;;
5393 esac
5394 fi
5395 MAKEINFO=$ac_cv_path_MAKEINFO
5396 if test -n "$MAKEINFO"; then
5397 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5398 echo "${ECHO_T}$MAKEINFO" >&6; }
5399 else
5400 { echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6; }
5402 fi
5403
5404
5405 if test "$MAKEINFO" != "no" && \
5406 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
5407 MAKEINFO=no
5408 fi
5409
5410 if test "$MAKEINFO" = "no"; then
5411 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5412 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5413 { (exit 1); exit 1; }; }
5414 fi
5415
5416
5417
5418 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5419 then
5420 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5421 fi
5422
5423 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5424 then
5425 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5426 fi
5427
5428
5429 late_LDFLAGS=$LDFLAGS
5430 if test "$GCC" = yes; then
5431 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5432 else
5433 LDFLAGS="$LDFLAGS -znocombreloc"
5434 fi
5435
5436 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5437 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5438 cat >conftest.$ac_ext <<_ACEOF
5439 main(){return 0;}
5440 _ACEOF
5441 rm -f conftest.$ac_objext conftest$ac_exeext
5442 if { (ac_try="$ac_link"
5443 case "(($ac_try" in
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5446 esac
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_link") 2>conftest.er1
5449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && {
5455 test -z "$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest$ac_exeext &&
5458 $as_test_x conftest$ac_exeext; then
5459 { echo "$as_me:$LINENO: result: yes" >&5
5460 echo "${ECHO_T}yes" >&6; }
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465 LDFLAGS=$late_LDFLAGS
5466 { echo "$as_me:$LINENO: result: no" >&5
5467 echo "${ECHO_T}no" >&6; }
5468 fi
5469
5470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5471 conftest$ac_exeext conftest.$ac_ext
5472
5473 #### Extract some information from the operating system and machine files.
5474
5475 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5476 - which libraries the lib-src programs will want, and
5477 - whether the GNU malloc routines are usable..." >&5
5478 echo "$as_me: checking the machine- and system-dependent files to find out
5479 - which libraries the lib-src programs will want, and
5480 - whether the GNU malloc routines are usable..." >&6;}
5481
5482 ### First figure out CFLAGS (which we use for running the compiler here)
5483 ### and REAL_CFLAGS (which we use for real compilation).
5484 ### The two are the same except on a few systems, where they are made
5485 ### different to work around various lossages. For example,
5486 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5487 ### as implying static linking.
5488
5489 ### If the CFLAGS env var is specified, we use that value
5490 ### instead of the default.
5491
5492 ### It's not important that this name contain the PID; you can't run
5493 ### two configures in the same directory and have anything work
5494 ### anyway.
5495 tempcname="conftest.c"
5496
5497 echo '
5498 #include "'${srcdir}'/src/'${opsysfile}'"
5499 #include "'${srcdir}'/src/'${machfile}'"
5500 #ifndef LIBS_MACHINE
5501 #define LIBS_MACHINE
5502 #endif
5503 #ifndef LIBS_SYSTEM
5504 #define LIBS_SYSTEM
5505 #endif
5506 #ifndef C_SWITCH_SYSTEM
5507 #define C_SWITCH_SYSTEM
5508 #endif
5509 #ifndef C_SWITCH_MACHINE
5510 #define C_SWITCH_MACHINE
5511 #endif
5512 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5513 configure___ c_switch_system=C_SWITCH_SYSTEM
5514 configure___ c_switch_machine=C_SWITCH_MACHINE
5515
5516 #ifndef LIB_X11_LIB
5517 #define LIB_X11_LIB -lX11
5518 #endif
5519
5520 #ifndef LIBX11_MACHINE
5521 #define LIBX11_MACHINE
5522 #endif
5523
5524 #ifndef LIBX11_SYSTEM
5525 #define LIBX11_SYSTEM
5526 #endif
5527 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5528
5529 #ifdef UNEXEC
5530 configure___ unexec=UNEXEC
5531 #else
5532 configure___ unexec=unexec.o
5533 #endif
5534
5535 #ifdef SYSTEM_MALLOC
5536 configure___ system_malloc=yes
5537 #else
5538 configure___ system_malloc=no
5539 #endif
5540
5541 #ifdef USE_MMAP_FOR_BUFFERS
5542 configure___ use_mmap_for_buffers=yes
5543 #else
5544 configure___ use_mmap_for_buffers=no
5545 #endif
5546
5547 #ifndef C_DEBUG_SWITCH
5548 #define C_DEBUG_SWITCH -g
5549 #endif
5550
5551 #ifndef C_OPTIMIZE_SWITCH
5552 #ifdef __GNUC__
5553 #define C_OPTIMIZE_SWITCH -O2
5554 #else
5555 #define C_OPTIMIZE_SWITCH -O
5556 #endif
5557 #endif
5558
5559 #ifndef C_WARNINGS_SWITCH
5560 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5561 #endif
5562
5563 #ifndef LD_SWITCH_MACHINE
5564 #define LD_SWITCH_MACHINE
5565 #endif
5566
5567 #ifndef LD_SWITCH_SYSTEM
5568 #define LD_SWITCH_SYSTEM
5569 #endif
5570
5571 #ifndef LD_SWITCH_X_SITE_AUX
5572 #define LD_SWITCH_X_SITE_AUX
5573 #endif
5574
5575 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5576 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5577
5578 #ifdef THIS_IS_CONFIGURE
5579
5580 /* Get the CFLAGS for tests in configure. */
5581 #ifdef __GNUC__
5582 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5583 #else
5584 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5585 #endif
5586
5587 #else /* not THIS_IS_CONFIGURE */
5588
5589 /* Get the CFLAGS for real compilation. */
5590 #ifdef __GNUC__
5591 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5592 #else
5593 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5594 #endif
5595
5596 #endif /* not THIS_IS_CONFIGURE */
5597 ' > ${tempcname}
5598
5599 # The value of CPP is a quoted variable reference, so we need to do this
5600 # to get its actual value...
5601 CPP=`eval "echo $CPP"`
5602 eval `${CPP} -Isrc ${tempcname} \
5603 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5604 if test "x$SPECIFIED_CFLAGS" = x; then
5605 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5606 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5607 else
5608 REAL_CFLAGS="$CFLAGS"
5609 fi
5610 rm ${tempcname}
5611
5612 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5613
5614 ### Make sure subsequent tests use flags consistent with the build flags.
5615
5616 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5617 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5618 else
5619 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5620 fi
5621
5622
5623
5624 # Check whether --enable-largefile was given.
5625 if test "${enable_largefile+set}" = set; then
5626 enableval=$enable_largefile;
5627 fi
5628
5629 if test "$enable_largefile" != no; then
5630
5631 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5632 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5633 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 ac_cv_sys_largefile_CC=no
5637 if test "$GCC" != yes; then
5638 ac_save_CC=$CC
5639 while :; do
5640 # IRIX 6.2 and later do not support large files by default,
5641 # so use the C compiler's -n32 option if that helps.
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 #include <sys/types.h>
5649 /* Check that off_t can represent 2**63 - 1 correctly.
5650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5651 since some C++ compilers masquerading as C compilers
5652 incorrectly reject 9223372036854775807. */
5653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5655 && LARGE_OFF_T % 2147483647 == 1)
5656 ? 1 : -1];
5657 int
5658 main ()
5659 {
5660
5661 ;
5662 return 0;
5663 }
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.$ac_objext; then
5682 break
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687
5688 fi
5689
5690 rm -f core conftest.err conftest.$ac_objext
5691 CC="$CC -n32"
5692 rm -f conftest.$ac_objext
5693 if { (ac_try="$ac_compile"
5694 case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
5709 ac_cv_sys_largefile_CC=' -n32'; break
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5713
5714
5715 fi
5716
5717 rm -f core conftest.err conftest.$ac_objext
5718 break
5719 done
5720 CC=$ac_save_CC
5721 rm -f conftest.$ac_ext
5722 fi
5723 fi
5724 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5725 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5726 if test "$ac_cv_sys_largefile_CC" != no; then
5727 CC=$CC$ac_cv_sys_largefile_CC
5728 fi
5729
5730 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5731 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5732 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735 while :; do
5736 cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h. */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 #include <sys/types.h>
5743 /* Check that off_t can represent 2**63 - 1 correctly.
5744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5745 since some C++ compilers masquerading as C compilers
5746 incorrectly reject 9223372036854775807. */
5747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5749 && LARGE_OFF_T % 2147483647 == 1)
5750 ? 1 : -1];
5751 int
5752 main ()
5753 {
5754
5755 ;
5756 return 0;
5757 }
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (ac_try="$ac_compile"
5761 case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_compile") 2>conftest.er1
5767 ac_status=$?
5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } && {
5773 test -z "$ac_c_werror_flag" ||
5774 test ! -s conftest.err
5775 } && test -s conftest.$ac_objext; then
5776 ac_cv_sys_file_offset_bits=no; break
5777 else
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5780
5781
5782 fi
5783
5784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #define _FILE_OFFSET_BITS 64
5792 #include <sys/types.h>
5793 /* Check that off_t can represent 2**63 - 1 correctly.
5794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5795 since some C++ compilers masquerading as C compilers
5796 incorrectly reject 9223372036854775807. */
5797 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5799 && LARGE_OFF_T % 2147483647 == 1)
5800 ? 1 : -1];
5801 int
5802 main ()
5803 {
5804
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext
5810 if { (ac_try="$ac_compile"
5811 case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5814 esac
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_compile") 2>conftest.er1
5817 ac_status=$?
5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } && {
5823 test -z "$ac_c_werror_flag" ||
5824 test ! -s conftest.err
5825 } && test -s conftest.$ac_objext; then
5826 ac_cv_sys_file_offset_bits=64; break
5827 else
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831
5832 fi
5833
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 ac_cv_sys_file_offset_bits=unknown
5836 break
5837 done
5838 fi
5839 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5840 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5841 case $ac_cv_sys_file_offset_bits in #(
5842 no | unknown) ;;
5843 *)
5844 cat >>confdefs.h <<_ACEOF
5845 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5846 _ACEOF
5847 ;;
5848 esac
5849 rm -f conftest*
5850 if test $ac_cv_sys_file_offset_bits = unknown; then
5851 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5852 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5853 if test "${ac_cv_sys_large_files+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856 while :; do
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 /* Check that off_t can represent 2**63 - 1 correctly.
5865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5866 since some C++ compilers masquerading as C compilers
5867 incorrectly reject 9223372036854775807. */
5868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5870 && LARGE_OFF_T % 2147483647 == 1)
5871 ? 1 : -1];
5872 int
5873 main ()
5874 {
5875
5876 ;
5877 return 0;
5878 }
5879 _ACEOF
5880 rm -f conftest.$ac_objext
5881 if { (ac_try="$ac_compile"
5882 case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5885 esac
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_compile") 2>conftest.er1
5888 ac_status=$?
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest.$ac_objext; then
5897 ac_cv_sys_large_files=no; break
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5901
5902
5903 fi
5904
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 #define _LARGE_FILES 1
5913 #include <sys/types.h>
5914 /* Check that off_t can represent 2**63 - 1 correctly.
5915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5916 since some C++ compilers masquerading as C compilers
5917 incorrectly reject 9223372036854775807. */
5918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5920 && LARGE_OFF_T % 2147483647 == 1)
5921 ? 1 : -1];
5922 int
5923 main ()
5924 {
5925
5926 ;
5927 return 0;
5928 }
5929 _ACEOF
5930 rm -f conftest.$ac_objext
5931 if { (ac_try="$ac_compile"
5932 case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.$ac_objext; then
5947 ac_cv_sys_large_files=1; break
5948 else
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952
5953 fi
5954
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 ac_cv_sys_large_files=unknown
5957 break
5958 done
5959 fi
5960 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5961 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5962 case $ac_cv_sys_large_files in #(
5963 no | unknown) ;;
5964 *)
5965 cat >>confdefs.h <<_ACEOF
5966 #define _LARGE_FILES $ac_cv_sys_large_files
5967 _ACEOF
5968 ;;
5969 esac
5970 rm -f conftest*
5971 fi
5972 fi
5973
5974
5975
5976 ### The standard library on x86-64 GNU/Linux distributions can
5977 ### be located in either /usr/lib64 or /usr/lib.
5978 case "${canonical}" in
5979 x86_64-*-linux-gnu* )
5980 if test -d /usr/lib64; then
5981
5982 cat >>confdefs.h <<\_ACEOF
5983 #define HAVE_X86_64_LIB64_DIR 1
5984 _ACEOF
5985
5986 fi
5987 esac
5988
5989
5990
5991
5992 if test "${with_sound}" != "no"; then
5993 # Sound support for GNU/Linux and the free BSDs.
5994 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5995 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5996 if test "${ac_cv_header_stdc+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h. */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 #include <stdlib.h>
6006 #include <stdarg.h>
6007 #include <string.h>
6008 #include <float.h>
6009
6010 int
6011 main ()
6012 {
6013
6014 ;
6015 return 0;
6016 }
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6020 case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023 esac
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_compile") 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_c_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest.$ac_objext; then
6035 ac_cv_header_stdc=yes
6036 else
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040 ac_cv_header_stdc=no
6041 fi
6042
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044
6045 if test $ac_cv_header_stdc = yes; then
6046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 #include <string.h>
6054
6055 _ACEOF
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057 $EGREP "memchr" >/dev/null 2>&1; then
6058 :
6059 else
6060 ac_cv_header_stdc=no
6061 fi
6062 rm -f conftest*
6063
6064 fi
6065
6066 if test $ac_cv_header_stdc = yes; then
6067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #include <stdlib.h>
6075
6076 _ACEOF
6077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6078 $EGREP "free" >/dev/null 2>&1; then
6079 :
6080 else
6081 ac_cv_header_stdc=no
6082 fi
6083 rm -f conftest*
6084
6085 fi
6086
6087 if test $ac_cv_header_stdc = yes; then
6088 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6089 if test "$cross_compiling" = yes; then
6090 :
6091 else
6092 cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h. */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6098 #include <ctype.h>
6099 #include <stdlib.h>
6100 #if ((' ' & 0x0FF) == 0x020)
6101 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6102 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6103 #else
6104 # define ISLOWER(c) \
6105 (('a' <= (c) && (c) <= 'i') \
6106 || ('j' <= (c) && (c) <= 'r') \
6107 || ('s' <= (c) && (c) <= 'z'))
6108 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6109 #endif
6110
6111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6112 int
6113 main ()
6114 {
6115 int i;
6116 for (i = 0; i < 256; i++)
6117 if (XOR (islower (i), ISLOWER (i))
6118 || toupper (i) != TOUPPER (i))
6119 return 2;
6120 return 0;
6121 }
6122 _ACEOF
6123 rm -f conftest$ac_exeext
6124 if { (ac_try="$ac_link"
6125 case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128 esac
6129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_link") 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6134 { (case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_try") 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 :
6144 else
6145 echo "$as_me: program exited with status $ac_status" >&5
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149 ( exit $ac_status )
6150 ac_cv_header_stdc=no
6151 fi
6152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6153 fi
6154
6155
6156 fi
6157 fi
6158 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6159 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6160 if test $ac_cv_header_stdc = yes; then
6161
6162 cat >>confdefs.h <<\_ACEOF
6163 #define STDC_HEADERS 1
6164 _ACEOF
6165
6166 fi
6167
6168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6179 inttypes.h stdint.h unistd.h
6180 do
6181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 $ac_includes_default
6194
6195 #include <$ac_header>
6196 _ACEOF
6197 rm -f conftest.$ac_objext
6198 if { (ac_try="$ac_compile"
6199 case "(($ac_try" in
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6202 esac
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_compile") 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } && {
6211 test -z "$ac_c_werror_flag" ||
6212 test ! -s conftest.err
6213 } && test -s conftest.$ac_objext; then
6214 eval "$as_ac_Header=yes"
6215 else
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 eval "$as_ac_Header=no"
6220 fi
6221
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 fi
6224 ac_res=`eval echo '${'$as_ac_Header'}'`
6225 { echo "$as_me:$LINENO: result: $ac_res" >&5
6226 echo "${ECHO_T}$ac_res" >&6; }
6227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6228 cat >>confdefs.h <<_ACEOF
6229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6230 _ACEOF
6231
6232 fi
6233
6234 done
6235
6236
6237
6238
6239
6240 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6241 do
6242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 fi
6249 ac_res=`eval echo '${'$as_ac_Header'}'`
6250 { echo "$as_me:$LINENO: result: $ac_res" >&5
6251 echo "${ECHO_T}$ac_res" >&6; }
6252 else
6253 # Is the header compilable?
6254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 $ac_includes_default
6263 #include <$ac_header>
6264 _ACEOF
6265 rm -f conftest.$ac_objext
6266 if { (ac_try="$ac_compile"
6267 case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compile") 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } && {
6279 test -z "$ac_c_werror_flag" ||
6280 test ! -s conftest.err
6281 } && test -s conftest.$ac_objext; then
6282 ac_header_compiler=yes
6283 else
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6286
6287 ac_header_compiler=no
6288 fi
6289
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6292 echo "${ECHO_T}$ac_header_compiler" >&6; }
6293
6294 # Is the header present?
6295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 #include <$ac_header>
6304 _ACEOF
6305 if { (ac_try="$ac_cpp conftest.$ac_ext"
6306 case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6312 ac_status=$?
6313 grep -v '^ *+' conftest.er1 >conftest.err
6314 rm -f conftest.er1
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } >/dev/null && {
6318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 }; then
6321 ac_header_preproc=yes
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 ac_header_preproc=no
6327 fi
6328
6329 rm -f conftest.err conftest.$ac_ext
6330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6331 echo "${ECHO_T}$ac_header_preproc" >&6; }
6332
6333 # So? What about this header?
6334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6335 yes:no: )
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6340 ac_header_preproc=yes
6341 ;;
6342 no:yes:* )
6343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6355
6356 ;;
6357 esac
6358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363 eval "$as_ac_Header=\$ac_header_preproc"
6364 fi
6365 ac_res=`eval echo '${'$as_ac_Header'}'`
6366 { echo "$as_me:$LINENO: result: $ac_res" >&5
6367 echo "${ECHO_T}$ac_res" >&6; }
6368
6369 fi
6370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6371 cat >>confdefs.h <<_ACEOF
6372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6373 _ACEOF
6374
6375 fi
6376
6377 done
6378
6379 # Emulation library used on NetBSD.
6380 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6381 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6382 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385 ac_check_lib_save_LIBS=$LIBS
6386 LIBS="-lossaudio $LIBS"
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393
6394 /* Override any GCC internal prototype to avoid an error.
6395 Use char because int might match the return type of a GCC
6396 builtin and then its argument prototype would still apply. */
6397 #ifdef __cplusplus
6398 extern "C"
6399 #endif
6400 char _oss_ioctl ();
6401 int
6402 main ()
6403 {
6404 return _oss_ioctl ();
6405 ;
6406 return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (ac_try="$ac_link"
6411 case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_link") 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest$ac_exeext &&
6426 $as_test_x conftest$ac_exeext; then
6427 ac_cv_lib_ossaudio__oss_ioctl=yes
6428 else
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ac_cv_lib_ossaudio__oss_ioctl=no
6433 fi
6434
6435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6436 conftest$ac_exeext conftest.$ac_ext
6437 LIBS=$ac_check_lib_save_LIBS
6438 fi
6439 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6440 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6441 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6442 LIBSOUND=-lossaudio
6443 else
6444 LIBSOUND=
6445 fi
6446
6447
6448
6449 ALSA_REQUIRED=1.0.0
6450 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6451 if test "X${with_pkg_config_prog}" != X; then
6452 PKG_CONFIG="${with_pkg_config_prog}"
6453 fi
6454
6455 succeeded=no
6456
6457 if test -z "$PKG_CONFIG"; then
6458 # Extract the first word of "pkg-config", so it can be a program name with args.
6459 set dummy pkg-config; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 case $PKG_CONFIG in
6466 [\\/]* | ?:[\\/]*)
6467 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6468 ;;
6469 *)
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6486 ;;
6487 esac
6488 fi
6489 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6490 if test -n "$PKG_CONFIG"; then
6491 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6492 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6493 else
6494 { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6496 fi
6497
6498
6499 fi
6500
6501 if test "$PKG_CONFIG" = "no" ; then
6502 HAVE_ALSA=no
6503 else
6504 PKG_CONFIG_MIN_VERSION=0.9.0
6505 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6506 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6507 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6508
6509 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6510 { echo "$as_me:$LINENO: result: yes" >&5
6511 echo "${ECHO_T}yes" >&6; }
6512 succeeded=yes
6513
6514 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6515 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6516 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6517 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6518 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6519
6520 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6521 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6522 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6523 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6524 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6525 else
6526 { echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6; }
6528 ALSA_CFLAGS=""
6529 ALSA_LIBS=""
6530 ## If we have a custom action on failure, don't print errors, but
6531 ## do set a variable so people can do so.
6532 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6533
6534 fi
6535
6536
6537
6538 else
6539 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6540 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6541 fi
6542 fi
6543
6544 if test $succeeded = yes; then
6545 HAVE_ALSA=yes
6546 else
6547 HAVE_ALSA=no
6548 fi
6549
6550 if test $HAVE_ALSA = yes; then
6551 SAVE_CFLAGS="$CFLAGS"
6552 SAVE_LDFLAGS="$LDFLAGS"
6553 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6554 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6555 cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h. */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 #include <asoundlib.h>
6562 int
6563 main ()
6564 {
6565 snd_lib_error_set_handler (0);
6566 ;
6567 return 0;
6568 }
6569 _ACEOF
6570 rm -f conftest.$ac_objext
6571 if { (ac_try="$ac_compile"
6572 case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575 esac
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_compile") 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && {
6584 test -z "$ac_c_werror_flag" ||
6585 test ! -s conftest.err
6586 } && test -s conftest.$ac_objext; then
6587 emacs_alsa_normal=yes
6588 else
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6591
6592 emacs_alsa_normal=no
6593 fi
6594
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 if test "$emacs_alsa_normal" != yes; then
6597 cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h. */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 #include <alsa/asoundlib.h>
6604 int
6605 main ()
6606 {
6607 snd_lib_error_set_handler (0);
6608 ;
6609 return 0;
6610 }
6611 _ACEOF
6612 rm -f conftest.$ac_objext
6613 if { (ac_try="$ac_compile"
6614 case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6617 esac
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_compile") 2>conftest.er1
6620 ac_status=$?
6621 grep -v '^ *+' conftest.er1 >conftest.err
6622 rm -f conftest.er1
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } && {
6626 test -z "$ac_c_werror_flag" ||
6627 test ! -s conftest.err
6628 } && test -s conftest.$ac_objext; then
6629 emacs_alsa_subdir=yes
6630 else
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634 emacs_alsa_subdir=no
6635 fi
6636
6637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638 if test "$emacs_alsa_subdir" != yes; then
6639 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6640 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6641 { (exit 1); exit 1; }; }
6642 fi
6643 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6644 fi
6645
6646 CFLAGS="$SAVE_CFLAGS"
6647 LDFLAGS="$SAVE_LDFLAGS"
6648 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6649 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6650
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_ALSA 1
6653 _ACEOF
6654
6655 fi
6656
6657 fi
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6685 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6686 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6687 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6688 sys/utsname.h pwd.h
6689 do
6690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 fi
6697 ac_res=`eval echo '${'$as_ac_Header'}'`
6698 { echo "$as_me:$LINENO: result: $ac_res" >&5
6699 echo "${ECHO_T}$ac_res" >&6; }
6700 else
6701 # Is the header compilable?
6702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6704 cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h. */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 $ac_includes_default
6711 #include <$ac_header>
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 if { (ac_try="$ac_compile"
6715 case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
6730 ac_header_compiler=yes
6731 else
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 ac_header_compiler=no
6736 fi
6737
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6740 echo "${ECHO_T}$ac_header_compiler" >&6; }
6741
6742 # Is the header present?
6743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6745 cat >conftest.$ac_ext <<_ACEOF
6746 /* confdefs.h. */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 #include <$ac_header>
6752 _ACEOF
6753 if { (ac_try="$ac_cpp conftest.$ac_ext"
6754 case "(($ac_try" in
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6757 esac
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } >/dev/null && {
6766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6767 test ! -s conftest.err
6768 }; then
6769 ac_header_preproc=yes
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774 ac_header_preproc=no
6775 fi
6776
6777 rm -f conftest.err conftest.$ac_ext
6778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6779 echo "${ECHO_T}$ac_header_preproc" >&6; }
6780
6781 # So? What about this header?
6782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6783 yes:no: )
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6788 ac_header_preproc=yes
6789 ;;
6790 no:yes:* )
6791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6803
6804 ;;
6805 esac
6806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811 eval "$as_ac_Header=\$ac_header_preproc"
6812 fi
6813 ac_res=`eval echo '${'$as_ac_Header'}'`
6814 { echo "$as_me:$LINENO: result: $ac_res" >&5
6815 echo "${ECHO_T}$ac_res" >&6; }
6816
6817 fi
6818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6819 cat >>confdefs.h <<_ACEOF
6820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6821 _ACEOF
6822
6823 fi
6824
6825 done
6826
6827
6828 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6829 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <sys/personality.h>
6837 int
6838 main ()
6839 {
6840 personality (PER_LINUX32)
6841 ;
6842 return 0;
6843 }
6844 _ACEOF
6845 rm -f conftest.$ac_objext
6846 if { (ac_try="$ac_compile"
6847 case "(($ac_try" in
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6850 esac
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852 (eval "$ac_compile") 2>conftest.er1
6853 ac_status=$?
6854 grep -v '^ *+' conftest.er1 >conftest.err
6855 rm -f conftest.er1
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && {
6859 test -z "$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 } && test -s conftest.$ac_objext; then
6862 emacs_cv_personality_linux32=yes
6863 else
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867 emacs_cv_personality_linux32=no
6868 fi
6869
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6872 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6873
6874 if test $emacs_cv_personality_linux32 = yes; then
6875
6876 cat >>confdefs.h <<\_ACEOF
6877 #define HAVE_PERSONALITY_LINUX32 1
6878 _ACEOF
6879
6880 fi
6881
6882
6883 for ac_header in term.h
6884 do
6885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891 cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <$ac_header>
6898 _ACEOF
6899 if { (ac_try="$ac_cpp conftest.$ac_ext"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } >/dev/null && {
6912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 }; then
6915 eval "$as_ac_Header=yes"
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6919
6920 eval "$as_ac_Header=no"
6921 fi
6922
6923 rm -f conftest.err conftest.$ac_ext
6924 fi
6925 ac_res=`eval echo '${'$as_ac_Header'}'`
6926 { echo "$as_me:$LINENO: result: $ac_res" >&5
6927 echo "${ECHO_T}$ac_res" >&6; }
6928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6929 cat >>confdefs.h <<_ACEOF
6930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6931 _ACEOF
6932
6933 fi
6934
6935 done
6936
6937 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6938 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6939 if test "${ac_cv_header_stdc+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 #include <stdlib.h>
6949 #include <stdarg.h>
6950 #include <string.h>
6951 #include <float.h>
6952
6953 int
6954 main ()
6955 {
6956
6957 ;
6958 return 0;
6959 }
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6978 ac_cv_header_stdc=yes
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983 ac_cv_header_stdc=no
6984 fi
6985
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987
6988 if test $ac_cv_header_stdc = yes; then
6989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6990 cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h. */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6996 #include <string.h>
6997
6998 _ACEOF
6999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7000 $EGREP "memchr" >/dev/null 2>&1; then
7001 :
7002 else
7003 ac_cv_header_stdc=no
7004 fi
7005 rm -f conftest*
7006
7007 fi
7008
7009 if test $ac_cv_header_stdc = yes; then
7010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h. */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 #include <stdlib.h>
7018
7019 _ACEOF
7020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7021 $EGREP "free" >/dev/null 2>&1; then
7022 :
7023 else
7024 ac_cv_header_stdc=no
7025 fi
7026 rm -f conftest*
7027
7028 fi
7029
7030 if test $ac_cv_header_stdc = yes; then
7031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7032 if test "$cross_compiling" = yes; then
7033 :
7034 else
7035 cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h. */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041 #include <ctype.h>
7042 #include <stdlib.h>
7043 #if ((' ' & 0x0FF) == 0x020)
7044 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7045 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7046 #else
7047 # define ISLOWER(c) \
7048 (('a' <= (c) && (c) <= 'i') \
7049 || ('j' <= (c) && (c) <= 'r') \
7050 || ('s' <= (c) && (c) <= 'z'))
7051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7052 #endif
7053
7054 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7055 int
7056 main ()
7057 {
7058 int i;
7059 for (i = 0; i < 256; i++)
7060 if (XOR (islower (i), ISLOWER (i))
7061 || toupper (i) != TOUPPER (i))
7062 return 2;
7063 return 0;
7064 }
7065 _ACEOF
7066 rm -f conftest$ac_exeext
7067 if { (ac_try="$ac_link"
7068 case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071 esac
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_link") 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7077 { (case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_try") 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 :
7087 else
7088 echo "$as_me: program exited with status $ac_status" >&5
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ( exit $ac_status )
7093 ac_cv_header_stdc=no
7094 fi
7095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7096 fi
7097
7098
7099 fi
7100 fi
7101 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7102 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7103 if test $ac_cv_header_stdc = yes; then
7104
7105 cat >>confdefs.h <<\_ACEOF
7106 #define STDC_HEADERS 1
7107 _ACEOF
7108
7109 fi
7110
7111 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7112 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7113 if test "${ac_cv_header_time+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116 cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h. */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 #include <sys/types.h>
7123 #include <sys/time.h>
7124 #include <time.h>
7125
7126 int
7127 main ()
7128 {
7129 if ((struct tm *) 0)
7130 return 0;
7131 ;
7132 return 0;
7133 }
7134 _ACEOF
7135 rm -f conftest.$ac_objext
7136 if { (ac_try="$ac_compile"
7137 case "(($ac_try" in
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7140 esac
7141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_compile") 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.$ac_objext; then
7152 ac_cv_header_time=yes
7153 else
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7156
7157 ac_cv_header_time=no
7158 fi
7159
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161 fi
7162 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7163 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7164 if test $ac_cv_header_time = yes; then
7165
7166 cat >>confdefs.h <<\_ACEOF
7167 #define TIME_WITH_SYS_TIME 1
7168 _ACEOF
7169
7170 fi
7171
7172 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7173 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7174 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h. */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 $ac_includes_default
7184 int
7185 main ()
7186 {
7187 #ifndef sys_siglist
7188 (void) sys_siglist;
7189 #endif
7190
7191 ;
7192 return 0;
7193 }
7194 _ACEOF
7195 rm -f conftest.$ac_objext
7196 if { (ac_try="$ac_compile"
7197 case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_compile") 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } && {
7209 test -z "$ac_c_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest.$ac_objext; then
7212 ac_cv_have_decl_sys_siglist=yes
7213 else
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7216
7217 ac_cv_have_decl_sys_siglist=no
7218 fi
7219
7220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 fi
7222 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7223 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7224 if test $ac_cv_have_decl_sys_siglist = yes; then
7225
7226 cat >>confdefs.h <<_ACEOF
7227 #define HAVE_DECL_SYS_SIGLIST 1
7228 _ACEOF
7229
7230
7231 else
7232 cat >>confdefs.h <<_ACEOF
7233 #define HAVE_DECL_SYS_SIGLIST 0
7234 _ACEOF
7235
7236
7237 fi
7238
7239
7240 if test $ac_cv_have_decl_sys_siglist != yes; then
7241 # For Tru64, at least:
7242 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7243 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7244 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 $ac_includes_default
7254 int
7255 main ()
7256 {
7257 #ifndef __sys_siglist
7258 (void) __sys_siglist;
7259 #endif
7260
7261 ;
7262 return 0;
7263 }
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7267 case "(($ac_try" in
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7270 esac
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7282 ac_cv_have_decl___sys_siglist=yes
7283 else
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 ac_cv_have_decl___sys_siglist=no
7288 fi
7289
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 fi
7292 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7293 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7294 if test $ac_cv_have_decl___sys_siglist = yes; then
7295
7296 cat >>confdefs.h <<_ACEOF
7297 #define HAVE_DECL___SYS_SIGLIST 1
7298 _ACEOF
7299
7300
7301 else
7302 cat >>confdefs.h <<_ACEOF
7303 #define HAVE_DECL___SYS_SIGLIST 0
7304 _ACEOF
7305
7306
7307 fi
7308
7309
7310 if test $ac_cv_have_decl___sys_siglist = yes; then
7311
7312 cat >>confdefs.h <<\_ACEOF
7313 #define sys_siglist __sys_siglist
7314 _ACEOF
7315
7316 fi
7317 fi
7318 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7319 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7320 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323 cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h. */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <sys/types.h>
7330 #include <sys/wait.h>
7331 #ifndef WEXITSTATUS
7332 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7333 #endif
7334 #ifndef WIFEXITED
7335 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7336 #endif
7337
7338 int
7339 main ()
7340 {
7341 int s;
7342 wait (&s);
7343 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_cv_header_sys_wait_h=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 ac_cv_header_sys_wait_h=no
7371 fi
7372
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 fi
7375 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7376 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7377 if test $ac_cv_header_sys_wait_h = yes; then
7378
7379 cat >>confdefs.h <<\_ACEOF
7380 #define HAVE_SYS_WAIT_H 1
7381 _ACEOF
7382
7383 fi
7384
7385
7386 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7387 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7388 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391 cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h. */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 #ifdef TIME_WITH_SYS_TIME
7398 #include <sys/time.h>
7399 #include <time.h>
7400 #else
7401 #ifdef HAVE_SYS_TIME_H
7402 #include <sys/time.h>
7403 #else
7404 #include <time.h>
7405 #endif
7406 #endif
7407 #ifdef HAVE_UTIME_H
7408 #include <utime.h>
7409 #endif
7410 int
7411 main ()
7412 {
7413 static struct utimbuf x; x.actime = x.modtime;
7414 ;
7415 return 0;
7416 }
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7420 case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423 esac
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
7426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.$ac_objext; then
7435 emacs_cv_struct_utimbuf=yes
7436 else
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 emacs_cv_struct_utimbuf=no
7441 fi
7442
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 fi
7445 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7446 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7447 if test $emacs_cv_struct_utimbuf = yes; then
7448
7449 cat >>confdefs.h <<\_ACEOF
7450 #define HAVE_STRUCT_UTIMBUF 1
7451 _ACEOF
7452
7453 fi
7454
7455 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7456 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7457 if test "${ac_cv_type_signal+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460 cat >conftest.$ac_ext <<_ACEOF
7461 /* confdefs.h. */
7462 _ACEOF
7463 cat confdefs.h >>conftest.$ac_ext
7464 cat >>conftest.$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7466 #include <sys/types.h>
7467 #include <signal.h>
7468
7469 int
7470 main ()
7471 {
7472 return *(signal (0, 0)) (0) == 1;
7473 ;
7474 return 0;
7475 }
7476 _ACEOF
7477 rm -f conftest.$ac_objext
7478 if { (ac_try="$ac_compile"
7479 case "(($ac_try" in
7480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481 *) ac_try_echo=$ac_try;;
7482 esac
7483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7484 (eval "$ac_compile") 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } && {
7491 test -z "$ac_c_werror_flag" ||
7492 test ! -s conftest.err
7493 } && test -s conftest.$ac_objext; then
7494 ac_cv_type_signal=int
7495 else
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7498
7499 ac_cv_type_signal=void
7500 fi
7501
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 fi
7504 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7505 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7506
7507 cat >>confdefs.h <<_ACEOF
7508 #define RETSIGTYPE $ac_cv_type_signal
7509 _ACEOF
7510
7511
7512
7513 { echo "$as_me:$LINENO: checking for speed_t" >&5
7514 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7515 if test "${emacs_cv_speed_t+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 #include <termios.h>
7525 int
7526 main ()
7527 {
7528 speed_t x = 1;
7529 ;
7530 return 0;
7531 }
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7535 case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.$ac_objext; then
7550 emacs_cv_speed_t=yes
7551 else
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7554
7555 emacs_cv_speed_t=no
7556 fi
7557
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 fi
7560 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7561 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7562 if test $emacs_cv_speed_t = yes; then
7563
7564 cat >>confdefs.h <<\_ACEOF
7565 #define HAVE_SPEED_T 1
7566 _ACEOF
7567
7568 fi
7569
7570 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7571 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7572 if test "${emacs_cv_struct_timeval+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 #ifdef TIME_WITH_SYS_TIME
7582 #include <sys/time.h>
7583 #include <time.h>
7584 #else
7585 #ifdef HAVE_SYS_TIME_H
7586 #include <sys/time.h>
7587 #else
7588 #include <time.h>
7589 #endif
7590 #endif
7591 int
7592 main ()
7593 {
7594 static struct timeval x; x.tv_sec = x.tv_usec;
7595 ;
7596 return 0;
7597 }
7598 _ACEOF
7599 rm -f conftest.$ac_objext
7600 if { (ac_try="$ac_compile"
7601 case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7604 esac
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_compile") 2>conftest.er1
7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && {
7613 test -z "$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 } && test -s conftest.$ac_objext; then
7616 emacs_cv_struct_timeval=yes
7617 else
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7620
7621 emacs_cv_struct_timeval=no
7622 fi
7623
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 fi
7626 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7627 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7628 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7629 if test $emacs_cv_struct_timeval = yes; then
7630
7631 cat >>confdefs.h <<\_ACEOF
7632 #define HAVE_TIMEVAL 1
7633 _ACEOF
7634
7635 fi
7636
7637 { echo "$as_me:$LINENO: checking for struct exception" >&5
7638 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7639 if test "${emacs_cv_struct_exception+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 #include <math.h>
7649 int
7650 main ()
7651 {
7652 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7653 ;
7654 return 0;
7655 }
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (ac_try="$ac_compile"
7659 case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 emacs_cv_struct_exception=yes
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679 emacs_cv_struct_exception=no
7680 fi
7681
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 fi
7684 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7685 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7686 HAVE_EXCEPTION=$emacs_cv_struct_exception
7687 if test $emacs_cv_struct_exception != yes; then
7688
7689 cat >>confdefs.h <<\_ACEOF
7690 #define NO_MATHERR 1
7691 _ACEOF
7692
7693 fi
7694
7695
7696 for ac_header in sys/socket.h
7697 do
7698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 fi
7705 ac_res=`eval echo '${'$as_ac_Header'}'`
7706 { echo "$as_me:$LINENO: result: $ac_res" >&5
7707 echo "${ECHO_T}$ac_res" >&6; }
7708 else
7709 # Is the header compilable?
7710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h. */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 $ac_includes_default
7719 #include <$ac_header>
7720 _ACEOF
7721 rm -f conftest.$ac_objext
7722 if { (ac_try="$ac_compile"
7723 case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726 esac
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_compile") 2>conftest.er1
7729 ac_status=$?
7730 grep -v '^ *+' conftest.er1 >conftest.err
7731 rm -f conftest.er1
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest.$ac_objext; then
7738 ac_header_compiler=yes
7739 else
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 ac_header_compiler=no
7744 fi
7745
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7748 echo "${ECHO_T}$ac_header_compiler" >&6; }
7749
7750 # Is the header present?
7751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7753 cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h. */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 #include <$ac_header>
7760 _ACEOF
7761 if { (ac_try="$ac_cpp conftest.$ac_ext"
7762 case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765 esac
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7768 ac_status=$?
7769 grep -v '^ *+' conftest.er1 >conftest.err
7770 rm -f conftest.er1
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } >/dev/null && {
7774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7775 test ! -s conftest.err
7776 }; then
7777 ac_header_preproc=yes
7778 else
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 ac_header_preproc=no
7783 fi
7784
7785 rm -f conftest.err conftest.$ac_ext
7786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7787 echo "${ECHO_T}$ac_header_preproc" >&6; }
7788
7789 # So? What about this header?
7790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7791 yes:no: )
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7796 ac_header_preproc=yes
7797 ;;
7798 no:yes:* )
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7811
7812 ;;
7813 esac
7814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819 eval "$as_ac_Header=\$ac_header_preproc"
7820 fi
7821 ac_res=`eval echo '${'$as_ac_Header'}'`
7822 { echo "$as_me:$LINENO: result: $ac_res" >&5
7823 echo "${ECHO_T}$ac_res" >&6; }
7824
7825 fi
7826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7827 cat >>confdefs.h <<_ACEOF
7828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7829 _ACEOF
7830
7831 fi
7832
7833 done
7834
7835
7836 for ac_header in net/if.h
7837 do
7838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 $ac_includes_default
7851 #if HAVE_SYS_SOCKET_H
7852 #include <sys/socket.h>
7853 #endif
7854
7855 #include <$ac_header>
7856 _ACEOF
7857 rm -f conftest.$ac_objext
7858 if { (ac_try="$ac_compile"
7859 case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7862 esac
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_compile") 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } && {
7871 test -z "$ac_c_werror_flag" ||
7872 test ! -s conftest.err
7873 } && test -s conftest.$ac_objext; then
7874 eval "$as_ac_Header=yes"
7875 else
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 eval "$as_ac_Header=no"
7880 fi
7881
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883 fi
7884 ac_res=`eval echo '${'$as_ac_Header'}'`
7885 { echo "$as_me:$LINENO: result: $ac_res" >&5
7886 echo "${ECHO_T}$ac_res" >&6; }
7887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7888 cat >>confdefs.h <<_ACEOF
7889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7890 _ACEOF
7891
7892 fi
7893
7894 done
7895
7896
7897 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7898 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7899 if test "${ac_cv_struct_tm+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902 cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h. */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7908 #include <sys/types.h>
7909 #include <time.h>
7910
7911 int
7912 main ()
7913 {
7914 struct tm tm;
7915 int *p = &tm.tm_sec;
7916 return !p;
7917 ;
7918 return 0;
7919 }
7920 _ACEOF
7921 rm -f conftest.$ac_objext
7922 if { (ac_try="$ac_compile"
7923 case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926 esac
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_compile") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest.$ac_objext; then
7938 ac_cv_struct_tm=time.h
7939 else
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7942
7943 ac_cv_struct_tm=sys/time.h
7944 fi
7945
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 fi
7948 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7949 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7950 if test $ac_cv_struct_tm = sys/time.h; then
7951
7952 cat >>confdefs.h <<\_ACEOF
7953 #define TM_IN_SYS_TIME 1
7954 _ACEOF
7955
7956 fi
7957
7958 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7959 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7960 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963 cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h. */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7969 #include <sys/types.h>
7970 #include <$ac_cv_struct_tm>
7971
7972
7973 int
7974 main ()
7975 {
7976 static struct tm ac_aggr;
7977 if (ac_aggr.tm_zone)
7978 return 0;
7979 ;
7980 return 0;
7981 }
7982 _ACEOF
7983 rm -f conftest.$ac_objext
7984 if { (ac_try="$ac_compile"
7985 case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_compile") 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && {
7997 test -z "$ac_c_werror_flag" ||
7998 test ! -s conftest.err
7999 } && test -s conftest.$ac_objext; then
8000 ac_cv_member_struct_tm_tm_zone=yes
8001 else
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8004
8005 cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h. */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 #include <sys/types.h>
8012 #include <$ac_cv_struct_tm>
8013
8014
8015 int
8016 main ()
8017 {
8018 static struct tm ac_aggr;
8019 if (sizeof ac_aggr.tm_zone)
8020 return 0;
8021 ;
8022 return 0;
8023 }
8024 _ACEOF
8025 rm -f conftest.$ac_objext
8026 if { (ac_try="$ac_compile"
8027 case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030 esac
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_compile") 2>conftest.er1
8033 ac_status=$?
8034 grep -v '^ *+' conftest.er1 >conftest.err
8035 rm -f conftest.er1
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } && {
8039 test -z "$ac_c_werror_flag" ||
8040 test ! -s conftest.err
8041 } && test -s conftest.$ac_objext; then
8042 ac_cv_member_struct_tm_tm_zone=yes
8043 else
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8046
8047 ac_cv_member_struct_tm_tm_zone=no
8048 fi
8049
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051 fi
8052
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 fi
8055 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8056 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8057 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8058
8059 cat >>confdefs.h <<_ACEOF
8060 #define HAVE_STRUCT_TM_TM_ZONE 1
8061 _ACEOF
8062
8063
8064 fi
8065
8066 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8067
8068 cat >>confdefs.h <<\_ACEOF
8069 #define HAVE_TM_ZONE 1
8070 _ACEOF
8071
8072 else
8073 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8074 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8075 if test "${ac_cv_have_decl_tzname+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078 cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h. */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8084 #include <time.h>
8085
8086 int
8087 main ()
8088 {
8089 #ifndef tzname
8090 (void) tzname;
8091 #endif
8092
8093 ;
8094 return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext
8098 if { (ac_try="$ac_compile"
8099 case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_compile") 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } && {
8111 test -z "$ac_c_werror_flag" ||
8112 test ! -s conftest.err
8113 } && test -s conftest.$ac_objext; then
8114 ac_cv_have_decl_tzname=yes
8115 else
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 ac_cv_have_decl_tzname=no
8120 fi
8121
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 fi
8124 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8125 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8126 if test $ac_cv_have_decl_tzname = yes; then
8127
8128 cat >>confdefs.h <<_ACEOF
8129 #define HAVE_DECL_TZNAME 1
8130 _ACEOF
8131
8132
8133 else
8134 cat >>confdefs.h <<_ACEOF
8135 #define HAVE_DECL_TZNAME 0
8136 _ACEOF
8137
8138
8139 fi
8140
8141
8142 { echo "$as_me:$LINENO: checking for tzname" >&5
8143 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8144 if test "${ac_cv_var_tzname+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 #include <time.h>
8154 #if !HAVE_DECL_TZNAME
8155 extern char *tzname[];
8156 #endif
8157
8158 int
8159 main ()
8160 {
8161 return tzname[0][0];
8162 ;
8163 return 0;
8164 }
8165 _ACEOF
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (ac_try="$ac_link"
8168 case "(($ac_try" in
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_link") 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && {
8180 test -z "$ac_c_werror_flag" ||
8181 test ! -s conftest.err
8182 } && test -s conftest$ac_exeext &&
8183 $as_test_x conftest$ac_exeext; then
8184 ac_cv_var_tzname=yes
8185 else
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 ac_cv_var_tzname=no
8190 fi
8191
8192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8193 conftest$ac_exeext conftest.$ac_ext
8194 fi
8195 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8196 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8197 if test $ac_cv_var_tzname = yes; then
8198
8199 cat >>confdefs.h <<\_ACEOF
8200 #define HAVE_TZNAME 1
8201 _ACEOF
8202
8203 fi
8204 fi
8205
8206 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8207 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8208 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h. */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8217 #include <time.h>
8218
8219 int
8220 main ()
8221 {
8222 static struct tm ac_aggr;
8223 if (ac_aggr.tm_gmtoff)
8224 return 0;
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 rm -f conftest.$ac_objext
8230 if { (ac_try="$ac_compile"
8231 case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8234 esac
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.$ac_objext; then
8246 ac_cv_member_struct_tm_tm_gmtoff=yes
8247 else
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 #include <time.h>
8258
8259 int
8260 main ()
8261 {
8262 static struct tm ac_aggr;
8263 if (sizeof ac_aggr.tm_gmtoff)
8264 return 0;
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8271 case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8274 esac
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_compile") 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } && {
8283 test -z "$ac_c_werror_flag" ||
8284 test ! -s conftest.err
8285 } && test -s conftest.$ac_objext; then
8286 ac_cv_member_struct_tm_tm_gmtoff=yes
8287 else
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8290
8291 ac_cv_member_struct_tm_tm_gmtoff=no
8292 fi
8293
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 fi
8296
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 fi
8299 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8300 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8301 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8302
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_TM_GMTOFF 1
8305 _ACEOF
8306
8307 fi
8308
8309 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8310 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8311 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 $ac_includes_default
8321 #if HAVE_SYS_SOCKET_H
8322 #include <sys/socket.h>
8323 #endif
8324 #if HAVE_NET_IF_H
8325 #include <net/if.h>
8326 #endif
8327
8328 int
8329 main ()
8330 {
8331 static struct ifreq ac_aggr;
8332 if (ac_aggr.ifr_flags)
8333 return 0;
8334 ;
8335 return 0;
8336 }
8337 _ACEOF
8338 rm -f conftest.$ac_objext
8339 if { (ac_try="$ac_compile"
8340 case "(($ac_try" in
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8343 esac
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } && {
8352 test -z "$ac_c_werror_flag" ||
8353 test ! -s conftest.err
8354 } && test -s conftest.$ac_objext; then
8355 ac_cv_member_struct_ifreq_ifr_flags=yes
8356 else
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8359
8360 cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h. */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8366 $ac_includes_default
8367 #if HAVE_SYS_SOCKET_H
8368 #include <sys/socket.h>
8369 #endif
8370 #if HAVE_NET_IF_H
8371 #include <net/if.h>
8372 #endif
8373
8374 int
8375 main ()
8376 {
8377 static struct ifreq ac_aggr;
8378 if (sizeof ac_aggr.ifr_flags)
8379 return 0;
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8386 case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_compile") 2>conftest.er1
8392 ac_status=$?
8393 grep -v '^ *+' conftest.er1 >conftest.err
8394 rm -f conftest.er1
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } && {
8398 test -z "$ac_c_werror_flag" ||
8399 test ! -s conftest.err
8400 } && test -s conftest.$ac_objext; then
8401 ac_cv_member_struct_ifreq_ifr_flags=yes
8402 else
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406 ac_cv_member_struct_ifreq_ifr_flags=no
8407 fi
8408
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411
8412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8413 fi
8414 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8415 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8416 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8417
8418 cat >>confdefs.h <<_ACEOF
8419 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8420 _ACEOF
8421
8422
8423 fi
8424 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8425 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8426 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8436 #if HAVE_SYS_SOCKET_H
8437 #include <sys/socket.h>
8438 #endif
8439 #if HAVE_NET_IF_H
8440 #include <net/if.h>
8441 #endif
8442
8443 int
8444 main ()
8445 {
8446 static struct ifreq ac_aggr;
8447 if (ac_aggr.ifr_hwaddr)
8448 return 0;
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8455 case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_compile") 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } && {
8467 test -z "$ac_c_werror_flag" ||
8468 test ! -s conftest.err
8469 } && test -s conftest.$ac_objext; then
8470 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h. */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8481 $ac_includes_default
8482 #if HAVE_SYS_SOCKET_H
8483 #include <sys/socket.h>
8484 #endif
8485 #if HAVE_NET_IF_H
8486 #include <net/if.h>
8487 #endif
8488
8489 int
8490 main ()
8491 {
8492 static struct ifreq ac_aggr;
8493 if (sizeof ac_aggr.ifr_hwaddr)
8494 return 0;
8495 ;
8496 return 0;
8497 }
8498 _ACEOF
8499 rm -f conftest.$ac_objext
8500 if { (ac_try="$ac_compile"
8501 case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_compile") 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } && {
8513 test -z "$ac_c_werror_flag" ||
8514 test ! -s conftest.err
8515 } && test -s conftest.$ac_objext; then
8516 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8517 else
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8522 fi
8523
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 fi
8526
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 fi
8529 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8530 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8531 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8532
8533 cat >>confdefs.h <<_ACEOF
8534 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8535 _ACEOF
8536
8537
8538 fi
8539 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8540 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8541 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544 cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h. */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550 $ac_includes_default
8551 #if HAVE_SYS_SOCKET_H
8552 #include <sys/socket.h>
8553 #endif
8554 #if HAVE_NET_IF_H
8555 #include <net/if.h>
8556 #endif
8557
8558 int
8559 main ()
8560 {
8561 static struct ifreq ac_aggr;
8562 if (ac_aggr.ifr_netmask)
8563 return 0;
8564 ;
8565 return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8570 case "(($ac_try" in
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8576 ac_status=$?
8577 grep -v '^ *+' conftest.er1 >conftest.err
8578 rm -f conftest.er1
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.$ac_objext; then
8585 ac_cv_member_struct_ifreq_ifr_netmask=yes
8586 else
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h. */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8596 $ac_includes_default
8597 #if HAVE_SYS_SOCKET_H
8598 #include <sys/socket.h>
8599 #endif
8600 #if HAVE_NET_IF_H
8601 #include <net/if.h>
8602 #endif
8603
8604 int
8605 main ()
8606 {
8607 static struct ifreq ac_aggr;
8608 if (sizeof ac_aggr.ifr_netmask)
8609 return 0;
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext
8615 if { (ac_try="$ac_compile"
8616 case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_compile") 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest.$ac_objext; then
8631 ac_cv_member_struct_ifreq_ifr_netmask=yes
8632 else
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8635
8636 ac_cv_member_struct_ifreq_ifr_netmask=no
8637 fi
8638
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 fi
8641
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 fi
8644 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8645 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8646 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8647
8648 cat >>confdefs.h <<_ACEOF
8649 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8650 _ACEOF
8651
8652
8653 fi
8654 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8655 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8656 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659 cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h. */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 $ac_includes_default
8666 #if HAVE_SYS_SOCKET_H
8667 #include <sys/socket.h>
8668 #endif
8669 #if HAVE_NET_IF_H
8670 #include <net/if.h>
8671 #endif
8672
8673 int
8674 main ()
8675 {
8676 static struct ifreq ac_aggr;
8677 if (ac_aggr.ifr_broadaddr)
8678 return 0;
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8685 case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h. */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 $ac_includes_default
8712 #if HAVE_SYS_SOCKET_H
8713 #include <sys/socket.h>
8714 #endif
8715 #if HAVE_NET_IF_H
8716 #include <net/if.h>
8717 #endif
8718
8719 int
8720 main ()
8721 {
8722 static struct ifreq ac_aggr;
8723 if (sizeof ac_aggr.ifr_broadaddr)
8724 return 0;
8725 ;
8726 return 0;
8727 }
8728 _ACEOF
8729 rm -f conftest.$ac_objext
8730 if { (ac_try="$ac_compile"
8731 case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734 esac
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_compile") 2>conftest.er1
8737 ac_status=$?
8738 grep -v '^ *+' conftest.er1 >conftest.err
8739 rm -f conftest.er1
8740 cat conftest.err >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest.$ac_objext; then
8746 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8747 else
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8750
8751 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8752 fi
8753
8754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755 fi
8756
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758 fi
8759 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8760 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8761 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8762
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8765 _ACEOF
8766
8767
8768 fi
8769 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8770 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8771 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8781 #if HAVE_SYS_SOCKET_H
8782 #include <sys/socket.h>
8783 #endif
8784 #if HAVE_NET_IF_H
8785 #include <net/if.h>
8786 #endif
8787
8788 int
8789 main ()
8790 {
8791 static struct ifreq ac_aggr;
8792 if (ac_aggr.ifr_addr)
8793 return 0;
8794 ;
8795 return 0;
8796 }
8797 _ACEOF
8798 rm -f conftest.$ac_objext
8799 if { (ac_try="$ac_compile"
8800 case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803 esac
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_compile") 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest.$ac_objext; then
8815 ac_cv_member_struct_ifreq_ifr_addr=yes
8816 else
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h. */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 $ac_includes_default
8827 #if HAVE_SYS_SOCKET_H
8828 #include <sys/socket.h>
8829 #endif
8830 #if HAVE_NET_IF_H
8831 #include <net/if.h>
8832 #endif
8833
8834 int
8835 main ()
8836 {
8837 static struct ifreq ac_aggr;
8838 if (sizeof ac_aggr.ifr_addr)
8839 return 0;
8840 ;
8841 return 0;
8842 }
8843 _ACEOF
8844 rm -f conftest.$ac_objext
8845 if { (ac_try="$ac_compile"
8846 case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849 esac
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_compile") 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } && {
8858 test -z "$ac_c_werror_flag" ||
8859 test ! -s conftest.err
8860 } && test -s conftest.$ac_objext; then
8861 ac_cv_member_struct_ifreq_ifr_addr=yes
8862 else
8863 echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8865
8866 ac_cv_member_struct_ifreq_ifr_addr=no
8867 fi
8868
8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 fi
8871
8872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873 fi
8874 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8875 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8876 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8877
8878 cat >>confdefs.h <<_ACEOF
8879 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8880 _ACEOF
8881
8882
8883 fi
8884
8885
8886
8887 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8888 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8889 if test "$ac_cv_prog_cc_c89" != no; then
8890 { echo "$as_me:$LINENO: result: yes" >&5
8891 echo "${ECHO_T}yes" >&6; }
8892
8893 cat >>confdefs.h <<\_ACEOF
8894 #define PROTOTYPES 1
8895 _ACEOF
8896
8897
8898 cat >>confdefs.h <<\_ACEOF
8899 #define __PROTOTYPES 1
8900 _ACEOF
8901
8902 else
8903 { echo "$as_me:$LINENO: result: no" >&5
8904 echo "${ECHO_T}no" >&6; }
8905 fi
8906
8907 { echo "$as_me:$LINENO: checking for working volatile" >&5
8908 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8909 if test "${ac_cv_c_volatile+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918
8919 int
8920 main ()
8921 {
8922
8923 volatile int x;
8924 int * volatile y = (int *) 0;
8925 return !x && !y;
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 rm -f conftest.$ac_objext
8931 if { (ac_try="$ac_compile"
8932 case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935 esac
8936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_compile") 2>conftest.er1
8938 ac_status=$?
8939 grep -v '^ *+' conftest.er1 >conftest.err
8940 rm -f conftest.er1
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } && {
8944 test -z "$ac_c_werror_flag" ||
8945 test ! -s conftest.err
8946 } && test -s conftest.$ac_objext; then
8947 ac_cv_c_volatile=yes
8948 else
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952 ac_cv_c_volatile=no
8953 fi
8954
8955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956 fi
8957 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8958 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8959 if test $ac_cv_c_volatile = no; then
8960
8961 cat >>confdefs.h <<\_ACEOF
8962 #define volatile
8963 _ACEOF
8964
8965 fi
8966
8967 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8968 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8969 if test "${ac_cv_c_const+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 else
8972 cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h. */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978
8979 int
8980 main ()
8981 {
8982 /* FIXME: Include the comments suggested by Paul. */
8983 #ifndef __cplusplus
8984 /* Ultrix mips cc rejects this. */
8985 typedef int charset[2];
8986 const charset cs;
8987 /* SunOS 4.1.1 cc rejects this. */
8988 char const *const *pcpcc;
8989 char **ppc;
8990 /* NEC SVR4.0.2 mips cc rejects this. */
8991 struct point {int x, y;};
8992 static struct point const zero = {0,0};
8993 /* AIX XL C 1.02.0.0 rejects this.
8994 It does not let you subtract one const X* pointer from another in
8995 an arm of an if-expression whose if-part is not a constant
8996 expression */
8997 const char *g = "string";
8998 pcpcc = &g + (g ? g-g : 0);
8999 /* HPUX 7.0 cc rejects these. */
9000 ++pcpcc;
9001 ppc = (char**) pcpcc;
9002 pcpcc = (char const *const *) ppc;
9003 { /* SCO 3.2v4 cc rejects this. */
9004 char *t;
9005 char const *s = 0 ? (char *) 0 : (char const *) 0;
9006
9007 *t++ = 0;
9008 if (s) return 0;
9009 }
9010 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9011 int x[] = {25, 17};
9012 const int *foo = &x[0];
9013 ++foo;
9014 }
9015 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9016 typedef const int *iptr;
9017 iptr p = 0;
9018 ++p;
9019 }
9020 { /* AIX XL C 1.02.0.0 rejects this saying
9021 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9022 struct s { int j; const int *ap[3]; };
9023 struct s *b; b->j = 5;
9024 }
9025 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9026 const int foo = 10;
9027 if (!foo) return 0;
9028 }
9029 return !cs[0] && !zero.x;
9030 #endif
9031
9032 ;
9033 return 0;
9034 }
9035 _ACEOF
9036 rm -f conftest.$ac_objext
9037 if { (ac_try="$ac_compile"
9038 case "(($ac_try" in
9039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040 *) ac_try_echo=$ac_try;;
9041 esac
9042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9043 (eval "$ac_compile") 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } && {
9050 test -z "$ac_c_werror_flag" ||
9051 test ! -s conftest.err
9052 } && test -s conftest.$ac_objext; then
9053 ac_cv_c_const=yes
9054 else
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058 ac_cv_c_const=no
9059 fi
9060
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 fi
9063 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9064 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9065 if test $ac_cv_c_const = no; then
9066
9067 cat >>confdefs.h <<\_ACEOF
9068 #define const
9069 _ACEOF
9070
9071 fi
9072
9073 { echo "$as_me:$LINENO: checking for void * support" >&5
9074 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9075 if test "${emacs_cv_void_star+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078 cat >conftest.$ac_ext <<_ACEOF
9079 /* confdefs.h. */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084
9085 int
9086 main ()
9087 {
9088 void * foo;
9089 ;
9090 return 0;
9091 }
9092 _ACEOF
9093 rm -f conftest.$ac_objext
9094 if { (ac_try="$ac_compile"
9095 case "(($ac_try" in
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9098 esac
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_compile") 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } && {
9107 test -z "$ac_c_werror_flag" ||
9108 test ! -s conftest.err
9109 } && test -s conftest.$ac_objext; then
9110 emacs_cv_void_star=yes
9111 else
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 emacs_cv_void_star=no
9116 fi
9117
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 fi
9120 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9121 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9122 if test $emacs_cv_void_star = yes; then
9123 cat >>confdefs.h <<\_ACEOF
9124 #define POINTER_TYPE void
9125 _ACEOF
9126
9127 else
9128 cat >>confdefs.h <<\_ACEOF
9129 #define POINTER_TYPE char
9130 _ACEOF
9131
9132 fi
9133
9134
9135
9136
9137
9138 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9139 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9140 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9141 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144 cat >conftest.make <<\_ACEOF
9145 SHELL = /bin/sh
9146 all:
9147 @echo '@@@%%%=$(MAKE)=@@@%%%'
9148 _ACEOF
9149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9150 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9151 *@@@%%%=?*=@@@%%%*)
9152 eval ac_cv_prog_make_${ac_make}_set=yes;;
9153 *)
9154 eval ac_cv_prog_make_${ac_make}_set=no;;
9155 esac
9156 rm -f conftest.make
9157 fi
9158 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9159 { echo "$as_me:$LINENO: result: yes" >&5
9160 echo "${ECHO_T}yes" >&6; }
9161 SET_MAKE=
9162 else
9163 { echo "$as_me:$LINENO: result: no" >&5
9164 echo "${ECHO_T}no" >&6; }
9165 SET_MAKE="MAKE=${MAKE-make}"
9166 fi
9167
9168
9169 { echo "$as_me:$LINENO: checking for long file names" >&5
9170 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9171 if test "${ac_cv_sys_long_file_names+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174 ac_cv_sys_long_file_names=yes
9175 # Test for long file names in all the places we know might matter:
9176 # . the current directory, where building will happen
9177 # $prefix/lib where we will be installing things
9178 # $exec_prefix/lib likewise
9179 # $TMPDIR if set, where it might want to write temporary files
9180 # /tmp where it might want to write temporary files
9181 # /var/tmp likewise
9182 # /usr/tmp likewise
9183 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9184 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9185 # in the usual case where exec_prefix is '${prefix}'.
9186 case $ac_dir in #(
9187 . | /* | ?:[\\/]*) ;; #(
9188 *) continue;;
9189 esac
9190 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9191 ac_xdir=$ac_dir/cf$$
9192 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9193 ac_tf1=$ac_xdir/conftest9012345
9194 ac_tf2=$ac_xdir/conftest9012346
9195 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9196 ac_cv_sys_long_file_names=no
9197 rm -f -r "$ac_xdir" 2>/dev/null
9198 test $ac_cv_sys_long_file_names = no && break
9199 done
9200 fi
9201 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9202 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9203 if test $ac_cv_sys_long_file_names = yes; then
9204
9205 cat >>confdefs.h <<\_ACEOF
9206 #define HAVE_LONG_FILE_NAMES 1
9207 _ACEOF
9208
9209 fi
9210
9211
9212 #### Choose a window system.
9213
9214 { echo "$as_me:$LINENO: checking for X" >&5
9215 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9216
9217
9218 # Check whether --with-x was given.
9219 if test "${with_x+set}" = set; then
9220 withval=$with_x;
9221 fi
9222
9223 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9224 if test "x$with_x" = xno; then
9225 # The user explicitly disabled X.
9226 have_x=disabled
9227 else
9228 case $x_includes,$x_libraries in #(
9229 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9230 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9231 { (exit 1); exit 1; }; };; #(
9232 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235 # One or both of the vars are not set, and there is no cached value.
9236 ac_x_includes=no ac_x_libraries=no
9237 rm -f -r conftest.dir
9238 if mkdir conftest.dir; then
9239 cd conftest.dir
9240 cat >Imakefile <<'_ACEOF'
9241 incroot:
9242 @echo incroot='${INCROOT}'
9243 usrlibdir:
9244 @echo usrlibdir='${USRLIBDIR}'
9245 libdir:
9246 @echo libdir='${LIBDIR}'
9247 _ACEOF
9248 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9250 for ac_var in incroot usrlibdir libdir; do
9251 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9252 done
9253 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9254 for ac_extension in a so sl; do
9255 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9256 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9257 ac_im_usrlibdir=$ac_im_libdir; break
9258 fi
9259 done
9260 # Screen out bogus values from the imake configuration. They are
9261 # bogus both because they are the default anyway, and because
9262 # using them would break gcc on systems where it needs fixed includes.
9263 case $ac_im_incroot in
9264 /usr/include) ac_x_includes= ;;
9265 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9266 esac
9267 case $ac_im_usrlibdir in
9268 /usr/lib | /lib) ;;
9269 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9270 esac
9271 fi
9272 cd ..
9273 rm -f -r conftest.dir
9274 fi
9275
9276 # Standard set of common directories for X headers.
9277 # Check X11 before X11Rn because it is often a symlink to the current release.
9278 ac_x_header_dirs='
9279 /usr/X11/include
9280 /usr/X11R6/include
9281 /usr/X11R5/include
9282 /usr/X11R4/include
9283
9284 /usr/include/X11
9285 /usr/include/X11R6
9286 /usr/include/X11R5
9287 /usr/include/X11R4
9288
9289 /usr/local/X11/include
9290 /usr/local/X11R6/include
9291 /usr/local/X11R5/include
9292 /usr/local/X11R4/include
9293
9294 /usr/local/include/X11
9295 /usr/local/include/X11R6
9296 /usr/local/include/X11R5
9297 /usr/local/include/X11R4
9298
9299 /usr/X386/include
9300 /usr/x386/include
9301 /usr/XFree86/include/X11
9302
9303 /usr/include
9304 /usr/local/include
9305 /usr/unsupported/include
9306 /usr/athena/include
9307 /usr/local/x11r5/include
9308 /usr/lpp/Xamples/include
9309
9310 /usr/openwin/include
9311 /usr/openwin/share/include'
9312
9313 if test "$ac_x_includes" = no; then
9314 # Guess where to find include files, by looking for Xlib.h.
9315 # First, try using that file with no special directory specified.
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h. */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9322 #include <X11/Xlib.h>
9323 _ACEOF
9324 if { (ac_try="$ac_cpp conftest.$ac_ext"
9325 case "(($ac_try" in
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9328 esac
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } >/dev/null && {
9337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9338 test ! -s conftest.err
9339 }; then
9340 # We can compile using X headers with no special include directory.
9341 ac_x_includes=
9342 else
9343 echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9345
9346 for ac_dir in $ac_x_header_dirs; do
9347 if test -r "$ac_dir/X11/Xlib.h"; then
9348 ac_x_includes=$ac_dir
9349 break
9350 fi
9351 done
9352 fi
9353
9354 rm -f conftest.err conftest.$ac_ext
9355 fi # $ac_x_includes = no
9356
9357 if test "$ac_x_libraries" = no; then
9358 # Check for the libraries.
9359 # See if we find them without any special options.
9360 # Don't add to $LIBS permanently.
9361 ac_save_LIBS=$LIBS
9362 LIBS="-lX11 $LIBS"
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h. */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 #include <X11/Xlib.h>
9370 int
9371 main ()
9372 {
9373 XrmInitialize ()
9374 ;
9375 return 0;
9376 }
9377 _ACEOF
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (ac_try="$ac_link"
9380 case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383 esac
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_link") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest$ac_exeext &&
9395 $as_test_x conftest$ac_exeext; then
9396 LIBS=$ac_save_LIBS
9397 # We can link X programs with no special library path.
9398 ac_x_libraries=
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9402
9403 LIBS=$ac_save_LIBS
9404 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9405 do
9406 # Don't even attempt the hair of trying to link an X program!
9407 for ac_extension in a so sl; do
9408 if test -r "$ac_dir/libX11.$ac_extension"; then
9409 ac_x_libraries=$ac_dir
9410 break 2
9411 fi
9412 done
9413 done
9414 fi
9415
9416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9417 conftest$ac_exeext conftest.$ac_ext
9418 fi # $ac_x_libraries = no
9419
9420 case $ac_x_includes,$ac_x_libraries in #(
9421 no,* | *,no | *\'*)
9422 # Didn't find X, or a directory has "'" in its name.
9423 ac_cv_have_x="have_x=no";; #(
9424 *)
9425 # Record where we found X for the cache.
9426 ac_cv_have_x="have_x=yes\
9427 ac_x_includes='$ac_x_includes'\
9428 ac_x_libraries='$ac_x_libraries'"
9429 esac
9430 fi
9431 ;; #(
9432 *) have_x=yes;;
9433 esac
9434 eval "$ac_cv_have_x"
9435 fi # $with_x != no
9436
9437 if test "$have_x" != yes; then
9438 { echo "$as_me:$LINENO: result: $have_x" >&5
9439 echo "${ECHO_T}$have_x" >&6; }
9440 no_x=yes
9441 else
9442 # If each of the values was on the command line, it overrides each guess.
9443 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9444 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9445 # Update the cache value to reflect the command line values.
9446 ac_cv_have_x="have_x=yes\
9447 ac_x_includes='$x_includes'\
9448 ac_x_libraries='$x_libraries'"
9449 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9450 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9451 fi
9452
9453 if test "$no_x" = yes; then
9454 window_system=none
9455 else
9456 window_system=x11
9457 fi
9458
9459 if test "${x_libraries}" != NONE; then
9460 if test -n "${x_libraries}"; then
9461 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9462 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9463 fi
9464 x_default_search_path=""
9465 x_search_path=${x_libraries}
9466 if test -z "${x_search_path}"; then
9467 x_search_path=/usr/lib
9468 fi
9469 for x_library in `echo ${x_search_path}: | \
9470 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9471 x_search_path="\
9472 ${x_library}/X11/%L/%T/%N%C%S:\
9473 ${x_library}/X11/%l/%T/%N%C%S:\
9474 ${x_library}/X11/%T/%N%C%S:\
9475 ${x_library}/X11/%L/%T/%N%S:\
9476 ${x_library}/X11/%l/%T/%N%S:\
9477 ${x_library}/X11/%T/%N%S"
9478 if test x"${x_default_search_path}" = x; then
9479 x_default_search_path=${x_search_path}
9480 else
9481 x_default_search_path="${x_search_path}:${x_default_search_path}"
9482 fi
9483 done
9484 fi
9485 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9486 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9487 fi
9488
9489 if test x"${x_includes}" = x; then
9490 bitmapdir=/usr/include/X11/bitmaps
9491 else
9492 # accumulate include directories that have X11 bitmap subdirectories
9493 bmd_acc="dummyval"
9494 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9495 if test -d "${bmd}/X11/bitmaps"; then
9496 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9497 fi
9498 if test -d "${bmd}/bitmaps"; then
9499 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9500 fi
9501 done
9502 if test ${bmd_acc} != "dummyval"; then
9503 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9504 fi
9505 fi
9506
9507 HAVE_CARBON=no
9508 if test "${with_carbon}" != no; then
9509 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9510 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9511 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9512 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 fi
9515 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9516 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9517 else
9518 # Is the header compilable?
9519 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9520 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9521 cat >conftest.$ac_ext <<_ACEOF
9522 /* confdefs.h. */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 $ac_includes_default
9528 #include <Carbon/Carbon.h>
9529 _ACEOF
9530 rm -f conftest.$ac_objext
9531 if { (ac_try="$ac_compile"
9532 case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535 esac
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_compile") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.$ac_objext; then
9547 ac_header_compiler=yes
9548 else
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 ac_header_compiler=no
9553 fi
9554
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9557 echo "${ECHO_T}$ac_header_compiler" >&6; }
9558
9559 # Is the header present?
9560 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9561 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9562 cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h. */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 #include <Carbon/Carbon.h>
9569 _ACEOF
9570 if { (ac_try="$ac_cpp conftest.$ac_ext"
9571 case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574 esac
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } >/dev/null && {
9583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9585 }; then
9586 ac_header_preproc=yes
9587 else
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9590
9591 ac_header_preproc=no
9592 fi
9593
9594 rm -f conftest.err conftest.$ac_ext
9595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9596 echo "${ECHO_T}$ac_header_preproc" >&6; }
9597
9598 # So? What about this header?
9599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9600 yes:no: )
9601 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9602 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9604 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9605 ac_header_preproc=yes
9606 ;;
9607 no:yes:* )
9608 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9609 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9611 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9612 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9613 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9614 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9615 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9617 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9619 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9620
9621 ;;
9622 esac
9623 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9624 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9625 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9629 fi
9630 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9631 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9632
9633 fi
9634 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9635 HAVE_CARBON=yes
9636 fi
9637
9638
9639 fi
9640 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9641 if test "${with_carbon+set}" != set \
9642 && test "${carbon_appdir_x+set}" != set; then
9643 for var in with_x with_x_toolkit with_gtk with_xim \
9644 with_xpm with_jpeg with_tiff with_gif with_png; do
9645 if eval test \"\${$var+set}\" = set; then
9646 HAVE_CARBON=no
9647 break
9648 fi
9649 done
9650 fi
9651 fi
9652 if test "${HAVE_CARBON}" = yes; then
9653 window_system=mac
9654 fi
9655
9656 case "${window_system}" in
9657 x11 )
9658 HAVE_X_WINDOWS=yes
9659 HAVE_X11=yes
9660 case "${with_x_toolkit}" in
9661 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9662 motif ) USE_X_TOOLKIT=MOTIF ;;
9663 gtk ) with_gtk=yes
9664 USE_X_TOOLKIT=none ;;
9665 no ) USE_X_TOOLKIT=none ;;
9666 * )
9667 if test x"$with_gtk" = xyes; then
9668 USE_X_TOOLKIT=none
9669 else
9670 USE_X_TOOLKIT=maybe
9671 fi
9672 ;;
9673 esac
9674 ;;
9675 mac | none )
9676 HAVE_X_WINDOWS=no
9677 HAVE_X11=no
9678 USE_X_TOOLKIT=none
9679 ;;
9680 esac
9681
9682 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9683 # Extract the first word of "X", so it can be a program name with args.
9684 set dummy X; ac_word=$2
9685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9687 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690 if test -n "$HAVE_XSERVER"; then
9691 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9692 else
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 for as_dir in $PATH
9695 do
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9700 ac_cv_prog_HAVE_XSERVER="true"
9701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9703 fi
9704 done
9705 done
9706 IFS=$as_save_IFS
9707
9708 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9709 fi
9710 fi
9711 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9712 if test -n "$HAVE_XSERVER"; then
9713 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9714 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9715 else
9716 { echo "$as_me:$LINENO: result: no" >&5
9717 echo "${ECHO_T}no" >&6; }
9718 fi
9719
9720
9721 if test "$HAVE_XSERVER" = true ||
9722 test -n "$DISPLAY" ||
9723 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9724 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9725 were found. You should install the relevant development files for X
9726 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9727 sure you have development files for image handling, i.e.
9728 tiff, gif, jpeg, png and xpm.
9729 If you are sure you want Emacs compiled without X window support, pass
9730 --without-x
9731 to configure." >&5
9732 echo "$as_me: error: You seem to be running X, but no X development libraries
9733 were found. You should install the relevant development files for X
9734 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9735 sure you have development files for image handling, i.e.
9736 tiff, gif, jpeg, png and xpm.
9737 If you are sure you want Emacs compiled without X window support, pass
9738 --without-x
9739 to configure." >&2;}
9740 { (exit 1); exit 1; }; }
9741 fi
9742 fi
9743
9744 ### If we're using X11, we should use the X menu package.
9745 HAVE_MENUS=no
9746 case ${HAVE_X11} in
9747 yes ) HAVE_MENUS=yes ;;
9748 esac
9749
9750 if test "${opsys}" = "hpux9"; then
9751 case "${x_libraries}" in
9752 *X11R4* )
9753 opsysfile="s/hpux9-x11r4.h"
9754 ;;
9755 esac
9756 fi
9757
9758 if test "${opsys}" = "hpux9shr"; then
9759 case "${x_libraries}" in
9760 *X11R4* )
9761 opsysfile="s/hpux9shxr4.h"
9762 ;;
9763 esac
9764 fi
9765
9766 ### Compute the unexec source name from the object name.
9767 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9768
9769 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9770 # Assume not, until told otherwise.
9771 GNU_MALLOC=yes
9772 doug_lea_malloc=yes
9773 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9774 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9775 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778 cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h. */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9786 #define malloc_get_state innocuous_malloc_get_state
9787
9788 /* System header to define __stub macros and hopefully few prototypes,
9789 which can conflict with char malloc_get_state (); below.
9790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9791 <limits.h> exists even on freestanding compilers. */
9792
9793 #ifdef __STDC__
9794 # include <limits.h>
9795 #else
9796 # include <assert.h>
9797 #endif
9798
9799 #undef malloc_get_state
9800
9801 /* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 char malloc_get_state ();
9808 /* The GNU C library defines this for functions which it implements
9809 to always fail with ENOSYS. Some functions are actually named
9810 something starting with __ and the normal name is an alias. */
9811 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9812 choke me
9813 #endif
9814
9815 int
9816 main ()
9817 {
9818 return malloc_get_state ();
9819 ;
9820 return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9825 case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9828 esac
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_link") 2>conftest.er1
9831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } && {
9837 test -z "$ac_c_werror_flag" ||
9838 test ! -s conftest.err
9839 } && test -s conftest$ac_exeext &&
9840 $as_test_x conftest$ac_exeext; then
9841 ac_cv_func_malloc_get_state=yes
9842 else
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846 ac_cv_func_malloc_get_state=no
9847 fi
9848
9849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9850 conftest$ac_exeext conftest.$ac_ext
9851 fi
9852 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9853 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9854 if test $ac_cv_func_malloc_get_state = yes; then
9855 :
9856 else
9857 doug_lea_malloc=no
9858 fi
9859
9860 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9861 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9862 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h. */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9871 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9873 #define malloc_set_state innocuous_malloc_set_state
9874
9875 /* System header to define __stub macros and hopefully few prototypes,
9876 which can conflict with char malloc_set_state (); below.
9877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9878 <limits.h> exists even on freestanding compilers. */
9879
9880 #ifdef __STDC__
9881 # include <limits.h>
9882 #else
9883 # include <assert.h>
9884 #endif
9885
9886 #undef malloc_set_state
9887
9888 /* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 char malloc_set_state ();
9895 /* The GNU C library defines this for functions which it implements
9896 to always fail with ENOSYS. Some functions are actually named
9897 something starting with __ and the normal name is an alias. */
9898 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9899 choke me
9900 #endif
9901
9902 int
9903 main ()
9904 {
9905 return malloc_set_state ();
9906 ;
9907 return 0;
9908 }
9909 _ACEOF
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (ac_try="$ac_link"
9912 case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915 esac
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_link") 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } && {
9924 test -z "$ac_c_werror_flag" ||
9925 test ! -s conftest.err
9926 } && test -s conftest$ac_exeext &&
9927 $as_test_x conftest$ac_exeext; then
9928 ac_cv_func_malloc_set_state=yes
9929 else
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9932
9933 ac_cv_func_malloc_set_state=no
9934 fi
9935
9936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9937 conftest$ac_exeext conftest.$ac_ext
9938 fi
9939 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9940 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9941 if test $ac_cv_func_malloc_set_state = yes; then
9942 :
9943 else
9944 doug_lea_malloc=no
9945 fi
9946
9947 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9948 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9949 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 else
9952 cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h. */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 extern void (* __after_morecore_hook)();
9959 int
9960 main ()
9961 {
9962 __after_morecore_hook = 0
9963 ;
9964 return 0;
9965 }
9966 _ACEOF
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9969 case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_link") 2>conftest.er1
9975 ac_status=$?
9976 grep -v '^ *+' conftest.er1 >conftest.err
9977 rm -f conftest.er1
9978 cat conftest.err >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } && {
9981 test -z "$ac_c_werror_flag" ||
9982 test ! -s conftest.err
9983 } && test -s conftest$ac_exeext &&
9984 $as_test_x conftest$ac_exeext; then
9985 emacs_cv_var___after_morecore_hook=yes
9986 else
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990 emacs_cv_var___after_morecore_hook=no
9991 fi
9992
9993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9994 conftest$ac_exeext conftest.$ac_ext
9995 fi
9996 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9997 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9998 if test $emacs_cv_var___after_morecore_hook = no; then
9999 doug_lea_malloc=no
10000 fi
10001 if test "${system_malloc}" = "yes"; then
10002 GNU_MALLOC=no
10003 GNU_MALLOC_reason="
10004 (The GNU allocators don't work with this system configuration.)"
10005 fi
10006 if test "$doug_lea_malloc" = "yes" ; then
10007 if test "$GNU_MALLOC" = yes ; then
10008 GNU_MALLOC_reason="
10009 (Using Doug Lea's new malloc from the GNU C Library.)"
10010 fi
10011
10012 cat >>confdefs.h <<\_ACEOF
10013 #define DOUG_LEA_MALLOC 1
10014 _ACEOF
10015
10016 fi
10017
10018 if test x"${REL_ALLOC}" = x; then
10019 REL_ALLOC=${GNU_MALLOC}
10020 fi
10021
10022
10023
10024
10025 for ac_header in stdlib.h unistd.h
10026 do
10027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 fi
10034 ac_res=`eval echo '${'$as_ac_Header'}'`
10035 { echo "$as_me:$LINENO: result: $ac_res" >&5
10036 echo "${ECHO_T}$ac_res" >&6; }
10037 else
10038 # Is the header compilable?
10039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h. */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 $ac_includes_default
10048 #include <$ac_header>
10049 _ACEOF
10050 rm -f conftest.$ac_objext
10051 if { (ac_try="$ac_compile"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_compile") 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest.$ac_objext; then
10067 ac_header_compiler=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 ac_header_compiler=no
10073 fi
10074
10075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10077 echo "${ECHO_T}$ac_header_compiler" >&6; }
10078
10079 # Is the header present?
10080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10082 cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h. */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10088 #include <$ac_header>
10089 _ACEOF
10090 if { (ac_try="$ac_cpp conftest.$ac_ext"
10091 case "(($ac_try" in
10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093 *) ac_try_echo=$ac_try;;
10094 esac
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10097 ac_status=$?
10098 grep -v '^ *+' conftest.er1 >conftest.err
10099 rm -f conftest.er1
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } >/dev/null && {
10103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10104 test ! -s conftest.err
10105 }; then
10106 ac_header_preproc=yes
10107 else
10108 echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10110
10111 ac_header_preproc=no
10112 fi
10113
10114 rm -f conftest.err conftest.$ac_ext
10115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10116 echo "${ECHO_T}$ac_header_preproc" >&6; }
10117
10118 # So? What about this header?
10119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10120 yes:no: )
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10125 ac_header_preproc=yes
10126 ;;
10127 no:yes:* )
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10140
10141 ;;
10142 esac
10143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148 eval "$as_ac_Header=\$ac_header_preproc"
10149 fi
10150 ac_res=`eval echo '${'$as_ac_Header'}'`
10151 { echo "$as_me:$LINENO: result: $ac_res" >&5
10152 echo "${ECHO_T}$ac_res" >&6; }
10153
10154 fi
10155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10156 cat >>confdefs.h <<_ACEOF
10157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10158 _ACEOF
10159
10160 fi
10161
10162 done
10163
10164
10165 for ac_func in getpagesize
10166 do
10167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173 cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h. */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10181 #define $ac_func innocuous_$ac_func
10182
10183 /* System header to define __stub macros and hopefully few prototypes,
10184 which can conflict with char $ac_func (); below.
10185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10186 <limits.h> exists even on freestanding compilers. */
10187
10188 #ifdef __STDC__
10189 # include <limits.h>
10190 #else
10191 # include <assert.h>
10192 #endif
10193
10194 #undef $ac_func
10195
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10199 #ifdef __cplusplus
10200 extern "C"
10201 #endif
10202 char $ac_func ();
10203 /* The GNU C library defines this for functions which it implements
10204 to always fail with ENOSYS. Some functions are actually named
10205 something starting with __ and the normal name is an alias. */
10206 #if defined __stub_$ac_func || defined __stub___$ac_func
10207 choke me
10208 #endif
10209
10210 int
10211 main ()
10212 {
10213 return $ac_func ();
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223 esac
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_link") 2>conftest.er1
10226 ac_status=$?
10227 grep -v '^ *+' conftest.er1 >conftest.err
10228 rm -f conftest.er1
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } && {
10232 test -z "$ac_c_werror_flag" ||
10233 test ! -s conftest.err
10234 } && test -s conftest$ac_exeext &&
10235 $as_test_x conftest$ac_exeext; then
10236 eval "$as_ac_var=yes"
10237 else
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10240
10241 eval "$as_ac_var=no"
10242 fi
10243
10244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245 conftest$ac_exeext conftest.$ac_ext
10246 fi
10247 ac_res=`eval echo '${'$as_ac_var'}'`
10248 { echo "$as_me:$LINENO: result: $ac_res" >&5
10249 echo "${ECHO_T}$ac_res" >&6; }
10250 if test `eval echo '${'$as_ac_var'}'` = yes; then
10251 cat >>confdefs.h <<_ACEOF
10252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10253 _ACEOF
10254
10255 fi
10256 done
10257
10258 { echo "$as_me:$LINENO: checking for working mmap" >&5
10259 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10260 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263 if test "$cross_compiling" = yes; then
10264 ac_cv_func_mmap_fixed_mapped=no
10265 else
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h. */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272 $ac_includes_default
10273 /* malloc might have been renamed as rpl_malloc. */
10274 #undef malloc
10275
10276 /* Thanks to Mike Haertel and Jim Avera for this test.
10277 Here is a matrix of mmap possibilities:
10278 mmap private not fixed
10279 mmap private fixed at somewhere currently unmapped
10280 mmap private fixed at somewhere already mapped
10281 mmap shared not fixed
10282 mmap shared fixed at somewhere currently unmapped
10283 mmap shared fixed at somewhere already mapped
10284 For private mappings, we should verify that changes cannot be read()
10285 back from the file, nor mmap's back from the file at a different
10286 address. (There have been systems where private was not correctly
10287 implemented like the infamous i386 svr4.0, and systems where the
10288 VM page cache was not coherent with the file system buffer cache
10289 like early versions of FreeBSD and possibly contemporary NetBSD.)
10290 For shared mappings, we should conversely verify that changes get
10291 propagated back to all the places they're supposed to be.
10292
10293 Grep wants private fixed already mapped.
10294 The main things grep needs to know about mmap are:
10295 * does it exist and is it safe to write into the mmap'd area
10296 * how to use it (BSD variants) */
10297
10298 #include <fcntl.h>
10299 #include <sys/mman.h>
10300
10301 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10302 char *malloc ();
10303 #endif
10304
10305 /* This mess was copied from the GNU getpagesize.h. */
10306 #ifndef HAVE_GETPAGESIZE
10307 /* Assume that all systems that can run configure have sys/param.h. */
10308 # ifndef HAVE_SYS_PARAM_H
10309 # define HAVE_SYS_PARAM_H 1
10310 # endif
10311
10312 # ifdef _SC_PAGESIZE
10313 # define getpagesize() sysconf(_SC_PAGESIZE)
10314 # else /* no _SC_PAGESIZE */
10315 # ifdef HAVE_SYS_PARAM_H
10316 # include <sys/param.h>
10317 # ifdef EXEC_PAGESIZE
10318 # define getpagesize() EXEC_PAGESIZE
10319 # else /* no EXEC_PAGESIZE */
10320 # ifdef NBPG
10321 # define getpagesize() NBPG * CLSIZE
10322 # ifndef CLSIZE
10323 # define CLSIZE 1
10324 # endif /* no CLSIZE */
10325 # else /* no NBPG */
10326 # ifdef NBPC
10327 # define getpagesize() NBPC
10328 # else /* no NBPC */
10329 # ifdef PAGESIZE
10330 # define getpagesize() PAGESIZE
10331 # endif /* PAGESIZE */
10332 # endif /* no NBPC */
10333 # endif /* no NBPG */
10334 # endif /* no EXEC_PAGESIZE */
10335 # else /* no HAVE_SYS_PARAM_H */
10336 # define getpagesize() 8192 /* punt totally */
10337 # endif /* no HAVE_SYS_PARAM_H */
10338 # endif /* no _SC_PAGESIZE */
10339
10340 #endif /* no HAVE_GETPAGESIZE */
10341
10342 int
10343 main ()
10344 {
10345 char *data, *data2, *data3;
10346 int i, pagesize;
10347 int fd;
10348
10349 pagesize = getpagesize ();
10350
10351 /* First, make a file with some known garbage in it. */
10352 data = (char *) malloc (pagesize);
10353 if (!data)
10354 return 1;
10355 for (i = 0; i < pagesize; ++i)
10356 *(data + i) = rand ();
10357 umask (0);
10358 fd = creat ("conftest.mmap", 0600);
10359 if (fd < 0)
10360 return 1;
10361 if (write (fd, data, pagesize) != pagesize)
10362 return 1;
10363 close (fd);
10364
10365 /* Next, try to mmap the file at a fixed address which already has
10366 something else allocated at it. If we can, also make sure that
10367 we see the same garbage. */
10368 fd = open ("conftest.mmap", O_RDWR);
10369 if (fd < 0)
10370 return 1;
10371 data2 = (char *) malloc (2 * pagesize);
10372 if (!data2)
10373 return 1;
10374 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10375 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10376 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10377 return 1;
10378 for (i = 0; i < pagesize; ++i)
10379 if (*(data + i) != *(data2 + i))
10380 return 1;
10381
10382 /* Finally, make sure that changes to the mapped area do not
10383 percolate back to the file as seen by read(). (This is a bug on
10384 some variants of i386 svr4.0.) */
10385 for (i = 0; i < pagesize; ++i)
10386 *(data2 + i) = *(data2 + i) + 1;
10387 data3 = (char *) malloc (pagesize);
10388 if (!data3)
10389 return 1;
10390 if (read (fd, data3, pagesize) != pagesize)
10391 return 1;
10392 for (i = 0; i < pagesize; ++i)
10393 if (*(data + i) != *(data3 + i))
10394 return 1;
10395 close (fd);
10396 return 0;
10397 }
10398 _ACEOF
10399 rm -f conftest$ac_exeext
10400 if { (ac_try="$ac_link"
10401 case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10404 esac
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_link") 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10410 { (case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_try") 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 ac_cv_func_mmap_fixed_mapped=yes
10420 else
10421 echo "$as_me: program exited with status $ac_status" >&5
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425 ( exit $ac_status )
10426 ac_cv_func_mmap_fixed_mapped=no
10427 fi
10428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10429 fi
10430
10431
10432 fi
10433 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10434 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10435 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10436
10437 cat >>confdefs.h <<\_ACEOF
10438 #define HAVE_MMAP 1
10439 _ACEOF
10440
10441 fi
10442 rm -f conftest.mmap
10443
10444 if test $use_mmap_for_buffers = yes; then
10445 REL_ALLOC=no
10446 fi
10447
10448 LIBS="$libsrc_libs $LIBS"
10449
10450
10451 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10452 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10453 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456 ac_check_lib_save_LIBS=$LIBS
10457 LIBS="-ldnet $LIBS"
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h. */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464
10465 /* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10468 #ifdef __cplusplus
10469 extern "C"
10470 #endif
10471 char dnet_ntoa ();
10472 int
10473 main ()
10474 {
10475 return dnet_ntoa ();
10476 ;
10477 return 0;
10478 }
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10485 esac
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_link") 2>conftest.er1
10488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest$ac_exeext &&
10497 $as_test_x conftest$ac_exeext; then
10498 ac_cv_lib_dnet_dnet_ntoa=yes
10499 else
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10502
10503 ac_cv_lib_dnet_dnet_ntoa=no
10504 fi
10505
10506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507 conftest$ac_exeext conftest.$ac_ext
10508 LIBS=$ac_check_lib_save_LIBS
10509 fi
10510 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10511 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10512 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10513 cat >>confdefs.h <<_ACEOF
10514 #define HAVE_LIBDNET 1
10515 _ACEOF
10516
10517 LIBS="-ldnet $LIBS"
10518
10519 fi
10520
10521
10522 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10523 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10524 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527 ac_check_lib_save_LIBS=$LIBS
10528 LIBS="-lXbsd $LIBS"
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535
10536
10537 int
10538 main ()
10539 {
10540 return main ();
10541 ;
10542 return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest$ac_exeext &&
10562 $as_test_x conftest$ac_exeext; then
10563 ac_cv_lib_Xbsd_main=yes
10564 else
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 ac_cv_lib_Xbsd_main=no
10569 fi
10570
10571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10574 fi
10575 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10576 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10577 if test $ac_cv_lib_Xbsd_main = yes; then
10578 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10579 fi
10580
10581
10582
10583 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10584 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10585 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588 ac_check_lib_save_LIBS=$LIBS
10589 LIBS="-lpthreads $LIBS"
10590 cat >conftest.$ac_ext <<_ACEOF
10591 /* confdefs.h. */
10592 _ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10596
10597 /* Override any GCC internal prototype to avoid an error.
10598 Use char because int might match the return type of a GCC
10599 builtin and then its argument prototype would still apply. */
10600 #ifdef __cplusplus
10601 extern "C"
10602 #endif
10603 char cma_open ();
10604 int
10605 main ()
10606 {
10607 return cma_open ();
10608 ;
10609 return 0;
10610 }
10611 _ACEOF
10612 rm -f conftest.$ac_objext conftest$ac_exeext
10613 if { (ac_try="$ac_link"
10614 case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10617 esac
10618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619 (eval "$ac_link") 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && {
10626 test -z "$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 } && test -s conftest$ac_exeext &&
10629 $as_test_x conftest$ac_exeext; then
10630 ac_cv_lib_pthreads_cma_open=yes
10631 else
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635 ac_cv_lib_pthreads_cma_open=no
10636 fi
10637
10638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10639 conftest$ac_exeext conftest.$ac_ext
10640 LIBS=$ac_check_lib_save_LIBS
10641 fi
10642 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10643 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10644 if test $ac_cv_lib_pthreads_cma_open = yes; then
10645 cat >>confdefs.h <<_ACEOF
10646 #define HAVE_LIBPTHREADS 1
10647 _ACEOF
10648
10649 LIBS="-lpthreads $LIBS"
10650
10651 fi
10652
10653
10654 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10655 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10656 if test -d /usr/X386/include; then
10657 HAVE_XFREE386=yes
10658 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10659 else
10660 HAVE_XFREE386=no
10661 fi
10662 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10663 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10664
10665
10666 case ${host_os} in
10667 aix*)
10668 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10669 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10670 if test "${gdb_cv_bigtoc+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673
10674 case $GCC in
10675 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10676 *) gdb_cv_bigtoc=-bbigtoc ;;
10677 esac
10678
10679 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10680 cat >conftest.$ac_ext <<_ACEOF
10681 /* confdefs.h. */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10686
10687 int
10688 main ()
10689 {
10690 int i;
10691 ;
10692 return 0;
10693 }
10694 _ACEOF
10695 rm -f conftest.$ac_objext conftest$ac_exeext
10696 if { (ac_try="$ac_link"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_link") 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest$ac_exeext &&
10712 $as_test_x conftest$ac_exeext; then
10713 :
10714 else
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10717
10718 gdb_cv_bigtoc=
10719 fi
10720
10721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10722 conftest$ac_exeext conftest.$ac_ext
10723
10724 fi
10725 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10726 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10727 ;;
10728 esac
10729
10730 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10731 # used for the tests that follow. We set them back to REAL_CFLAGS and
10732 # REAL_CPPFLAGS later on.
10733
10734 REAL_CPPFLAGS="$CPPFLAGS"
10735
10736 if test "${HAVE_X11}" = "yes"; then
10737 DEFS="$C_SWITCH_X_SITE $DEFS"
10738 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10739 LIBS="$LIBX $LIBS"
10740 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10741 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10742
10743 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10744 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10745 # but it's more convenient here to set LD_RUN_PATH
10746 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10747 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10748 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10749 export LD_RUN_PATH
10750 fi
10751
10752 if test "${opsys}" = "gnu-linux"; then
10753 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10754 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761
10762 int
10763 main ()
10764 {
10765 XOpenDisplay ("foo");
10766 ;
10767 return 0;
10768 }
10769 _ACEOF
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_link") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext &&
10787 $as_test_x conftest$ac_exeext; then
10788 xlinux_first_failure=no
10789 else
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793 xlinux_first_failure=yes
10794 fi
10795
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797 conftest$ac_exeext conftest.$ac_ext
10798 if test "${xlinux_first_failure}" = "yes"; then
10799 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10800 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10801 OLD_CPPFLAGS="$CPPFLAGS"
10802 OLD_LIBS="$LIBS"
10803 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10804 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10805 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10806 LIBS="$LIBS -b i486-linuxaout"
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h. */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813
10814 int
10815 main ()
10816 {
10817 XOpenDisplay ("foo");
10818 ;
10819 return 0;
10820 }
10821 _ACEOF
10822 rm -f conftest.$ac_objext conftest$ac_exeext
10823 if { (ac_try="$ac_link"
10824 case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10827 esac
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_link") 2>conftest.er1
10830 ac_status=$?
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest$ac_exeext &&
10839 $as_test_x conftest$ac_exeext; then
10840 xlinux_second_failure=no
10841 else
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10844
10845 xlinux_second_failure=yes
10846 fi
10847
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10850 if test "${xlinux_second_failure}" = "yes"; then
10851 # If we get the same failure with -b, there is no use adding -b.
10852 # So take it out. This plays safe.
10853 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10854 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10855 CPPFLAGS="$OLD_CPPFLAGS"
10856 LIBS="$OLD_LIBS"
10857 { echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6; }
10859 else
10860 { echo "$as_me:$LINENO: result: yes" >&5
10861 echo "${ECHO_T}yes" >&6; }
10862 fi
10863 else
10864 { echo "$as_me:$LINENO: result: no" >&5
10865 echo "${ECHO_T}no" >&6; }
10866 fi
10867 fi
10868
10869 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10870 # header files included from there.
10871 { echo "$as_me:$LINENO: checking for Xkb" >&5
10872 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10873 cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h. */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 #include <X11/Xlib.h>
10880 #include <X11/XKBlib.h>
10881 int
10882 main ()
10883 {
10884 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_link") 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && {
10903 test -z "$ac_c_werror_flag" ||
10904 test ! -s conftest.err
10905 } && test -s conftest$ac_exeext &&
10906 $as_test_x conftest$ac_exeext; then
10907 emacs_xkb=yes
10908 else
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10911
10912 emacs_xkb=no
10913 fi
10914
10915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10916 conftest$ac_exeext conftest.$ac_ext
10917 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10918 echo "${ECHO_T}$emacs_xkb" >&6; }
10919 if test $emacs_xkb = yes; then
10920
10921 cat >>confdefs.h <<\_ACEOF
10922 #define HAVE_XKBGETKEYBOARD 1
10923 _ACEOF
10924
10925 fi
10926
10927
10928
10929
10930
10931 for ac_func in XrmSetDatabase XScreenResourceString \
10932 XScreenNumberOfScreen XSetWMProtocols
10933 do
10934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940 cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h. */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10948 #define $ac_func innocuous_$ac_func
10949
10950 /* System header to define __stub macros and hopefully few prototypes,
10951 which can conflict with char $ac_func (); below.
10952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10953 <limits.h> exists even on freestanding compilers. */
10954
10955 #ifdef __STDC__
10956 # include <limits.h>
10957 #else
10958 # include <assert.h>
10959 #endif
10960
10961 #undef $ac_func
10962
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10966 #ifdef __cplusplus
10967 extern "C"
10968 #endif
10969 char $ac_func ();
10970 /* The GNU C library defines this for functions which it implements
10971 to always fail with ENOSYS. Some functions are actually named
10972 something starting with __ and the normal name is an alias. */
10973 #if defined __stub_$ac_func || defined __stub___$ac_func
10974 choke me
10975 #endif
10976
10977 int
10978 main ()
10979 {
10980 return $ac_func ();
10981 ;
10982 return 0;
10983 }
10984 _ACEOF
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (ac_try="$ac_link"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_link") 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } && {
10999 test -z "$ac_c_werror_flag" ||
11000 test ! -s conftest.err
11001 } && test -s conftest$ac_exeext &&
11002 $as_test_x conftest$ac_exeext; then
11003 eval "$as_ac_var=yes"
11004 else
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 eval "$as_ac_var=no"
11009 fi
11010
11011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11012 conftest$ac_exeext conftest.$ac_ext
11013 fi
11014 ac_res=`eval echo '${'$as_ac_var'}'`
11015 { echo "$as_me:$LINENO: result: $ac_res" >&5
11016 echo "${ECHO_T}$ac_res" >&6; }
11017 if test `eval echo '${'$as_ac_var'}'` = yes; then
11018 cat >>confdefs.h <<_ACEOF
11019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11020 _ACEOF
11021
11022 fi
11023 done
11024
11025 fi
11026
11027 if test "${window_system}" = "x11"; then
11028 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11029 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11030 if test "${emacs_cv_x11_version_6+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 #include <X11/Xlib.h>
11040 int
11041 main ()
11042 {
11043 #if XlibSpecificationRelease < 6
11044 fail;
11045 #endif
11046
11047 ;
11048 return 0;
11049 }
11050 _ACEOF
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_link") 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest$ac_exeext &&
11068 $as_test_x conftest$ac_exeext; then
11069 emacs_cv_x11_version_6=yes
11070 else
11071 echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11073
11074 emacs_cv_x11_version_6=no
11075 fi
11076
11077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11078 conftest$ac_exeext conftest.$ac_ext
11079 fi
11080
11081 if test $emacs_cv_x11_version_6 = yes; then
11082 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11083 echo "${ECHO_T}6 or newer" >&6; }
11084
11085 cat >>confdefs.h <<\_ACEOF
11086 #define HAVE_X11R6 1
11087 _ACEOF
11088
11089 else
11090 { echo "$as_me:$LINENO: result: before 6" >&5
11091 echo "${ECHO_T}before 6" >&6; }
11092 fi
11093 fi
11094
11095
11096 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11097 HAVE_RSVG=no
11098 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11099 if test "${with_rsvg}" != "no"; then
11100 if test "X${with_pkg_config_prog}" != X; then
11101 PKG_CONFIG="${with_pkg_config_prog}"
11102 fi
11103
11104 RSVG_REQUIRED=2.0.0
11105 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11106
11107
11108 succeeded=no
11109
11110 if test -z "$PKG_CONFIG"; then
11111 # Extract the first word of "pkg-config", so it can be a program name with args.
11112 set dummy pkg-config; ac_word=$2
11113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11115 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11117 else
11118 case $PKG_CONFIG in
11119 [\\/]* | ?:[\\/]*)
11120 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11121 ;;
11122 *)
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11125 do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134 done
11135 done
11136 IFS=$as_save_IFS
11137
11138 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11139 ;;
11140 esac
11141 fi
11142 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11143 if test -n "$PKG_CONFIG"; then
11144 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11145 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11146 else
11147 { echo "$as_me:$LINENO: result: no" >&5
11148 echo "${ECHO_T}no" >&6; }
11149 fi
11150
11151
11152 fi
11153
11154 if test "$PKG_CONFIG" = "no" ; then
11155 :
11156 else
11157 PKG_CONFIG_MIN_VERSION=0.9.0
11158 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11159 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11160 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11161
11162 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11163 { echo "$as_me:$LINENO: result: yes" >&5
11164 echo "${ECHO_T}yes" >&6; }
11165 succeeded=yes
11166
11167 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11168 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11169 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11170 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11171 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11172
11173 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11174 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11175 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11176 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11177 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11178 else
11179 { echo "$as_me:$LINENO: result: no" >&5
11180 echo "${ECHO_T}no" >&6; }
11181 RSVG_CFLAGS=""
11182 RSVG_LIBS=""
11183 ## If we have a custom action on failure, don't print errors, but
11184 ## do set a variable so people can do so.
11185 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11186
11187 fi
11188
11189
11190
11191 else
11192 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11193 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11194 fi
11195 fi
11196
11197 if test $succeeded = yes; then
11198 :
11199 else
11200 :
11201 fi
11202
11203
11204
11205
11206 if test ".${RSVG_CFLAGS}" != "."; then
11207 HAVE_RSVG=yes
11208
11209 cat >>confdefs.h <<\_ACEOF
11210 #define HAVE_RSVG 1
11211 _ACEOF
11212
11213 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11214 LIBS="$RSVG_LIBS $LIBS"
11215 fi
11216 fi
11217 fi
11218
11219
11220 HAVE_GTK=no
11221 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11222 USE_X_TOOLKIT=none
11223 fi
11224 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11225 test "$USE_X_TOOLKIT" = "maybe"; then
11226 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11227 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11228 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11229 { (exit 1); exit 1; }; };
11230 fi
11231 GLIB_REQUIRED=2.6
11232 GTK_REQUIRED=2.6
11233 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11234
11235 if test "X${with_pkg_config_prog}" != X; then
11236 PKG_CONFIG="${with_pkg_config_prog}"
11237 fi
11238
11239 succeeded=no
11240
11241 if test -z "$PKG_CONFIG"; then
11242 # Extract the first word of "pkg-config", so it can be a program name with args.
11243 set dummy pkg-config; ac_word=$2
11244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11246 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249 case $PKG_CONFIG in
11250 [\\/]* | ?:[\\/]*)
11251 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11252 ;;
11253 *)
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11256 do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11261 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11264 fi
11265 done
11266 done
11267 IFS=$as_save_IFS
11268
11269 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11270 ;;
11271 esac
11272 fi
11273 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11274 if test -n "$PKG_CONFIG"; then
11275 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11276 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11277 else
11278 { echo "$as_me:$LINENO: result: no" >&5
11279 echo "${ECHO_T}no" >&6; }
11280 fi
11281
11282
11283 fi
11284
11285 if test "$PKG_CONFIG" = "no" ; then
11286 pkg_check_gtk=no
11287 else
11288 PKG_CONFIG_MIN_VERSION=0.9.0
11289 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11290 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11291 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11292
11293 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11294 { echo "$as_me:$LINENO: result: yes" >&5
11295 echo "${ECHO_T}yes" >&6; }
11296 succeeded=yes
11297
11298 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11299 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11300 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11301 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11302 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11303
11304 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11305 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11306 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11307 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11308 echo "${ECHO_T}$GTK_LIBS" >&6; }
11309 else
11310 { echo "$as_me:$LINENO: result: no" >&5
11311 echo "${ECHO_T}no" >&6; }
11312 GTK_CFLAGS=""
11313 GTK_LIBS=""
11314 ## If we have a custom action on failure, don't print errors, but
11315 ## do set a variable so people can do so.
11316 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11317
11318 fi
11319
11320
11321
11322 else
11323 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11324 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11325 fi
11326 fi
11327
11328 if test $succeeded = yes; then
11329 pkg_check_gtk=yes
11330 else
11331 pkg_check_gtk=no
11332 fi
11333
11334 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11335 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11336 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11337 { (exit 1); exit 1; }; }
11338 fi
11339 fi
11340
11341
11342 if test x"$pkg_check_gtk" = xyes; then
11343
11344
11345
11346 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11347 CFLAGS="$CFLAGS $GTK_CFLAGS"
11348 LIBS="$GTK_LIBS $LIBS"
11349 GTK_COMPILES=no
11350
11351 for ac_func in gtk_main
11352 do
11353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359 cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h. */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11367 #define $ac_func innocuous_$ac_func
11368
11369 /* System header to define __stub macros and hopefully few prototypes,
11370 which can conflict with char $ac_func (); below.
11371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11372 <limits.h> exists even on freestanding compilers. */
11373
11374 #ifdef __STDC__
11375 # include <limits.h>
11376 #else
11377 # include <assert.h>
11378 #endif
11379
11380 #undef $ac_func
11381
11382 /* Override any GCC internal prototype to avoid an error.
11383 Use char because int might match the return type of a GCC
11384 builtin and then its argument prototype would still apply. */
11385 #ifdef __cplusplus
11386 extern "C"
11387 #endif
11388 char $ac_func ();
11389 /* The GNU C library defines this for functions which it implements
11390 to always fail with ENOSYS. Some functions are actually named
11391 something starting with __ and the normal name is an alias. */
11392 #if defined __stub_$ac_func || defined __stub___$ac_func
11393 choke me
11394 #endif
11395
11396 int
11397 main ()
11398 {
11399 return $ac_func ();
11400 ;
11401 return 0;
11402 }
11403 _ACEOF
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (ac_try="$ac_link"
11406 case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_link") 2>conftest.er1
11412 ac_status=$?
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && {
11418 test -z "$ac_c_werror_flag" ||
11419 test ! -s conftest.err
11420 } && test -s conftest$ac_exeext &&
11421 $as_test_x conftest$ac_exeext; then
11422 eval "$as_ac_var=yes"
11423 else
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427 eval "$as_ac_var=no"
11428 fi
11429
11430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11431 conftest$ac_exeext conftest.$ac_ext
11432 fi
11433 ac_res=`eval echo '${'$as_ac_var'}'`
11434 { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11436 if test `eval echo '${'$as_ac_var'}'` = yes; then
11437 cat >>confdefs.h <<_ACEOF
11438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11439 _ACEOF
11440 GTK_COMPILES=yes
11441 fi
11442 done
11443
11444 if test "${GTK_COMPILES}" != "yes"; then
11445 if test "$USE_X_TOOLKIT" != "maybe"; then
11446 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11447 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11448 { (exit 1); exit 1; }; };
11449 fi
11450 else
11451 HAVE_GTK=yes
11452
11453 cat >>confdefs.h <<\_ACEOF
11454 #define HAVE_GTK 1
11455 _ACEOF
11456
11457 USE_X_TOOLKIT=none
11458 fi
11459
11460 fi
11461
11462
11463 if test "${HAVE_GTK}" = "yes"; then
11464
11465 if test "$with_toolkit_scroll_bars" != no; then
11466 with_toolkit_scroll_bars=yes
11467 fi
11468
11469 HAVE_GTK_MULTIDISPLAY=no
11470
11471 for ac_func in gdk_display_open
11472 do
11473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479 cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h. */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11487 #define $ac_func innocuous_$ac_func
11488
11489 /* System header to define __stub macros and hopefully few prototypes,
11490 which can conflict with char $ac_func (); below.
11491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11492 <limits.h> exists even on freestanding compilers. */
11493
11494 #ifdef __STDC__
11495 # include <limits.h>
11496 #else
11497 # include <assert.h>
11498 #endif
11499
11500 #undef $ac_func
11501
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11505 #ifdef __cplusplus
11506 extern "C"
11507 #endif
11508 char $ac_func ();
11509 /* The GNU C library defines this for functions which it implements
11510 to always fail with ENOSYS. Some functions are actually named
11511 something starting with __ and the normal name is an alias. */
11512 #if defined __stub_$ac_func || defined __stub___$ac_func
11513 choke me
11514 #endif
11515
11516 int
11517 main ()
11518 {
11519 return $ac_func ();
11520 ;
11521 return 0;
11522 }
11523 _ACEOF
11524 rm -f conftest.$ac_objext conftest$ac_exeext
11525 if { (ac_try="$ac_link"
11526 case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11529 esac
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531 (eval "$ac_link") 2>conftest.er1
11532 ac_status=$?
11533 grep -v '^ *+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && {
11538 test -z "$ac_c_werror_flag" ||
11539 test ! -s conftest.err
11540 } && test -s conftest$ac_exeext &&
11541 $as_test_x conftest$ac_exeext; then
11542 eval "$as_ac_var=yes"
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 eval "$as_ac_var=no"
11548 fi
11549
11550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11551 conftest$ac_exeext conftest.$ac_ext
11552 fi
11553 ac_res=`eval echo '${'$as_ac_var'}'`
11554 { echo "$as_me:$LINENO: result: $ac_res" >&5
11555 echo "${ECHO_T}$ac_res" >&6; }
11556 if test `eval echo '${'$as_ac_var'}'` = yes; then
11557 cat >>confdefs.h <<_ACEOF
11558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11559 _ACEOF
11560 HAVE_GTK_MULTIDISPLAY=yes
11561 fi
11562 done
11563
11564 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11565
11566 cat >>confdefs.h <<\_ACEOF
11567 #define HAVE_GTK_MULTIDISPLAY 1
11568 _ACEOF
11569
11570 fi
11571
11572 HAVE_GTK_FILE_SELECTION=no
11573
11574 for ac_func in gtk_file_selection_new
11575 do
11576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 else
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h. */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11590 #define $ac_func innocuous_$ac_func
11591
11592 /* System header to define __stub macros and hopefully few prototypes,
11593 which can conflict with char $ac_func (); below.
11594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11595 <limits.h> exists even on freestanding compilers. */
11596
11597 #ifdef __STDC__
11598 # include <limits.h>
11599 #else
11600 # include <assert.h>
11601 #endif
11602
11603 #undef $ac_func
11604
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11608 #ifdef __cplusplus
11609 extern "C"
11610 #endif
11611 char $ac_func ();
11612 /* The GNU C library defines this for functions which it implements
11613 to always fail with ENOSYS. Some functions are actually named
11614 something starting with __ and the normal name is an alias. */
11615 #if defined __stub_$ac_func || defined __stub___$ac_func
11616 choke me
11617 #endif
11618
11619 int
11620 main ()
11621 {
11622 return $ac_func ();
11623 ;
11624 return 0;
11625 }
11626 _ACEOF
11627 rm -f conftest.$ac_objext conftest$ac_exeext
11628 if { (ac_try="$ac_link"
11629 case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11632 esac
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_link") 2>conftest.er1
11635 ac_status=$?
11636 grep -v '^ *+' conftest.er1 >conftest.err
11637 rm -f conftest.er1
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } && {
11641 test -z "$ac_c_werror_flag" ||
11642 test ! -s conftest.err
11643 } && test -s conftest$ac_exeext &&
11644 $as_test_x conftest$ac_exeext; then
11645 eval "$as_ac_var=yes"
11646 else
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11649
11650 eval "$as_ac_var=no"
11651 fi
11652
11653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11654 conftest$ac_exeext conftest.$ac_ext
11655 fi
11656 ac_res=`eval echo '${'$as_ac_var'}'`
11657 { echo "$as_me:$LINENO: result: $ac_res" >&5
11658 echo "${ECHO_T}$ac_res" >&6; }
11659 if test `eval echo '${'$as_ac_var'}'` = yes; then
11660 cat >>confdefs.h <<_ACEOF
11661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11662 _ACEOF
11663 HAVE_GTK_FILE_SELECTION=yes
11664 fi
11665 done
11666
11667
11668 HAVE_GTK_FILE_CHOOSER=no
11669
11670 for ac_func in gtk_file_chooser_dialog_new
11671 do
11672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678 cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h. */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11686 #define $ac_func innocuous_$ac_func
11687
11688 /* System header to define __stub macros and hopefully few prototypes,
11689 which can conflict with char $ac_func (); below.
11690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11691 <limits.h> exists even on freestanding compilers. */
11692
11693 #ifdef __STDC__
11694 # include <limits.h>
11695 #else
11696 # include <assert.h>
11697 #endif
11698
11699 #undef $ac_func
11700
11701 /* Override any GCC internal prototype to avoid an error.
11702 Use char because int might match the return type of a GCC
11703 builtin and then its argument prototype would still apply. */
11704 #ifdef __cplusplus
11705 extern "C"
11706 #endif
11707 char $ac_func ();
11708 /* The GNU C library defines this for functions which it implements
11709 to always fail with ENOSYS. Some functions are actually named
11710 something starting with __ and the normal name is an alias. */
11711 #if defined __stub_$ac_func || defined __stub___$ac_func
11712 choke me
11713 #endif
11714
11715 int
11716 main ()
11717 {
11718 return $ac_func ();
11719 ;
11720 return 0;
11721 }
11722 _ACEOF
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (ac_try="$ac_link"
11725 case "(($ac_try" in
11726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727 *) ac_try_echo=$ac_try;;
11728 esac
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730 (eval "$ac_link") 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } && {
11737 test -z "$ac_c_werror_flag" ||
11738 test ! -s conftest.err
11739 } && test -s conftest$ac_exeext &&
11740 $as_test_x conftest$ac_exeext; then
11741 eval "$as_ac_var=yes"
11742 else
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746 eval "$as_ac_var=no"
11747 fi
11748
11749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11750 conftest$ac_exeext conftest.$ac_ext
11751 fi
11752 ac_res=`eval echo '${'$as_ac_var'}'`
11753 { echo "$as_me:$LINENO: result: $ac_res" >&5
11754 echo "${ECHO_T}$ac_res" >&6; }
11755 if test `eval echo '${'$as_ac_var'}'` = yes; then
11756 cat >>confdefs.h <<_ACEOF
11757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11758 _ACEOF
11759 HAVE_GTK_FILE_CHOOSER=yes
11760 fi
11761 done
11762
11763
11764 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11765 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11766
11767 cat >>confdefs.h <<\_ACEOF
11768 #define HAVE_GTK_FILE_BOTH 1
11769 _ACEOF
11770
11771 fi
11772
11773 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11774 HAVE_GTK_AND_PTHREAD=no
11775
11776 for ac_header in pthread.h
11777 do
11778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 fi
11785 ac_res=`eval echo '${'$as_ac_Header'}'`
11786 { echo "$as_me:$LINENO: result: $ac_res" >&5
11787 echo "${ECHO_T}$ac_res" >&6; }
11788 else
11789 # Is the header compilable?
11790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11792 cat >conftest.$ac_ext <<_ACEOF
11793 /* confdefs.h. */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 $ac_includes_default
11799 #include <$ac_header>
11800 _ACEOF
11801 rm -f conftest.$ac_objext
11802 if { (ac_try="$ac_compile"
11803 case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806 esac
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_compile") 2>conftest.er1
11809 ac_status=$?
11810 grep -v '^ *+' conftest.er1 >conftest.err
11811 rm -f conftest.er1
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } && {
11815 test -z "$ac_c_werror_flag" ||
11816 test ! -s conftest.err
11817 } && test -s conftest.$ac_objext; then
11818 ac_header_compiler=yes
11819 else
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 ac_header_compiler=no
11824 fi
11825
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11828 echo "${ECHO_T}$ac_header_compiler" >&6; }
11829
11830 # Is the header present?
11831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11833 cat >conftest.$ac_ext <<_ACEOF
11834 /* confdefs.h. */
11835 _ACEOF
11836 cat confdefs.h >>conftest.$ac_ext
11837 cat >>conftest.$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11839 #include <$ac_header>
11840 _ACEOF
11841 if { (ac_try="$ac_cpp conftest.$ac_ext"
11842 case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11845 esac
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11848 ac_status=$?
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } >/dev/null && {
11854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 }; then
11857 ac_header_preproc=yes
11858 else
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862 ac_header_preproc=no
11863 fi
11864
11865 rm -f conftest.err conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11867 echo "${ECHO_T}$ac_header_preproc" >&6; }
11868
11869 # So? What about this header?
11870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11871 yes:no: )
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11876 ac_header_preproc=yes
11877 ;;
11878 no:yes:* )
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11891
11892 ;;
11893 esac
11894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899 eval "$as_ac_Header=\$ac_header_preproc"
11900 fi
11901 ac_res=`eval echo '${'$as_ac_Header'}'`
11902 { echo "$as_me:$LINENO: result: $ac_res" >&5
11903 echo "${ECHO_T}$ac_res" >&6; }
11904
11905 fi
11906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11907 cat >>confdefs.h <<_ACEOF
11908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11909 _ACEOF
11910
11911 fi
11912
11913 done
11914
11915 if test "$ac_cv_header_pthread_h"; then
11916 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11917 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11918 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921 ac_check_lib_save_LIBS=$LIBS
11922 LIBS="-lpthread $LIBS"
11923 cat >conftest.$ac_ext <<_ACEOF
11924 /* confdefs.h. */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929
11930 /* Override any GCC internal prototype to avoid an error.
11931 Use char because int might match the return type of a GCC
11932 builtin and then its argument prototype would still apply. */
11933 #ifdef __cplusplus
11934 extern "C"
11935 #endif
11936 char pthread_self ();
11937 int
11938 main ()
11939 {
11940 return pthread_self ();
11941 ;
11942 return 0;
11943 }
11944 _ACEOF
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (ac_try="$ac_link"
11947 case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_link") 2>conftest.er1
11953 ac_status=$?
11954 grep -v '^ *+' conftest.er1 >conftest.err
11955 rm -f conftest.er1
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } && {
11959 test -z "$ac_c_werror_flag" ||
11960 test ! -s conftest.err
11961 } && test -s conftest$ac_exeext &&
11962 $as_test_x conftest$ac_exeext; then
11963 ac_cv_lib_pthread_pthread_self=yes
11964 else
11965 echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968 ac_cv_lib_pthread_pthread_self=no
11969 fi
11970
11971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11972 conftest$ac_exeext conftest.$ac_ext
11973 LIBS=$ac_check_lib_save_LIBS
11974 fi
11975 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11976 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11977 if test $ac_cv_lib_pthread_pthread_self = yes; then
11978 HAVE_GTK_AND_PTHREAD=yes
11979 fi
11980
11981 fi
11982 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11983 case "${canonical}" in
11984 *-hpux*) ;;
11985 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11986 esac
11987
11988 cat >>confdefs.h <<\_ACEOF
11989 #define HAVE_GTK_AND_PTHREAD 1
11990 _ACEOF
11991
11992 fi
11993 fi
11994 fi
11995
11996 ### Link with -lXft if available to work around a bug.
11997 HAVE_XFT=maybe
11998 if test "${HAVE_GTK}" = "yes"; then
11999 if test "X${with_pkg_config_prog}" != X; then
12000 PKG_CONFIG="${with_pkg_config_prog}"
12001 fi
12002
12003
12004 succeeded=no
12005
12006 if test -z "$PKG_CONFIG"; then
12007 # Extract the first word of "pkg-config", so it can be a program name with args.
12008 set dummy pkg-config; ac_word=$2
12009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12011 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014 case $PKG_CONFIG in
12015 [\\/]* | ?:[\\/]*)
12016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12017 ;;
12018 *)
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12021 do
12022 IFS=$as_save_IFS
12023 test -z "$as_dir" && as_dir=.
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12026 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12028 break 2
12029 fi
12030 done
12031 done
12032 IFS=$as_save_IFS
12033
12034 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12035 ;;
12036 esac
12037 fi
12038 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12039 if test -n "$PKG_CONFIG"; then
12040 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12041 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12042 else
12043 { echo "$as_me:$LINENO: result: no" >&5
12044 echo "${ECHO_T}no" >&6; }
12045 fi
12046
12047
12048 fi
12049
12050 if test "$PKG_CONFIG" = "no" ; then
12051 HAVE_XFT=no
12052 else
12053 PKG_CONFIG_MIN_VERSION=0.9.0
12054 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12055 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12056 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12057
12058 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12059 { echo "$as_me:$LINENO: result: yes" >&5
12060 echo "${ECHO_T}yes" >&6; }
12061 succeeded=yes
12062
12063 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12064 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12065 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12066 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12067 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12068
12069 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12070 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12071 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12072 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12073 echo "${ECHO_T}$XFT_LIBS" >&6; }
12074 else
12075 { echo "$as_me:$LINENO: result: no" >&5
12076 echo "${ECHO_T}no" >&6; }
12077 XFT_CFLAGS=""
12078 XFT_LIBS=""
12079 ## If we have a custom action on failure, don't print errors, but
12080 ## do set a variable so people can do so.
12081 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12082
12083 fi
12084
12085
12086
12087 else
12088 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12089 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12090 fi
12091 fi
12092
12093 if test $succeeded = yes; then
12094 :
12095 else
12096 HAVE_XFT=no
12097 fi
12098
12099 if test "$HAVE_XFT" != no; then
12100 OLD_CFLAGS="$CPPFLAGS"
12101 OLD_CPPFLAGS="$CFLAGS"
12102 OLD_LIBS="$LIBS"
12103 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12104 CFLAGS="$CFLAGS $XFT_CFLAGS"
12105 LIBS="$XFT_LIBS $LIBS"
12106 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12107 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12108 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12109 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 fi
12112 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12113 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12114 else
12115 # Is the header compilable?
12116 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12117 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12118 cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h. */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 $ac_includes_default
12125 #include <X11/Xft/Xft.h>
12126 _ACEOF
12127 rm -f conftest.$ac_objext
12128 if { (ac_try="$ac_compile"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_compile") 2>conftest.er1
12135 ac_status=$?
12136 grep -v '^ *+' conftest.er1 >conftest.err
12137 rm -f conftest.er1
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } && {
12141 test -z "$ac_c_werror_flag" ||
12142 test ! -s conftest.err
12143 } && test -s conftest.$ac_objext; then
12144 ac_header_compiler=yes
12145 else
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 ac_header_compiler=no
12150 fi
12151
12152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12154 echo "${ECHO_T}$ac_header_compiler" >&6; }
12155
12156 # Is the header present?
12157 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12158 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12159 cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h. */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 #include <X11/Xft/Xft.h>
12166 _ACEOF
12167 if { (ac_try="$ac_cpp conftest.$ac_ext"
12168 case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12171 esac
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev/null && {
12180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12181 test ! -s conftest.err
12182 }; then
12183 ac_header_preproc=yes
12184 else
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188 ac_header_preproc=no
12189 fi
12190
12191 rm -f conftest.err conftest.$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12193 echo "${ECHO_T}$ac_header_preproc" >&6; }
12194
12195 # So? What about this header?
12196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12197 yes:no: )
12198 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12199 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12201 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12202 ac_header_preproc=yes
12203 ;;
12204 no:yes:* )
12205 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12206 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12208 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12210 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12212 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12214 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12216 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12217
12218 ;;
12219 esac
12220 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12221 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12222 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12226 fi
12227 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12228 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12229
12230 fi
12231 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12232 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12233 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12234 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-lXft $XFT_LIBS $LIBS"
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 char XftFontOpen ();
12253 int
12254 main ()
12255 {
12256 return XftFontOpen ();
12257 ;
12258 return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266 esac
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_link") 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && {
12275 test -z "$ac_c_werror_flag" ||
12276 test ! -s conftest.err
12277 } && test -s conftest$ac_exeext &&
12278 $as_test_x conftest$ac_exeext; then
12279 ac_cv_lib_Xft_XftFontOpen=yes
12280 else
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284 ac_cv_lib_Xft_XftFontOpen=no
12285 fi
12286
12287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12288 conftest$ac_exeext conftest.$ac_ext
12289 LIBS=$ac_check_lib_save_LIBS
12290 fi
12291 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12292 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12293 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12294 HAVE_XFT=yes
12295 fi
12296
12297 fi
12298
12299
12300
12301 if test "${HAVE_XFT}" = "yes"; then
12302
12303 cat >>confdefs.h <<\_ACEOF
12304 #define HAVE_XFT 1
12305 _ACEOF
12306
12307
12308 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12309 else
12310 CFLAGS="$OLD_CPPFLAGS"
12311 CFLAGS="$OLD_CFLAGS"
12312 LIBS="$OLD_LIBS"
12313 fi
12314 fi
12315 fi
12316
12317 HAVE_XAW3D=no
12318 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12319 if test "$with_xaw3d" != no; then
12320 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12321 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12322 if test "${emacs_cv_xaw3d+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331
12332 #include <X11/Intrinsic.h>
12333 #include <X11/Xaw3d/Simple.h>
12334 int
12335 main ()
12336 {
12337
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (ac_try="$ac_link"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_link") 2>conftest.er1
12350 ac_status=$?
12351 grep -v '^ *+' conftest.er1 >conftest.err
12352 rm -f conftest.er1
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest$ac_exeext &&
12359 $as_test_x conftest$ac_exeext; then
12360 emacs_cv_xaw3d=yes
12361 else
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365 emacs_cv_xaw3d=no
12366 fi
12367
12368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12369 conftest$ac_exeext conftest.$ac_ext
12370 fi
12371
12372 else
12373 emacs_cv_xaw3d=no
12374 fi
12375 if test $emacs_cv_xaw3d = yes; then
12376 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12377 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12378 USE_X_TOOLKIT=LUCID
12379 HAVE_XAW3D=yes
12380
12381 cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_XAW3D 1
12383 _ACEOF
12384
12385 else
12386 { echo "$as_me:$LINENO: result: no" >&5
12387 echo "${ECHO_T}no" >&6; }
12388 { echo "$as_me:$LINENO: checking for libXaw" >&5
12389 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12390 if test "${emacs_cv_xaw+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399
12400 #include <X11/Intrinsic.h>
12401 #include <X11/Xaw/Simple.h>
12402 int
12403 main ()
12404 {
12405
12406 ;
12407 return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (ac_try="$ac_link"
12412 case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_link") 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest$ac_exeext &&
12427 $as_test_x conftest$ac_exeext; then
12428 emacs_cv_xaw=yes
12429 else
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433 emacs_cv_xaw=no
12434 fi
12435
12436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12437 conftest$ac_exeext conftest.$ac_ext
12438 fi
12439
12440 if test $emacs_cv_xaw = yes; then
12441 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12442 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12443 USE_X_TOOLKIT=LUCID
12444 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12445 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12446 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12447 { (exit 1); exit 1; }; }
12448 else
12449 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12450 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12451 USE_X_TOOLKIT=none
12452 fi
12453 fi
12454 fi
12455
12456 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12457
12458 if test "${USE_X_TOOLKIT}" != "none"; then
12459 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12460 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12461 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 #include <X11/Intrinsic.h>
12471 int
12472 main ()
12473 {
12474 #if XtSpecificationRelease < 6
12475 fail;
12476 #endif
12477
12478 ;
12479 return 0;
12480 }
12481 _ACEOF
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (ac_try="$ac_link"
12484 case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_link") 2>conftest.er1
12490 ac_status=$?
12491 grep -v '^ *+' conftest.er1 >conftest.err
12492 rm -f conftest.er1
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12498 } && test -s conftest$ac_exeext &&
12499 $as_test_x conftest$ac_exeext; then
12500 emacs_cv_x11_toolkit_version_6=yes
12501 else
12502 echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12504
12505 emacs_cv_x11_toolkit_version_6=no
12506 fi
12507
12508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12509 conftest$ac_exeext conftest.$ac_ext
12510 fi
12511
12512 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12513 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12514 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12515 echo "${ECHO_T}6 or newer" >&6; }
12516
12517 cat >>confdefs.h <<\_ACEOF
12518 #define HAVE_X11XTR6 1
12519 _ACEOF
12520
12521 else
12522 { echo "$as_me:$LINENO: result: before 6" >&5
12523 echo "${ECHO_T}before 6" >&6; }
12524 fi
12525
12526 OLDLIBS="$LIBS"
12527 if test x$HAVE_X11XTR6 = xyes; then
12528 LIBS="-lXt -lSM -lICE $LIBS"
12529 else
12530 LIBS="-lXt $LIBS"
12531 fi
12532
12533 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12534 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12535 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 else
12538 ac_check_lib_save_LIBS=$LIBS
12539 LIBS="-lXmu $LIBS"
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h. */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546
12547 /* Override any GCC internal prototype to avoid an error.
12548 Use char because int might match the return type of a GCC
12549 builtin and then its argument prototype would still apply. */
12550 #ifdef __cplusplus
12551 extern "C"
12552 #endif
12553 char XmuConvertStandardSelection ();
12554 int
12555 main ()
12556 {
12557 return XmuConvertStandardSelection ();
12558 ;
12559 return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (ac_try="$ac_link"
12564 case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567 esac
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_link") 2>conftest.er1
12570 ac_status=$?
12571 grep -v '^ *+' conftest.er1 >conftest.err
12572 rm -f conftest.er1
12573 cat conftest.err >&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } && {
12576 test -z "$ac_c_werror_flag" ||
12577 test ! -s conftest.err
12578 } && test -s conftest$ac_exeext &&
12579 $as_test_x conftest$ac_exeext; then
12580 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12581 else
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12584
12585 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12586 fi
12587
12588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12589 conftest$ac_exeext conftest.$ac_ext
12590 LIBS=$ac_check_lib_save_LIBS
12591 fi
12592 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12593 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12594 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12595 cat >>confdefs.h <<_ACEOF
12596 #define HAVE_LIBXMU 1
12597 _ACEOF
12598
12599 LIBS="-lXmu $LIBS"
12600
12601 fi
12602
12603 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12604 fi
12605
12606 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12607 if test "${HAVE_X11}" = "yes"; then
12608 if test "${USE_X_TOOLKIT}" != "none"; then
12609
12610 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12611 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12612 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615 ac_check_lib_save_LIBS=$LIBS
12616 LIBS="-lXext $LIBS"
12617 cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h. */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623
12624 /* Override any GCC internal prototype to avoid an error.
12625 Use char because int might match the return type of a GCC
12626 builtin and then its argument prototype would still apply. */
12627 #ifdef __cplusplus
12628 extern "C"
12629 #endif
12630 char XShapeQueryExtension ();
12631 int
12632 main ()
12633 {
12634 return XShapeQueryExtension ();
12635 ;
12636 return 0;
12637 }
12638 _ACEOF
12639 rm -f conftest.$ac_objext conftest$ac_exeext
12640 if { (ac_try="$ac_link"
12641 case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12644 esac
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_link") 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest$ac_exeext &&
12656 $as_test_x conftest$ac_exeext; then
12657 ac_cv_lib_Xext_XShapeQueryExtension=yes
12658 else
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12661
12662 ac_cv_lib_Xext_XShapeQueryExtension=no
12663 fi
12664
12665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12666 conftest$ac_exeext conftest.$ac_ext
12667 LIBS=$ac_check_lib_save_LIBS
12668 fi
12669 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12670 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12671 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12672 cat >>confdefs.h <<_ACEOF
12673 #define HAVE_LIBXEXT 1
12674 _ACEOF
12675
12676 LIBS="-lXext $LIBS"
12677
12678 fi
12679
12680 fi
12681 fi
12682
12683 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12684 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12685 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12686 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h. */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695 #include <Xm/Xm.h>
12696 int
12697 main ()
12698 {
12699 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12700 int x = 5;
12701 #else
12702 Motif version prior to 2.1.
12703 #endif
12704 ;
12705 return 0;
12706 }
12707 _ACEOF
12708 rm -f conftest.$ac_objext
12709 if { (ac_try="$ac_compile"
12710 case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_compile") 2>conftest.er1
12716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && {
12722 test -z "$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12724 } && test -s conftest.$ac_objext; then
12725 emacs_cv_motif_version_2_1=yes
12726 else
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 emacs_cv_motif_version_2_1=no
12731 fi
12732
12733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734 fi
12735 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12736 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12737 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12738 if test $emacs_cv_motif_version_2_1 = yes; then
12739 HAVE_LIBXP=no
12740
12741 cat >>confdefs.h <<\_ACEOF
12742 #define HAVE_MOTIF_2_1 1
12743 _ACEOF
12744
12745 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12746 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12747 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750 ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lXp $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h. */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char XpCreateContext ();
12766 int
12767 main ()
12768 {
12769 return XpCreateContext ();
12770 ;
12771 return 0;
12772 }
12773 _ACEOF
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_link") 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } && {
12788 test -z "$ac_c_werror_flag" ||
12789 test ! -s conftest.err
12790 } && test -s conftest$ac_exeext &&
12791 $as_test_x conftest$ac_exeext; then
12792 ac_cv_lib_Xp_XpCreateContext=yes
12793 else
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797 ac_cv_lib_Xp_XpCreateContext=no
12798 fi
12799
12800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12803 fi
12804 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12805 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12806 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12807 HAVE_LIBXP=yes
12808 fi
12809
12810 if test ${HAVE_LIBXP} = yes; then
12811
12812 cat >>confdefs.h <<\_ACEOF
12813 #define HAVE_LIBXP 1
12814 _ACEOF
12815
12816 fi
12817 else
12818 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12819 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12820 if test "${emacs_cv_lesstif+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 else
12823 # We put this in CFLAGS temporarily to precede other -I options
12824 # that might be in CFLAGS temporarily.
12825 # We put this in CPPFLAGS where it precedes the other -I options.
12826 OLD_CPPFLAGS=$CPPFLAGS
12827 OLD_CFLAGS=$CFLAGS
12828 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12829 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12830 cat >conftest.$ac_ext <<_ACEOF
12831 /* confdefs.h. */
12832 _ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12836 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12837 int
12838 main ()
12839 {
12840 int x = 5;
12841 ;
12842 return 0;
12843 }
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (ac_try="$ac_compile"
12847 case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_compile") 2>conftest.er1
12853 ac_status=$?
12854 grep -v '^ *+' conftest.er1 >conftest.err
12855 rm -f conftest.er1
12856 cat conftest.err >&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } && {
12859 test -z "$ac_c_werror_flag" ||
12860 test ! -s conftest.err
12861 } && test -s conftest.$ac_objext; then
12862 emacs_cv_lesstif=yes
12863 else
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12866
12867 emacs_cv_lesstif=no
12868 fi
12869
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 fi
12872 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12873 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12874 if test $emacs_cv_lesstif = yes; then
12875 # Make sure this -I option remains in CPPFLAGS after it is set
12876 # back to REAL_CPPFLAGS.
12877 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12878 # have those other -I options anyway. Ultimately, having this
12879 # directory ultimately in CPPFLAGS will be enough.
12880 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12881 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12882 else
12883 CFLAGS=$OLD_CFLAGS
12884 CPPFLAGS=$OLD_CPPFLAGS
12885 fi
12886 fi
12887 fi
12888
12889
12890
12891 USE_TOOLKIT_SCROLL_BARS=no
12892 if test "${with_toolkit_scroll_bars}" != "no"; then
12893 if test "${USE_X_TOOLKIT}" != "none"; then
12894 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12895 cat >>confdefs.h <<\_ACEOF
12896 #define USE_TOOLKIT_SCROLL_BARS 1
12897 _ACEOF
12898
12899 HAVE_XAW3D=no
12900 USE_TOOLKIT_SCROLL_BARS=yes
12901 elif test "${HAVE_XAW3D}" = "yes"; then
12902 cat >>confdefs.h <<\_ACEOF
12903 #define USE_TOOLKIT_SCROLL_BARS 1
12904 _ACEOF
12905
12906 USE_TOOLKIT_SCROLL_BARS=yes
12907 fi
12908 elif test "${HAVE_GTK}" = "yes"; then
12909 cat >>confdefs.h <<\_ACEOF
12910 #define USE_TOOLKIT_SCROLL_BARS 1
12911 _ACEOF
12912
12913 USE_TOOLKIT_SCROLL_BARS=yes
12914 elif test "${HAVE_CARBON}" = "yes"; then
12915 cat >>confdefs.h <<\_ACEOF
12916 #define USE_TOOLKIT_SCROLL_BARS 1
12917 _ACEOF
12918
12919 USE_TOOLKIT_SCROLL_BARS=yes
12920 fi
12921 fi
12922
12923 cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h. */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929
12930 #include <X11/Xlib.h>
12931 #include <X11/Xresource.h>
12932 int
12933 main ()
12934 {
12935 XIMProc callback;
12936 ;
12937 return 0;
12938 }
12939 _ACEOF
12940 rm -f conftest.$ac_objext
12941 if { (ac_try="$ac_compile"
12942 case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12945 esac
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_compile") 2>conftest.er1
12948 ac_status=$?
12949 grep -v '^ *+' conftest.er1 >conftest.err
12950 rm -f conftest.er1
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } && {
12954 test -z "$ac_c_werror_flag" ||
12955 test ! -s conftest.err
12956 } && test -s conftest.$ac_objext; then
12957 HAVE_XIM=yes
12958
12959 cat >>confdefs.h <<\_ACEOF
12960 #define HAVE_XIM 1
12961 _ACEOF
12962
12963 else
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12966
12967 HAVE_XIM=no
12968 fi
12969
12970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12971
12972
12973 if test "${with_xim}" != "no"; then
12974
12975 cat >>confdefs.h <<\_ACEOF
12976 #define USE_XIM 1
12977 _ACEOF
12978
12979 fi
12980
12981
12982 if test "${HAVE_XIM}" != "no"; then
12983 late_CFLAGS=$CFLAGS
12984 if test "$GCC" = yes; then
12985 CFLAGS="$CFLAGS --pedantic-errors"
12986 fi
12987 cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h. */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12993
12994 #include <X11/Xlib.h>
12995 #include <X11/Xresource.h>
12996 int
12997 main ()
12998 {
12999 Display *display;
13000 XrmDatabase db;
13001 char *res_name;
13002 char *res_class;
13003 XIMProc callback;
13004 XPointer *client_data;
13005 #ifndef __GNUC__
13006 /* If we're not using GCC, it's probably not XFree86, and this is
13007 probably right, but we can't use something like --pedantic-errors. */
13008 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13009 char*, XIMProc, XPointer*);
13010 #endif
13011 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13012 client_data);
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 rm -f conftest.$ac_objext
13018 if { (ac_try="$ac_compile"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_compile") 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } && {
13031 test -z "$ac_c_werror_flag" ||
13032 test ! -s conftest.err
13033 } && test -s conftest.$ac_objext; then
13034 emacs_cv_arg6_star=yes
13035 else
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039
13040 fi
13041
13042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043
13044 if test "$emacs_cv_arg6_star" = yes; then
13045 cat >>confdefs.h <<\_ACEOF
13046 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13047 _ACEOF
13048
13049 else
13050 cat >>confdefs.h <<\_ACEOF
13051 #define XRegisterIMInstantiateCallback_arg6 XPointer
13052 _ACEOF
13053
13054 fi
13055 CFLAGS=$late_CFLAGS
13056 fi
13057
13058 ### Use -lXpm if available, unless `--with-xpm=no'.
13059 HAVE_XPM=no
13060 if test "${HAVE_X11}" = "yes"; then
13061 if test "${with_xpm}" != "no"; then
13062 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13063 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13064 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13065 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 fi
13068 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13069 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13070 else
13071 # Is the header compilable?
13072 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13073 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13074 cat >conftest.$ac_ext <<_ACEOF
13075 /* confdefs.h. */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 $ac_includes_default
13081 #include <X11/xpm.h>
13082 _ACEOF
13083 rm -f conftest.$ac_objext
13084 if { (ac_try="$ac_compile"
13085 case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088 esac
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_compile") 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && {
13097 test -z "$ac_c_werror_flag" ||
13098 test ! -s conftest.err
13099 } && test -s conftest.$ac_objext; then
13100 ac_header_compiler=yes
13101 else
13102 echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13104
13105 ac_header_compiler=no
13106 fi
13107
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110 echo "${ECHO_T}$ac_header_compiler" >&6; }
13111
13112 # Is the header present?
13113 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13114 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13115 cat >conftest.$ac_ext <<_ACEOF
13116 /* confdefs.h. */
13117 _ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 #include <X11/xpm.h>
13122 _ACEOF
13123 if { (ac_try="$ac_cpp conftest.$ac_ext"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127 esac
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } >/dev/null && {
13136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 }; then
13139 ac_header_preproc=yes
13140 else
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13143
13144 ac_header_preproc=no
13145 fi
13146
13147 rm -f conftest.err conftest.$ac_ext
13148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13149 echo "${ECHO_T}$ac_header_preproc" >&6; }
13150
13151 # So? What about this header?
13152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13153 yes:no: )
13154 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13155 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13157 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13158 ac_header_preproc=yes
13159 ;;
13160 no:yes:* )
13161 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13162 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13164 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13166 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13168 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13170 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13172 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13173
13174 ;;
13175 esac
13176 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13177 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13178 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181 ac_cv_header_X11_xpm_h=$ac_header_preproc
13182 fi
13183 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13184 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13185
13186 fi
13187 if test $ac_cv_header_X11_xpm_h = yes; then
13188 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13189 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13190 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193 ac_check_lib_save_LIBS=$LIBS
13194 LIBS="-lXpm -lX11 $LIBS"
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char XpmReadFileToPixmap ();
13209 int
13210 main ()
13211 {
13212 return XpmReadFileToPixmap ();
13213 ;
13214 return 0;
13215 }
13216 _ACEOF
13217 rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (ac_try="$ac_link"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_link") 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
13233 } && test -s conftest$ac_exeext &&
13234 $as_test_x conftest$ac_exeext; then
13235 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13236 else
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13239
13240 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13241 fi
13242
13243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13244 conftest$ac_exeext conftest.$ac_ext
13245 LIBS=$ac_check_lib_save_LIBS
13246 fi
13247 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13248 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13249 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13250 HAVE_XPM=yes
13251 fi
13252
13253 fi
13254
13255
13256 if test "${HAVE_XPM}" = "yes"; then
13257 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13258 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13259 cat >conftest.$ac_ext <<_ACEOF
13260 /* confdefs.h. */
13261 _ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 #include "X11/xpm.h"
13266 #ifndef XpmReturnAllocPixels
13267 no_return_alloc_pixels
13268 #endif
13269
13270 _ACEOF
13271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13272 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13273 HAVE_XPM=no
13274 else
13275 HAVE_XPM=yes
13276 fi
13277 rm -f conftest*
13278
13279
13280 if test "${HAVE_XPM}" = "yes"; then
13281 { echo "$as_me:$LINENO: result: yes" >&5
13282 echo "${ECHO_T}yes" >&6; }
13283 else
13284 { echo "$as_me:$LINENO: result: no" >&5
13285 echo "${ECHO_T}no" >&6; }
13286 fi
13287 fi
13288 fi
13289
13290 if test "${HAVE_XPM}" = "yes"; then
13291
13292 cat >>confdefs.h <<\_ACEOF
13293 #define HAVE_XPM 1
13294 _ACEOF
13295
13296 fi
13297 fi
13298
13299 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13300 HAVE_JPEG=no
13301 if test "${HAVE_X11}" = "yes"; then
13302 if test "${with_jpeg}" != "no"; then
13303 if test "${ac_cv_header_jerror_h+set}" = set; then
13304 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13305 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13306 if test "${ac_cv_header_jerror_h+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 fi
13309 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13310 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13311 else
13312 # Is the header compilable?
13313 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13314 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13315 cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h. */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 $ac_includes_default
13322 #include <jerror.h>
13323 _ACEOF
13324 rm -f conftest.$ac_objext
13325 if { (ac_try="$ac_compile"
13326 case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13329 esac
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_compile") 2>conftest.er1
13332 ac_status=$?
13333 grep -v '^ *+' conftest.er1 >conftest.err
13334 rm -f conftest.er1
13335 cat conftest.err >&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } && {
13338 test -z "$ac_c_werror_flag" ||
13339 test ! -s conftest.err
13340 } && test -s conftest.$ac_objext; then
13341 ac_header_compiler=yes
13342 else
13343 echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13345
13346 ac_header_compiler=no
13347 fi
13348
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13351 echo "${ECHO_T}$ac_header_compiler" >&6; }
13352
13353 # Is the header present?
13354 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13355 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h. */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 #include <jerror.h>
13363 _ACEOF
13364 if { (ac_try="$ac_cpp conftest.$ac_ext"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13371 ac_status=$?
13372 grep -v '^ *+' conftest.er1 >conftest.err
13373 rm -f conftest.er1
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } >/dev/null && {
13377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13378 test ! -s conftest.err
13379 }; then
13380 ac_header_preproc=yes
13381 else
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385 ac_header_preproc=no
13386 fi
13387
13388 rm -f conftest.err conftest.$ac_ext
13389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13390 echo "${ECHO_T}$ac_header_preproc" >&6; }
13391
13392 # So? What about this header?
13393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13394 yes:no: )
13395 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13396 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13397 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13398 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13399 ac_header_preproc=yes
13400 ;;
13401 no:yes:* )
13402 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13403 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13405 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13407 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13409 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13411 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13413 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13414
13415 ;;
13416 esac
13417 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13418 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13419 if test "${ac_cv_header_jerror_h+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422 ac_cv_header_jerror_h=$ac_header_preproc
13423 fi
13424 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13425 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13426
13427 fi
13428 if test $ac_cv_header_jerror_h = yes; then
13429 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13430 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13431 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434 ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-ljpeg $LIBS"
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h. */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442
13443 /* Override any GCC internal prototype to avoid an error.
13444 Use char because int might match the return type of a GCC
13445 builtin and then its argument prototype would still apply. */
13446 #ifdef __cplusplus
13447 extern "C"
13448 #endif
13449 char jpeg_destroy_compress ();
13450 int
13451 main ()
13452 {
13453 return jpeg_destroy_compress ();
13454 ;
13455 return 0;
13456 }
13457 _ACEOF
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (ac_try="$ac_link"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_link") 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } && {
13472 test -z "$ac_c_werror_flag" ||
13473 test ! -s conftest.err
13474 } && test -s conftest$ac_exeext &&
13475 $as_test_x conftest$ac_exeext; then
13476 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13477 else
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13482 fi
13483
13484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13485 conftest$ac_exeext conftest.$ac_ext
13486 LIBS=$ac_check_lib_save_LIBS
13487 fi
13488 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13489 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13490 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13491 HAVE_JPEG=yes
13492 fi
13493
13494 fi
13495
13496
13497 fi
13498
13499
13500 if test "${HAVE_JPEG}" = "yes"; then
13501 cat >>confdefs.h <<\_ACEOF
13502 #define HAVE_JPEG 1
13503 _ACEOF
13504
13505 cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h. */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 #include <jpeglib.h>
13512 version=JPEG_LIB_VERSION
13513
13514 _ACEOF
13515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13516 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13517 cat >>confdefs.h <<\_ACEOF
13518 #define HAVE_JPEG 1
13519 _ACEOF
13520
13521 else
13522 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13523 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13524 HAVE_JPEG=no
13525 fi
13526 rm -f conftest*
13527
13528 fi
13529 fi
13530
13531 ### Use -lpng if available, unless `--with-png=no'.
13532 HAVE_PNG=no
13533 if test "${HAVE_X11}" = "yes"; then
13534 if test "${with_png}" != "no"; then
13535 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13536 # in /usr/include/libpng.
13537
13538
13539 for ac_header in png.h libpng/png.h
13540 do
13541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13547 fi
13548 ac_res=`eval echo '${'$as_ac_Header'}'`
13549 { echo "$as_me:$LINENO: result: $ac_res" >&5
13550 echo "${ECHO_T}$ac_res" >&6; }
13551 else
13552 # Is the header compilable?
13553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 $ac_includes_default
13562 #include <$ac_header>
13563 _ACEOF
13564 rm -f conftest.$ac_objext
13565 if { (ac_try="$ac_compile"
13566 case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13569 esac
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 (eval "$ac_compile") 2>conftest.er1
13572 ac_status=$?
13573 grep -v '^ *+' conftest.er1 >conftest.err
13574 rm -f conftest.er1
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } && {
13578 test -z "$ac_c_werror_flag" ||
13579 test ! -s conftest.err
13580 } && test -s conftest.$ac_objext; then
13581 ac_header_compiler=yes
13582 else
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 ac_header_compiler=no
13587 fi
13588
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13591 echo "${ECHO_T}$ac_header_compiler" >&6; }
13592
13593 # Is the header present?
13594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13596 cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h. */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 #include <$ac_header>
13603 _ACEOF
13604 if { (ac_try="$ac_cpp conftest.$ac_ext"
13605 case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13608 esac
13609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } >/dev/null && {
13617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13618 test ! -s conftest.err
13619 }; then
13620 ac_header_preproc=yes
13621 else
13622 echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13624
13625 ac_header_preproc=no
13626 fi
13627
13628 rm -f conftest.err conftest.$ac_ext
13629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13630 echo "${ECHO_T}$ac_header_preproc" >&6; }
13631
13632 # So? What about this header?
13633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13634 yes:no: )
13635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13639 ac_header_preproc=yes
13640 ;;
13641 no:yes:* )
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13654
13655 ;;
13656 esac
13657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662 eval "$as_ac_Header=\$ac_header_preproc"
13663 fi
13664 ac_res=`eval echo '${'$as_ac_Header'}'`
13665 { echo "$as_me:$LINENO: result: $ac_res" >&5
13666 echo "${ECHO_T}$ac_res" >&6; }
13667
13668 fi
13669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13670 cat >>confdefs.h <<_ACEOF
13671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13672 _ACEOF
13673
13674 fi
13675
13676 done
13677
13678 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13679 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13680 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13681 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684 ac_check_lib_save_LIBS=$LIBS
13685 LIBS="-lpng -lz -lm $LIBS"
13686 cat >conftest.$ac_ext <<_ACEOF
13687 /* confdefs.h. */
13688 _ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13692
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13696 #ifdef __cplusplus
13697 extern "C"
13698 #endif
13699 char png_get_channels ();
13700 int
13701 main ()
13702 {
13703 return png_get_channels ();
13704 ;
13705 return 0;
13706 }
13707 _ACEOF
13708 rm -f conftest.$ac_objext conftest$ac_exeext
13709 if { (ac_try="$ac_link"
13710 case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_link") 2>conftest.er1
13716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } && {
13722 test -z "$ac_c_werror_flag" ||
13723 test ! -s conftest.err
13724 } && test -s conftest$ac_exeext &&
13725 $as_test_x conftest$ac_exeext; then
13726 ac_cv_lib_png_png_get_channels=yes
13727 else
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731 ac_cv_lib_png_png_get_channels=no
13732 fi
13733
13734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13735 conftest$ac_exeext conftest.$ac_ext
13736 LIBS=$ac_check_lib_save_LIBS
13737 fi
13738 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13739 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13740 if test $ac_cv_lib_png_png_get_channels = yes; then
13741 HAVE_PNG=yes
13742 fi
13743
13744 fi
13745 fi
13746
13747 if test "${HAVE_PNG}" = "yes"; then
13748
13749 cat >>confdefs.h <<\_ACEOF
13750 #define HAVE_PNG 1
13751 _ACEOF
13752
13753 fi
13754 fi
13755
13756 ### Use -ltiff if available, unless `--with-tiff=no'.
13757 HAVE_TIFF=no
13758 if test "${HAVE_X11}" = "yes"; then
13759 if test "${with_tiff}" != "no"; then
13760 if test "${ac_cv_header_tiffio_h+set}" = set; then
13761 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13762 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13763 if test "${ac_cv_header_tiffio_h+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 fi
13766 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13767 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13768 else
13769 # Is the header compilable?
13770 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13771 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h. */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 $ac_includes_default
13779 #include <tiffio.h>
13780 _ACEOF
13781 rm -f conftest.$ac_objext
13782 if { (ac_try="$ac_compile"
13783 case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786 esac
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_compile") 2>conftest.er1
13789 ac_status=$?
13790 grep -v '^ *+' conftest.er1 >conftest.err
13791 rm -f conftest.er1
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } && {
13795 test -z "$ac_c_werror_flag" ||
13796 test ! -s conftest.err
13797 } && test -s conftest.$ac_objext; then
13798 ac_header_compiler=yes
13799 else
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803 ac_header_compiler=no
13804 fi
13805
13806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13808 echo "${ECHO_T}$ac_header_compiler" >&6; }
13809
13810 # Is the header present?
13811 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13812 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
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 #include <tiffio.h>
13820 _ACEOF
13821 if { (ac_try="$ac_cpp conftest.$ac_ext"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13825 esac
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13828 ac_status=$?
13829 grep -v '^ *+' conftest.er1 >conftest.err
13830 rm -f conftest.er1
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } >/dev/null && {
13834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13835 test ! -s conftest.err
13836 }; then
13837 ac_header_preproc=yes
13838 else
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13841
13842 ac_header_preproc=no
13843 fi
13844
13845 rm -f conftest.err conftest.$ac_ext
13846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13847 echo "${ECHO_T}$ac_header_preproc" >&6; }
13848
13849 # So? What about this header?
13850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13851 yes:no: )
13852 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13853 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13855 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13856 ac_header_preproc=yes
13857 ;;
13858 no:yes:* )
13859 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13860 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13862 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13864 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13866 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13868 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13870 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13871
13872 ;;
13873 esac
13874 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13875 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13876 if test "${ac_cv_header_tiffio_h+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879 ac_cv_header_tiffio_h=$ac_header_preproc
13880 fi
13881 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13882 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13883
13884 fi
13885 if test $ac_cv_header_tiffio_h = yes; then
13886 tifflibs="-lz -lm"
13887 # At least one tiff package requires the jpeg library.
13888 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13889 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13890 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13891 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894 ac_check_lib_save_LIBS=$LIBS
13895 LIBS="-ltiff $tifflibs $LIBS"
13896 cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h. */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902
13903 /* Override any GCC internal prototype to avoid an error.
13904 Use char because int might match the return type of a GCC
13905 builtin and then its argument prototype would still apply. */
13906 #ifdef __cplusplus
13907 extern "C"
13908 #endif
13909 char TIFFGetVersion ();
13910 int
13911 main ()
13912 {
13913 return TIFFGetVersion ();
13914 ;
13915 return 0;
13916 }
13917 _ACEOF
13918 rm -f conftest.$ac_objext conftest$ac_exeext
13919 if { (ac_try="$ac_link"
13920 case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13923 esac
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_link") 2>conftest.er1
13926 ac_status=$?
13927 grep -v '^ *+' conftest.er1 >conftest.err
13928 rm -f conftest.er1
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } && {
13932 test -z "$ac_c_werror_flag" ||
13933 test ! -s conftest.err
13934 } && test -s conftest$ac_exeext &&
13935 $as_test_x conftest$ac_exeext; then
13936 ac_cv_lib_tiff_TIFFGetVersion=yes
13937 else
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941 ac_cv_lib_tiff_TIFFGetVersion=no
13942 fi
13943
13944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13945 conftest$ac_exeext conftest.$ac_ext
13946 LIBS=$ac_check_lib_save_LIBS
13947 fi
13948 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13949 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13950 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13951 HAVE_TIFF=yes
13952 fi
13953
13954 fi
13955
13956
13957 fi
13958
13959 if test "${HAVE_TIFF}" = "yes"; then
13960
13961 cat >>confdefs.h <<\_ACEOF
13962 #define HAVE_TIFF 1
13963 _ACEOF
13964
13965 fi
13966 fi
13967
13968 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13969 HAVE_GIF=no
13970 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13971 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13972 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13973 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13974 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 fi
13977 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13978 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13979 else
13980 # Is the header compilable?
13981 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13982 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13983 cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h. */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13989 $ac_includes_default
13990 #include <gif_lib.h>
13991 _ACEOF
13992 rm -f conftest.$ac_objext
13993 if { (ac_try="$ac_compile"
13994 case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13997 esac
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_compile") 2>conftest.er1
14000 ac_status=$?
14001 grep -v '^ *+' conftest.er1 >conftest.err
14002 rm -f conftest.er1
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } && {
14006 test -z "$ac_c_werror_flag" ||
14007 test ! -s conftest.err
14008 } && test -s conftest.$ac_objext; then
14009 ac_header_compiler=yes
14010 else
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14013
14014 ac_header_compiler=no
14015 fi
14016
14017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14019 echo "${ECHO_T}$ac_header_compiler" >&6; }
14020
14021 # Is the header present?
14022 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14023 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14024 cat >conftest.$ac_ext <<_ACEOF
14025 /* confdefs.h. */
14026 _ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 #include <gif_lib.h>
14031 _ACEOF
14032 if { (ac_try="$ac_cpp conftest.$ac_ext"
14033 case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14036 esac
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14039 ac_status=$?
14040 grep -v '^ *+' conftest.er1 >conftest.err
14041 rm -f conftest.er1
14042 cat conftest.err >&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } >/dev/null && {
14045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14046 test ! -s conftest.err
14047 }; then
14048 ac_header_preproc=yes
14049 else
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14052
14053 ac_header_preproc=no
14054 fi
14055
14056 rm -f conftest.err conftest.$ac_ext
14057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14058 echo "${ECHO_T}$ac_header_preproc" >&6; }
14059
14060 # So? What about this header?
14061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14062 yes:no: )
14063 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14064 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14066 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14067 ac_header_preproc=yes
14068 ;;
14069 no:yes:* )
14070 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14071 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14072 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14073 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14074 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14075 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14076 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14077 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14078 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14079 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14080 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14081 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14082
14083 ;;
14084 esac
14085 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14086 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14087 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 else
14090 ac_cv_header_gif_lib_h=$ac_header_preproc
14091 fi
14092 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14093 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14094
14095 fi
14096 if test $ac_cv_header_gif_lib_h = yes; then
14097 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14098 # Earlier versions can crash Emacs.
14099 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14100 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14101 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104 ac_check_lib_save_LIBS=$LIBS
14105 LIBS="-lgif $LIBS"
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h. */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14112
14113 /* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14116 #ifdef __cplusplus
14117 extern "C"
14118 #endif
14119 char EGifPutExtensionLast ();
14120 int
14121 main ()
14122 {
14123 return EGifPutExtensionLast ();
14124 ;
14125 return 0;
14126 }
14127 _ACEOF
14128 rm -f conftest.$ac_objext conftest$ac_exeext
14129 if { (ac_try="$ac_link"
14130 case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14133 esac
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_link") 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } && {
14142 test -z "$ac_c_werror_flag" ||
14143 test ! -s conftest.err
14144 } && test -s conftest$ac_exeext &&
14145 $as_test_x conftest$ac_exeext; then
14146 ac_cv_lib_gif_EGifPutExtensionLast=yes
14147 else
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14150
14151 ac_cv_lib_gif_EGifPutExtensionLast=no
14152 fi
14153
14154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14155 conftest$ac_exeext conftest.$ac_ext
14156 LIBS=$ac_check_lib_save_LIBS
14157 fi
14158 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14159 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14160 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14161 HAVE_GIF=yes
14162 else
14163 try_libungif=yes
14164 fi
14165
14166 fi
14167
14168
14169
14170 if test "$HAVE_GIF" = yes; then
14171 ac_gif_lib_name="-lgif"
14172 fi
14173
14174 # If gif_lib.h but no libgif, try libungif.
14175 if test x"$try_libungif" = xyes; then
14176 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14177 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14178 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181 ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lungif $LIBS"
14183 cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h. */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14193 #ifdef __cplusplus
14194 extern "C"
14195 #endif
14196 char EGifPutExtensionLast ();
14197 int
14198 main ()
14199 {
14200 return EGifPutExtensionLast ();
14201 ;
14202 return 0;
14203 }
14204 _ACEOF
14205 rm -f conftest.$ac_objext conftest$ac_exeext
14206 if { (ac_try="$ac_link"
14207 case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210 esac
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_link") 2>conftest.er1
14213 ac_status=$?
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest$ac_exeext &&
14222 $as_test_x conftest$ac_exeext; then
14223 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14224 else
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228 ac_cv_lib_ungif_EGifPutExtensionLast=no
14229 fi
14230
14231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232 conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14234 fi
14235 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14236 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14237 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14238 HAVE_GIF=yes
14239 fi
14240
14241
14242 if test "$HAVE_GIF" = yes; then
14243
14244 cat >>confdefs.h <<\_ACEOF
14245 #define LIBGIF -lungif
14246 _ACEOF
14247
14248 ac_gif_lib_name="-lungif"
14249 fi
14250 fi
14251
14252 if test "${HAVE_GIF}" = "yes"; then
14253
14254 cat >>confdefs.h <<\_ACEOF
14255 #define HAVE_GIF 1
14256 _ACEOF
14257
14258 fi
14259 fi
14260
14261 if test "${HAVE_X11}" = "yes"; then
14262 MISSING=""
14263 WITH_NO=""
14264 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14265 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14266 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14267 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14268 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14269 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14270 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14271 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14272 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14273 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14274
14275 if test "X${MISSING}" != X; then
14276 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14277 $MISSING
14278 Maybe some development libraries/packages are missing?
14279 If you don't want to link with them give
14280 $WITH_NO
14281 as options to configure" >&5
14282 echo "$as_me: error: The following required libraries were not found:
14283 $MISSING
14284 Maybe some development libraries/packages are missing?
14285 If you don't want to link with them give
14286 $WITH_NO
14287 as options to configure" >&2;}
14288 { (exit 1); exit 1; }; }
14289 fi
14290 fi
14291
14292 ### Use -lgpm if available, unless `--with-gpm=no'.
14293 HAVE_GPM=no
14294 if test "${with_gpm}" != "no"; then
14295 if test "${ac_cv_header_gpm_h+set}" = set; then
14296 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14297 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14298 if test "${ac_cv_header_gpm_h+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 fi
14301 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14302 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14303 else
14304 # Is the header compilable?
14305 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14306 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14307 cat >conftest.$ac_ext <<_ACEOF
14308 /* confdefs.h. */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 $ac_includes_default
14314 #include <gpm.h>
14315 _ACEOF
14316 rm -f conftest.$ac_objext
14317 if { (ac_try="$ac_compile"
14318 case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_compile") 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest.$ac_objext; then
14333 ac_header_compiler=yes
14334 else
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14337
14338 ac_header_compiler=no
14339 fi
14340
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14343 echo "${ECHO_T}$ac_header_compiler" >&6; }
14344
14345 # Is the header present?
14346 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14347 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h. */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 #include <gpm.h>
14355 _ACEOF
14356 if { (ac_try="$ac_cpp conftest.$ac_ext"
14357 case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14360 esac
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14363 ac_status=$?
14364 grep -v '^ *+' conftest.er1 >conftest.err
14365 rm -f conftest.er1
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } >/dev/null && {
14369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14370 test ! -s conftest.err
14371 }; then
14372 ac_header_preproc=yes
14373 else
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14376
14377 ac_header_preproc=no
14378 fi
14379
14380 rm -f conftest.err conftest.$ac_ext
14381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14382 echo "${ECHO_T}$ac_header_preproc" >&6; }
14383
14384 # So? What about this header?
14385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14386 yes:no: )
14387 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14388 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14390 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14391 ac_header_preproc=yes
14392 ;;
14393 no:yes:* )
14394 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14395 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14397 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14398 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14399 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14400 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14401 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14402 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14403 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14405 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14406
14407 ;;
14408 esac
14409 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14410 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14411 if test "${ac_cv_header_gpm_h+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 else
14414 ac_cv_header_gpm_h=$ac_header_preproc
14415 fi
14416 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14417 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14418
14419 fi
14420 if test $ac_cv_header_gpm_h = yes; then
14421 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14422 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14423 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 else
14426 ac_check_lib_save_LIBS=$LIBS
14427 LIBS="-lgpm $LIBS"
14428 cat >conftest.$ac_ext <<_ACEOF
14429 /* confdefs.h. */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h. */
14434
14435 /* Override any GCC internal prototype to avoid an error.
14436 Use char because int might match the return type of a GCC
14437 builtin and then its argument prototype would still apply. */
14438 #ifdef __cplusplus
14439 extern "C"
14440 #endif
14441 char Gpm_Open ();
14442 int
14443 main ()
14444 {
14445 return Gpm_Open ();
14446 ;
14447 return 0;
14448 }
14449 _ACEOF
14450 rm -f conftest.$ac_objext conftest$ac_exeext
14451 if { (ac_try="$ac_link"
14452 case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14455 esac
14456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_link") 2>conftest.er1
14458 ac_status=$?
14459 grep -v '^ *+' conftest.er1 >conftest.err
14460 rm -f conftest.er1
14461 cat conftest.err >&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && {
14464 test -z "$ac_c_werror_flag" ||
14465 test ! -s conftest.err
14466 } && test -s conftest$ac_exeext &&
14467 $as_test_x conftest$ac_exeext; then
14468 ac_cv_lib_gpm_Gpm_Open=yes
14469 else
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ac_cv_lib_gpm_Gpm_Open=no
14474 fi
14475
14476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14477 conftest$ac_exeext conftest.$ac_ext
14478 LIBS=$ac_check_lib_save_LIBS
14479 fi
14480 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14481 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14482 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14483 HAVE_GPM=yes
14484 fi
14485
14486 fi
14487
14488
14489 fi
14490
14491 if test "${HAVE_GPM}" = "yes"; then
14492
14493 cat >>confdefs.h <<\_ACEOF
14494 #define HAVE_GPM 1
14495 _ACEOF
14496
14497 fi
14498
14499 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14500 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14501 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14502 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14504 fi
14505 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14506 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14507 else
14508 # Is the header compilable?
14509 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14510 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14511 cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h. */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 $ac_includes_default
14518 #include <malloc/malloc.h>
14519 _ACEOF
14520 rm -f conftest.$ac_objext
14521 if { (ac_try="$ac_compile"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_compile") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } && {
14534 test -z "$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 } && test -s conftest.$ac_objext; then
14537 ac_header_compiler=yes
14538 else
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_header_compiler=no
14543 fi
14544
14545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14547 echo "${ECHO_T}$ac_header_compiler" >&6; }
14548
14549 # Is the header present?
14550 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14551 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14552 cat >conftest.$ac_ext <<_ACEOF
14553 /* confdefs.h. */
14554 _ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14558 #include <malloc/malloc.h>
14559 _ACEOF
14560 if { (ac_try="$ac_cpp conftest.$ac_ext"
14561 case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14567 ac_status=$?
14568 grep -v '^ *+' conftest.er1 >conftest.err
14569 rm -f conftest.er1
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } >/dev/null && {
14573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14574 test ! -s conftest.err
14575 }; then
14576 ac_header_preproc=yes
14577 else
14578 echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14580
14581 ac_header_preproc=no
14582 fi
14583
14584 rm -f conftest.err conftest.$ac_ext
14585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14586 echo "${ECHO_T}$ac_header_preproc" >&6; }
14587
14588 # So? What about this header?
14589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14590 yes:no: )
14591 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14592 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14594 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14595 ac_header_preproc=yes
14596 ;;
14597 no:yes:* )
14598 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14599 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14601 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14603 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14605 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14607 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14609 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14610
14611 ;;
14612 esac
14613 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14614 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14615 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14619 fi
14620 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14621 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14622
14623 fi
14624 if test $ac_cv_header_malloc_malloc_h = yes; then
14625
14626 cat >>confdefs.h <<\_ACEOF
14627 #define HAVE_MALLOC_MALLOC_H 1
14628 _ACEOF
14629
14630 fi
14631
14632
14633
14634 ### Use Mac OS X Carbon API to implement GUI.
14635 if test "${HAVE_CARBON}" = "yes"; then
14636
14637 cat >>confdefs.h <<\_ACEOF
14638 #define HAVE_CARBON 1
14639 _ACEOF
14640
14641 ## Specify the install directory
14642 carbon_appdir=
14643 if test "${carbon_appdir_x}" != ""; then
14644 case ${carbon_appdir_x} in
14645 y | ye | yes) carbon_appdir=/Applications ;;
14646 * ) carbon_appdir=${carbon_appdir_x} ;;
14647 esac
14648 fi
14649 # We also have mouse menus.
14650 HAVE_MENUS=yes
14651 fi
14652
14653 ### Use session management (-lSM -lICE) if available
14654 HAVE_X_SM=no
14655 if test "${HAVE_X11}" = "yes"; then
14656 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14657 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14658 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14659 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 fi
14662 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14663 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14664 else
14665 # Is the header compilable?
14666 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14667 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14668 cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h. */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 $ac_includes_default
14675 #include <X11/SM/SMlib.h>
14676 _ACEOF
14677 rm -f conftest.$ac_objext
14678 if { (ac_try="$ac_compile"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_compile") 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } && {
14691 test -z "$ac_c_werror_flag" ||
14692 test ! -s conftest.err
14693 } && test -s conftest.$ac_objext; then
14694 ac_header_compiler=yes
14695 else
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699 ac_header_compiler=no
14700 fi
14701
14702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14704 echo "${ECHO_T}$ac_header_compiler" >&6; }
14705
14706 # Is the header present?
14707 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14708 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14709 cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h. */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14715 #include <X11/SM/SMlib.h>
14716 _ACEOF
14717 if { (ac_try="$ac_cpp conftest.$ac_ext"
14718 case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721 esac
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } >/dev/null && {
14730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14732 }; then
14733 ac_header_preproc=yes
14734 else
14735 echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14737
14738 ac_header_preproc=no
14739 fi
14740
14741 rm -f conftest.err conftest.$ac_ext
14742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14743 echo "${ECHO_T}$ac_header_preproc" >&6; }
14744
14745 # So? What about this header?
14746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14747 yes:no: )
14748 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14749 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14751 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14752 ac_header_preproc=yes
14753 ;;
14754 no:yes:* )
14755 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14756 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14757 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14758 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14760 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14762 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14764 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14766 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14767
14768 ;;
14769 esac
14770 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14771 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14772 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14776 fi
14777 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14778 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14779
14780 fi
14781 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14782 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14783 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14784 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787 ac_check_lib_save_LIBS=$LIBS
14788 LIBS="-lSM -lICE $LIBS"
14789 cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h. */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795
14796 /* Override any GCC internal prototype to avoid an error.
14797 Use char because int might match the return type of a GCC
14798 builtin and then its argument prototype would still apply. */
14799 #ifdef __cplusplus
14800 extern "C"
14801 #endif
14802 char SmcOpenConnection ();
14803 int
14804 main ()
14805 {
14806 return SmcOpenConnection ();
14807 ;
14808 return 0;
14809 }
14810 _ACEOF
14811 rm -f conftest.$ac_objext conftest$ac_exeext
14812 if { (ac_try="$ac_link"
14813 case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14816 esac
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_link") 2>conftest.er1
14819 ac_status=$?
14820 grep -v '^ *+' conftest.er1 >conftest.err
14821 rm -f conftest.er1
14822 cat conftest.err >&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } && {
14825 test -z "$ac_c_werror_flag" ||
14826 test ! -s conftest.err
14827 } && test -s conftest$ac_exeext &&
14828 $as_test_x conftest$ac_exeext; then
14829 ac_cv_lib_SM_SmcOpenConnection=yes
14830 else
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834 ac_cv_lib_SM_SmcOpenConnection=no
14835 fi
14836
14837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14838 conftest$ac_exeext conftest.$ac_ext
14839 LIBS=$ac_check_lib_save_LIBS
14840 fi
14841 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14842 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14843 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14844 HAVE_X_SM=yes
14845 fi
14846
14847 fi
14848
14849
14850
14851 if test "${HAVE_X_SM}" = "yes"; then
14852
14853 cat >>confdefs.h <<\_ACEOF
14854 #define HAVE_X_SM 1
14855 _ACEOF
14856
14857 case "$LIBS" in
14858 *-lSM*) ;;
14859 *) LIBS="-lSM -lICE $LIBS" ;;
14860 esac
14861 fi
14862 fi
14863
14864 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14865 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14866 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14867 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14868 echo $ECHO_N "(cached) $ECHO_C" >&6
14869 else
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h. */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 #include <netdb.h>
14877 int
14878 main ()
14879 {
14880 return h_errno;
14881 ;
14882 return 0;
14883 }
14884 _ACEOF
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (ac_try="$ac_link"
14887 case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890 esac
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_link") 2>conftest.er1
14893 ac_status=$?
14894 grep -v '^ *+' conftest.er1 >conftest.err
14895 rm -f conftest.er1
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } && {
14899 test -z "$ac_c_werror_flag" ||
14900 test ! -s conftest.err
14901 } && test -s conftest$ac_exeext &&
14902 $as_test_x conftest$ac_exeext; then
14903 emacs_cv_netdb_declares_h_errno=yes
14904 else
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14907
14908 emacs_cv_netdb_declares_h_errno=no
14909 fi
14910
14911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14912 conftest$ac_exeext conftest.$ac_ext
14913 fi
14914 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14915 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14916 if test $emacs_cv_netdb_declares_h_errno = yes; then
14917
14918 cat >>confdefs.h <<\_ACEOF
14919 #define HAVE_H_ERRNO 1
14920 _ACEOF
14921
14922 fi
14923
14924 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14925 # for constant arguments. Useless!
14926 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14927 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14928 if test "${ac_cv_working_alloca_h+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h. */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 #include <alloca.h>
14938 int
14939 main ()
14940 {
14941 char *p = (char *) alloca (2 * sizeof (int));
14942 if (p) return 0;
14943 ;
14944 return 0;
14945 }
14946 _ACEOF
14947 rm -f conftest.$ac_objext conftest$ac_exeext
14948 if { (ac_try="$ac_link"
14949 case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14952 esac
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_link") 2>conftest.er1
14955 ac_status=$?
14956 grep -v '^ *+' conftest.er1 >conftest.err
14957 rm -f conftest.er1
14958 cat conftest.err >&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } && {
14961 test -z "$ac_c_werror_flag" ||
14962 test ! -s conftest.err
14963 } && test -s conftest$ac_exeext &&
14964 $as_test_x conftest$ac_exeext; then
14965 ac_cv_working_alloca_h=yes
14966 else
14967 echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14969
14970 ac_cv_working_alloca_h=no
14971 fi
14972
14973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14974 conftest$ac_exeext conftest.$ac_ext
14975 fi
14976 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14977 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14978 if test $ac_cv_working_alloca_h = yes; then
14979
14980 cat >>confdefs.h <<\_ACEOF
14981 #define HAVE_ALLOCA_H 1
14982 _ACEOF
14983
14984 fi
14985
14986 { echo "$as_me:$LINENO: checking for alloca" >&5
14987 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14988 if test "${ac_cv_func_alloca_works+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h. */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 #ifdef __GNUC__
14998 # define alloca __builtin_alloca
14999 #else
15000 # ifdef _MSC_VER
15001 # include <malloc.h>
15002 # define alloca _alloca
15003 # else
15004 # ifdef HAVE_ALLOCA_H
15005 # include <alloca.h>
15006 # else
15007 # ifdef _AIX
15008 #pragma alloca
15009 # else
15010 # ifndef alloca /* predefined by HP cc +Olibcalls */
15011 char *alloca ();
15012 # endif
15013 # endif
15014 # endif
15015 # endif
15016 #endif
15017
15018 int
15019 main ()
15020 {
15021 char *p = (char *) alloca (1);
15022 if (p) return 0;
15023 ;
15024 return 0;
15025 }
15026 _ACEOF
15027 rm -f conftest.$ac_objext conftest$ac_exeext
15028 if { (ac_try="$ac_link"
15029 case "(($ac_try" in
15030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15032 esac
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034 (eval "$ac_link") 2>conftest.er1
15035 ac_status=$?
15036 grep -v '^ *+' conftest.er1 >conftest.err
15037 rm -f conftest.er1
15038 cat conftest.err >&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } && {
15041 test -z "$ac_c_werror_flag" ||
15042 test ! -s conftest.err
15043 } && test -s conftest$ac_exeext &&
15044 $as_test_x conftest$ac_exeext; then
15045 ac_cv_func_alloca_works=yes
15046 else
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15049
15050 ac_cv_func_alloca_works=no
15051 fi
15052
15053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15054 conftest$ac_exeext conftest.$ac_ext
15055 fi
15056 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15057 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15058
15059 if test $ac_cv_func_alloca_works = yes; then
15060
15061 cat >>confdefs.h <<\_ACEOF
15062 #define HAVE_ALLOCA 1
15063 _ACEOF
15064
15065 else
15066 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15067 # that cause trouble. Some versions do not even contain alloca or
15068 # contain a buggy version. If you still want to use their alloca,
15069 # use ar to extract alloca.o from them instead of compiling alloca.c.
15070
15071 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15072
15073 cat >>confdefs.h <<\_ACEOF
15074 #define C_ALLOCA 1
15075 _ACEOF
15076
15077
15078 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15079 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15080 if test "${ac_cv_os_cray+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h. */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 #if defined CRAY && ! defined CRAY2
15090 webecray
15091 #else
15092 wenotbecray
15093 #endif
15094
15095 _ACEOF
15096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15097 $EGREP "webecray" >/dev/null 2>&1; then
15098 ac_cv_os_cray=yes
15099 else
15100 ac_cv_os_cray=no
15101 fi
15102 rm -f conftest*
15103
15104 fi
15105 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15106 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15107 if test $ac_cv_os_cray = yes; then
15108 for ac_func in _getb67 GETB67 getb67; do
15109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 else
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h. */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15123 #define $ac_func innocuous_$ac_func
15124
15125 /* System header to define __stub macros and hopefully few prototypes,
15126 which can conflict with char $ac_func (); below.
15127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15128 <limits.h> exists even on freestanding compilers. */
15129
15130 #ifdef __STDC__
15131 # include <limits.h>
15132 #else
15133 # include <assert.h>
15134 #endif
15135
15136 #undef $ac_func
15137
15138 /* Override any GCC internal prototype to avoid an error.
15139 Use char because int might match the return type of a GCC
15140 builtin and then its argument prototype would still apply. */
15141 #ifdef __cplusplus
15142 extern "C"
15143 #endif
15144 char $ac_func ();
15145 /* The GNU C library defines this for functions which it implements
15146 to always fail with ENOSYS. Some functions are actually named
15147 something starting with __ and the normal name is an alias. */
15148 #if defined __stub_$ac_func || defined __stub___$ac_func
15149 choke me
15150 #endif
15151
15152 int
15153 main ()
15154 {
15155 return $ac_func ();
15156 ;
15157 return 0;
15158 }
15159 _ACEOF
15160 rm -f conftest.$ac_objext conftest$ac_exeext
15161 if { (ac_try="$ac_link"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15165 esac
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_link") 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest$ac_exeext &&
15177 $as_test_x conftest$ac_exeext; then
15178 eval "$as_ac_var=yes"
15179 else
15180 echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15182
15183 eval "$as_ac_var=no"
15184 fi
15185
15186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15187 conftest$ac_exeext conftest.$ac_ext
15188 fi
15189 ac_res=`eval echo '${'$as_ac_var'}'`
15190 { echo "$as_me:$LINENO: result: $ac_res" >&5
15191 echo "${ECHO_T}$ac_res" >&6; }
15192 if test `eval echo '${'$as_ac_var'}'` = yes; then
15193
15194 cat >>confdefs.h <<_ACEOF
15195 #define CRAY_STACKSEG_END $ac_func
15196 _ACEOF
15197
15198 break
15199 fi
15200
15201 done
15202 fi
15203
15204 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15205 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15206 if test "${ac_cv_c_stack_direction+set}" = set; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15208 else
15209 if test "$cross_compiling" = yes; then
15210 ac_cv_c_stack_direction=0
15211 else
15212 cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h. */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 $ac_includes_default
15219 int
15220 find_stack_direction ()
15221 {
15222 static char *addr = 0;
15223 auto char dummy;
15224 if (addr == 0)
15225 {
15226 addr = &dummy;
15227 return find_stack_direction ();
15228 }
15229 else
15230 return (&dummy > addr) ? 1 : -1;
15231 }
15232
15233 int
15234 main ()
15235 {
15236 return find_stack_direction () < 0;
15237 }
15238 _ACEOF
15239 rm -f conftest$ac_exeext
15240 if { (ac_try="$ac_link"
15241 case "(($ac_try" in
15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15244 esac
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_link") 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_cv_c_stack_direction=1
15260 else
15261 echo "$as_me: program exited with status $ac_status" >&5
15262 echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15264
15265 ( exit $ac_status )
15266 ac_cv_c_stack_direction=-1
15267 fi
15268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15269 fi
15270
15271
15272 fi
15273 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15274 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15275
15276 cat >>confdefs.h <<_ACEOF
15277 #define STACK_DIRECTION $ac_cv_c_stack_direction
15278 _ACEOF
15279
15280
15281 fi
15282
15283
15284 if test x"$ac_cv_func_alloca_works" != xyes; then
15285 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15286 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15287 { (exit 1); exit 1; }; }
15288 fi
15289
15290 # fmod, logb, and frexp are found in -lm on most systems.
15291 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15292
15293 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15294 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15295 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298 ac_check_lib_save_LIBS=$LIBS
15299 LIBS="-lm $LIBS"
15300 cat >conftest.$ac_ext <<_ACEOF
15301 /* confdefs.h. */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15306
15307 /* Override any GCC internal prototype to avoid an error.
15308 Use char because int might match the return type of a GCC
15309 builtin and then its argument prototype would still apply. */
15310 #ifdef __cplusplus
15311 extern "C"
15312 #endif
15313 char sqrt ();
15314 int
15315 main ()
15316 {
15317 return sqrt ();
15318 ;
15319 return 0;
15320 }
15321 _ACEOF
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (ac_try="$ac_link"
15324 case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15327 esac
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_link") 2>conftest.er1
15330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } && {
15336 test -z "$ac_c_werror_flag" ||
15337 test ! -s conftest.err
15338 } && test -s conftest$ac_exeext &&
15339 $as_test_x conftest$ac_exeext; then
15340 ac_cv_lib_m_sqrt=yes
15341 else
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15344
15345 ac_cv_lib_m_sqrt=no
15346 fi
15347
15348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15349 conftest$ac_exeext conftest.$ac_ext
15350 LIBS=$ac_check_lib_save_LIBS
15351 fi
15352 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15353 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15354 if test $ac_cv_lib_m_sqrt = yes; then
15355 cat >>confdefs.h <<_ACEOF
15356 #define HAVE_LIBM 1
15357 _ACEOF
15358
15359 LIBS="-lm $LIBS"
15360
15361 fi
15362
15363
15364 # Check for mail-locking functions in a "mail" library. Probably this should
15365 # have the same check as for liblockfile below.
15366
15367 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15368 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15369 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372 ac_check_lib_save_LIBS=$LIBS
15373 LIBS="-lmail $LIBS"
15374 cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h. */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15380
15381 /* Override any GCC internal prototype to avoid an error.
15382 Use char because int might match the return type of a GCC
15383 builtin and then its argument prototype would still apply. */
15384 #ifdef __cplusplus
15385 extern "C"
15386 #endif
15387 char maillock ();
15388 int
15389 main ()
15390 {
15391 return maillock ();
15392 ;
15393 return 0;
15394 }
15395 _ACEOF
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_link") 2>conftest.er1
15404 ac_status=$?
15405 grep -v '^ *+' conftest.er1 >conftest.err
15406 rm -f conftest.er1
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } && {
15410 test -z "$ac_c_werror_flag" ||
15411 test ! -s conftest.err
15412 } && test -s conftest$ac_exeext &&
15413 $as_test_x conftest$ac_exeext; then
15414 ac_cv_lib_mail_maillock=yes
15415 else
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15418
15419 ac_cv_lib_mail_maillock=no
15420 fi
15421
15422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15425 fi
15426 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15427 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15428 if test $ac_cv_lib_mail_maillock = yes; then
15429 cat >>confdefs.h <<_ACEOF
15430 #define HAVE_LIBMAIL 1
15431 _ACEOF
15432
15433 LIBS="-lmail $LIBS"
15434
15435 fi
15436
15437
15438 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15439 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15440 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15442 else
15443 ac_check_lib_save_LIBS=$LIBS
15444 LIBS="-llockfile $LIBS"
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h. */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451
15452 /* Override any GCC internal prototype to avoid an error.
15453 Use char because int might match the return type of a GCC
15454 builtin and then its argument prototype would still apply. */
15455 #ifdef __cplusplus
15456 extern "C"
15457 #endif
15458 char maillock ();
15459 int
15460 main ()
15461 {
15462 return maillock ();
15463 ;
15464 return 0;
15465 }
15466 _ACEOF
15467 rm -f conftest.$ac_objext conftest$ac_exeext
15468 if { (ac_try="$ac_link"
15469 case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_link") 2>conftest.er1
15475 ac_status=$?
15476 grep -v '^ *+' conftest.er1 >conftest.err
15477 rm -f conftest.er1
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } && {
15481 test -z "$ac_c_werror_flag" ||
15482 test ! -s conftest.err
15483 } && test -s conftest$ac_exeext &&
15484 $as_test_x conftest$ac_exeext; then
15485 ac_cv_lib_lockfile_maillock=yes
15486 else
15487 echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15489
15490 ac_cv_lib_lockfile_maillock=no
15491 fi
15492
15493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15494 conftest$ac_exeext conftest.$ac_ext
15495 LIBS=$ac_check_lib_save_LIBS
15496 fi
15497 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15498 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15499 if test $ac_cv_lib_lockfile_maillock = yes; then
15500 cat >>confdefs.h <<_ACEOF
15501 #define HAVE_LIBLOCKFILE 1
15502 _ACEOF
15503
15504 LIBS="-llockfile $LIBS"
15505
15506 fi
15507
15508 # If we have the shared liblockfile, assume we must use it for mail
15509 # locking (e.g. Debian). If we couldn't link against liblockfile
15510 # (no liblockfile.a installed), ensure that we don't need to.
15511 if test "$ac_cv_lib_lockfile_maillock" = no; then
15512 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15513 set dummy liblockfile.so; ac_word=$2
15514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15516 if test "${ac_cv_prog_liblockfile+set}" = set; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 else
15519 if test -n "$liblockfile"; then
15520 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15521 else
15522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15523 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15524 for as_dir in $as_dummy
15525 do
15526 IFS=$as_save_IFS
15527 test -z "$as_dir" && as_dir=.
15528 for ac_exec_ext in '' $ac_executable_extensions; do
15529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15530 ac_cv_prog_liblockfile="yes"
15531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15532 break 2
15533 fi
15534 done
15535 done
15536 IFS=$as_save_IFS
15537
15538 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15539 fi
15540 fi
15541 liblockfile=$ac_cv_prog_liblockfile
15542 if test -n "$liblockfile"; then
15543 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15544 echo "${ECHO_T}$liblockfile" >&6; }
15545 else
15546 { echo "$as_me:$LINENO: result: no" >&5
15547 echo "${ECHO_T}no" >&6; }
15548 fi
15549
15550
15551 if test $ac_cv_prog_liblockfile = yes; then
15552 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15553 This probably means that movemail could lose mail.
15554 There may be a \`development' package to install containing liblockfile." >&5
15555 echo "$as_me: error: Shared liblockfile found but can't link against it.
15556 This probably means that movemail could lose mail.
15557 There may be a \`development' package to install containing liblockfile." >&2;}
15558 { (exit 1); exit 1; }; }
15559 else :
15560 fi
15561 fi
15562
15563 for ac_func in touchlock
15564 do
15565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571 cat >conftest.$ac_ext <<_ACEOF
15572 /* confdefs.h. */
15573 _ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h. */
15577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15579 #define $ac_func innocuous_$ac_func
15580
15581 /* System header to define __stub macros and hopefully few prototypes,
15582 which can conflict with char $ac_func (); below.
15583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15584 <limits.h> exists even on freestanding compilers. */
15585
15586 #ifdef __STDC__
15587 # include <limits.h>
15588 #else
15589 # include <assert.h>
15590 #endif
15591
15592 #undef $ac_func
15593
15594 /* Override any GCC internal prototype to avoid an error.
15595 Use char because int might match the return type of a GCC
15596 builtin and then its argument prototype would still apply. */
15597 #ifdef __cplusplus
15598 extern "C"
15599 #endif
15600 char $ac_func ();
15601 /* The GNU C library defines this for functions which it implements
15602 to always fail with ENOSYS. Some functions are actually named
15603 something starting with __ and the normal name is an alias. */
15604 #if defined __stub_$ac_func || defined __stub___$ac_func
15605 choke me
15606 #endif
15607
15608 int
15609 main ()
15610 {
15611 return $ac_func ();
15612 ;
15613 return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext 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>conftest.er1
15624 ac_status=$?
15625 grep -v '^ *+' conftest.er1 >conftest.err
15626 rm -f conftest.er1
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } && {
15630 test -z "$ac_c_werror_flag" ||
15631 test ! -s conftest.err
15632 } && test -s conftest$ac_exeext &&
15633 $as_test_x conftest$ac_exeext; then
15634 eval "$as_ac_var=yes"
15635 else
15636 echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15638
15639 eval "$as_ac_var=no"
15640 fi
15641
15642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15643 conftest$ac_exeext conftest.$ac_ext
15644 fi
15645 ac_res=`eval echo '${'$as_ac_var'}'`
15646 { echo "$as_me:$LINENO: result: $ac_res" >&5
15647 echo "${ECHO_T}$ac_res" >&6; }
15648 if test `eval echo '${'$as_ac_var'}'` = yes; then
15649 cat >>confdefs.h <<_ACEOF
15650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15651 _ACEOF
15652
15653 fi
15654 done
15655
15656
15657 for ac_header in maillock.h
15658 do
15659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 fi
15666 ac_res=`eval echo '${'$as_ac_Header'}'`
15667 { echo "$as_me:$LINENO: result: $ac_res" >&5
15668 echo "${ECHO_T}$ac_res" >&6; }
15669 else
15670 # Is the header compilable?
15671 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15673 cat >conftest.$ac_ext <<_ACEOF
15674 /* confdefs.h. */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679 $ac_includes_default
15680 #include <$ac_header>
15681 _ACEOF
15682 rm -f conftest.$ac_objext
15683 if { (ac_try="$ac_compile"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_compile") 2>conftest.er1
15690 ac_status=$?
15691 grep -v '^ *+' conftest.er1 >conftest.err
15692 rm -f conftest.er1
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } && {
15696 test -z "$ac_c_werror_flag" ||
15697 test ! -s conftest.err
15698 } && test -s conftest.$ac_objext; then
15699 ac_header_compiler=yes
15700 else
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 ac_header_compiler=no
15705 fi
15706
15707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15709 echo "${ECHO_T}$ac_header_compiler" >&6; }
15710
15711 # Is the header present?
15712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 #include <$ac_header>
15721 _ACEOF
15722 if { (ac_try="$ac_cpp conftest.$ac_ext"
15723 case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15726 esac
15727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15729 ac_status=$?
15730 grep -v '^ *+' conftest.er1 >conftest.err
15731 rm -f conftest.er1
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } >/dev/null && {
15735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15736 test ! -s conftest.err
15737 }; then
15738 ac_header_preproc=yes
15739 else
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15742
15743 ac_header_preproc=no
15744 fi
15745
15746 rm -f conftest.err conftest.$ac_ext
15747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15748 echo "${ECHO_T}$ac_header_preproc" >&6; }
15749
15750 # So? What about this header?
15751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15752 yes:no: )
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15757 ac_header_preproc=yes
15758 ;;
15759 no:yes:* )
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15772
15773 ;;
15774 esac
15775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780 eval "$as_ac_Header=\$ac_header_preproc"
15781 fi
15782 ac_res=`eval echo '${'$as_ac_Header'}'`
15783 { echo "$as_me:$LINENO: result: $ac_res" >&5
15784 echo "${ECHO_T}$ac_res" >&6; }
15785
15786 fi
15787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15788 cat >>confdefs.h <<_ACEOF
15789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15790 _ACEOF
15791
15792 fi
15793
15794 done
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865 for ac_func in gethostname getdomainname dup2 \
15866 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15867 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15868 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15869 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15870 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15871 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15872 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15873 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15874 do
15875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h. */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15889 #define $ac_func innocuous_$ac_func
15890
15891 /* System header to define __stub macros and hopefully few prototypes,
15892 which can conflict with char $ac_func (); below.
15893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15894 <limits.h> exists even on freestanding compilers. */
15895
15896 #ifdef __STDC__
15897 # include <limits.h>
15898 #else
15899 # include <assert.h>
15900 #endif
15901
15902 #undef $ac_func
15903
15904 /* Override any GCC internal prototype to avoid an error.
15905 Use char because int might match the return type of a GCC
15906 builtin and then its argument prototype would still apply. */
15907 #ifdef __cplusplus
15908 extern "C"
15909 #endif
15910 char $ac_func ();
15911 /* The GNU C library defines this for functions which it implements
15912 to always fail with ENOSYS. Some functions are actually named
15913 something starting with __ and the normal name is an alias. */
15914 #if defined __stub_$ac_func || defined __stub___$ac_func
15915 choke me
15916 #endif
15917
15918 int
15919 main ()
15920 {
15921 return $ac_func ();
15922 ;
15923 return 0;
15924 }
15925 _ACEOF
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (ac_try="$ac_link"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15931 esac
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_link") 2>conftest.er1
15934 ac_status=$?
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } && {
15940 test -z "$ac_c_werror_flag" ||
15941 test ! -s conftest.err
15942 } && test -s conftest$ac_exeext &&
15943 $as_test_x conftest$ac_exeext; then
15944 eval "$as_ac_var=yes"
15945 else
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949 eval "$as_ac_var=no"
15950 fi
15951
15952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15953 conftest$ac_exeext conftest.$ac_ext
15954 fi
15955 ac_res=`eval echo '${'$as_ac_var'}'`
15956 { echo "$as_me:$LINENO: result: $ac_res" >&5
15957 echo "${ECHO_T}$ac_res" >&6; }
15958 if test `eval echo '${'$as_ac_var'}'` = yes; then
15959 cat >>confdefs.h <<_ACEOF
15960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15961 _ACEOF
15962
15963 fi
15964 done
15965
15966
15967
15968 for ac_header in sys/un.h
15969 do
15970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15976 fi
15977 ac_res=`eval echo '${'$as_ac_Header'}'`
15978 { echo "$as_me:$LINENO: result: $ac_res" >&5
15979 echo "${ECHO_T}$ac_res" >&6; }
15980 else
15981 # Is the header compilable?
15982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $ac_includes_default
15991 #include <$ac_header>
15992 _ACEOF
15993 rm -f conftest.$ac_objext
15994 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
16010 ac_header_compiler=yes
16011 else
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015 ac_header_compiler=no
16016 fi
16017
16018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16020 echo "${ECHO_T}$ac_header_compiler" >&6; }
16021
16022 # Is the header present?
16023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16025 cat >conftest.$ac_ext <<_ACEOF
16026 /* confdefs.h. */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031 #include <$ac_header>
16032 _ACEOF
16033 if { (ac_try="$ac_cpp conftest.$ac_ext"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16037 esac
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } >/dev/null && {
16046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16047 test ! -s conftest.err
16048 }; then
16049 ac_header_preproc=yes
16050 else
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054 ac_header_preproc=no
16055 fi
16056
16057 rm -f conftest.err conftest.$ac_ext
16058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16059 echo "${ECHO_T}$ac_header_preproc" >&6; }
16060
16061 # So? What about this header?
16062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16063 yes:no: )
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16068 ac_header_preproc=yes
16069 ;;
16070 no:yes:* )
16071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16083
16084 ;;
16085 esac
16086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 else
16091 eval "$as_ac_Header=\$ac_header_preproc"
16092 fi
16093 ac_res=`eval echo '${'$as_ac_Header'}'`
16094 { echo "$as_me:$LINENO: result: $ac_res" >&5
16095 echo "${ECHO_T}$ac_res" >&6; }
16096
16097 fi
16098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16099 cat >>confdefs.h <<_ACEOF
16100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16101 _ACEOF
16102
16103 fi
16104
16105 done
16106
16107
16108
16109
16110
16111
16112 for ac_header in $ac_header_list
16113 do
16114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 fi
16121 ac_res=`eval echo '${'$as_ac_Header'}'`
16122 { echo "$as_me:$LINENO: result: $ac_res" >&5
16123 echo "${ECHO_T}$ac_res" >&6; }
16124 else
16125 # Is the header compilable?
16126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16128 cat >conftest.$ac_ext <<_ACEOF
16129 /* confdefs.h. */
16130 _ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h. */
16134 $ac_includes_default
16135 #include <$ac_header>
16136 _ACEOF
16137 rm -f conftest.$ac_objext
16138 if { (ac_try="$ac_compile"
16139 case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16142 esac
16143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_compile") 2>conftest.er1
16145 ac_status=$?
16146 grep -v '^ *+' conftest.er1 >conftest.err
16147 rm -f conftest.er1
16148 cat conftest.err >&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } && {
16151 test -z "$ac_c_werror_flag" ||
16152 test ! -s conftest.err
16153 } && test -s conftest.$ac_objext; then
16154 ac_header_compiler=yes
16155 else
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159 ac_header_compiler=no
16160 fi
16161
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16164 echo "${ECHO_T}$ac_header_compiler" >&6; }
16165
16166 # Is the header present?
16167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16169 cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h. */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 #include <$ac_header>
16176 _ACEOF
16177 if { (ac_try="$ac_cpp conftest.$ac_ext"
16178 case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181 esac
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16184 ac_status=$?
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } >/dev/null && {
16190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16191 test ! -s conftest.err
16192 }; then
16193 ac_header_preproc=yes
16194 else
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198 ac_header_preproc=no
16199 fi
16200
16201 rm -f conftest.err conftest.$ac_ext
16202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16203 echo "${ECHO_T}$ac_header_preproc" >&6; }
16204
16205 # So? What about this header?
16206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16207 yes:no: )
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16212 ac_header_preproc=yes
16213 ;;
16214 no:yes:* )
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16227
16228 ;;
16229 esac
16230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16234 else
16235 eval "$as_ac_Header=\$ac_header_preproc"
16236 fi
16237 ac_res=`eval echo '${'$as_ac_Header'}'`
16238 { echo "$as_me:$LINENO: result: $ac_res" >&5
16239 echo "${ECHO_T}$ac_res" >&6; }
16240
16241 fi
16242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16243 cat >>confdefs.h <<_ACEOF
16244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16245 _ACEOF
16246
16247 fi
16248
16249 done
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259 for ac_func in $ac_func_list
16260 do
16261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267 cat >conftest.$ac_ext <<_ACEOF
16268 /* confdefs.h. */
16269 _ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16275 #define $ac_func innocuous_$ac_func
16276
16277 /* System header to define __stub macros and hopefully few prototypes,
16278 which can conflict with char $ac_func (); below.
16279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16280 <limits.h> exists even on freestanding compilers. */
16281
16282 #ifdef __STDC__
16283 # include <limits.h>
16284 #else
16285 # include <assert.h>
16286 #endif
16287
16288 #undef $ac_func
16289
16290 /* Override any GCC internal prototype to avoid an error.
16291 Use char because int might match the return type of a GCC
16292 builtin and then its argument prototype would still apply. */
16293 #ifdef __cplusplus
16294 extern "C"
16295 #endif
16296 char $ac_func ();
16297 /* The GNU C library defines this for functions which it implements
16298 to always fail with ENOSYS. Some functions are actually named
16299 something starting with __ and the normal name is an alias. */
16300 #if defined __stub_$ac_func || defined __stub___$ac_func
16301 choke me
16302 #endif
16303
16304 int
16305 main ()
16306 {
16307 return $ac_func ();
16308 ;
16309 return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (ac_try="$ac_link"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16317 esac
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_link") 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest$ac_exeext &&
16329 $as_test_x conftest$ac_exeext; then
16330 eval "$as_ac_var=yes"
16331 else
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 eval "$as_ac_var=no"
16336 fi
16337
16338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339 conftest$ac_exeext conftest.$ac_ext
16340 fi
16341 ac_res=`eval echo '${'$as_ac_var'}'`
16342 { echo "$as_me:$LINENO: result: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16344 if test `eval echo '${'$as_ac_var'}'` = yes; then
16345 cat >>confdefs.h <<_ACEOF
16346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16347 _ACEOF
16348
16349 fi
16350 done
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368 { echo "$as_me:$LINENO: checking for working mktime" >&5
16369 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16370 if test "${ac_cv_func_working_mktime+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373 if test "$cross_compiling" = yes; then
16374 ac_cv_func_working_mktime=no
16375 else
16376 cat >conftest.$ac_ext <<_ACEOF
16377 /* confdefs.h. */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16382 /* Test program from Paul Eggert and Tony Leneis. */
16383 #ifdef TIME_WITH_SYS_TIME
16384 # include <sys/time.h>
16385 # include <time.h>
16386 #else
16387 # ifdef HAVE_SYS_TIME_H
16388 # include <sys/time.h>
16389 # else
16390 # include <time.h>
16391 # endif
16392 #endif
16393
16394 #include <stdlib.h>
16395
16396 #ifdef HAVE_UNISTD_H
16397 # include <unistd.h>
16398 #endif
16399
16400 #ifndef HAVE_ALARM
16401 # define alarm(X) /* empty */
16402 #endif
16403
16404 /* Work around redefinition to rpl_putenv by other config tests. */
16405 #undef putenv
16406
16407 static time_t time_t_max;
16408 static time_t time_t_min;
16409
16410 /* Values we'll use to set the TZ environment variable. */
16411 static char *tz_strings[] = {
16412 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16413 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16414 };
16415 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16416
16417 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16418 Based on a problem report from Andreas Jaeger. */
16419 static int
16420 spring_forward_gap ()
16421 {
16422 /* glibc (up to about 1998-10-07) failed this test. */
16423 struct tm tm;
16424
16425 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16426 instead of "TZ=America/Vancouver" in order to detect the bug even
16427 on systems that don't support the Olson extension, or don't have the
16428 full zoneinfo tables installed. */
16429 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16430
16431 tm.tm_year = 98;
16432 tm.tm_mon = 3;
16433 tm.tm_mday = 5;
16434 tm.tm_hour = 2;
16435 tm.tm_min = 0;
16436 tm.tm_sec = 0;
16437 tm.tm_isdst = -1;
16438 return mktime (&tm) != (time_t) -1;
16439 }
16440
16441 static int
16442 mktime_test1 (now)
16443 time_t now;
16444 {
16445 struct tm *lt;
16446 return ! (lt = localtime (&now)) || mktime (lt) == now;
16447 }
16448
16449 static int
16450 mktime_test (now)
16451 time_t now;
16452 {
16453 return (mktime_test1 (now)
16454 && mktime_test1 ((time_t) (time_t_max - now))
16455 && mktime_test1 ((time_t) (time_t_min + now)));
16456 }
16457
16458 static int
16459 irix_6_4_bug ()
16460 {
16461 /* Based on code from Ariel Faigon. */
16462 struct tm tm;
16463 tm.tm_year = 96;
16464 tm.tm_mon = 3;
16465 tm.tm_mday = 0;
16466 tm.tm_hour = 0;
16467 tm.tm_min = 0;
16468 tm.tm_sec = 0;
16469 tm.tm_isdst = -1;
16470 mktime (&tm);
16471 return tm.tm_mon == 2 && tm.tm_mday == 31;
16472 }
16473
16474 static int
16475 bigtime_test (j)
16476 int j;
16477 {
16478 struct tm tm;
16479 time_t now;
16480 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16481 now = mktime (&tm);
16482 if (now != (time_t) -1)
16483 {
16484 struct tm *lt = localtime (&now);
16485 if (! (lt
16486 && lt->tm_year == tm.tm_year
16487 && lt->tm_mon == tm.tm_mon
16488 && lt->tm_mday == tm.tm_mday
16489 && lt->tm_hour == tm.tm_hour
16490 && lt->tm_min == tm.tm_min
16491 && lt->tm_sec == tm.tm_sec
16492 && lt->tm_yday == tm.tm_yday
16493 && lt->tm_wday == tm.tm_wday
16494 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16495 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16496 return 0;
16497 }
16498 return 1;
16499 }
16500
16501 static int
16502 year_2050_test ()
16503 {
16504 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16505 ignoring leap seconds. */
16506 unsigned long int answer = 2527315200UL;
16507
16508 struct tm tm;
16509 time_t t;
16510 tm.tm_year = 2050 - 1900;
16511 tm.tm_mon = 2 - 1;
16512 tm.tm_mday = 1;
16513 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16514 tm.tm_isdst = -1;
16515
16516 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16517 instead of "TZ=America/Vancouver" in order to detect the bug even
16518 on systems that don't support the Olson extension, or don't have the
16519 full zoneinfo tables installed. */
16520 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16521
16522 t = mktime (&tm);
16523
16524 /* Check that the result is either a failure, or close enough
16525 to the correct answer that we can assume the discrepancy is
16526 due to leap seconds. */
16527 return (t == (time_t) -1
16528 || (0 < t && answer - 120 <= t && t <= answer + 120));
16529 }
16530
16531 int
16532 main ()
16533 {
16534 time_t t, delta;
16535 int i, j;
16536
16537 /* This test makes some buggy mktime implementations loop.
16538 Give up after 60 seconds; a mktime slower than that
16539 isn't worth using anyway. */
16540 alarm (60);
16541
16542 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16543 continue;
16544 time_t_max--;
16545 if ((time_t) -1 < 0)
16546 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16547 continue;
16548 delta = time_t_max / 997; /* a suitable prime number */
16549 for (i = 0; i < N_STRINGS; i++)
16550 {
16551 if (tz_strings[i])
16552 putenv (tz_strings[i]);
16553
16554 for (t = 0; t <= time_t_max - delta; t += delta)
16555 if (! mktime_test (t))
16556 return 1;
16557 if (! (mktime_test ((time_t) 1)
16558 && mktime_test ((time_t) (60 * 60))
16559 && mktime_test ((time_t) (60 * 60 * 24))))
16560 return 1;
16561
16562 for (j = 1; 0 < j; j *= 2)
16563 if (! bigtime_test (j))
16564 return 1;
16565 if (! bigtime_test (j - 1))
16566 return 1;
16567 }
16568 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16569 }
16570 _ACEOF
16571 rm -f conftest$ac_exeext
16572 if { (ac_try="$ac_link"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_link") 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16582 { (case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16585 esac
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_try") 2>&5
16588 ac_status=$?
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16591 ac_cv_func_working_mktime=yes
16592 else
16593 echo "$as_me: program exited with status $ac_status" >&5
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16596
16597 ( exit $ac_status )
16598 ac_cv_func_working_mktime=no
16599 fi
16600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16601 fi
16602
16603
16604 fi
16605 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16606 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16607 if test $ac_cv_func_working_mktime = no; then
16608 case " $LIBOBJS " in
16609 *" mktime.$ac_objext "* ) ;;
16610 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16611 ;;
16612 esac
16613
16614 fi
16615
16616 if test "$ac_cv_func_working_mktime" = no; then
16617
16618 cat >>confdefs.h <<\_ACEOF
16619 #define BROKEN_MKTIME 1
16620 _ACEOF
16621
16622 fi
16623
16624 ac_have_func=no # yes means we've found a way to get the load average.
16625
16626 # Make sure getloadavg.c is where it belongs, at configure-time.
16627 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16628 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16629 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16630 { (exit 1); exit 1; }; }
16631
16632 ac_save_LIBS=$LIBS
16633
16634 # Check for getloadavg, but be sure not to touch the cache variable.
16635 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16636 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16637 if test "${ac_cv_func_getloadavg+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640 cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h. */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16648 #define getloadavg innocuous_getloadavg
16649
16650 /* System header to define __stub macros and hopefully few prototypes,
16651 which can conflict with char getloadavg (); below.
16652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16653 <limits.h> exists even on freestanding compilers. */
16654
16655 #ifdef __STDC__
16656 # include <limits.h>
16657 #else
16658 # include <assert.h>
16659 #endif
16660
16661 #undef getloadavg
16662
16663 /* Override any GCC internal prototype to avoid an error.
16664 Use char because int might match the return type of a GCC
16665 builtin and then its argument prototype would still apply. */
16666 #ifdef __cplusplus
16667 extern "C"
16668 #endif
16669 char getloadavg ();
16670 /* The GNU C library defines this for functions which it implements
16671 to always fail with ENOSYS. Some functions are actually named
16672 something starting with __ and the normal name is an alias. */
16673 #if defined __stub_getloadavg || defined __stub___getloadavg
16674 choke me
16675 #endif
16676
16677 int
16678 main ()
16679 {
16680 return getloadavg ();
16681 ;
16682 return 0;
16683 }
16684 _ACEOF
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (ac_try="$ac_link"
16687 case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16690 esac
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_link") 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } && {
16699 test -z "$ac_c_werror_flag" ||
16700 test ! -s conftest.err
16701 } && test -s conftest$ac_exeext &&
16702 $as_test_x conftest$ac_exeext; then
16703 ac_cv_func_getloadavg=yes
16704 else
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708 ac_cv_func_getloadavg=no
16709 fi
16710
16711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16712 conftest$ac_exeext conftest.$ac_ext
16713 fi
16714 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16715 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16716 if test $ac_cv_func_getloadavg = yes; then
16717 exit 0
16718 else
16719 exit 1
16720 fi
16721 ) && ac_have_func=yes
16722
16723 # On HPUX9, an unprivileged user can get load averages through this function.
16724
16725 for ac_func in pstat_getdynamic
16726 do
16727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16732 else
16733 cat >conftest.$ac_ext <<_ACEOF
16734 /* confdefs.h. */
16735 _ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16741 #define $ac_func innocuous_$ac_func
16742
16743 /* System header to define __stub macros and hopefully few prototypes,
16744 which can conflict with char $ac_func (); below.
16745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16746 <limits.h> exists even on freestanding compilers. */
16747
16748 #ifdef __STDC__
16749 # include <limits.h>
16750 #else
16751 # include <assert.h>
16752 #endif
16753
16754 #undef $ac_func
16755
16756 /* Override any GCC internal prototype to avoid an error.
16757 Use char because int might match the return type of a GCC
16758 builtin and then its argument prototype would still apply. */
16759 #ifdef __cplusplus
16760 extern "C"
16761 #endif
16762 char $ac_func ();
16763 /* The GNU C library defines this for functions which it implements
16764 to always fail with ENOSYS. Some functions are actually named
16765 something starting with __ and the normal name is an alias. */
16766 #if defined __stub_$ac_func || defined __stub___$ac_func
16767 choke me
16768 #endif
16769
16770 int
16771 main ()
16772 {
16773 return $ac_func ();
16774 ;
16775 return 0;
16776 }
16777 _ACEOF
16778 rm -f conftest.$ac_objext conftest$ac_exeext
16779 if { (ac_try="$ac_link"
16780 case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16783 esac
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_link") 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } && {
16792 test -z "$ac_c_werror_flag" ||
16793 test ! -s conftest.err
16794 } && test -s conftest$ac_exeext &&
16795 $as_test_x conftest$ac_exeext; then
16796 eval "$as_ac_var=yes"
16797 else
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16800
16801 eval "$as_ac_var=no"
16802 fi
16803
16804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16805 conftest$ac_exeext conftest.$ac_ext
16806 fi
16807 ac_res=`eval echo '${'$as_ac_var'}'`
16808 { echo "$as_me:$LINENO: result: $ac_res" >&5
16809 echo "${ECHO_T}$ac_res" >&6; }
16810 if test `eval echo '${'$as_ac_var'}'` = yes; then
16811 cat >>confdefs.h <<_ACEOF
16812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16813 _ACEOF
16814
16815 fi
16816 done
16817
16818
16819 # Solaris has libkstat which does not require root.
16820
16821 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16822 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16823 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826 ac_check_lib_save_LIBS=$LIBS
16827 LIBS="-lkstat $LIBS"
16828 cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h. */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834
16835 /* Override any GCC internal prototype to avoid an error.
16836 Use char because int might match the return type of a GCC
16837 builtin and then its argument prototype would still apply. */
16838 #ifdef __cplusplus
16839 extern "C"
16840 #endif
16841 char kstat_open ();
16842 int
16843 main ()
16844 {
16845 return kstat_open ();
16846 ;
16847 return 0;
16848 }
16849 _ACEOF
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (ac_try="$ac_link"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_link") 2>conftest.er1
16858 ac_status=$?
16859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest$ac_exeext &&
16867 $as_test_x conftest$ac_exeext; then
16868 ac_cv_lib_kstat_kstat_open=yes
16869 else
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873 ac_cv_lib_kstat_kstat_open=no
16874 fi
16875
16876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16877 conftest$ac_exeext conftest.$ac_ext
16878 LIBS=$ac_check_lib_save_LIBS
16879 fi
16880 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16881 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16882 if test $ac_cv_lib_kstat_kstat_open = yes; then
16883 cat >>confdefs.h <<_ACEOF
16884 #define HAVE_LIBKSTAT 1
16885 _ACEOF
16886
16887 LIBS="-lkstat $LIBS"
16888
16889 fi
16890
16891 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16892
16893 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16894 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16895 # to get the right answer into the cache.
16896 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16897 if test $ac_have_func = no; then
16898 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16899 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16900 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903 ac_check_lib_save_LIBS=$LIBS
16904 LIBS="-lelf $LIBS"
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h. */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911
16912 /* Override any GCC internal prototype to avoid an error.
16913 Use char because int might match the return type of a GCC
16914 builtin and then its argument prototype would still apply. */
16915 #ifdef __cplusplus
16916 extern "C"
16917 #endif
16918 char elf_begin ();
16919 int
16920 main ()
16921 {
16922 return elf_begin ();
16923 ;
16924 return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (ac_try="$ac_link"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_link") 2>conftest.er1
16935 ac_status=$?
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } && {
16941 test -z "$ac_c_werror_flag" ||
16942 test ! -s conftest.err
16943 } && test -s conftest$ac_exeext &&
16944 $as_test_x conftest$ac_exeext; then
16945 ac_cv_lib_elf_elf_begin=yes
16946 else
16947 echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16949
16950 ac_cv_lib_elf_elf_begin=no
16951 fi
16952
16953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16954 conftest$ac_exeext conftest.$ac_ext
16955 LIBS=$ac_check_lib_save_LIBS
16956 fi
16957 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16958 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16959 if test $ac_cv_lib_elf_elf_begin = yes; then
16960 LIBS="-lelf $LIBS"
16961 fi
16962
16963 fi
16964 if test $ac_have_func = no; then
16965 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16966 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16967 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16969 else
16970 ac_check_lib_save_LIBS=$LIBS
16971 LIBS="-lkvm $LIBS"
16972 cat >conftest.$ac_ext <<_ACEOF
16973 /* confdefs.h. */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978
16979 /* Override any GCC internal prototype to avoid an error.
16980 Use char because int might match the return type of a GCC
16981 builtin and then its argument prototype would still apply. */
16982 #ifdef __cplusplus
16983 extern "C"
16984 #endif
16985 char kvm_open ();
16986 int
16987 main ()
16988 {
16989 return kvm_open ();
16990 ;
16991 return 0;
16992 }
16993 _ACEOF
16994 rm -f conftest.$ac_objext conftest$ac_exeext
16995 if { (ac_try="$ac_link"
16996 case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999 esac
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_link") 2>conftest.er1
17002 ac_status=$?
17003 grep -v '^ *+' conftest.er1 >conftest.err
17004 rm -f conftest.er1
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } && {
17008 test -z "$ac_c_werror_flag" ||
17009 test ! -s conftest.err
17010 } && test -s conftest$ac_exeext &&
17011 $as_test_x conftest$ac_exeext; then
17012 ac_cv_lib_kvm_kvm_open=yes
17013 else
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17016
17017 ac_cv_lib_kvm_kvm_open=no
17018 fi
17019
17020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17021 conftest$ac_exeext conftest.$ac_ext
17022 LIBS=$ac_check_lib_save_LIBS
17023 fi
17024 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17025 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17026 if test $ac_cv_lib_kvm_kvm_open = yes; then
17027 LIBS="-lkvm $LIBS"
17028 fi
17029
17030 # Check for the 4.4BSD definition of getloadavg.
17031 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17032 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17033 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036 ac_check_lib_save_LIBS=$LIBS
17037 LIBS="-lutil $LIBS"
17038 cat >conftest.$ac_ext <<_ACEOF
17039 /* confdefs.h. */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17048 #ifdef __cplusplus
17049 extern "C"
17050 #endif
17051 char getloadavg ();
17052 int
17053 main ()
17054 {
17055 return getloadavg ();
17056 ;
17057 return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest.$ac_objext conftest$ac_exeext
17061 if { (ac_try="$ac_link"
17062 case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_link") 2>conftest.er1
17068 ac_status=$?
17069 grep -v '^ *+' conftest.er1 >conftest.err
17070 rm -f conftest.er1
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } && {
17074 test -z "$ac_c_werror_flag" ||
17075 test ! -s conftest.err
17076 } && test -s conftest$ac_exeext &&
17077 $as_test_x conftest$ac_exeext; then
17078 ac_cv_lib_util_getloadavg=yes
17079 else
17080 echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17082
17083 ac_cv_lib_util_getloadavg=no
17084 fi
17085
17086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17087 conftest$ac_exeext conftest.$ac_ext
17088 LIBS=$ac_check_lib_save_LIBS
17089 fi
17090 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17091 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17092 if test $ac_cv_lib_util_getloadavg = yes; then
17093 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17094 fi
17095
17096 fi
17097
17098 if test $ac_have_func = no; then
17099 # There is a commonly available library for RS/6000 AIX.
17100 # Since it is not a standard part of AIX, it might be installed locally.
17101 ac_getloadavg_LIBS=$LIBS
17102 LIBS="-L/usr/local/lib $LIBS"
17103 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17104 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17105 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108 ac_check_lib_save_LIBS=$LIBS
17109 LIBS="-lgetloadavg $LIBS"
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
17117 /* Override any GCC internal prototype to avoid an error.
17118 Use char because int might match the return type of a GCC
17119 builtin and then its argument prototype would still apply. */
17120 #ifdef __cplusplus
17121 extern "C"
17122 #endif
17123 char getloadavg ();
17124 int
17125 main ()
17126 {
17127 return getloadavg ();
17128 ;
17129 return 0;
17130 }
17131 _ACEOF
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (ac_try="$ac_link"
17134 case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17137 esac
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_link") 2>conftest.er1
17140 ac_status=$?
17141 grep -v '^ *+' conftest.er1 >conftest.err
17142 rm -f conftest.er1
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } && {
17146 test -z "$ac_c_werror_flag" ||
17147 test ! -s conftest.err
17148 } && test -s conftest$ac_exeext &&
17149 $as_test_x conftest$ac_exeext; then
17150 ac_cv_lib_getloadavg_getloadavg=yes
17151 else
17152 echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17154
17155 ac_cv_lib_getloadavg_getloadavg=no
17156 fi
17157
17158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17159 conftest$ac_exeext conftest.$ac_ext
17160 LIBS=$ac_check_lib_save_LIBS
17161 fi
17162 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17163 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17164 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17165 LIBS="-lgetloadavg $LIBS"
17166 else
17167 LIBS=$ac_getloadavg_LIBS
17168 fi
17169
17170 fi
17171
17172 # Make sure it is really in the library, if we think we found it,
17173 # otherwise set up the replacement function.
17174
17175 for ac_func in getloadavg
17176 do
17177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182 else
17183 cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h. */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17191 #define $ac_func innocuous_$ac_func
17192
17193 /* System header to define __stub macros and hopefully few prototypes,
17194 which can conflict with char $ac_func (); below.
17195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17196 <limits.h> exists even on freestanding compilers. */
17197
17198 #ifdef __STDC__
17199 # include <limits.h>
17200 #else
17201 # include <assert.h>
17202 #endif
17203
17204 #undef $ac_func
17205
17206 /* Override any GCC internal prototype to avoid an error.
17207 Use char because int might match the return type of a GCC
17208 builtin and then its argument prototype would still apply. */
17209 #ifdef __cplusplus
17210 extern "C"
17211 #endif
17212 char $ac_func ();
17213 /* The GNU C library defines this for functions which it implements
17214 to always fail with ENOSYS. Some functions are actually named
17215 something starting with __ and the normal name is an alias. */
17216 #if defined __stub_$ac_func || defined __stub___$ac_func
17217 choke me
17218 #endif
17219
17220 int
17221 main ()
17222 {
17223 return $ac_func ();
17224 ;
17225 return 0;
17226 }
17227 _ACEOF
17228 rm -f conftest.$ac_objext conftest$ac_exeext
17229 if { (ac_try="$ac_link"
17230 case "(($ac_try" in
17231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232 *) ac_try_echo=$ac_try;;
17233 esac
17234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235 (eval "$ac_link") 2>conftest.er1
17236 ac_status=$?
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } && {
17242 test -z "$ac_c_werror_flag" ||
17243 test ! -s conftest.err
17244 } && test -s conftest$ac_exeext &&
17245 $as_test_x conftest$ac_exeext; then
17246 eval "$as_ac_var=yes"
17247 else
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17250
17251 eval "$as_ac_var=no"
17252 fi
17253
17254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17255 conftest$ac_exeext conftest.$ac_ext
17256 fi
17257 ac_res=`eval echo '${'$as_ac_var'}'`
17258 { echo "$as_me:$LINENO: result: $ac_res" >&5
17259 echo "${ECHO_T}$ac_res" >&6; }
17260 if test `eval echo '${'$as_ac_var'}'` = yes; then
17261 cat >>confdefs.h <<_ACEOF
17262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17263 _ACEOF
17264
17265 else
17266 case " $LIBOBJS " in
17267 *" getloadavg.$ac_objext "* ) ;;
17268 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17269 ;;
17270 esac
17271
17272
17273 cat >>confdefs.h <<\_ACEOF
17274 #define C_GETLOADAVG 1
17275 _ACEOF
17276
17277 # Figure out what our getloadavg.c needs.
17278 ac_have_func=no
17279 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17280 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17281 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17282 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17283 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 fi
17285 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17286 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17287 else
17288 # Is the header compilable?
17289 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17290 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17291 cat >conftest.$ac_ext <<_ACEOF
17292 /* confdefs.h. */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17297 $ac_includes_default
17298 #include <sys/dg_sys_info.h>
17299 _ACEOF
17300 rm -f conftest.$ac_objext
17301 if { (ac_try="$ac_compile"
17302 case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17305 esac
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_compile") 2>conftest.er1
17308 ac_status=$?
17309 grep -v '^ *+' conftest.er1 >conftest.err
17310 rm -f conftest.er1
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && {
17314 test -z "$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17316 } && test -s conftest.$ac_objext; then
17317 ac_header_compiler=yes
17318 else
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322 ac_header_compiler=no
17323 fi
17324
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17327 echo "${ECHO_T}$ac_header_compiler" >&6; }
17328
17329 # Is the header present?
17330 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17331 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17332 cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h. */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 #include <sys/dg_sys_info.h>
17339 _ACEOF
17340 if { (ac_try="$ac_cpp conftest.$ac_ext"
17341 case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17347 ac_status=$?
17348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } >/dev/null && {
17353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17354 test ! -s conftest.err
17355 }; then
17356 ac_header_preproc=yes
17357 else
17358 echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17360
17361 ac_header_preproc=no
17362 fi
17363
17364 rm -f conftest.err conftest.$ac_ext
17365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17366 echo "${ECHO_T}$ac_header_preproc" >&6; }
17367
17368 # So? What about this header?
17369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17370 yes:no: )
17371 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17372 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17373 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17374 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17375 ac_header_preproc=yes
17376 ;;
17377 no:yes:* )
17378 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17379 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17380 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17381 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17382 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17383 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17384 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17385 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17386 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17387 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17388 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17389 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17390
17391 ;;
17392 esac
17393 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17394 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17395 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17399 fi
17400 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17401 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17402
17403 fi
17404 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17405 ac_have_func=yes
17406
17407 cat >>confdefs.h <<\_ACEOF
17408 #define DGUX 1
17409 _ACEOF
17410
17411
17412 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17413 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17414 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17416 else
17417 ac_check_lib_save_LIBS=$LIBS
17418 LIBS="-ldgc $LIBS"
17419 cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h. */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17425
17426 /* Override any GCC internal prototype to avoid an error.
17427 Use char because int might match the return type of a GCC
17428 builtin and then its argument prototype would still apply. */
17429 #ifdef __cplusplus
17430 extern "C"
17431 #endif
17432 char dg_sys_info ();
17433 int
17434 main ()
17435 {
17436 return dg_sys_info ();
17437 ;
17438 return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>conftest.er1
17449 ac_status=$?
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } && {
17455 test -z "$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest$ac_exeext &&
17458 $as_test_x conftest$ac_exeext; then
17459 ac_cv_lib_dgc_dg_sys_info=yes
17460 else
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464 ac_cv_lib_dgc_dg_sys_info=no
17465 fi
17466
17467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17468 conftest$ac_exeext conftest.$ac_ext
17469 LIBS=$ac_check_lib_save_LIBS
17470 fi
17471 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17472 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17473 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17474 cat >>confdefs.h <<_ACEOF
17475 #define HAVE_LIBDGC 1
17476 _ACEOF
17477
17478 LIBS="-ldgc $LIBS"
17479
17480 fi
17481
17482 fi
17483
17484
17485
17486 if test "${ac_cv_header_locale_h+set}" = set; then
17487 { echo "$as_me:$LINENO: checking for locale.h" >&5
17488 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17489 if test "${ac_cv_header_locale_h+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 fi
17492 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17493 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17494 else
17495 # Is the header compilable?
17496 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17497 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17498 cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h. */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 $ac_includes_default
17505 #include <locale.h>
17506 _ACEOF
17507 rm -f conftest.$ac_objext
17508 if { (ac_try="$ac_compile"
17509 case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17512 esac
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_compile") 2>conftest.er1
17515 ac_status=$?
17516 grep -v '^ *+' conftest.er1 >conftest.err
17517 rm -f conftest.er1
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } && {
17521 test -z "$ac_c_werror_flag" ||
17522 test ! -s conftest.err
17523 } && test -s conftest.$ac_objext; then
17524 ac_header_compiler=yes
17525 else
17526 echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17528
17529 ac_header_compiler=no
17530 fi
17531
17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17534 echo "${ECHO_T}$ac_header_compiler" >&6; }
17535
17536 # Is the header present?
17537 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17538 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 #include <locale.h>
17546 _ACEOF
17547 if { (ac_try="$ac_cpp conftest.$ac_ext"
17548 case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17551 esac
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17554 ac_status=$?
17555 grep -v '^ *+' conftest.er1 >conftest.err
17556 rm -f conftest.er1
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } >/dev/null && {
17560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17561 test ! -s conftest.err
17562 }; then
17563 ac_header_preproc=yes
17564 else
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17567
17568 ac_header_preproc=no
17569 fi
17570
17571 rm -f conftest.err conftest.$ac_ext
17572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17573 echo "${ECHO_T}$ac_header_preproc" >&6; }
17574
17575 # So? What about this header?
17576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17577 yes:no: )
17578 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17579 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17580 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17581 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17582 ac_header_preproc=yes
17583 ;;
17584 no:yes:* )
17585 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17586 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17587 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17588 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17589 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17590 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17591 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17592 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17593 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17594 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17595 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17596 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17597
17598 ;;
17599 esac
17600 { echo "$as_me:$LINENO: checking for locale.h" >&5
17601 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17602 if test "${ac_cv_header_locale_h+set}" = set; then
17603 echo $ECHO_N "(cached) $ECHO_C" >&6
17604 else
17605 ac_cv_header_locale_h=$ac_header_preproc
17606 fi
17607 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17608 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17609
17610 fi
17611
17612
17613
17614 for ac_func in setlocale
17615 do
17616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 else
17622 cat >conftest.$ac_ext <<_ACEOF
17623 /* confdefs.h. */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17630 #define $ac_func innocuous_$ac_func
17631
17632 /* System header to define __stub macros and hopefully few prototypes,
17633 which can conflict with char $ac_func (); below.
17634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17635 <limits.h> exists even on freestanding compilers. */
17636
17637 #ifdef __STDC__
17638 # include <limits.h>
17639 #else
17640 # include <assert.h>
17641 #endif
17642
17643 #undef $ac_func
17644
17645 /* Override any GCC internal prototype to avoid an error.
17646 Use char because int might match the return type of a GCC
17647 builtin and then its argument prototype would still apply. */
17648 #ifdef __cplusplus
17649 extern "C"
17650 #endif
17651 char $ac_func ();
17652 /* The GNU C library defines this for functions which it implements
17653 to always fail with ENOSYS. Some functions are actually named
17654 something starting with __ and the normal name is an alias. */
17655 #if defined __stub_$ac_func || defined __stub___$ac_func
17656 choke me
17657 #endif
17658
17659 int
17660 main ()
17661 {
17662 return $ac_func ();
17663 ;
17664 return 0;
17665 }
17666 _ACEOF
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (ac_try="$ac_link"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17672 esac
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_link") 2>conftest.er1
17675 ac_status=$?
17676 grep -v '^ *+' conftest.er1 >conftest.err
17677 rm -f conftest.er1
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } && {
17681 test -z "$ac_c_werror_flag" ||
17682 test ! -s conftest.err
17683 } && test -s conftest$ac_exeext &&
17684 $as_test_x conftest$ac_exeext; then
17685 eval "$as_ac_var=yes"
17686 else
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17689
17690 eval "$as_ac_var=no"
17691 fi
17692
17693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17694 conftest$ac_exeext conftest.$ac_ext
17695 fi
17696 ac_res=`eval echo '${'$as_ac_var'}'`
17697 { echo "$as_me:$LINENO: result: $ac_res" >&5
17698 echo "${ECHO_T}$ac_res" >&6; }
17699 if test `eval echo '${'$as_ac_var'}'` = yes; then
17700 cat >>confdefs.h <<_ACEOF
17701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17702 _ACEOF
17703
17704 fi
17705 done
17706
17707
17708 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17709 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17710 # Irix 4.0.5F has the header but not the library.
17711 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17712 ac_have_func=yes
17713
17714 cat >>confdefs.h <<\_ACEOF
17715 #define SVR4 1
17716 _ACEOF
17717
17718 fi
17719
17720 if test $ac_have_func = no; then
17721 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17722 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17723 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17724 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 fi
17727 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17728 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17729 else
17730 # Is the header compilable?
17731 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17732 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17733 cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h. */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 $ac_includes_default
17740 #include <inq_stats/cpustats.h>
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17747 esac
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_compile") 2>conftest.er1
17750 ac_status=$?
17751 grep -v '^ *+' conftest.er1 >conftest.err
17752 rm -f conftest.er1
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } && {
17756 test -z "$ac_c_werror_flag" ||
17757 test ! -s conftest.err
17758 } && test -s conftest.$ac_objext; then
17759 ac_header_compiler=yes
17760 else
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764 ac_header_compiler=no
17765 fi
17766
17767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17769 echo "${ECHO_T}$ac_header_compiler" >&6; }
17770
17771 # Is the header present?
17772 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17773 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17774 cat >conftest.$ac_ext <<_ACEOF
17775 /* confdefs.h. */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 #include <inq_stats/cpustats.h>
17781 _ACEOF
17782 if { (ac_try="$ac_cpp conftest.$ac_ext"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17786 esac
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17789 ac_status=$?
17790 grep -v '^ *+' conftest.er1 >conftest.err
17791 rm -f conftest.er1
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } >/dev/null && {
17795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17796 test ! -s conftest.err
17797 }; then
17798 ac_header_preproc=yes
17799 else
17800 echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17802
17803 ac_header_preproc=no
17804 fi
17805
17806 rm -f conftest.err conftest.$ac_ext
17807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17808 echo "${ECHO_T}$ac_header_preproc" >&6; }
17809
17810 # So? What about this header?
17811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17812 yes:no: )
17813 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17814 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17815 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17816 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17817 ac_header_preproc=yes
17818 ;;
17819 no:yes:* )
17820 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17821 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17822 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17823 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17824 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17825 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17826 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17827 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17828 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17829 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17830 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17831 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17832
17833 ;;
17834 esac
17835 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17836 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17837 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 else
17840 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17841 fi
17842 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17843 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17844
17845 fi
17846 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17847 ac_have_func=yes
17848
17849 cat >>confdefs.h <<\_ACEOF
17850 #define UMAX 1
17851 _ACEOF
17852
17853
17854 cat >>confdefs.h <<\_ACEOF
17855 #define UMAX4_3 1
17856 _ACEOF
17857
17858 fi
17859
17860
17861 fi
17862
17863 if test $ac_have_func = no; then
17864 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17865 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17866 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17867 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17869 fi
17870 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17871 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17872 else
17873 # Is the header compilable?
17874 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17875 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17876 cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h. */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 $ac_includes_default
17883 #include <sys/cpustats.h>
17884 _ACEOF
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest.$ac_objext; then
17902 ac_header_compiler=yes
17903 else
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907 ac_header_compiler=no
17908 fi
17909
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17912 echo "${ECHO_T}$ac_header_compiler" >&6; }
17913
17914 # Is the header present?
17915 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17916 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17917 cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h. */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 #include <sys/cpustats.h>
17924 _ACEOF
17925 if { (ac_try="$ac_cpp conftest.$ac_ext"
17926 case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } >/dev/null && {
17938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17939 test ! -s conftest.err
17940 }; then
17941 ac_header_preproc=yes
17942 else
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 ac_header_preproc=no
17947 fi
17948
17949 rm -f conftest.err conftest.$ac_ext
17950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17951 echo "${ECHO_T}$ac_header_preproc" >&6; }
17952
17953 # So? What about this header?
17954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17955 yes:no: )
17956 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17957 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17958 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17959 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17960 ac_header_preproc=yes
17961 ;;
17962 no:yes:* )
17963 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17964 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17965 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17966 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17967 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17968 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17970 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17971 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17972 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17973 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17974 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17975
17976 ;;
17977 esac
17978 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17979 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17980 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17984 fi
17985 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17986 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17987
17988 fi
17989 if test $ac_cv_header_sys_cpustats_h = yes; then
17990 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17991 #define UMAX 1
17992 _ACEOF
17993
17994 fi
17995
17996
17997 fi
17998
17999 if test $ac_have_func = no; then
18000
18001 for ac_header in mach/mach.h
18002 do
18003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18009 fi
18010 ac_res=`eval echo '${'$as_ac_Header'}'`
18011 { echo "$as_me:$LINENO: result: $ac_res" >&5
18012 echo "${ECHO_T}$ac_res" >&6; }
18013 else
18014 # Is the header compilable?
18015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18017 cat >conftest.$ac_ext <<_ACEOF
18018 /* confdefs.h. */
18019 _ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h. */
18023 $ac_includes_default
18024 #include <$ac_header>
18025 _ACEOF
18026 rm -f conftest.$ac_objext
18027 if { (ac_try="$ac_compile"
18028 case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18031 esac
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_compile") 2>conftest.er1
18034 ac_status=$?
18035 grep -v '^ *+' conftest.er1 >conftest.err
18036 rm -f conftest.er1
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } && {
18040 test -z "$ac_c_werror_flag" ||
18041 test ! -s conftest.err
18042 } && test -s conftest.$ac_objext; then
18043 ac_header_compiler=yes
18044 else
18045 echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18047
18048 ac_header_compiler=no
18049 fi
18050
18051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18053 echo "${ECHO_T}$ac_header_compiler" >&6; }
18054
18055 # Is the header present?
18056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18058 cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h. */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18064 #include <$ac_header>
18065 _ACEOF
18066 if { (ac_try="$ac_cpp conftest.$ac_ext"
18067 case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18070 esac
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18073 ac_status=$?
18074 grep -v '^ *+' conftest.er1 >conftest.err
18075 rm -f conftest.er1
18076 cat conftest.err >&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } >/dev/null && {
18079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18080 test ! -s conftest.err
18081 }; then
18082 ac_header_preproc=yes
18083 else
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18086
18087 ac_header_preproc=no
18088 fi
18089
18090 rm -f conftest.err conftest.$ac_ext
18091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18092 echo "${ECHO_T}$ac_header_preproc" >&6; }
18093
18094 # So? What about this header?
18095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18096 yes:no: )
18097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18101 ac_header_preproc=yes
18102 ;;
18103 no:yes:* )
18104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18116
18117 ;;
18118 esac
18119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 else
18124 eval "$as_ac_Header=\$ac_header_preproc"
18125 fi
18126 ac_res=`eval echo '${'$as_ac_Header'}'`
18127 { echo "$as_me:$LINENO: result: $ac_res" >&5
18128 echo "${ECHO_T}$ac_res" >&6; }
18129
18130 fi
18131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18132 cat >>confdefs.h <<_ACEOF
18133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18134 _ACEOF
18135
18136 fi
18137
18138 done
18139
18140 fi
18141
18142
18143 for ac_header in nlist.h
18144 do
18145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18151 fi
18152 ac_res=`eval echo '${'$as_ac_Header'}'`
18153 { echo "$as_me:$LINENO: result: $ac_res" >&5
18154 echo "${ECHO_T}$ac_res" >&6; }
18155 else
18156 # Is the header compilable?
18157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18159 cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h. */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 $ac_includes_default
18166 #include <$ac_header>
18167 _ACEOF
18168 rm -f conftest.$ac_objext
18169 if { (ac_try="$ac_compile"
18170 case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18173 esac
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_compile") 2>conftest.er1
18176 ac_status=$?
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } && {
18182 test -z "$ac_c_werror_flag" ||
18183 test ! -s conftest.err
18184 } && test -s conftest.$ac_objext; then
18185 ac_header_compiler=yes
18186 else
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190 ac_header_compiler=no
18191 fi
18192
18193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18195 echo "${ECHO_T}$ac_header_compiler" >&6; }
18196
18197 # Is the header present?
18198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h. */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 #include <$ac_header>
18207 _ACEOF
18208 if { (ac_try="$ac_cpp conftest.$ac_ext"
18209 case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18212 esac
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18215 ac_status=$?
18216 grep -v '^ *+' conftest.er1 >conftest.err
18217 rm -f conftest.er1
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } >/dev/null && {
18221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18222 test ! -s conftest.err
18223 }; then
18224 ac_header_preproc=yes
18225 else
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 ac_header_preproc=no
18230 fi
18231
18232 rm -f conftest.err conftest.$ac_ext
18233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18234 echo "${ECHO_T}$ac_header_preproc" >&6; }
18235
18236 # So? What about this header?
18237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18238 yes:no: )
18239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18243 ac_header_preproc=yes
18244 ;;
18245 no:yes:* )
18246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18258
18259 ;;
18260 esac
18261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18265 else
18266 eval "$as_ac_Header=\$ac_header_preproc"
18267 fi
18268 ac_res=`eval echo '${'$as_ac_Header'}'`
18269 { echo "$as_me:$LINENO: result: $ac_res" >&5
18270 echo "${ECHO_T}$ac_res" >&6; }
18271
18272 fi
18273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18274 cat >>confdefs.h <<_ACEOF
18275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18276 _ACEOF
18277 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18278 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18279 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282 cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h. */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 #include <nlist.h>
18289
18290 int
18291 main ()
18292 {
18293 static struct nlist ac_aggr;
18294 if (ac_aggr.n_un.n_name)
18295 return 0;
18296 ;
18297 return 0;
18298 }
18299 _ACEOF
18300 rm -f conftest.$ac_objext
18301 if { (ac_try="$ac_compile"
18302 case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18305 esac
18306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_compile") 2>conftest.er1
18308 ac_status=$?
18309 grep -v '^ *+' conftest.er1 >conftest.err
18310 rm -f conftest.er1
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } && {
18314 test -z "$ac_c_werror_flag" ||
18315 test ! -s conftest.err
18316 } && test -s conftest.$ac_objext; then
18317 ac_cv_member_struct_nlist_n_un_n_name=yes
18318 else
18319 echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18321
18322 cat >conftest.$ac_ext <<_ACEOF
18323 /* confdefs.h. */
18324 _ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18328 #include <nlist.h>
18329
18330 int
18331 main ()
18332 {
18333 static struct nlist ac_aggr;
18334 if (sizeof ac_aggr.n_un.n_name)
18335 return 0;
18336 ;
18337 return 0;
18338 }
18339 _ACEOF
18340 rm -f conftest.$ac_objext
18341 if { (ac_try="$ac_compile"
18342 case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18345 esac
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_compile") 2>conftest.er1
18348 ac_status=$?
18349 grep -v '^ *+' conftest.er1 >conftest.err
18350 rm -f conftest.er1
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest.$ac_objext; then
18357 ac_cv_member_struct_nlist_n_un_n_name=yes
18358 else
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18361
18362 ac_cv_member_struct_nlist_n_un_n_name=no
18363 fi
18364
18365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18366 fi
18367
18368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18369 fi
18370 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18371 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18372 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18373
18374 cat >>confdefs.h <<_ACEOF
18375 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18376 _ACEOF
18377
18378
18379 cat >>confdefs.h <<\_ACEOF
18380 #define NLIST_NAME_UNION 1
18381 _ACEOF
18382
18383 fi
18384
18385
18386 fi
18387
18388 done
18389
18390 fi
18391 done
18392
18393
18394 # Some definitions of getloadavg require that the program be installed setgid.
18395 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18396 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18397 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18398 echo $ECHO_N "(cached) $ECHO_C" >&6
18399 else
18400 cat >conftest.$ac_ext <<_ACEOF
18401 /* confdefs.h. */
18402 _ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h. */
18406 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18407 #ifdef LDAV_PRIVILEGED
18408 Yowza Am I SETGID yet
18409 #endif
18410 _ACEOF
18411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18412 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18413 ac_cv_func_getloadavg_setgid=yes
18414 else
18415 ac_cv_func_getloadavg_setgid=no
18416 fi
18417 rm -f conftest*
18418
18419 fi
18420 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18421 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18422 if test $ac_cv_func_getloadavg_setgid = yes; then
18423 NEED_SETGID=true
18424
18425 cat >>confdefs.h <<\_ACEOF
18426 #define GETLOADAVG_PRIVILEGED 1
18427 _ACEOF
18428
18429 else
18430 NEED_SETGID=false
18431 fi
18432
18433 if test $ac_cv_func_getloadavg_setgid = yes; then
18434 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18435 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18436 if test "${ac_cv_group_kmem+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18440 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18441 # If we got an error (system does not support symlinks), try without -L.
18442 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18443 ac_cv_group_kmem=`echo $ac_ls_output \
18444 | sed -ne 's/[ ][ ]*/ /g;
18445 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18446 / /s/.* //;p;'`
18447
18448 fi
18449 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18450 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18451 KMEM_GROUP=$ac_cv_group_kmem
18452 fi
18453 if test "x$ac_save_LIBS" = x; then
18454 GETLOADAVG_LIBS=$LIBS
18455 else
18456 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18457 fi
18458 LIBS=$ac_save_LIBS
18459
18460
18461
18462 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18463 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18464 if test "${ac_cv_sys_largefile_source+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18466 else
18467 while :; do
18468 cat >conftest.$ac_ext <<_ACEOF
18469 /* confdefs.h. */
18470 _ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 #include <stdio.h>
18475 int
18476 main ()
18477 {
18478 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18479 ;
18480 return 0;
18481 }
18482 _ACEOF
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (ac_try="$ac_link"
18485 case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18488 esac
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_link") 2>conftest.er1
18491 ac_status=$?
18492 grep -v '^ *+' conftest.er1 >conftest.err
18493 rm -f conftest.er1
18494 cat conftest.err >&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } && {
18497 test -z "$ac_c_werror_flag" ||
18498 test ! -s conftest.err
18499 } && test -s conftest$ac_exeext &&
18500 $as_test_x conftest$ac_exeext; then
18501 ac_cv_sys_largefile_source=no; break
18502 else
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18505
18506
18507 fi
18508
18509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18510 conftest$ac_exeext conftest.$ac_ext
18511 cat >conftest.$ac_ext <<_ACEOF
18512 /* confdefs.h. */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18517 #define _LARGEFILE_SOURCE 1
18518 #include <stdio.h>
18519 int
18520 main ()
18521 {
18522 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18523 ;
18524 return 0;
18525 }
18526 _ACEOF
18527 rm -f conftest.$ac_objext conftest$ac_exeext
18528 if { (ac_try="$ac_link"
18529 case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18532 esac
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_link") 2>conftest.er1
18535 ac_status=$?
18536 grep -v '^ *+' conftest.er1 >conftest.err
18537 rm -f conftest.er1
18538 cat conftest.err >&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } && {
18541 test -z "$ac_c_werror_flag" ||
18542 test ! -s conftest.err
18543 } && test -s conftest$ac_exeext &&
18544 $as_test_x conftest$ac_exeext; then
18545 ac_cv_sys_largefile_source=1; break
18546 else
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550
18551 fi
18552
18553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18554 conftest$ac_exeext conftest.$ac_ext
18555 ac_cv_sys_largefile_source=unknown
18556 break
18557 done
18558 fi
18559 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18560 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18561 case $ac_cv_sys_largefile_source in #(
18562 no | unknown) ;;
18563 *)
18564 cat >>confdefs.h <<_ACEOF
18565 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18566 _ACEOF
18567 ;;
18568 esac
18569 rm -f conftest*
18570
18571 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18572 # in glibc 2.1.3, but that breaks too many other things.
18573 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18574 if test $ac_cv_sys_largefile_source != unknown; then
18575
18576 cat >>confdefs.h <<\_ACEOF
18577 #define HAVE_FSEEKO 1
18578 _ACEOF
18579
18580 fi
18581
18582
18583 # Configure getopt.
18584 # getopt.m4 serial 10
18585
18586 # The getopt module assume you want GNU getopt, with getopt_long etc,
18587 # rather than vanilla POSIX getopt. This means your your code should
18588 # always include <getopt.h> for the getopt prototypes.
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600 # Prerequisites of lib/getopt*.
18601
18602
18603
18604
18605 GETOPT_H=
18606
18607 for ac_header in getopt.h
18608 do
18609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 fi
18616 ac_res=`eval echo '${'$as_ac_Header'}'`
18617 { echo "$as_me:$LINENO: result: $ac_res" >&5
18618 echo "${ECHO_T}$ac_res" >&6; }
18619 else
18620 # Is the header compilable?
18621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18623 cat >conftest.$ac_ext <<_ACEOF
18624 /* confdefs.h. */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18629 $ac_includes_default
18630 #include <$ac_header>
18631 _ACEOF
18632 rm -f conftest.$ac_objext
18633 if { (ac_try="$ac_compile"
18634 case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_compile") 2>conftest.er1
18640 ac_status=$?
18641 grep -v '^ *+' conftest.er1 >conftest.err
18642 rm -f conftest.er1
18643 cat conftest.err >&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } && {
18646 test -z "$ac_c_werror_flag" ||
18647 test ! -s conftest.err
18648 } && test -s conftest.$ac_objext; then
18649 ac_header_compiler=yes
18650 else
18651 echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18653
18654 ac_header_compiler=no
18655 fi
18656
18657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18659 echo "${ECHO_T}$ac_header_compiler" >&6; }
18660
18661 # Is the header present?
18662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18664 cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h. */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18670 #include <$ac_header>
18671 _ACEOF
18672 if { (ac_try="$ac_cpp conftest.$ac_ext"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676 esac
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } >/dev/null && {
18685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18686 test ! -s conftest.err
18687 }; then
18688 ac_header_preproc=yes
18689 else
18690 echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18692
18693 ac_header_preproc=no
18694 fi
18695
18696 rm -f conftest.err conftest.$ac_ext
18697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18698 echo "${ECHO_T}$ac_header_preproc" >&6; }
18699
18700 # So? What about this header?
18701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18702 yes:no: )
18703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18707 ac_header_preproc=yes
18708 ;;
18709 no:yes:* )
18710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18722
18723 ;;
18724 esac
18725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730 eval "$as_ac_Header=\$ac_header_preproc"
18731 fi
18732 ac_res=`eval echo '${'$as_ac_Header'}'`
18733 { echo "$as_me:$LINENO: result: $ac_res" >&5
18734 echo "${ECHO_T}$ac_res" >&6; }
18735
18736 fi
18737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18738 cat >>confdefs.h <<_ACEOF
18739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18740 _ACEOF
18741
18742 else
18743 GETOPT_H=getopt.h
18744 fi
18745
18746 done
18747
18748 if test -z "$GETOPT_H"; then
18749
18750 for ac_func in getopt_long_only
18751 do
18752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18757 else
18758 cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h. */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18766 #define $ac_func innocuous_$ac_func
18767
18768 /* System header to define __stub macros and hopefully few prototypes,
18769 which can conflict with char $ac_func (); below.
18770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18771 <limits.h> exists even on freestanding compilers. */
18772
18773 #ifdef __STDC__
18774 # include <limits.h>
18775 #else
18776 # include <assert.h>
18777 #endif
18778
18779 #undef $ac_func
18780
18781 /* Override any GCC internal prototype to avoid an error.
18782 Use char because int might match the return type of a GCC
18783 builtin and then its argument prototype would still apply. */
18784 #ifdef __cplusplus
18785 extern "C"
18786 #endif
18787 char $ac_func ();
18788 /* The GNU C library defines this for functions which it implements
18789 to always fail with ENOSYS. Some functions are actually named
18790 something starting with __ and the normal name is an alias. */
18791 #if defined __stub_$ac_func || defined __stub___$ac_func
18792 choke me
18793 #endif
18794
18795 int
18796 main ()
18797 {
18798 return $ac_func ();
18799 ;
18800 return 0;
18801 }
18802 _ACEOF
18803 rm -f conftest.$ac_objext conftest$ac_exeext
18804 if { (ac_try="$ac_link"
18805 case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18808 esac
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_link") 2>conftest.er1
18811 ac_status=$?
18812 grep -v '^ *+' conftest.er1 >conftest.err
18813 rm -f conftest.er1
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } && {
18817 test -z "$ac_c_werror_flag" ||
18818 test ! -s conftest.err
18819 } && test -s conftest$ac_exeext &&
18820 $as_test_x conftest$ac_exeext; then
18821 eval "$as_ac_var=yes"
18822 else
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18825
18826 eval "$as_ac_var=no"
18827 fi
18828
18829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18830 conftest$ac_exeext conftest.$ac_ext
18831 fi
18832 ac_res=`eval echo '${'$as_ac_var'}'`
18833 { echo "$as_me:$LINENO: result: $ac_res" >&5
18834 echo "${ECHO_T}$ac_res" >&6; }
18835 if test `eval echo '${'$as_ac_var'}'` = yes; then
18836 cat >>confdefs.h <<_ACEOF
18837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18838 _ACEOF
18839
18840 else
18841 GETOPT_H=getopt.h
18842 fi
18843 done
18844
18845 fi
18846
18847 if test -z "$GETOPT_H"; then
18848 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18849 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18850 if test "${ac_cv_have_decl_optreset+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852 else
18853 cat >conftest.$ac_ext <<_ACEOF
18854 /* confdefs.h. */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18859 #include <getopt.h>
18860
18861 int
18862 main ()
18863 {
18864 #ifndef optreset
18865 (void) optreset;
18866 #endif
18867
18868 ;
18869 return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest.$ac_objext
18873 if { (ac_try="$ac_compile"
18874 case "(($ac_try" in
18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18877 esac
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879 (eval "$ac_compile") 2>conftest.er1
18880 ac_status=$?
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } && {
18886 test -z "$ac_c_werror_flag" ||
18887 test ! -s conftest.err
18888 } && test -s conftest.$ac_objext; then
18889 ac_cv_have_decl_optreset=yes
18890 else
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18893
18894 ac_cv_have_decl_optreset=no
18895 fi
18896
18897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18898 fi
18899 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18900 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18901 if test $ac_cv_have_decl_optreset = yes; then
18902 GETOPT_H=getopt.h
18903 fi
18904
18905 fi
18906
18907 if test -z "$GETOPT_H"; then
18908 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18909 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18910 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913 if test "$cross_compiling" = yes; then
18914 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18915 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18916 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18918 else
18919 cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h. */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 #include <getopt.h>
18926
18927 int
18928 main ()
18929 {
18930 #ifndef getopt_clip
18931 (void) getopt_clip;
18932 #endif
18933
18934 ;
18935 return 0;
18936 }
18937 _ACEOF
18938 rm -f conftest.$ac_objext
18939 if { (ac_try="$ac_compile"
18940 case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18943 esac
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_compile") 2>conftest.er1
18946 ac_status=$?
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } && {
18952 test -z "$ac_c_werror_flag" ||
18953 test ! -s conftest.err
18954 } && test -s conftest.$ac_objext; then
18955 ac_cv_have_decl_getopt_clip=yes
18956 else
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18959
18960 ac_cv_have_decl_getopt_clip=no
18961 fi
18962
18963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18964 fi
18965 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18966 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18967 if test $ac_cv_have_decl_getopt_clip = yes; then
18968 gl_cv_func_gnu_getopt=no
18969 else
18970 gl_cv_func_gnu_getopt=yes
18971 fi
18972
18973 else
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h. */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 #include <getopt.h>
18981 int
18982 main ()
18983 {
18984
18985 char *myargv[3];
18986 myargv[0] = "conftest";
18987 myargv[1] = "-+";
18988 myargv[2] = 0;
18989 return getopt (2, myargv, "+a") != '?';
18990
18991 ;
18992 return 0;
18993 }
18994 _ACEOF
18995 rm -f conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_link") 2>&5
19003 ac_status=$?
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19006 { (case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009 esac
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_try") 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015 gl_cv_func_gnu_getopt=yes
19016 else
19017 echo "$as_me: program exited with status $ac_status" >&5
19018 echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19020
19021 ( exit $ac_status )
19022 gl_cv_func_gnu_getopt=no
19023 fi
19024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19025 fi
19026
19027
19028 fi
19029 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19030 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19031 if test "$gl_cv_func_gnu_getopt" = "no"; then
19032 GETOPT_H=getopt.h
19033 fi
19034 fi
19035
19036
19037
19038 if test -n "$GETOPT_H"; then
19039
19040
19041 GETOPT_H=getopt.h
19042
19043 cat >>confdefs.h <<\_ACEOF
19044 #define __GETOPT_PREFIX rpl_
19045 _ACEOF
19046
19047
19048
19049 :
19050 GETOPTOBJS='getopt.o getopt1.o'
19051
19052 fi
19053
19054
19055
19056
19057 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19058 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19059 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062 # Use it with a single arg.
19063 cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h. */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19069 $ac_includes_default
19070 int
19071 main ()
19072 {
19073 getpgrp (0);
19074 ;
19075 return 0;
19076 }
19077 _ACEOF
19078 rm -f conftest.$ac_objext
19079 if { (ac_try="$ac_compile"
19080 case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19083 esac
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_compile") 2>conftest.er1
19086 ac_status=$?
19087 grep -v '^ *+' conftest.er1 >conftest.err
19088 rm -f conftest.er1
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } && {
19092 test -z "$ac_c_werror_flag" ||
19093 test ! -s conftest.err
19094 } && test -s conftest.$ac_objext; then
19095 ac_cv_func_getpgrp_void=no
19096 else
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100 ac_cv_func_getpgrp_void=yes
19101 fi
19102
19103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19104
19105 fi
19106 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19107 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19108 if test $ac_cv_func_getpgrp_void = yes; then
19109
19110 cat >>confdefs.h <<\_ACEOF
19111 #define GETPGRP_VOID 1
19112 _ACEOF
19113
19114 fi
19115
19116
19117
19118 for ac_func in strftime
19119 do
19120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 else
19126 cat >conftest.$ac_ext <<_ACEOF
19127 /* confdefs.h. */
19128 _ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19134 #define $ac_func innocuous_$ac_func
19135
19136 /* System header to define __stub macros and hopefully few prototypes,
19137 which can conflict with char $ac_func (); below.
19138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19139 <limits.h> exists even on freestanding compilers. */
19140
19141 #ifdef __STDC__
19142 # include <limits.h>
19143 #else
19144 # include <assert.h>
19145 #endif
19146
19147 #undef $ac_func
19148
19149 /* Override any GCC internal prototype to avoid an error.
19150 Use char because int might match the return type of a GCC
19151 builtin and then its argument prototype would still apply. */
19152 #ifdef __cplusplus
19153 extern "C"
19154 #endif
19155 char $ac_func ();
19156 /* The GNU C library defines this for functions which it implements
19157 to always fail with ENOSYS. Some functions are actually named
19158 something starting with __ and the normal name is an alias. */
19159 #if defined __stub_$ac_func || defined __stub___$ac_func
19160 choke me
19161 #endif
19162
19163 int
19164 main ()
19165 {
19166 return $ac_func ();
19167 ;
19168 return 0;
19169 }
19170 _ACEOF
19171 rm -f conftest.$ac_objext conftest$ac_exeext
19172 if { (ac_try="$ac_link"
19173 case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19176 esac
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_link") 2>conftest.er1
19179 ac_status=$?
19180 grep -v '^ *+' conftest.er1 >conftest.err
19181 rm -f conftest.er1
19182 cat conftest.err >&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } && {
19185 test -z "$ac_c_werror_flag" ||
19186 test ! -s conftest.err
19187 } && test -s conftest$ac_exeext &&
19188 $as_test_x conftest$ac_exeext; then
19189 eval "$as_ac_var=yes"
19190 else
19191 echo "$as_me: failed program was:" >&5
19192 sed 's/^/| /' conftest.$ac_ext >&5
19193
19194 eval "$as_ac_var=no"
19195 fi
19196
19197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19198 conftest$ac_exeext conftest.$ac_ext
19199 fi
19200 ac_res=`eval echo '${'$as_ac_var'}'`
19201 { echo "$as_me:$LINENO: result: $ac_res" >&5
19202 echo "${ECHO_T}$ac_res" >&6; }
19203 if test `eval echo '${'$as_ac_var'}'` = yes; then
19204 cat >>confdefs.h <<_ACEOF
19205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19206 _ACEOF
19207
19208 else
19209 # strftime is in -lintl on SCO UNIX.
19210 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19211 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19212 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19214 else
19215 ac_check_lib_save_LIBS=$LIBS
19216 LIBS="-lintl $LIBS"
19217 cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h. */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223
19224 /* Override any GCC internal prototype to avoid an error.
19225 Use char because int might match the return type of a GCC
19226 builtin and then its argument prototype would still apply. */
19227 #ifdef __cplusplus
19228 extern "C"
19229 #endif
19230 char strftime ();
19231 int
19232 main ()
19233 {
19234 return strftime ();
19235 ;
19236 return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext conftest$ac_exeext
19240 if { (ac_try="$ac_link"
19241 case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_link") 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest$ac_exeext &&
19256 $as_test_x conftest$ac_exeext; then
19257 ac_cv_lib_intl_strftime=yes
19258 else
19259 echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19261
19262 ac_cv_lib_intl_strftime=no
19263 fi
19264
19265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19266 conftest$ac_exeext conftest.$ac_ext
19267 LIBS=$ac_check_lib_save_LIBS
19268 fi
19269 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19270 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19271 if test $ac_cv_lib_intl_strftime = yes; then
19272 cat >>confdefs.h <<\_ACEOF
19273 #define HAVE_STRFTIME 1
19274 _ACEOF
19275
19276 LIBS="-lintl $LIBS"
19277 fi
19278
19279 fi
19280 done
19281
19282
19283 # UNIX98 PTYs.
19284
19285 for ac_func in grantpt
19286 do
19287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19292 else
19293 cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h. */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19301 #define $ac_func innocuous_$ac_func
19302
19303 /* System header to define __stub macros and hopefully few prototypes,
19304 which can conflict with char $ac_func (); below.
19305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19306 <limits.h> exists even on freestanding compilers. */
19307
19308 #ifdef __STDC__
19309 # include <limits.h>
19310 #else
19311 # include <assert.h>
19312 #endif
19313
19314 #undef $ac_func
19315
19316 /* Override any GCC internal prototype to avoid an error.
19317 Use char because int might match the return type of a GCC
19318 builtin and then its argument prototype would still apply. */
19319 #ifdef __cplusplus
19320 extern "C"
19321 #endif
19322 char $ac_func ();
19323 /* The GNU C library defines this for functions which it implements
19324 to always fail with ENOSYS. Some functions are actually named
19325 something starting with __ and the normal name is an alias. */
19326 #if defined __stub_$ac_func || defined __stub___$ac_func
19327 choke me
19328 #endif
19329
19330 int
19331 main ()
19332 {
19333 return $ac_func ();
19334 ;
19335 return 0;
19336 }
19337 _ACEOF
19338 rm -f conftest.$ac_objext conftest$ac_exeext
19339 if { (ac_try="$ac_link"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_link") 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } && {
19352 test -z "$ac_c_werror_flag" ||
19353 test ! -s conftest.err
19354 } && test -s conftest$ac_exeext &&
19355 $as_test_x conftest$ac_exeext; then
19356 eval "$as_ac_var=yes"
19357 else
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19360
19361 eval "$as_ac_var=no"
19362 fi
19363
19364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19365 conftest$ac_exeext conftest.$ac_ext
19366 fi
19367 ac_res=`eval echo '${'$as_ac_var'}'`
19368 { echo "$as_me:$LINENO: result: $ac_res" >&5
19369 echo "${ECHO_T}$ac_res" >&6; }
19370 if test `eval echo '${'$as_ac_var'}'` = yes; then
19371 cat >>confdefs.h <<_ACEOF
19372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19373 _ACEOF
19374
19375 fi
19376 done
19377
19378
19379 # PTY-related GNU extensions.
19380
19381 for ac_func in getpt
19382 do
19383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389 cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h. */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19397 #define $ac_func innocuous_$ac_func
19398
19399 /* System header to define __stub macros and hopefully few prototypes,
19400 which can conflict with char $ac_func (); below.
19401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19402 <limits.h> exists even on freestanding compilers. */
19403
19404 #ifdef __STDC__
19405 # include <limits.h>
19406 #else
19407 # include <assert.h>
19408 #endif
19409
19410 #undef $ac_func
19411
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 char $ac_func ();
19419 /* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
19422 #if defined __stub_$ac_func || defined __stub___$ac_func
19423 choke me
19424 #endif
19425
19426 int
19427 main ()
19428 {
19429 return $ac_func ();
19430 ;
19431 return 0;
19432 }
19433 _ACEOF
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (ac_try="$ac_link"
19436 case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19439 esac
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_link") 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } && {
19448 test -z "$ac_c_werror_flag" ||
19449 test ! -s conftest.err
19450 } && test -s conftest$ac_exeext &&
19451 $as_test_x conftest$ac_exeext; then
19452 eval "$as_ac_var=yes"
19453 else
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457 eval "$as_ac_var=no"
19458 fi
19459
19460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19461 conftest$ac_exeext conftest.$ac_ext
19462 fi
19463 ac_res=`eval echo '${'$as_ac_var'}'`
19464 { echo "$as_me:$LINENO: result: $ac_res" >&5
19465 echo "${ECHO_T}$ac_res" >&6; }
19466 if test `eval echo '${'$as_ac_var'}'` = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19469 _ACEOF
19470
19471 fi
19472 done
19473
19474
19475 # Check this now, so that we will NOT find the above functions in ncurses.
19476 # That is because we have not set up to link ncurses in lib-src.
19477 # It's better to believe a function is not available
19478 # than to expect to find it in ncurses.
19479
19480 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19481 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19482 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485 ac_check_lib_save_LIBS=$LIBS
19486 LIBS="-lncurses $LIBS"
19487 cat >conftest.$ac_ext <<_ACEOF
19488 /* confdefs.h. */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19493
19494 /* Override any GCC internal prototype to avoid an error.
19495 Use char because int might match the return type of a GCC
19496 builtin and then its argument prototype would still apply. */
19497 #ifdef __cplusplus
19498 extern "C"
19499 #endif
19500 char tparm ();
19501 int
19502 main ()
19503 {
19504 return tparm ();
19505 ;
19506 return 0;
19507 }
19508 _ACEOF
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514 esac
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_link") 2>conftest.er1
19517 ac_status=$?
19518 grep -v '^ *+' conftest.er1 >conftest.err
19519 rm -f conftest.er1
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest$ac_exeext &&
19526 $as_test_x conftest$ac_exeext; then
19527 ac_cv_lib_ncurses_tparm=yes
19528 else
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19531
19532 ac_cv_lib_ncurses_tparm=no
19533 fi
19534
19535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19536 conftest$ac_exeext conftest.$ac_ext
19537 LIBS=$ac_check_lib_save_LIBS
19538 fi
19539 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19540 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19541 if test $ac_cv_lib_ncurses_tparm = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE_LIBNCURSES 1
19544 _ACEOF
19545
19546 LIBS="-lncurses $LIBS"
19547
19548 fi
19549
19550
19551 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19552
19553 resolv=no
19554 cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h. */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 #include <netinet/in.h>
19561 #include <arpa/nameser.h>
19562 #include <resolv.h>
19563 int
19564 main ()
19565 {
19566 return res_init();
19567 ;
19568 return 0;
19569 }
19570 _ACEOF
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (ac_try="$ac_link"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_link") 2>conftest.er1
19579 ac_status=$?
19580 grep -v '^ *+' conftest.er1 >conftest.err
19581 rm -f conftest.er1
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } && {
19585 test -z "$ac_c_werror_flag" ||
19586 test ! -s conftest.err
19587 } && test -s conftest$ac_exeext &&
19588 $as_test_x conftest$ac_exeext; then
19589 have_res_init=yes
19590 else
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 have_res_init=no
19595 fi
19596
19597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19598 conftest$ac_exeext conftest.$ac_ext
19599 if test "$have_res_init" = no; then
19600 OLIBS="$LIBS"
19601 LIBS="$LIBS -lresolv"
19602 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19603 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h. */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 #include <netinet/in.h>
19611 #include <arpa/nameser.h>
19612 #include <resolv.h>
19613 int
19614 main ()
19615 {
19616 return res_init();
19617 ;
19618 return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest.$ac_objext conftest$ac_exeext
19622 if { (ac_try="$ac_link"
19623 case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_link") 2>conftest.er1
19629 ac_status=$?
19630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } && {
19635 test -z "$ac_c_werror_flag" ||
19636 test ! -s conftest.err
19637 } && test -s conftest$ac_exeext &&
19638 $as_test_x conftest$ac_exeext; then
19639 have_res_init=yes
19640 else
19641 echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19643
19644 have_res_init=no
19645 fi
19646
19647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19648 conftest$ac_exeext conftest.$ac_ext
19649 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19650 echo "${ECHO_T}$have_res_init" >&6; }
19651 if test "$have_res_init" = yes ; then
19652 resolv=yes
19653 fi
19654 LIBS="$OLIBS"
19655 fi
19656
19657 if test "$have_res_init" = yes; then
19658
19659 cat >>confdefs.h <<\_ACEOF
19660 #define HAVE_RES_INIT 1
19661 _ACEOF
19662
19663 fi
19664
19665 # Do we need the Hesiod library to provide the support routines?
19666 if test "$with_hesiod" = yes ; then
19667 # Don't set $LIBS here -- see comments above.
19668 { echo "$as_me:$LINENO: checking for res_send" >&5
19669 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19670 if test "${ac_cv_func_res_send+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19672 else
19673 cat >conftest.$ac_ext <<_ACEOF
19674 /* confdefs.h. */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19679 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19681 #define res_send innocuous_res_send
19682
19683 /* System header to define __stub macros and hopefully few prototypes,
19684 which can conflict with char res_send (); below.
19685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19686 <limits.h> exists even on freestanding compilers. */
19687
19688 #ifdef __STDC__
19689 # include <limits.h>
19690 #else
19691 # include <assert.h>
19692 #endif
19693
19694 #undef res_send
19695
19696 /* Override any GCC internal prototype to avoid an error.
19697 Use char because int might match the return type of a GCC
19698 builtin and then its argument prototype would still apply. */
19699 #ifdef __cplusplus
19700 extern "C"
19701 #endif
19702 char res_send ();
19703 /* The GNU C library defines this for functions which it implements
19704 to always fail with ENOSYS. Some functions are actually named
19705 something starting with __ and the normal name is an alias. */
19706 #if defined __stub_res_send || defined __stub___res_send
19707 choke me
19708 #endif
19709
19710 int
19711 main ()
19712 {
19713 return res_send ();
19714 ;
19715 return 0;
19716 }
19717 _ACEOF
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (ac_try="$ac_link"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_link") 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } && {
19732 test -z "$ac_c_werror_flag" ||
19733 test ! -s conftest.err
19734 } && test -s conftest$ac_exeext &&
19735 $as_test_x conftest$ac_exeext; then
19736 ac_cv_func_res_send=yes
19737 else
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741 ac_cv_func_res_send=no
19742 fi
19743
19744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19745 conftest$ac_exeext conftest.$ac_ext
19746 fi
19747 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19748 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19749 if test $ac_cv_func_res_send = yes; then
19750 :
19751 else
19752 { echo "$as_me:$LINENO: checking for __res_send" >&5
19753 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19754 if test "${ac_cv_func___res_send+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757 cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h. */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19765 #define __res_send innocuous___res_send
19766
19767 /* System header to define __stub macros and hopefully few prototypes,
19768 which can conflict with char __res_send (); below.
19769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19770 <limits.h> exists even on freestanding compilers. */
19771
19772 #ifdef __STDC__
19773 # include <limits.h>
19774 #else
19775 # include <assert.h>
19776 #endif
19777
19778 #undef __res_send
19779
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19783 #ifdef __cplusplus
19784 extern "C"
19785 #endif
19786 char __res_send ();
19787 /* The GNU C library defines this for functions which it implements
19788 to always fail with ENOSYS. Some functions are actually named
19789 something starting with __ and the normal name is an alias. */
19790 #if defined __stub___res_send || defined __stub_____res_send
19791 choke me
19792 #endif
19793
19794 int
19795 main ()
19796 {
19797 return __res_send ();
19798 ;
19799 return 0;
19800 }
19801 _ACEOF
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (ac_try="$ac_link"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807 esac
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_link") 2>conftest.er1
19810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest$ac_exeext &&
19819 $as_test_x conftest$ac_exeext; then
19820 ac_cv_func___res_send=yes
19821 else
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825 ac_cv_func___res_send=no
19826 fi
19827
19828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19829 conftest$ac_exeext conftest.$ac_ext
19830 fi
19831 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19832 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19833 if test $ac_cv_func___res_send = yes; then
19834 :
19835 else
19836 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19837 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19838 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841 ac_check_lib_save_LIBS=$LIBS
19842 LIBS="-lresolv $LIBS"
19843 cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h. */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19849
19850 /* Override any GCC internal prototype to avoid an error.
19851 Use char because int might match the return type of a GCC
19852 builtin and then its argument prototype would still apply. */
19853 #ifdef __cplusplus
19854 extern "C"
19855 #endif
19856 char res_send ();
19857 int
19858 main ()
19859 {
19860 return res_send ();
19861 ;
19862 return 0;
19863 }
19864 _ACEOF
19865 rm -f conftest.$ac_objext conftest$ac_exeext
19866 if { (ac_try="$ac_link"
19867 case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19870 esac
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_link") 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } && {
19879 test -z "$ac_c_werror_flag" ||
19880 test ! -s conftest.err
19881 } && test -s conftest$ac_exeext &&
19882 $as_test_x conftest$ac_exeext; then
19883 ac_cv_lib_resolv_res_send=yes
19884 else
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19887
19888 ac_cv_lib_resolv_res_send=no
19889 fi
19890
19891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19892 conftest$ac_exeext conftest.$ac_ext
19893 LIBS=$ac_check_lib_save_LIBS
19894 fi
19895 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19896 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19897 if test $ac_cv_lib_resolv_res_send = yes; then
19898 resolv=yes
19899 else
19900 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19901 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19902 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 else
19905 ac_check_lib_save_LIBS=$LIBS
19906 LIBS="-lresolv $LIBS"
19907 cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h. */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19913
19914 /* Override any GCC internal prototype to avoid an error.
19915 Use char because int might match the return type of a GCC
19916 builtin and then its argument prototype would still apply. */
19917 #ifdef __cplusplus
19918 extern "C"
19919 #endif
19920 char __res_send ();
19921 int
19922 main ()
19923 {
19924 return __res_send ();
19925 ;
19926 return 0;
19927 }
19928 _ACEOF
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (ac_try="$ac_link"
19931 case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19934 esac
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_link") 2>conftest.er1
19937 ac_status=$?
19938 grep -v '^ *+' conftest.er1 >conftest.err
19939 rm -f conftest.er1
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } && {
19943 test -z "$ac_c_werror_flag" ||
19944 test ! -s conftest.err
19945 } && test -s conftest$ac_exeext &&
19946 $as_test_x conftest$ac_exeext; then
19947 ac_cv_lib_resolv___res_send=yes
19948 else
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19951
19952 ac_cv_lib_resolv___res_send=no
19953 fi
19954
19955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19956 conftest$ac_exeext conftest.$ac_ext
19957 LIBS=$ac_check_lib_save_LIBS
19958 fi
19959 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19960 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19961 if test $ac_cv_lib_resolv___res_send = yes; then
19962 resolv=yes
19963 fi
19964
19965 fi
19966
19967 fi
19968
19969 fi
19970
19971 if test "$resolv" = yes ; then
19972 RESOLVLIB=-lresolv
19973 else
19974 RESOLVLIB=
19975 fi
19976 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19977 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19978 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19979 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 else
19981 cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h. */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19989 #define hes_getmailhost innocuous_hes_getmailhost
19990
19991 /* System header to define __stub macros and hopefully few prototypes,
19992 which can conflict with char hes_getmailhost (); below.
19993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19994 <limits.h> exists even on freestanding compilers. */
19995
19996 #ifdef __STDC__
19997 # include <limits.h>
19998 #else
19999 # include <assert.h>
20000 #endif
20001
20002 #undef hes_getmailhost
20003
20004 /* Override any GCC internal prototype to avoid an error.
20005 Use char because int might match the return type of a GCC
20006 builtin and then its argument prototype would still apply. */
20007 #ifdef __cplusplus
20008 extern "C"
20009 #endif
20010 char hes_getmailhost ();
20011 /* The GNU C library defines this for functions which it implements
20012 to always fail with ENOSYS. Some functions are actually named
20013 something starting with __ and the normal name is an alias. */
20014 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20015 choke me
20016 #endif
20017
20018 int
20019 main ()
20020 {
20021 return hes_getmailhost ();
20022 ;
20023 return 0;
20024 }
20025 _ACEOF
20026 rm -f conftest.$ac_objext conftest$ac_exeext
20027 if { (ac_try="$ac_link"
20028 case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031 esac
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_link") 2>conftest.er1
20034 ac_status=$?
20035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } && {
20040 test -z "$ac_c_werror_flag" ||
20041 test ! -s conftest.err
20042 } && test -s conftest$ac_exeext &&
20043 $as_test_x conftest$ac_exeext; then
20044 ac_cv_func_hes_getmailhost=yes
20045 else
20046 echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20048
20049 ac_cv_func_hes_getmailhost=no
20050 fi
20051
20052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20053 conftest$ac_exeext conftest.$ac_ext
20054 fi
20055 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20056 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20057 if test $ac_cv_func_hes_getmailhost = yes; then
20058 :
20059 else
20060 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20061 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20062 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065 ac_check_lib_save_LIBS=$LIBS
20066 LIBS="-lhesiod $RESOLVLIB $LIBS"
20067 cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h. */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073
20074 /* Override any GCC internal prototype to avoid an error.
20075 Use char because int might match the return type of a GCC
20076 builtin and then its argument prototype would still apply. */
20077 #ifdef __cplusplus
20078 extern "C"
20079 #endif
20080 char hes_getmailhost ();
20081 int
20082 main ()
20083 {
20084 return hes_getmailhost ();
20085 ;
20086 return 0;
20087 }
20088 _ACEOF
20089 rm -f conftest.$ac_objext conftest$ac_exeext
20090 if { (ac_try="$ac_link"
20091 case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094 esac
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_link") 2>conftest.er1
20097 ac_status=$?
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } && {
20103 test -z "$ac_c_werror_flag" ||
20104 test ! -s conftest.err
20105 } && test -s conftest$ac_exeext &&
20106 $as_test_x conftest$ac_exeext; then
20107 ac_cv_lib_hesiod_hes_getmailhost=yes
20108 else
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20111
20112 ac_cv_lib_hesiod_hes_getmailhost=no
20113 fi
20114
20115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20116 conftest$ac_exeext conftest.$ac_ext
20117 LIBS=$ac_check_lib_save_LIBS
20118 fi
20119 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20120 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20121 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20122
20123 cat >>confdefs.h <<\_ACEOF
20124 #define HAVE_LIBHESIOD 1
20125 _ACEOF
20126
20127 else
20128 :
20129 fi
20130
20131 fi
20132
20133 fi
20134
20135 # Do we need libresolv (due to res_init or Hesiod)?
20136 if test "$resolv" = yes ; then
20137
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE_LIBRESOLV 1
20140 _ACEOF
20141
20142 fi
20143
20144 # These tell us which Kerberos-related libraries to use.
20145 if test "${with_kerberos+set}" = set; then
20146
20147 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20148 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20149 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 else
20152 ac_check_lib_save_LIBS=$LIBS
20153 LIBS="-lcom_err $LIBS"
20154 cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h. */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20160
20161 /* Override any GCC internal prototype to avoid an error.
20162 Use char because int might match the return type of a GCC
20163 builtin and then its argument prototype would still apply. */
20164 #ifdef __cplusplus
20165 extern "C"
20166 #endif
20167 char com_err ();
20168 int
20169 main ()
20170 {
20171 return com_err ();
20172 ;
20173 return 0;
20174 }
20175 _ACEOF
20176 rm -f conftest.$ac_objext conftest$ac_exeext
20177 if { (ac_try="$ac_link"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181 esac
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_link") 2>conftest.er1
20184 ac_status=$?
20185 grep -v '^ *+' conftest.er1 >conftest.err
20186 rm -f conftest.er1
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } && {
20190 test -z "$ac_c_werror_flag" ||
20191 test ! -s conftest.err
20192 } && test -s conftest$ac_exeext &&
20193 $as_test_x conftest$ac_exeext; then
20194 ac_cv_lib_com_err_com_err=yes
20195 else
20196 echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20198
20199 ac_cv_lib_com_err_com_err=no
20200 fi
20201
20202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20203 conftest$ac_exeext conftest.$ac_ext
20204 LIBS=$ac_check_lib_save_LIBS
20205 fi
20206 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20207 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20208 if test $ac_cv_lib_com_err_com_err = yes; then
20209 cat >>confdefs.h <<_ACEOF
20210 #define HAVE_LIBCOM_ERR 1
20211 _ACEOF
20212
20213 LIBS="-lcom_err $LIBS"
20214
20215 fi
20216
20217
20218 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20219 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20220 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223 ac_check_lib_save_LIBS=$LIBS
20224 LIBS="-lk5crypto $LIBS"
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h. */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20235 #ifdef __cplusplus
20236 extern "C"
20237 #endif
20238 char mit_des_cbc_encrypt ();
20239 int
20240 main ()
20241 {
20242 return mit_des_cbc_encrypt ();
20243 ;
20244 return 0;
20245 }
20246 _ACEOF
20247 rm -f conftest.$ac_objext conftest$ac_exeext
20248 if { (ac_try="$ac_link"
20249 case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20252 esac
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_link") 2>conftest.er1
20255 ac_status=$?
20256 grep -v '^ *+' conftest.er1 >conftest.err
20257 rm -f conftest.er1
20258 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && {
20261 test -z "$ac_c_werror_flag" ||
20262 test ! -s conftest.err
20263 } && test -s conftest$ac_exeext &&
20264 $as_test_x conftest$ac_exeext; then
20265 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20266 else
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20271 fi
20272
20273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20274 conftest$ac_exeext conftest.$ac_ext
20275 LIBS=$ac_check_lib_save_LIBS
20276 fi
20277 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20278 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20279 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20280 cat >>confdefs.h <<_ACEOF
20281 #define HAVE_LIBK5CRYPTO 1
20282 _ACEOF
20283
20284 LIBS="-lk5crypto $LIBS"
20285
20286 fi
20287
20288
20289 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20290 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20291 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20293 else
20294 ac_check_lib_save_LIBS=$LIBS
20295 LIBS="-lcrypto $LIBS"
20296 cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h. */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302
20303 /* Override any GCC internal prototype to avoid an error.
20304 Use char because int might match the return type of a GCC
20305 builtin and then its argument prototype would still apply. */
20306 #ifdef __cplusplus
20307 extern "C"
20308 #endif
20309 char mit_des_cbc_encrypt ();
20310 int
20311 main ()
20312 {
20313 return mit_des_cbc_encrypt ();
20314 ;
20315 return 0;
20316 }
20317 _ACEOF
20318 rm -f conftest.$ac_objext conftest$ac_exeext
20319 if { (ac_try="$ac_link"
20320 case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_link") 2>conftest.er1
20326 ac_status=$?
20327 grep -v '^ *+' conftest.er1 >conftest.err
20328 rm -f conftest.er1
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } && {
20332 test -z "$ac_c_werror_flag" ||
20333 test ! -s conftest.err
20334 } && test -s conftest$ac_exeext &&
20335 $as_test_x conftest$ac_exeext; then
20336 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20337 else
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20340
20341 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20342 fi
20343
20344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20345 conftest$ac_exeext conftest.$ac_ext
20346 LIBS=$ac_check_lib_save_LIBS
20347 fi
20348 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20349 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20350 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20351 cat >>confdefs.h <<_ACEOF
20352 #define HAVE_LIBCRYPTO 1
20353 _ACEOF
20354
20355 LIBS="-lcrypto $LIBS"
20356
20357 fi
20358
20359
20360 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20361 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20362 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365 ac_check_lib_save_LIBS=$LIBS
20366 LIBS="-lkrb5 $LIBS"
20367 cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h. */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373
20374 /* Override any GCC internal prototype to avoid an error.
20375 Use char because int might match the return type of a GCC
20376 builtin and then its argument prototype would still apply. */
20377 #ifdef __cplusplus
20378 extern "C"
20379 #endif
20380 char krb5_init_context ();
20381 int
20382 main ()
20383 {
20384 return krb5_init_context ();
20385 ;
20386 return 0;
20387 }
20388 _ACEOF
20389 rm -f conftest.$ac_objext conftest$ac_exeext
20390 if { (ac_try="$ac_link"
20391 case "(($ac_try" in
20392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393 *) ac_try_echo=$ac_try;;
20394 esac
20395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396 (eval "$ac_link") 2>conftest.er1
20397 ac_status=$?
20398 grep -v '^ *+' conftest.er1 >conftest.err
20399 rm -f conftest.er1
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } && {
20403 test -z "$ac_c_werror_flag" ||
20404 test ! -s conftest.err
20405 } && test -s conftest$ac_exeext &&
20406 $as_test_x conftest$ac_exeext; then
20407 ac_cv_lib_krb5_krb5_init_context=yes
20408 else
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20411
20412 ac_cv_lib_krb5_krb5_init_context=no
20413 fi
20414
20415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20416 conftest$ac_exeext conftest.$ac_ext
20417 LIBS=$ac_check_lib_save_LIBS
20418 fi
20419 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20420 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20421 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20422 cat >>confdefs.h <<_ACEOF
20423 #define HAVE_LIBKRB5 1
20424 _ACEOF
20425
20426 LIBS="-lkrb5 $LIBS"
20427
20428 fi
20429
20430 if test "${with_kerberos5+set}" != set; then
20431
20432 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20433 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20434 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437 ac_check_lib_save_LIBS=$LIBS
20438 LIBS="-ldes425 $LIBS"
20439 cat >conftest.$ac_ext <<_ACEOF
20440 /* confdefs.h. */
20441 _ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h. */
20445
20446 /* Override any GCC internal prototype to avoid an error.
20447 Use char because int might match the return type of a GCC
20448 builtin and then its argument prototype would still apply. */
20449 #ifdef __cplusplus
20450 extern "C"
20451 #endif
20452 char des_cbc_encrypt ();
20453 int
20454 main ()
20455 {
20456 return des_cbc_encrypt ();
20457 ;
20458 return 0;
20459 }
20460 _ACEOF
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20466 esac
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_link") 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest$ac_exeext &&
20478 $as_test_x conftest$ac_exeext; then
20479 ac_cv_lib_des425_des_cbc_encrypt=yes
20480 else
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484 ac_cv_lib_des425_des_cbc_encrypt=no
20485 fi
20486
20487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20488 conftest$ac_exeext conftest.$ac_ext
20489 LIBS=$ac_check_lib_save_LIBS
20490 fi
20491 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20492 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20493 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20494 cat >>confdefs.h <<_ACEOF
20495 #define HAVE_LIBDES425 1
20496 _ACEOF
20497
20498 LIBS="-ldes425 $LIBS"
20499
20500 else
20501
20502 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20503 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20504 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507 ac_check_lib_save_LIBS=$LIBS
20508 LIBS="-ldes $LIBS"
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h. */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515
20516 /* Override any GCC internal prototype to avoid an error.
20517 Use char because int might match the return type of a GCC
20518 builtin and then its argument prototype would still apply. */
20519 #ifdef __cplusplus
20520 extern "C"
20521 #endif
20522 char des_cbc_encrypt ();
20523 int
20524 main ()
20525 {
20526 return des_cbc_encrypt ();
20527 ;
20528 return 0;
20529 }
20530 _ACEOF
20531 rm -f conftest.$ac_objext conftest$ac_exeext
20532 if { (ac_try="$ac_link"
20533 case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20536 esac
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_link") 2>conftest.er1
20539 ac_status=$?
20540 grep -v '^ *+' conftest.er1 >conftest.err
20541 rm -f conftest.er1
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } && {
20545 test -z "$ac_c_werror_flag" ||
20546 test ! -s conftest.err
20547 } && test -s conftest$ac_exeext &&
20548 $as_test_x conftest$ac_exeext; then
20549 ac_cv_lib_des_des_cbc_encrypt=yes
20550 else
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554 ac_cv_lib_des_des_cbc_encrypt=no
20555 fi
20556
20557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20558 conftest$ac_exeext conftest.$ac_ext
20559 LIBS=$ac_check_lib_save_LIBS
20560 fi
20561 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20562 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20563 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20564 cat >>confdefs.h <<_ACEOF
20565 #define HAVE_LIBDES 1
20566 _ACEOF
20567
20568 LIBS="-ldes $LIBS"
20569
20570 fi
20571
20572 fi
20573
20574
20575 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20576 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20577 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580 ac_check_lib_save_LIBS=$LIBS
20581 LIBS="-lkrb4 $LIBS"
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588
20589 /* Override any GCC internal prototype to avoid an error.
20590 Use char because int might match the return type of a GCC
20591 builtin and then its argument prototype would still apply. */
20592 #ifdef __cplusplus
20593 extern "C"
20594 #endif
20595 char krb_get_cred ();
20596 int
20597 main ()
20598 {
20599 return krb_get_cred ();
20600 ;
20601 return 0;
20602 }
20603 _ACEOF
20604 rm -f conftest.$ac_objext conftest$ac_exeext
20605 if { (ac_try="$ac_link"
20606 case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20609 esac
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_link") 2>conftest.er1
20612 ac_status=$?
20613 grep -v '^ *+' conftest.er1 >conftest.err
20614 rm -f conftest.er1
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } && {
20618 test -z "$ac_c_werror_flag" ||
20619 test ! -s conftest.err
20620 } && test -s conftest$ac_exeext &&
20621 $as_test_x conftest$ac_exeext; then
20622 ac_cv_lib_krb4_krb_get_cred=yes
20623 else
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ac_cv_lib_krb4_krb_get_cred=no
20628 fi
20629
20630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20631 conftest$ac_exeext conftest.$ac_ext
20632 LIBS=$ac_check_lib_save_LIBS
20633 fi
20634 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20635 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20636 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20637 cat >>confdefs.h <<_ACEOF
20638 #define HAVE_LIBKRB4 1
20639 _ACEOF
20640
20641 LIBS="-lkrb4 $LIBS"
20642
20643 else
20644
20645 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20646 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20647 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 else
20650 ac_check_lib_save_LIBS=$LIBS
20651 LIBS="-lkrb $LIBS"
20652 cat >conftest.$ac_ext <<_ACEOF
20653 /* confdefs.h. */
20654 _ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h. */
20658
20659 /* Override any GCC internal prototype to avoid an error.
20660 Use char because int might match the return type of a GCC
20661 builtin and then its argument prototype would still apply. */
20662 #ifdef __cplusplus
20663 extern "C"
20664 #endif
20665 char krb_get_cred ();
20666 int
20667 main ()
20668 {
20669 return krb_get_cred ();
20670 ;
20671 return 0;
20672 }
20673 _ACEOF
20674 rm -f conftest.$ac_objext conftest$ac_exeext
20675 if { (ac_try="$ac_link"
20676 case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20679 esac
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_link") 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest$ac_exeext &&
20691 $as_test_x conftest$ac_exeext; then
20692 ac_cv_lib_krb_krb_get_cred=yes
20693 else
20694 echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20696
20697 ac_cv_lib_krb_krb_get_cred=no
20698 fi
20699
20700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20701 conftest$ac_exeext conftest.$ac_ext
20702 LIBS=$ac_check_lib_save_LIBS
20703 fi
20704 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20705 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20706 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20707 cat >>confdefs.h <<_ACEOF
20708 #define HAVE_LIBKRB 1
20709 _ACEOF
20710
20711 LIBS="-lkrb $LIBS"
20712
20713 fi
20714
20715 fi
20716
20717 fi
20718
20719 if test "${with_kerberos5+set}" = set; then
20720
20721 for ac_header in krb5.h
20722 do
20723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20728 echo $ECHO_N "(cached) $ECHO_C" >&6
20729 fi
20730 ac_res=`eval echo '${'$as_ac_Header'}'`
20731 { echo "$as_me:$LINENO: result: $ac_res" >&5
20732 echo "${ECHO_T}$ac_res" >&6; }
20733 else
20734 # Is the header compilable?
20735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20737 cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h. */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 $ac_includes_default
20744 #include <$ac_header>
20745 _ACEOF
20746 rm -f conftest.$ac_objext
20747 if { (ac_try="$ac_compile"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_compile") 2>conftest.er1
20754 ac_status=$?
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest.$ac_objext; then
20763 ac_header_compiler=yes
20764 else
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768 ac_header_compiler=no
20769 fi
20770
20771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20773 echo "${ECHO_T}$ac_header_compiler" >&6; }
20774
20775 # Is the header present?
20776 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20778 cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h. */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 #include <$ac_header>
20785 _ACEOF
20786 if { (ac_try="$ac_cpp conftest.$ac_ext"
20787 case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20790 esac
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20793 ac_status=$?
20794 grep -v '^ *+' conftest.er1 >conftest.err
20795 rm -f conftest.er1
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } >/dev/null && {
20799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20800 test ! -s conftest.err
20801 }; then
20802 ac_header_preproc=yes
20803 else
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20806
20807 ac_header_preproc=no
20808 fi
20809
20810 rm -f conftest.err conftest.$ac_ext
20811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20812 echo "${ECHO_T}$ac_header_preproc" >&6; }
20813
20814 # So? What about this header?
20815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20816 yes:no: )
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20821 ac_header_preproc=yes
20822 ;;
20823 no:yes:* )
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20836
20837 ;;
20838 esac
20839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844 eval "$as_ac_Header=\$ac_header_preproc"
20845 fi
20846 ac_res=`eval echo '${'$as_ac_Header'}'`
20847 { echo "$as_me:$LINENO: result: $ac_res" >&5
20848 echo "${ECHO_T}$ac_res" >&6; }
20849
20850 fi
20851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20852 cat >>confdefs.h <<_ACEOF
20853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20854 _ACEOF
20855
20856 fi
20857
20858 done
20859
20860 else
20861
20862 for ac_header in des.h
20863 do
20864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20870 fi
20871 ac_res=`eval echo '${'$as_ac_Header'}'`
20872 { echo "$as_me:$LINENO: result: $ac_res" >&5
20873 echo "${ECHO_T}$ac_res" >&6; }
20874 else
20875 # Is the header compilable?
20876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20878 cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h. */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 $ac_includes_default
20885 #include <$ac_header>
20886 _ACEOF
20887 rm -f conftest.$ac_objext
20888 if { (ac_try="$ac_compile"
20889 case "(($ac_try" in
20890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20892 esac
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894 (eval "$ac_compile") 2>conftest.er1
20895 ac_status=$?
20896 grep -v '^ *+' conftest.er1 >conftest.err
20897 rm -f conftest.er1
20898 cat conftest.err >&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } && {
20901 test -z "$ac_c_werror_flag" ||
20902 test ! -s conftest.err
20903 } && test -s conftest.$ac_objext; then
20904 ac_header_compiler=yes
20905 else
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909 ac_header_compiler=no
20910 fi
20911
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20914 echo "${ECHO_T}$ac_header_compiler" >&6; }
20915
20916 # Is the header present?
20917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 #include <$ac_header>
20926 _ACEOF
20927 if { (ac_try="$ac_cpp conftest.$ac_ext"
20928 case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20931 esac
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20934 ac_status=$?
20935 grep -v '^ *+' conftest.er1 >conftest.err
20936 rm -f conftest.er1
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } >/dev/null && {
20940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20942 }; then
20943 ac_header_preproc=yes
20944 else
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948 ac_header_preproc=no
20949 fi
20950
20951 rm -f conftest.err conftest.$ac_ext
20952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20953 echo "${ECHO_T}$ac_header_preproc" >&6; }
20954
20955 # So? What about this header?
20956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20957 yes:no: )
20958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20962 ac_header_preproc=yes
20963 ;;
20964 no:yes:* )
20965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20977
20978 ;;
20979 esac
20980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20984 else
20985 eval "$as_ac_Header=\$ac_header_preproc"
20986 fi
20987 ac_res=`eval echo '${'$as_ac_Header'}'`
20988 { echo "$as_me:$LINENO: result: $ac_res" >&5
20989 echo "${ECHO_T}$ac_res" >&6; }
20990
20991 fi
20992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20993 cat >>confdefs.h <<_ACEOF
20994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20995 _ACEOF
20996
20997 else
20998
20999 for ac_header in kerberosIV/des.h
21000 do
21001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 fi
21008 ac_res=`eval echo '${'$as_ac_Header'}'`
21009 { echo "$as_me:$LINENO: result: $ac_res" >&5
21010 echo "${ECHO_T}$ac_res" >&6; }
21011 else
21012 # Is the header compilable?
21013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21015 cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h. */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 $ac_includes_default
21022 #include <$ac_header>
21023 _ACEOF
21024 rm -f conftest.$ac_objext
21025 if { (ac_try="$ac_compile"
21026 case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21029 esac
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_compile") 2>conftest.er1
21032 ac_status=$?
21033 grep -v '^ *+' conftest.er1 >conftest.err
21034 rm -f conftest.er1
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } && {
21038 test -z "$ac_c_werror_flag" ||
21039 test ! -s conftest.err
21040 } && test -s conftest.$ac_objext; then
21041 ac_header_compiler=yes
21042 else
21043 echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21045
21046 ac_header_compiler=no
21047 fi
21048
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21051 echo "${ECHO_T}$ac_header_compiler" >&6; }
21052
21053 # Is the header present?
21054 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21056 cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h. */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 #include <$ac_header>
21063 _ACEOF
21064 if { (ac_try="$ac_cpp conftest.$ac_ext"
21065 case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21068 esac
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21071 ac_status=$?
21072 grep -v '^ *+' conftest.er1 >conftest.err
21073 rm -f conftest.er1
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } >/dev/null && {
21077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21078 test ! -s conftest.err
21079 }; then
21080 ac_header_preproc=yes
21081 else
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21084
21085 ac_header_preproc=no
21086 fi
21087
21088 rm -f conftest.err conftest.$ac_ext
21089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21090 echo "${ECHO_T}$ac_header_preproc" >&6; }
21091
21092 # So? What about this header?
21093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21094 yes:no: )
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21099 ac_header_preproc=yes
21100 ;;
21101 no:yes:* )
21102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21114
21115 ;;
21116 esac
21117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21121 else
21122 eval "$as_ac_Header=\$ac_header_preproc"
21123 fi
21124 ac_res=`eval echo '${'$as_ac_Header'}'`
21125 { echo "$as_me:$LINENO: result: $ac_res" >&5
21126 echo "${ECHO_T}$ac_res" >&6; }
21127
21128 fi
21129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21130 cat >>confdefs.h <<_ACEOF
21131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21132 _ACEOF
21133
21134 else
21135
21136 for ac_header in kerberos/des.h
21137 do
21138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 fi
21145 ac_res=`eval echo '${'$as_ac_Header'}'`
21146 { echo "$as_me:$LINENO: result: $ac_res" >&5
21147 echo "${ECHO_T}$ac_res" >&6; }
21148 else
21149 # Is the header compilable?
21150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21152 cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h. */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 $ac_includes_default
21159 #include <$ac_header>
21160 _ACEOF
21161 rm -f conftest.$ac_objext
21162 if { (ac_try="$ac_compile"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_compile") 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest.$ac_objext; then
21178 ac_header_compiler=yes
21179 else
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21182
21183 ac_header_compiler=no
21184 fi
21185
21186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21188 echo "${ECHO_T}$ac_header_compiler" >&6; }
21189
21190 # Is the header present?
21191 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21193 cat >conftest.$ac_ext <<_ACEOF
21194 /* confdefs.h. */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 #include <$ac_header>
21200 _ACEOF
21201 if { (ac_try="$ac_cpp conftest.$ac_ext"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21205 esac
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21208 ac_status=$?
21209 grep -v '^ *+' conftest.er1 >conftest.err
21210 rm -f conftest.er1
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } >/dev/null && {
21214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21215 test ! -s conftest.err
21216 }; then
21217 ac_header_preproc=yes
21218 else
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21221
21222 ac_header_preproc=no
21223 fi
21224
21225 rm -f conftest.err conftest.$ac_ext
21226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21227 echo "${ECHO_T}$ac_header_preproc" >&6; }
21228
21229 # So? What about this header?
21230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21231 yes:no: )
21232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21236 ac_header_preproc=yes
21237 ;;
21238 no:yes:* )
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21251
21252 ;;
21253 esac
21254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259 eval "$as_ac_Header=\$ac_header_preproc"
21260 fi
21261 ac_res=`eval echo '${'$as_ac_Header'}'`
21262 { echo "$as_me:$LINENO: result: $ac_res" >&5
21263 echo "${ECHO_T}$ac_res" >&6; }
21264
21265 fi
21266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21267 cat >>confdefs.h <<_ACEOF
21268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21269 _ACEOF
21270
21271 fi
21272
21273 done
21274
21275 fi
21276
21277 done
21278
21279 fi
21280
21281 done
21282
21283
21284 for ac_header in krb.h
21285 do
21286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21292 fi
21293 ac_res=`eval echo '${'$as_ac_Header'}'`
21294 { echo "$as_me:$LINENO: result: $ac_res" >&5
21295 echo "${ECHO_T}$ac_res" >&6; }
21296 else
21297 # Is the header compilable?
21298 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21300 cat >conftest.$ac_ext <<_ACEOF
21301 /* confdefs.h. */
21302 _ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 $ac_includes_default
21307 #include <$ac_header>
21308 _ACEOF
21309 rm -f conftest.$ac_objext
21310 if { (ac_try="$ac_compile"
21311 case "(($ac_try" in
21312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313 *) ac_try_echo=$ac_try;;
21314 esac
21315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21316 (eval "$ac_compile") 2>conftest.er1
21317 ac_status=$?
21318 grep -v '^ *+' conftest.er1 >conftest.err
21319 rm -f conftest.er1
21320 cat conftest.err >&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } && {
21323 test -z "$ac_c_werror_flag" ||
21324 test ! -s conftest.err
21325 } && test -s conftest.$ac_objext; then
21326 ac_header_compiler=yes
21327 else
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21330
21331 ac_header_compiler=no
21332 fi
21333
21334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21336 echo "${ECHO_T}$ac_header_compiler" >&6; }
21337
21338 # Is the header present?
21339 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21341 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h. */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 #include <$ac_header>
21348 _ACEOF
21349 if { (ac_try="$ac_cpp conftest.$ac_ext"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21353 esac
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21356 ac_status=$?
21357 grep -v '^ *+' conftest.er1 >conftest.err
21358 rm -f conftest.er1
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } >/dev/null && {
21362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21363 test ! -s conftest.err
21364 }; then
21365 ac_header_preproc=yes
21366 else
21367 echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21369
21370 ac_header_preproc=no
21371 fi
21372
21373 rm -f conftest.err conftest.$ac_ext
21374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21375 echo "${ECHO_T}$ac_header_preproc" >&6; }
21376
21377 # So? What about this header?
21378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21379 yes:no: )
21380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21384 ac_header_preproc=yes
21385 ;;
21386 no:yes:* )
21387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21399
21400 ;;
21401 esac
21402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407 eval "$as_ac_Header=\$ac_header_preproc"
21408 fi
21409 ac_res=`eval echo '${'$as_ac_Header'}'`
21410 { echo "$as_me:$LINENO: result: $ac_res" >&5
21411 echo "${ECHO_T}$ac_res" >&6; }
21412
21413 fi
21414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21415 cat >>confdefs.h <<_ACEOF
21416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21417 _ACEOF
21418
21419 else
21420
21421 for ac_header in kerberosIV/krb.h
21422 do
21423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21428 echo $ECHO_N "(cached) $ECHO_C" >&6
21429 fi
21430 ac_res=`eval echo '${'$as_ac_Header'}'`
21431 { echo "$as_me:$LINENO: result: $ac_res" >&5
21432 echo "${ECHO_T}$ac_res" >&6; }
21433 else
21434 # Is the header compilable?
21435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21437 cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h. */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 $ac_includes_default
21444 #include <$ac_header>
21445 _ACEOF
21446 rm -f conftest.$ac_objext
21447 if { (ac_try="$ac_compile"
21448 case "(($ac_try" in
21449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450 *) ac_try_echo=$ac_try;;
21451 esac
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453 (eval "$ac_compile") 2>conftest.er1
21454 ac_status=$?
21455 grep -v '^ *+' conftest.er1 >conftest.err
21456 rm -f conftest.er1
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } && {
21460 test -z "$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21462 } && test -s conftest.$ac_objext; then
21463 ac_header_compiler=yes
21464 else
21465 echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468 ac_header_compiler=no
21469 fi
21470
21471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21473 echo "${ECHO_T}$ac_header_compiler" >&6; }
21474
21475 # Is the header present?
21476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21478 cat >conftest.$ac_ext <<_ACEOF
21479 /* confdefs.h. */
21480 _ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h. */
21484 #include <$ac_header>
21485 _ACEOF
21486 if { (ac_try="$ac_cpp conftest.$ac_ext"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21490 esac
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21493 ac_status=$?
21494 grep -v '^ *+' conftest.er1 >conftest.err
21495 rm -f conftest.er1
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } >/dev/null && {
21499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 }; then
21502 ac_header_preproc=yes
21503 else
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 ac_header_preproc=no
21508 fi
21509
21510 rm -f conftest.err conftest.$ac_ext
21511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21512 echo "${ECHO_T}$ac_header_preproc" >&6; }
21513
21514 # So? What about this header?
21515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21516 yes:no: )
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21521 ac_header_preproc=yes
21522 ;;
21523 no:yes:* )
21524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21536
21537 ;;
21538 esac
21539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 else
21544 eval "$as_ac_Header=\$ac_header_preproc"
21545 fi
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547 { echo "$as_me:$LINENO: result: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21549
21550 fi
21551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21552 cat >>confdefs.h <<_ACEOF
21553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21554 _ACEOF
21555
21556 else
21557
21558 for ac_header in kerberos/krb.h
21559 do
21560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21565 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 fi
21567 ac_res=`eval echo '${'$as_ac_Header'}'`
21568 { echo "$as_me:$LINENO: result: $ac_res" >&5
21569 echo "${ECHO_T}$ac_res" >&6; }
21570 else
21571 # Is the header compilable?
21572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h. */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 $ac_includes_default
21581 #include <$ac_header>
21582 _ACEOF
21583 rm -f conftest.$ac_objext
21584 if { (ac_try="$ac_compile"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21588 esac
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_compile") 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest.$ac_objext; then
21600 ac_header_compiler=yes
21601 else
21602 echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21604
21605 ac_header_compiler=no
21606 fi
21607
21608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21610 echo "${ECHO_T}$ac_header_compiler" >&6; }
21611
21612 # Is the header present?
21613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21615 cat >conftest.$ac_ext <<_ACEOF
21616 /* confdefs.h. */
21617 _ACEOF
21618 cat confdefs.h >>conftest.$ac_ext
21619 cat >>conftest.$ac_ext <<_ACEOF
21620 /* end confdefs.h. */
21621 #include <$ac_header>
21622 _ACEOF
21623 if { (ac_try="$ac_cpp conftest.$ac_ext"
21624 case "(($ac_try" in
21625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21626 *) ac_try_echo=$ac_try;;
21627 esac
21628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21630 ac_status=$?
21631 grep -v '^ *+' conftest.er1 >conftest.err
21632 rm -f conftest.er1
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } >/dev/null && {
21636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21637 test ! -s conftest.err
21638 }; then
21639 ac_header_preproc=yes
21640 else
21641 echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21643
21644 ac_header_preproc=no
21645 fi
21646
21647 rm -f conftest.err conftest.$ac_ext
21648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21649 echo "${ECHO_T}$ac_header_preproc" >&6; }
21650
21651 # So? What about this header?
21652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21653 yes:no: )
21654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21658 ac_header_preproc=yes
21659 ;;
21660 no:yes:* )
21661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21673
21674 ;;
21675 esac
21676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 else
21681 eval "$as_ac_Header=\$ac_header_preproc"
21682 fi
21683 ac_res=`eval echo '${'$as_ac_Header'}'`
21684 { echo "$as_me:$LINENO: result: $ac_res" >&5
21685 echo "${ECHO_T}$ac_res" >&6; }
21686
21687 fi
21688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21689 cat >>confdefs.h <<_ACEOF
21690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21691 _ACEOF
21692
21693 fi
21694
21695 done
21696
21697 fi
21698
21699 done
21700
21701 fi
21702
21703 done
21704
21705 fi
21706
21707 for ac_header in com_err.h
21708 do
21709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21714 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 fi
21716 ac_res=`eval echo '${'$as_ac_Header'}'`
21717 { echo "$as_me:$LINENO: result: $ac_res" >&5
21718 echo "${ECHO_T}$ac_res" >&6; }
21719 else
21720 # Is the header compilable?
21721 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21723 cat >conftest.$ac_ext <<_ACEOF
21724 /* confdefs.h. */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 $ac_includes_default
21730 #include <$ac_header>
21731 _ACEOF
21732 rm -f conftest.$ac_objext
21733 if { (ac_try="$ac_compile"
21734 case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21737 esac
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_compile") 2>conftest.er1
21740 ac_status=$?
21741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } && {
21746 test -z "$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21748 } && test -s conftest.$ac_objext; then
21749 ac_header_compiler=yes
21750 else
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21753
21754 ac_header_compiler=no
21755 fi
21756
21757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21759 echo "${ECHO_T}$ac_header_compiler" >&6; }
21760
21761 # Is the header present?
21762 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21764 cat >conftest.$ac_ext <<_ACEOF
21765 /* confdefs.h. */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21770 #include <$ac_header>
21771 _ACEOF
21772 if { (ac_try="$ac_cpp conftest.$ac_ext"
21773 case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21776 esac
21777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21779 ac_status=$?
21780 grep -v '^ *+' conftest.er1 >conftest.err
21781 rm -f conftest.er1
21782 cat conftest.err >&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } >/dev/null && {
21785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21786 test ! -s conftest.err
21787 }; then
21788 ac_header_preproc=yes
21789 else
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21792
21793 ac_header_preproc=no
21794 fi
21795
21796 rm -f conftest.err conftest.$ac_ext
21797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21798 echo "${ECHO_T}$ac_header_preproc" >&6; }
21799
21800 # So? What about this header?
21801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21802 yes:no: )
21803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21807 ac_header_preproc=yes
21808 ;;
21809 no:yes:* )
21810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21822
21823 ;;
21824 esac
21825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21828 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 else
21830 eval "$as_ac_Header=\$ac_header_preproc"
21831 fi
21832 ac_res=`eval echo '${'$as_ac_Header'}'`
21833 { echo "$as_me:$LINENO: result: $ac_res" >&5
21834 echo "${ECHO_T}$ac_res" >&6; }
21835
21836 fi
21837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21838 cat >>confdefs.h <<_ACEOF
21839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21840 _ACEOF
21841
21842 fi
21843
21844 done
21845
21846 fi
21847
21848 # Solaris requires -lintl if you want strerror (which calls dgettext)
21849 # to return localized messages.
21850
21851 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21852 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21853 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21854 echo $ECHO_N "(cached) $ECHO_C" >&6
21855 else
21856 ac_check_lib_save_LIBS=$LIBS
21857 LIBS="-lintl $LIBS"
21858 cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h. */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864
21865 /* Override any GCC internal prototype to avoid an error.
21866 Use char because int might match the return type of a GCC
21867 builtin and then its argument prototype would still apply. */
21868 #ifdef __cplusplus
21869 extern "C"
21870 #endif
21871 char dgettext ();
21872 int
21873 main ()
21874 {
21875 return dgettext ();
21876 ;
21877 return 0;
21878 }
21879 _ACEOF
21880 rm -f conftest.$ac_objext conftest$ac_exeext
21881 if { (ac_try="$ac_link"
21882 case "(($ac_try" in
21883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884 *) ac_try_echo=$ac_try;;
21885 esac
21886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887 (eval "$ac_link") 2>conftest.er1
21888 ac_status=$?
21889 grep -v '^ *+' conftest.er1 >conftest.err
21890 rm -f conftest.er1
21891 cat conftest.err >&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } && {
21894 test -z "$ac_c_werror_flag" ||
21895 test ! -s conftest.err
21896 } && test -s conftest$ac_exeext &&
21897 $as_test_x conftest$ac_exeext; then
21898 ac_cv_lib_intl_dgettext=yes
21899 else
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21902
21903 ac_cv_lib_intl_dgettext=no
21904 fi
21905
21906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21907 conftest$ac_exeext conftest.$ac_ext
21908 LIBS=$ac_check_lib_save_LIBS
21909 fi
21910 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21911 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21912 if test $ac_cv_lib_intl_dgettext = yes; then
21913 cat >>confdefs.h <<_ACEOF
21914 #define HAVE_LIBINTL 1
21915 _ACEOF
21916
21917 LIBS="-lintl $LIBS"
21918
21919 fi
21920
21921
21922 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21923 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21924 if test "${emacs_cv_localtime_cache+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 else
21927 if test x$ac_cv_func_tzset = xyes; then
21928 if test "$cross_compiling" = yes; then
21929 # If we have tzset, assume the worst when cross-compiling.
21930 emacs_cv_localtime_cache=yes
21931 else
21932 cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h. */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21938 #include <time.h>
21939 extern char **environ;
21940 unset_TZ ()
21941 {
21942 char **from, **to;
21943 for (to = from = environ; (*to = *from); from++)
21944 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21945 to++;
21946 }
21947 char TZ_GMT0[] = "TZ=GMT0";
21948 char TZ_PST8[] = "TZ=PST8";
21949 main()
21950 {
21951 time_t now = time ((time_t *) 0);
21952 int hour_GMT0, hour_unset;
21953 if (putenv (TZ_GMT0) != 0)
21954 exit (1);
21955 hour_GMT0 = localtime (&now)->tm_hour;
21956 unset_TZ ();
21957 hour_unset = localtime (&now)->tm_hour;
21958 if (putenv (TZ_PST8) != 0)
21959 exit (1);
21960 if (localtime (&now)->tm_hour == hour_GMT0)
21961 exit (1);
21962 unset_TZ ();
21963 if (localtime (&now)->tm_hour != hour_unset)
21964 exit (1);
21965 exit (0);
21966 }
21967 _ACEOF
21968 rm -f conftest$ac_exeext
21969 if { (ac_try="$ac_link"
21970 case "(($ac_try" in
21971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972 *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975 (eval "$ac_link") 2>&5
21976 ac_status=$?
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21979 { (case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21982 esac
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_try") 2>&5
21985 ac_status=$?
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); }; }; then
21988 emacs_cv_localtime_cache=no
21989 else
21990 echo "$as_me: program exited with status $ac_status" >&5
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21993
21994 ( exit $ac_status )
21995 emacs_cv_localtime_cache=yes
21996 fi
21997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21998 fi
21999
22000
22001 else
22002 # If we lack tzset, report that localtime does not cache TZ,
22003 # since we can't invalidate the cache if we don't have tzset.
22004 emacs_cv_localtime_cache=no
22005 fi
22006 fi
22007 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22008 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22009 if test $emacs_cv_localtime_cache = yes; then
22010
22011 cat >>confdefs.h <<\_ACEOF
22012 #define LOCALTIME_CACHE 1
22013 _ACEOF
22014
22015 fi
22016
22017 if test "x$HAVE_TIMEVAL" = xyes; then
22018
22019 for ac_func in gettimeofday
22020 do
22021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22026 else
22027 cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h. */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22035 #define $ac_func innocuous_$ac_func
22036
22037 /* System header to define __stub macros and hopefully few prototypes,
22038 which can conflict with char $ac_func (); below.
22039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22040 <limits.h> exists even on freestanding compilers. */
22041
22042 #ifdef __STDC__
22043 # include <limits.h>
22044 #else
22045 # include <assert.h>
22046 #endif
22047
22048 #undef $ac_func
22049
22050 /* Override any GCC internal prototype to avoid an error.
22051 Use char because int might match the return type of a GCC
22052 builtin and then its argument prototype would still apply. */
22053 #ifdef __cplusplus
22054 extern "C"
22055 #endif
22056 char $ac_func ();
22057 /* The GNU C library defines this for functions which it implements
22058 to always fail with ENOSYS. Some functions are actually named
22059 something starting with __ and the normal name is an alias. */
22060 #if defined __stub_$ac_func || defined __stub___$ac_func
22061 choke me
22062 #endif
22063
22064 int
22065 main ()
22066 {
22067 return $ac_func ();
22068 ;
22069 return 0;
22070 }
22071 _ACEOF
22072 rm -f conftest.$ac_objext conftest$ac_exeext
22073 if { (ac_try="$ac_link"
22074 case "(($ac_try" in
22075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076 *) ac_try_echo=$ac_try;;
22077 esac
22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079 (eval "$ac_link") 2>conftest.er1
22080 ac_status=$?
22081 grep -v '^ *+' conftest.er1 >conftest.err
22082 rm -f conftest.er1
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } && {
22086 test -z "$ac_c_werror_flag" ||
22087 test ! -s conftest.err
22088 } && test -s conftest$ac_exeext &&
22089 $as_test_x conftest$ac_exeext; then
22090 eval "$as_ac_var=yes"
22091 else
22092 echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22094
22095 eval "$as_ac_var=no"
22096 fi
22097
22098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22099 conftest$ac_exeext conftest.$ac_ext
22100 fi
22101 ac_res=`eval echo '${'$as_ac_var'}'`
22102 { echo "$as_me:$LINENO: result: $ac_res" >&5
22103 echo "${ECHO_T}$ac_res" >&6; }
22104 if test `eval echo '${'$as_ac_var'}'` = yes; then
22105 cat >>confdefs.h <<_ACEOF
22106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22107 _ACEOF
22108
22109 fi
22110 done
22111
22112 if test $ac_cv_func_gettimeofday = yes; then
22113 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22114 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22115 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
22117 else
22118 cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h. */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124
22125 #ifdef TIME_WITH_SYS_TIME
22126 #include <sys/time.h>
22127 #include <time.h>
22128 #else
22129 #ifdef HAVE_SYS_TIME_H
22130 #include <sys/time.h>
22131 #else
22132 #include <time.h>
22133 #endif
22134 #endif
22135 int
22136 main ()
22137 {
22138 struct timeval time;
22139 gettimeofday (&time, 0);
22140 ;
22141 return 0;
22142 }
22143 _ACEOF
22144 rm -f conftest.$ac_objext
22145 if { (ac_try="$ac_compile"
22146 case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22149 esac
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_compile") 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest.$ac_objext; then
22161 emacs_cv_gettimeofday_two_arguments=yes
22162 else
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165
22166 emacs_cv_gettimeofday_two_arguments=no
22167 fi
22168
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170 fi
22171 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22172 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22173 if test $emacs_cv_gettimeofday_two_arguments = no; then
22174
22175 cat >>confdefs.h <<\_ACEOF
22176 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22177 _ACEOF
22178
22179 fi
22180 fi
22181 fi
22182
22183 ok_so_far=yes
22184 { echo "$as_me:$LINENO: checking for socket" >&5
22185 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22186 if test "${ac_cv_func_socket+set}" = set; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 else
22189 cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h. */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22197 #define socket innocuous_socket
22198
22199 /* System header to define __stub macros and hopefully few prototypes,
22200 which can conflict with char socket (); below.
22201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22202 <limits.h> exists even on freestanding compilers. */
22203
22204 #ifdef __STDC__
22205 # include <limits.h>
22206 #else
22207 # include <assert.h>
22208 #endif
22209
22210 #undef socket
22211
22212 /* Override any GCC internal prototype to avoid an error.
22213 Use char because int might match the return type of a GCC
22214 builtin and then its argument prototype would still apply. */
22215 #ifdef __cplusplus
22216 extern "C"
22217 #endif
22218 char socket ();
22219 /* The GNU C library defines this for functions which it implements
22220 to always fail with ENOSYS. Some functions are actually named
22221 something starting with __ and the normal name is an alias. */
22222 #if defined __stub_socket || defined __stub___socket
22223 choke me
22224 #endif
22225
22226 int
22227 main ()
22228 {
22229 return socket ();
22230 ;
22231 return 0;
22232 }
22233 _ACEOF
22234 rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (ac_try="$ac_link"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22239 esac
22240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241 (eval "$ac_link") 2>conftest.er1
22242 ac_status=$?
22243 grep -v '^ *+' conftest.er1 >conftest.err
22244 rm -f conftest.er1
22245 cat conftest.err >&5
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); } && {
22248 test -z "$ac_c_werror_flag" ||
22249 test ! -s conftest.err
22250 } && test -s conftest$ac_exeext &&
22251 $as_test_x conftest$ac_exeext; then
22252 ac_cv_func_socket=yes
22253 else
22254 echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22256
22257 ac_cv_func_socket=no
22258 fi
22259
22260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22261 conftest$ac_exeext conftest.$ac_ext
22262 fi
22263 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22264 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22265 if test $ac_cv_func_socket = yes; then
22266 :
22267 else
22268 ok_so_far=no
22269 fi
22270
22271 if test $ok_so_far = yes; then
22272 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22273 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22274 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22275 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22276 echo $ECHO_N "(cached) $ECHO_C" >&6
22277 fi
22278 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22279 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22280 else
22281 # Is the header compilable?
22282 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22283 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22284 cat >conftest.$ac_ext <<_ACEOF
22285 /* confdefs.h. */
22286 _ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h. */
22290 $ac_includes_default
22291 #include <netinet/in.h>
22292 _ACEOF
22293 rm -f conftest.$ac_objext
22294 if { (ac_try="$ac_compile"
22295 case "(($ac_try" in
22296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297 *) ac_try_echo=$ac_try;;
22298 esac
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300 (eval "$ac_compile") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest.$ac_objext; then
22310 ac_header_compiler=yes
22311 else
22312 echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315 ac_header_compiler=no
22316 fi
22317
22318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22320 echo "${ECHO_T}$ac_header_compiler" >&6; }
22321
22322 # Is the header present?
22323 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22324 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22325 cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h. */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 #include <netinet/in.h>
22332 _ACEOF
22333 if { (ac_try="$ac_cpp conftest.$ac_ext"
22334 case "(($ac_try" in
22335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336 *) ac_try_echo=$ac_try;;
22337 esac
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22340 ac_status=$?
22341 grep -v '^ *+' conftest.er1 >conftest.err
22342 rm -f conftest.er1
22343 cat conftest.err >&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); } >/dev/null && {
22346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22347 test ! -s conftest.err
22348 }; then
22349 ac_header_preproc=yes
22350 else
22351 echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22353
22354 ac_header_preproc=no
22355 fi
22356
22357 rm -f conftest.err conftest.$ac_ext
22358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22359 echo "${ECHO_T}$ac_header_preproc" >&6; }
22360
22361 # So? What about this header?
22362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22363 yes:no: )
22364 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22365 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22366 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22367 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22368 ac_header_preproc=yes
22369 ;;
22370 no:yes:* )
22371 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22372 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22374 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22375 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22376 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22377 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22378 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22379 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22380 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22381 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22382 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22383
22384 ;;
22385 esac
22386 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22387 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22388 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22390 else
22391 ac_cv_header_netinet_in_h=$ac_header_preproc
22392 fi
22393 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22394 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22395
22396 fi
22397 if test $ac_cv_header_netinet_in_h = yes; then
22398 :
22399 else
22400 ok_so_far=no
22401 fi
22402
22403
22404 fi
22405 if test $ok_so_far = yes; then
22406 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22407 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22408 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22409 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22410 echo $ECHO_N "(cached) $ECHO_C" >&6
22411 fi
22412 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22413 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22414 else
22415 # Is the header compilable?
22416 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22417 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22418 cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h. */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22424 $ac_includes_default
22425 #include <arpa/inet.h>
22426 _ACEOF
22427 rm -f conftest.$ac_objext
22428 if { (ac_try="$ac_compile"
22429 case "(($ac_try" in
22430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431 *) ac_try_echo=$ac_try;;
22432 esac
22433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22434 (eval "$ac_compile") 2>conftest.er1
22435 ac_status=$?
22436 grep -v '^ *+' conftest.er1 >conftest.err
22437 rm -f conftest.er1
22438 cat conftest.err >&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } && {
22441 test -z "$ac_c_werror_flag" ||
22442 test ! -s conftest.err
22443 } && test -s conftest.$ac_objext; then
22444 ac_header_compiler=yes
22445 else
22446 echo "$as_me: failed program was:" >&5
22447 sed 's/^/| /' conftest.$ac_ext >&5
22448
22449 ac_header_compiler=no
22450 fi
22451
22452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22454 echo "${ECHO_T}$ac_header_compiler" >&6; }
22455
22456 # Is the header present?
22457 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22458 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22459 cat >conftest.$ac_ext <<_ACEOF
22460 /* confdefs.h. */
22461 _ACEOF
22462 cat confdefs.h >>conftest.$ac_ext
22463 cat >>conftest.$ac_ext <<_ACEOF
22464 /* end confdefs.h. */
22465 #include <arpa/inet.h>
22466 _ACEOF
22467 if { (ac_try="$ac_cpp conftest.$ac_ext"
22468 case "(($ac_try" in
22469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22470 *) ac_try_echo=$ac_try;;
22471 esac
22472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22474 ac_status=$?
22475 grep -v '^ *+' conftest.er1 >conftest.err
22476 rm -f conftest.er1
22477 cat conftest.err >&5
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); } >/dev/null && {
22480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22481 test ! -s conftest.err
22482 }; then
22483 ac_header_preproc=yes
22484 else
22485 echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22487
22488 ac_header_preproc=no
22489 fi
22490
22491 rm -f conftest.err conftest.$ac_ext
22492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22493 echo "${ECHO_T}$ac_header_preproc" >&6; }
22494
22495 # So? What about this header?
22496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22497 yes:no: )
22498 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22499 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22500 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22501 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22502 ac_header_preproc=yes
22503 ;;
22504 no:yes:* )
22505 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22506 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22507 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22508 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22509 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22510 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22511 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22512 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22513 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22514 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22515 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22516 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22517
22518 ;;
22519 esac
22520 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22521 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22522 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22524 else
22525 ac_cv_header_arpa_inet_h=$ac_header_preproc
22526 fi
22527 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22528 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22529
22530 fi
22531 if test $ac_cv_header_arpa_inet_h = yes; then
22532 :
22533 else
22534 ok_so_far=no
22535 fi
22536
22537
22538 fi
22539 if test $ok_so_far = yes; then
22540
22541 cat >>confdefs.h <<\_ACEOF
22542 #define HAVE_INET_SOCKETS 1
22543 _ACEOF
22544
22545 fi
22546
22547
22548 for ac_header in sys/ioctl.h
22549 do
22550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22556 fi
22557 ac_res=`eval echo '${'$as_ac_Header'}'`
22558 { echo "$as_me:$LINENO: result: $ac_res" >&5
22559 echo "${ECHO_T}$ac_res" >&6; }
22560 else
22561 # Is the header compilable?
22562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22564 cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h. */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 $ac_includes_default
22571 #include <$ac_header>
22572 _ACEOF
22573 rm -f conftest.$ac_objext
22574 if { (ac_try="$ac_compile"
22575 case "(($ac_try" in
22576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22578 esac
22579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22580 (eval "$ac_compile") 2>conftest.er1
22581 ac_status=$?
22582 grep -v '^ *+' conftest.er1 >conftest.err
22583 rm -f conftest.er1
22584 cat conftest.err >&5
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); } && {
22587 test -z "$ac_c_werror_flag" ||
22588 test ! -s conftest.err
22589 } && test -s conftest.$ac_objext; then
22590 ac_header_compiler=yes
22591 else
22592 echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22594
22595 ac_header_compiler=no
22596 fi
22597
22598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22600 echo "${ECHO_T}$ac_header_compiler" >&6; }
22601
22602 # Is the header present?
22603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22605 cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h. */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22611 #include <$ac_header>
22612 _ACEOF
22613 if { (ac_try="$ac_cpp conftest.$ac_ext"
22614 case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22617 esac
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22620 ac_status=$?
22621 grep -v '^ *+' conftest.er1 >conftest.err
22622 rm -f conftest.er1
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } >/dev/null && {
22626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22628 }; then
22629 ac_header_preproc=yes
22630 else
22631 echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22633
22634 ac_header_preproc=no
22635 fi
22636
22637 rm -f conftest.err conftest.$ac_ext
22638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22639 echo "${ECHO_T}$ac_header_preproc" >&6; }
22640
22641 # So? What about this header?
22642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22643 yes:no: )
22644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22648 ac_header_preproc=yes
22649 ;;
22650 no:yes:* )
22651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22663
22664 ;;
22665 esac
22666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22670 else
22671 eval "$as_ac_Header=\$ac_header_preproc"
22672 fi
22673 ac_res=`eval echo '${'$as_ac_Header'}'`
22674 { echo "$as_me:$LINENO: result: $ac_res" >&5
22675 echo "${ECHO_T}$ac_res" >&6; }
22676
22677 fi
22678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22679 cat >>confdefs.h <<_ACEOF
22680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22681 _ACEOF
22682
22683 fi
22684
22685 done
22686
22687
22688 if test -f /usr/lpp/X11/bin/smt.exp; then
22689
22690 cat >>confdefs.h <<\_ACEOF
22691 #define HAVE_AIX_SMT_EXP 1
22692 _ACEOF
22693
22694 fi
22695
22696 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22697 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22698 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22699 { echo "$as_me:$LINENO: result: yes" >&5
22700 echo "${ECHO_T}yes" >&6; }
22701
22702 cat >>confdefs.h <<\_ACEOF
22703 #define HAVE_DEV_PTMX 1
22704 _ACEOF
22705
22706 else
22707 { echo "$as_me:$LINENO: result: no" >&5
22708 echo "${ECHO_T}no" >&6; }
22709 fi
22710
22711 { echo "$as_me:$LINENO: checking for pid_t" >&5
22712 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22713 if test "${ac_cv_type_pid_t+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22715 else
22716 cat >conftest.$ac_ext <<_ACEOF
22717 /* confdefs.h. */
22718 _ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 $ac_includes_default
22723 typedef pid_t ac__type_new_;
22724 int
22725 main ()
22726 {
22727 if ((ac__type_new_ *) 0)
22728 return 0;
22729 if (sizeof (ac__type_new_))
22730 return 0;
22731 ;
22732 return 0;
22733 }
22734 _ACEOF
22735 rm -f conftest.$ac_objext
22736 if { (ac_try="$ac_compile"
22737 case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_compile") 2>conftest.er1
22743 ac_status=$?
22744 grep -v '^ *+' conftest.er1 >conftest.err
22745 rm -f conftest.er1
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } && {
22749 test -z "$ac_c_werror_flag" ||
22750 test ! -s conftest.err
22751 } && test -s conftest.$ac_objext; then
22752 ac_cv_type_pid_t=yes
22753 else
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22756
22757 ac_cv_type_pid_t=no
22758 fi
22759
22760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22761 fi
22762 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22763 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22764 if test $ac_cv_type_pid_t = yes; then
22765 :
22766 else
22767
22768 cat >>confdefs.h <<_ACEOF
22769 #define pid_t int
22770 _ACEOF
22771
22772 fi
22773
22774
22775 for ac_header in vfork.h
22776 do
22777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22782 echo $ECHO_N "(cached) $ECHO_C" >&6
22783 fi
22784 ac_res=`eval echo '${'$as_ac_Header'}'`
22785 { echo "$as_me:$LINENO: result: $ac_res" >&5
22786 echo "${ECHO_T}$ac_res" >&6; }
22787 else
22788 # Is the header compilable?
22789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22791 cat >conftest.$ac_ext <<_ACEOF
22792 /* confdefs.h. */
22793 _ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h. */
22797 $ac_includes_default
22798 #include <$ac_header>
22799 _ACEOF
22800 rm -f conftest.$ac_objext
22801 if { (ac_try="$ac_compile"
22802 case "(($ac_try" in
22803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804 *) ac_try_echo=$ac_try;;
22805 esac
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807 (eval "$ac_compile") 2>conftest.er1
22808 ac_status=$?
22809 grep -v '^ *+' conftest.er1 >conftest.err
22810 rm -f conftest.er1
22811 cat conftest.err >&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } && {
22814 test -z "$ac_c_werror_flag" ||
22815 test ! -s conftest.err
22816 } && test -s conftest.$ac_objext; then
22817 ac_header_compiler=yes
22818 else
22819 echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22821
22822 ac_header_compiler=no
22823 fi
22824
22825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22827 echo "${ECHO_T}$ac_header_compiler" >&6; }
22828
22829 # Is the header present?
22830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22832 cat >conftest.$ac_ext <<_ACEOF
22833 /* confdefs.h. */
22834 _ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22838 #include <$ac_header>
22839 _ACEOF
22840 if { (ac_try="$ac_cpp conftest.$ac_ext"
22841 case "(($ac_try" in
22842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22843 *) ac_try_echo=$ac_try;;
22844 esac
22845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22847 ac_status=$?
22848 grep -v '^ *+' conftest.er1 >conftest.err
22849 rm -f conftest.er1
22850 cat conftest.err >&5
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); } >/dev/null && {
22853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22854 test ! -s conftest.err
22855 }; then
22856 ac_header_preproc=yes
22857 else
22858 echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22860
22861 ac_header_preproc=no
22862 fi
22863
22864 rm -f conftest.err conftest.$ac_ext
22865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22866 echo "${ECHO_T}$ac_header_preproc" >&6; }
22867
22868 # So? What about this header?
22869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22870 yes:no: )
22871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22875 ac_header_preproc=yes
22876 ;;
22877 no:yes:* )
22878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22890
22891 ;;
22892 esac
22893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22898 eval "$as_ac_Header=\$ac_header_preproc"
22899 fi
22900 ac_res=`eval echo '${'$as_ac_Header'}'`
22901 { echo "$as_me:$LINENO: result: $ac_res" >&5
22902 echo "${ECHO_T}$ac_res" >&6; }
22903
22904 fi
22905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22906 cat >>confdefs.h <<_ACEOF
22907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22908 _ACEOF
22909
22910 fi
22911
22912 done
22913
22914
22915
22916 for ac_func in fork vfork
22917 do
22918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22922 echo $ECHO_N "(cached) $ECHO_C" >&6
22923 else
22924 cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h. */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22932 #define $ac_func innocuous_$ac_func
22933
22934 /* System header to define __stub macros and hopefully few prototypes,
22935 which can conflict with char $ac_func (); below.
22936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22937 <limits.h> exists even on freestanding compilers. */
22938
22939 #ifdef __STDC__
22940 # include <limits.h>
22941 #else
22942 # include <assert.h>
22943 #endif
22944
22945 #undef $ac_func
22946
22947 /* Override any GCC internal prototype to avoid an error.
22948 Use char because int might match the return type of a GCC
22949 builtin and then its argument prototype would still apply. */
22950 #ifdef __cplusplus
22951 extern "C"
22952 #endif
22953 char $ac_func ();
22954 /* The GNU C library defines this for functions which it implements
22955 to always fail with ENOSYS. Some functions are actually named
22956 something starting with __ and the normal name is an alias. */
22957 #if defined __stub_$ac_func || defined __stub___$ac_func
22958 choke me
22959 #endif
22960
22961 int
22962 main ()
22963 {
22964 return $ac_func ();
22965 ;
22966 return 0;
22967 }
22968 _ACEOF
22969 rm -f conftest.$ac_objext conftest$ac_exeext
22970 if { (ac_try="$ac_link"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22974 esac
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_link") 2>conftest.er1
22977 ac_status=$?
22978 grep -v '^ *+' conftest.er1 >conftest.err
22979 rm -f conftest.er1
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } && {
22983 test -z "$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22985 } && test -s conftest$ac_exeext &&
22986 $as_test_x conftest$ac_exeext; then
22987 eval "$as_ac_var=yes"
22988 else
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22991
22992 eval "$as_ac_var=no"
22993 fi
22994
22995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22996 conftest$ac_exeext conftest.$ac_ext
22997 fi
22998 ac_res=`eval echo '${'$as_ac_var'}'`
22999 { echo "$as_me:$LINENO: result: $ac_res" >&5
23000 echo "${ECHO_T}$ac_res" >&6; }
23001 if test `eval echo '${'$as_ac_var'}'` = yes; then
23002 cat >>confdefs.h <<_ACEOF
23003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23004 _ACEOF
23005
23006 fi
23007 done
23008
23009 if test "x$ac_cv_func_fork" = xyes; then
23010 { echo "$as_me:$LINENO: checking for working fork" >&5
23011 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23012 if test "${ac_cv_func_fork_works+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
23014 else
23015 if test "$cross_compiling" = yes; then
23016 ac_cv_func_fork_works=cross
23017 else
23018 cat >conftest.$ac_ext <<_ACEOF
23019 /* confdefs.h. */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 $ac_includes_default
23025 int
23026 main ()
23027 {
23028
23029 /* By Ruediger Kuhlmann. */
23030 return fork () < 0;
23031
23032 ;
23033 return 0;
23034 }
23035 _ACEOF
23036 rm -f conftest$ac_exeext
23037 if { (ac_try="$ac_link"
23038 case "(($ac_try" in
23039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23040 *) ac_try_echo=$ac_try;;
23041 esac
23042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23043 (eval "$ac_link") 2>&5
23044 ac_status=$?
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23047 { (case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23050 esac
23051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052 (eval "$ac_try") 2>&5
23053 ac_status=$?
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); }; }; then
23056 ac_cv_func_fork_works=yes
23057 else
23058 echo "$as_me: program exited with status $ac_status" >&5
23059 echo "$as_me: failed program was:" >&5
23060 sed 's/^/| /' conftest.$ac_ext >&5
23061
23062 ( exit $ac_status )
23063 ac_cv_func_fork_works=no
23064 fi
23065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23066 fi
23067
23068
23069 fi
23070 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23071 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23072
23073 else
23074 ac_cv_func_fork_works=$ac_cv_func_fork
23075 fi
23076 if test "x$ac_cv_func_fork_works" = xcross; then
23077 case $host in
23078 *-*-amigaos* | *-*-msdosdjgpp*)
23079 # Override, as these systems have only a dummy fork() stub
23080 ac_cv_func_fork_works=no
23081 ;;
23082 *)
23083 ac_cv_func_fork_works=yes
23084 ;;
23085 esac
23086 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23087 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23088 fi
23089 ac_cv_func_vfork_works=$ac_cv_func_vfork
23090 if test "x$ac_cv_func_vfork" = xyes; then
23091 { echo "$as_me:$LINENO: checking for working vfork" >&5
23092 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23093 if test "${ac_cv_func_vfork_works+set}" = set; then
23094 echo $ECHO_N "(cached) $ECHO_C" >&6
23095 else
23096 if test "$cross_compiling" = yes; then
23097 ac_cv_func_vfork_works=cross
23098 else
23099 cat >conftest.$ac_ext <<_ACEOF
23100 /* confdefs.h. */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h. */
23105 /* Thanks to Paul Eggert for this test. */
23106 $ac_includes_default
23107 #include <sys/wait.h>
23108 #ifdef HAVE_VFORK_H
23109 # include <vfork.h>
23110 #endif
23111 /* On some sparc systems, changes by the child to local and incoming
23112 argument registers are propagated back to the parent. The compiler
23113 is told about this with #include <vfork.h>, but some compilers
23114 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23115 static variable whose address is put into a register that is
23116 clobbered by the vfork. */
23117 static void
23118 #ifdef __cplusplus
23119 sparc_address_test (int arg)
23120 # else
23121 sparc_address_test (arg) int arg;
23122 #endif
23123 {
23124 static pid_t child;
23125 if (!child) {
23126 child = vfork ();
23127 if (child < 0) {
23128 perror ("vfork");
23129 _exit(2);
23130 }
23131 if (!child) {
23132 arg = getpid();
23133 write(-1, "", 0);
23134 _exit (arg);
23135 }
23136 }
23137 }
23138
23139 int
23140 main ()
23141 {
23142 pid_t parent = getpid ();
23143 pid_t child;
23144
23145 sparc_address_test (0);
23146
23147 child = vfork ();
23148
23149 if (child == 0) {
23150 /* Here is another test for sparc vfork register problems. This
23151 test uses lots of local variables, at least as many local
23152 variables as main has allocated so far including compiler
23153 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23154 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23155 reuse the register of parent for one of the local variables,
23156 since it will think that parent can't possibly be used any more
23157 in this routine. Assigning to the local variable will thus
23158 munge parent in the parent process. */
23159 pid_t
23160 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23161 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23162 /* Convince the compiler that p..p7 are live; otherwise, it might
23163 use the same hardware register for all 8 local variables. */
23164 if (p != p1 || p != p2 || p != p3 || p != p4
23165 || p != p5 || p != p6 || p != p7)
23166 _exit(1);
23167
23168 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23169 from child file descriptors. If the child closes a descriptor
23170 before it execs or exits, this munges the parent's descriptor
23171 as well. Test for this by closing stdout in the child. */
23172 _exit(close(fileno(stdout)) != 0);
23173 } else {
23174 int status;
23175 struct stat st;
23176
23177 while (wait(&status) != child)
23178 ;
23179 return (
23180 /* Was there some problem with vforking? */
23181 child < 0
23182
23183 /* Did the child fail? (This shouldn't happen.) */
23184 || status
23185
23186 /* Did the vfork/compiler bug occur? */
23187 || parent != getpid()
23188
23189 /* Did the file descriptor bug occur? */
23190 || fstat(fileno(stdout), &st) != 0
23191 );
23192 }
23193 }
23194 _ACEOF
23195 rm -f conftest$ac_exeext
23196 if { (ac_try="$ac_link"
23197 case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23200 esac
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202 (eval "$ac_link") 2>&5
23203 ac_status=$?
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23206 { (case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23209 esac
23210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_try") 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; }; then
23215 ac_cv_func_vfork_works=yes
23216 else
23217 echo "$as_me: program exited with status $ac_status" >&5
23218 echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23220
23221 ( exit $ac_status )
23222 ac_cv_func_vfork_works=no
23223 fi
23224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23225 fi
23226
23227
23228 fi
23229 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23230 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23231
23232 fi;
23233 if test "x$ac_cv_func_fork_works" = xcross; then
23234 ac_cv_func_vfork_works=$ac_cv_func_vfork
23235 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23236 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23237 fi
23238
23239 if test "x$ac_cv_func_vfork_works" = xyes; then
23240
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_WORKING_VFORK 1
23243 _ACEOF
23244
23245 else
23246
23247 cat >>confdefs.h <<\_ACEOF
23248 #define vfork fork
23249 _ACEOF
23250
23251 fi
23252 if test "x$ac_cv_func_fork_works" = xyes; then
23253
23254 cat >>confdefs.h <<\_ACEOF
23255 #define HAVE_WORKING_FORK 1
23256 _ACEOF
23257
23258 fi
23259
23260
23261 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23262 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23263 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23264 echo $ECHO_N "(cached) $ECHO_C" >&6
23265 else
23266 cat >conftest.$ac_ext <<_ACEOF
23267 /* confdefs.h. */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 #include <langinfo.h>
23273 int
23274 main ()
23275 {
23276 char* cs = nl_langinfo(CODESET);
23277 ;
23278 return 0;
23279 }
23280 _ACEOF
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (ac_try="$ac_link"
23283 case "(($ac_try" in
23284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285 *) ac_try_echo=$ac_try;;
23286 esac
23287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23288 (eval "$ac_link") 2>conftest.er1
23289 ac_status=$?
23290 grep -v '^ *+' conftest.er1 >conftest.err
23291 rm -f conftest.er1
23292 cat conftest.err >&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } && {
23295 test -z "$ac_c_werror_flag" ||
23296 test ! -s conftest.err
23297 } && test -s conftest$ac_exeext &&
23298 $as_test_x conftest$ac_exeext; then
23299 emacs_cv_langinfo_codeset=yes
23300 else
23301 echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23303
23304 emacs_cv_langinfo_codeset=no
23305 fi
23306
23307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23308 conftest$ac_exeext conftest.$ac_ext
23309
23310 fi
23311 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23312 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23313 if test $emacs_cv_langinfo_codeset = yes; then
23314
23315 cat >>confdefs.h <<\_ACEOF
23316 #define HAVE_LANGINFO_CODESET 1
23317 _ACEOF
23318
23319 fi
23320
23321 { echo "$as_me:$LINENO: checking for size_t" >&5
23322 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23323 if test "${ac_cv_type_size_t+set}" = set; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325 else
23326 cat >conftest.$ac_ext <<_ACEOF
23327 /* confdefs.h. */
23328 _ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 $ac_includes_default
23333 typedef size_t ac__type_new_;
23334 int
23335 main ()
23336 {
23337 if ((ac__type_new_ *) 0)
23338 return 0;
23339 if (sizeof (ac__type_new_))
23340 return 0;
23341 ;
23342 return 0;
23343 }
23344 _ACEOF
23345 rm -f conftest.$ac_objext
23346 if { (ac_try="$ac_compile"
23347 case "(($ac_try" in
23348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349 *) ac_try_echo=$ac_try;;
23350 esac
23351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23352 (eval "$ac_compile") 2>conftest.er1
23353 ac_status=$?
23354 grep -v '^ *+' conftest.er1 >conftest.err
23355 rm -f conftest.er1
23356 cat conftest.err >&5
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); } && {
23359 test -z "$ac_c_werror_flag" ||
23360 test ! -s conftest.err
23361 } && test -s conftest.$ac_objext; then
23362 ac_cv_type_size_t=yes
23363 else
23364 echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23366
23367 ac_cv_type_size_t=no
23368 fi
23369
23370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23371 fi
23372 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23373 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23374 if test $ac_cv_type_size_t = yes; then
23375
23376 cat >>confdefs.h <<_ACEOF
23377 #define HAVE_SIZE_T 1
23378 _ACEOF
23379
23380
23381 fi
23382
23383
23384 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23385 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23386 if test "${ac_cv_type_mbstate_t+set}" = set; then
23387 echo $ECHO_N "(cached) $ECHO_C" >&6
23388 else
23389 cat >conftest.$ac_ext <<_ACEOF
23390 /* confdefs.h. */
23391 _ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23395 $ac_includes_default
23396 # include <wchar.h>
23397 int
23398 main ()
23399 {
23400 mbstate_t x; return sizeof x;
23401 ;
23402 return 0;
23403 }
23404 _ACEOF
23405 rm -f conftest.$ac_objext
23406 if { (ac_try="$ac_compile"
23407 case "(($ac_try" in
23408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409 *) ac_try_echo=$ac_try;;
23410 esac
23411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23412 (eval "$ac_compile") 2>conftest.er1
23413 ac_status=$?
23414 grep -v '^ *+' conftest.er1 >conftest.err
23415 rm -f conftest.er1
23416 cat conftest.err >&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } && {
23419 test -z "$ac_c_werror_flag" ||
23420 test ! -s conftest.err
23421 } && test -s conftest.$ac_objext; then
23422 ac_cv_type_mbstate_t=yes
23423 else
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23426
23427 ac_cv_type_mbstate_t=no
23428 fi
23429
23430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23431 fi
23432 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23433 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23434 if test $ac_cv_type_mbstate_t = yes; then
23435
23436 cat >>confdefs.h <<\_ACEOF
23437 #define HAVE_MBSTATE_T 1
23438 _ACEOF
23439
23440 else
23441
23442 cat >>confdefs.h <<\_ACEOF
23443 #define mbstate_t int
23444 _ACEOF
23445
23446 fi
23447
23448 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23449 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23450 if test "${emacs_cv_c_restrict+set}" = set; then
23451 echo $ECHO_N "(cached) $ECHO_C" >&6
23452 else
23453 cat >conftest.$ac_ext <<_ACEOF
23454 /* confdefs.h. */
23455 _ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h. */
23459 void fred (int *restrict x);
23460 int
23461 main ()
23462 {
23463
23464 ;
23465 return 0;
23466 }
23467 _ACEOF
23468 rm -f conftest.$ac_objext
23469 if { (ac_try="$ac_compile"
23470 case "(($ac_try" in
23471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472 *) ac_try_echo=$ac_try;;
23473 esac
23474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23475 (eval "$ac_compile") 2>conftest.er1
23476 ac_status=$?
23477 grep -v '^ *+' conftest.er1 >conftest.err
23478 rm -f conftest.er1
23479 cat conftest.err >&5
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); } && {
23482 test -z "$ac_c_werror_flag" ||
23483 test ! -s conftest.err
23484 } && test -s conftest.$ac_objext; then
23485 emacs_cv_c_restrict=yes
23486 else
23487 echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23489
23490 cat >conftest.$ac_ext <<_ACEOF
23491 /* confdefs.h. */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23496 void fred (int *__restrict x);
23497 int
23498 main ()
23499 {
23500
23501 ;
23502 return 0;
23503 }
23504 _ACEOF
23505 rm -f conftest.$ac_objext
23506 if { (ac_try="$ac_compile"
23507 case "(($ac_try" in
23508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23509 *) ac_try_echo=$ac_try;;
23510 esac
23511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23512 (eval "$ac_compile") 2>conftest.er1
23513 ac_status=$?
23514 grep -v '^ *+' conftest.er1 >conftest.err
23515 rm -f conftest.er1
23516 cat conftest.err >&5
23517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); } && {
23519 test -z "$ac_c_werror_flag" ||
23520 test ! -s conftest.err
23521 } && test -s conftest.$ac_objext; then
23522 emacs_cv_c_restrict=__restrict
23523 else
23524 echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23526
23527 emacs_cv_c_restrict=no
23528 fi
23529
23530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23531 fi
23532
23533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534 fi
23535 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23536 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23537 case "$emacs_cv_c_restrict" in
23538 yes) emacs_restrict=restrict;;
23539 no) emacs_restrict="";;
23540 *) emacs_restrict="$emacs_cv_c_restrict";;
23541 esac
23542 if test "$emacs_restrict" != __restrict; then
23543
23544 cat >>confdefs.h <<_ACEOF
23545 #define __restrict $emacs_restrict
23546 _ACEOF
23547
23548 fi
23549
23550 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23551 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23552 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23553 echo $ECHO_N "(cached) $ECHO_C" >&6
23554 else
23555 cat >conftest.$ac_ext <<_ACEOF
23556 /* confdefs.h. */
23557 _ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h. */
23561 void fred (int x[__restrict]);
23562 int
23563 main ()
23564 {
23565
23566 ;
23567 return 0;
23568 }
23569 _ACEOF
23570 rm -f conftest.$ac_objext
23571 if { (ac_try="$ac_compile"
23572 case "(($ac_try" in
23573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23574 *) ac_try_echo=$ac_try;;
23575 esac
23576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23577 (eval "$ac_compile") 2>conftest.er1
23578 ac_status=$?
23579 grep -v '^ *+' conftest.er1 >conftest.err
23580 rm -f conftest.er1
23581 cat conftest.err >&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } && {
23584 test -z "$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23586 } && test -s conftest.$ac_objext; then
23587 emacs_cv_c_restrict_arr=yes
23588 else
23589 echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23591
23592 emacs_cv_c_restrict_arr=no
23593 fi
23594
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23596 fi
23597 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23598 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23599 if test "$emacs_cv_c_restrict_arr" = yes; then
23600
23601 cat >>confdefs.h <<\_ACEOF
23602 #define __restrict_arr __restrict
23603 _ACEOF
23604
23605 fi
23606
23607
23608
23609 # Set up the CFLAGS for real compilation, so we can substitute it.
23610 CFLAGS="$REAL_CFLAGS"
23611 CPPFLAGS="$REAL_CPPFLAGS"
23612
23613 #### Find out which version of Emacs this is.
23614 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23615 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23616 if test x"${version}" = x; then
23617 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23618 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23619 { (exit 1); exit 1; }; }
23620 fi
23621
23622 ### Specify what sort of things we'll be editing into Makefile and config.h.
23623 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659 cat >>confdefs.h <<_ACEOF
23660 #define EMACS_CONFIGURATION "${canonical}"
23661 _ACEOF
23662
23663
23664 cat >>confdefs.h <<_ACEOF
23665 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23666 _ACEOF
23667
23668
23669 cat >>confdefs.h <<_ACEOF
23670 #define config_machfile "${machfile}"
23671 _ACEOF
23672
23673
23674 cat >>confdefs.h <<_ACEOF
23675 #define config_opsysfile "${opsysfile}"
23676 _ACEOF
23677
23678
23679 cat >>confdefs.h <<_ACEOF
23680 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23681 _ACEOF
23682
23683
23684 cat >>confdefs.h <<_ACEOF
23685 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23686 _ACEOF
23687
23688
23689 cat >>confdefs.h <<_ACEOF
23690 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23691 _ACEOF
23692
23693
23694 cat >>confdefs.h <<_ACEOF
23695 #define UNEXEC_SRC ${UNEXEC_SRC}
23696 _ACEOF
23697
23698
23699 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23700
23701 cat >>confdefs.h <<\_ACEOF
23702 #define HAVE_X_WINDOWS 1
23703 _ACEOF
23704
23705 fi
23706 if test "${USE_X_TOOLKIT}" != "none" ; then
23707
23708 cat >>confdefs.h <<\_ACEOF
23709 #define USE_X_TOOLKIT 1
23710 _ACEOF
23711
23712 fi
23713 if test "${HAVE_X11}" = "yes" ; then
23714
23715 cat >>confdefs.h <<\_ACEOF
23716 #define HAVE_X11 1
23717 _ACEOF
23718
23719 fi
23720 if test "${HAVE_XFREE386}" = "yes" ; then
23721
23722 cat >>confdefs.h <<\_ACEOF
23723 #define HAVE_XFREE386 1
23724 _ACEOF
23725
23726 fi
23727 if test "${HAVE_MENUS}" = "yes" ; then
23728
23729 cat >>confdefs.h <<\_ACEOF
23730 #define HAVE_MENUS 1
23731 _ACEOF
23732
23733 fi
23734 if test "${GNU_MALLOC}" = "yes" ; then
23735
23736 cat >>confdefs.h <<\_ACEOF
23737 #define GNU_MALLOC 1
23738 _ACEOF
23739
23740 fi
23741 if test "${REL_ALLOC}" = "yes" ; then
23742
23743 cat >>confdefs.h <<\_ACEOF
23744 #define REL_ALLOC 1
23745 _ACEOF
23746
23747 fi
23748
23749
23750
23751
23752
23753
23754 #### Report on what we decided to do.
23755 #### Report GTK as a toolkit, even if it doesn't use Xt.
23756 #### It makes printing result more understandable as using GTK sets
23757 #### toolkit_scroll_bars to yes by default.
23758 if test "${HAVE_GTK}" = "yes"; then
23759 USE_X_TOOLKIT=GTK
23760 fi
23761
23762 echo "
23763 Configured for \`${canonical}'.
23764
23765 Where should the build process find the source code? ${srcdir}
23766 What operating system and machine description files should Emacs use?
23767 \`${opsysfile}' and \`${machfile}'
23768 What compiler should emacs be built with? ${CC} ${CFLAGS}
23769 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23770 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23771 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23772 What window system should Emacs use? ${window_system}
23773 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23774
23775 if test -n "${x_includes}"; then
23776 echo " Where do we find X Windows header files? ${x_includes}"
23777 else
23778 echo " Where do we find X Windows header files? Standard dirs"
23779 fi
23780 if test -n "${x_libraries}"; then
23781 echo " Where do we find X Windows libraries? ${x_libraries}"
23782 else
23783 echo " Where do we find X Windows libraries? Standard dirs"
23784 fi
23785
23786 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23787 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23788 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23789 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23790 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23791 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23792 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23793 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23794 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23795 echo
23796
23797 if test $USE_XASSERTS = yes; then
23798 echo " Compiling with asserts turned on."
23799 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23800 echo
23801 fi
23802
23803 if test "$USE_X_TOOLKIT" = GTK; then
23804 case "$canonical" in
23805 *cygwin*)
23806 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23807 will probably get a crash on startup. If this happens, please use another
23808 toolkit for Emacs. See etc/PROBLEMS for more information."
23809 ;;
23810 esac
23811 fi
23812
23813
23814 if test "$HAVE_CARBON" = "yes"; then
23815 echo
23816 echo "Warning: The Mac Carbon port is currently unsupported and has
23817 known problems. It is not recommended for use by non-developers.
23818 Read the emacs-devel archives for more information."
23819 echo
23820 fi
23821
23822
23823 # Remove any trailing slashes in these variables.
23824 test "${prefix}" != NONE &&
23825 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23826 test "${exec_prefix}" != NONE &&
23827 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23828
23829 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23830 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23831 ## from Makefile.c can correctly provide the arg `-traditional' to the
23832 ## C preprocessor.
23833
23834 cat >conftest.$ac_ext <<_ACEOF
23835 /* confdefs.h. */
23836 _ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h. */
23840 yes..yes
23841 _ACEOF
23842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23843 $EGREP "yes..yes" >/dev/null 2>&1; then
23844 CPP_NEED_TRADITIONAL=no
23845 else
23846 CPP_NEED_TRADITIONAL=yes
23847 fi
23848 rm -f conftest*
23849
23850
23851 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"
23852
23853 ac_config_commands="$ac_config_commands default"
23854
23855 cat >confcache <<\_ACEOF
23856 # This file is a shell script that caches the results of configure
23857 # tests run on this system so they can be shared between configure
23858 # scripts and configure runs, see configure's option --config-cache.
23859 # It is not useful on other systems. If it contains results you don't
23860 # want to keep, you may remove or edit it.
23861 #
23862 # config.status only pays attention to the cache file if you give it
23863 # the --recheck option to rerun configure.
23864 #
23865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23867 # following values.
23868
23869 _ACEOF
23870
23871 # The following way of writing the cache mishandles newlines in values,
23872 # but we know of no workaround that is simple, portable, and efficient.
23873 # So, we kill variables containing newlines.
23874 # Ultrix sh set writes to stderr and can't be redirected directly,
23875 # and sets the high bit in the cache file unless we assign to the vars.
23876 (
23877 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23878 eval ac_val=\$$ac_var
23879 case $ac_val in #(
23880 *${as_nl}*)
23881 case $ac_var in #(
23882 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23883 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23884 esac
23885 case $ac_var in #(
23886 _ | IFS | as_nl) ;; #(
23887 *) $as_unset $ac_var ;;
23888 esac ;;
23889 esac
23890 done
23891
23892 (set) 2>&1 |
23893 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23894 *${as_nl}ac_space=\ *)
23895 # `set' does not quote correctly, so add quotes (double-quote
23896 # substitution turns \\\\ into \\, and sed turns \\ into \).
23897 sed -n \
23898 "s/'/'\\\\''/g;
23899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23900 ;; #(
23901 *)
23902 # `set' quotes correctly as required by POSIX, so do not add quotes.
23903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23904 ;;
23905 esac |
23906 sort
23907 ) |
23908 sed '
23909 /^ac_cv_env_/b end
23910 t clear
23911 :clear
23912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23913 t end
23914 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23915 :end' >>confcache
23916 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23917 if test -w "$cache_file"; then
23918 test "x$cache_file" != "x/dev/null" &&
23919 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23920 echo "$as_me: updating cache $cache_file" >&6;}
23921 cat confcache >$cache_file
23922 else
23923 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23924 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23925 fi
23926 fi
23927 rm -f confcache
23928
23929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23930 # Let make expand exec_prefix.
23931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23932
23933 DEFS=-DHAVE_CONFIG_H
23934
23935 ac_libobjs=
23936 ac_ltlibobjs=
23937 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23938 # 1. Remove the extension, and $U if already installed.
23939 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23940 ac_i=`echo "$ac_i" | sed "$ac_script"`
23941 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23942 # will be set to the directory where LIBOBJS objects are built.
23943 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23944 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23945 done
23946 LIBOBJS=$ac_libobjs
23947
23948 LTLIBOBJS=$ac_ltlibobjs
23949
23950
23951
23952 : ${CONFIG_STATUS=./config.status}
23953 ac_clean_files_save=$ac_clean_files
23954 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23955 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23956 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23957 cat >$CONFIG_STATUS <<_ACEOF
23958 #! $SHELL
23959 # Generated by $as_me.
23960 # Run this file to recreate the current configuration.
23961 # Compiler output produced by configure, useful for debugging
23962 # configure, is in config.log if it exists.
23963
23964 debug=false
23965 ac_cs_recheck=false
23966 ac_cs_silent=false
23967 SHELL=\${CONFIG_SHELL-$SHELL}
23968 _ACEOF
23969
23970 cat >>$CONFIG_STATUS <<\_ACEOF
23971 ## --------------------- ##
23972 ## M4sh Initialization. ##
23973 ## --------------------- ##
23974
23975 # Be more Bourne compatible
23976 DUALCASE=1; export DUALCASE # for MKS sh
23977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23978 emulate sh
23979 NULLCMD=:
23980 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23981 # is contrary to our usage. Disable this feature.
23982 alias -g '${1+"$@"}'='"$@"'
23983 setopt NO_GLOB_SUBST
23984 else
23985 case `(set -o) 2>/dev/null` in
23986 *posix*) set -o posix ;;
23987 esac
23988
23989 fi
23990
23991
23992
23993
23994 # PATH needs CR
23995 # Avoid depending upon Character Ranges.
23996 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23997 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23998 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23999 as_cr_digits='0123456789'
24000 as_cr_alnum=$as_cr_Letters$as_cr_digits
24001
24002 # The user is always right.
24003 if test "${PATH_SEPARATOR+set}" != set; then
24004 echo "#! /bin/sh" >conf$$.sh
24005 echo "exit 0" >>conf$$.sh
24006 chmod +x conf$$.sh
24007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24008 PATH_SEPARATOR=';'
24009 else
24010 PATH_SEPARATOR=:
24011 fi
24012 rm -f conf$$.sh
24013 fi
24014
24015 # Support unset when possible.
24016 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24017 as_unset=unset
24018 else
24019 as_unset=false
24020 fi
24021
24022
24023 # IFS
24024 # We need space, tab and new line, in precisely that order. Quoting is
24025 # there to prevent editors from complaining about space-tab.
24026 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24027 # splitting by setting IFS to empty value.)
24028 as_nl='
24029 '
24030 IFS=" "" $as_nl"
24031
24032 # Find who we are. Look in the path if we contain no directory separator.
24033 case $0 in
24034 *[\\/]* ) as_myself=$0 ;;
24035 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24036 for as_dir in $PATH
24037 do
24038 IFS=$as_save_IFS
24039 test -z "$as_dir" && as_dir=.
24040 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24041 done
24042 IFS=$as_save_IFS
24043
24044 ;;
24045 esac
24046 # We did not find ourselves, most probably we were run as `sh COMMAND'
24047 # in which case we are not to be found in the path.
24048 if test "x$as_myself" = x; then
24049 as_myself=$0
24050 fi
24051 if test ! -f "$as_myself"; then
24052 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24053 { (exit 1); exit 1; }
24054 fi
24055
24056 # Work around bugs in pre-3.0 UWIN ksh.
24057 for as_var in ENV MAIL MAILPATH
24058 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24059 done
24060 PS1='$ '
24061 PS2='> '
24062 PS4='+ '
24063
24064 # NLS nuisances.
24065 for as_var in \
24066 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24067 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24068 LC_TELEPHONE LC_TIME
24069 do
24070 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24071 eval $as_var=C; export $as_var
24072 else
24073 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24074 fi
24075 done
24076
24077 # Required to use basename.
24078 if expr a : '\(a\)' >/dev/null 2>&1 &&
24079 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24080 as_expr=expr
24081 else
24082 as_expr=false
24083 fi
24084
24085 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24086 as_basename=basename
24087 else
24088 as_basename=false
24089 fi
24090
24091
24092 # Name of the executable.
24093 as_me=`$as_basename -- "$0" ||
24094 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24095 X"$0" : 'X\(//\)$' \| \
24096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24097 echo X/"$0" |
24098 sed '/^.*\/\([^/][^/]*\)\/*$/{
24099 s//\1/
24100 q
24101 }
24102 /^X\/\(\/\/\)$/{
24103 s//\1/
24104 q
24105 }
24106 /^X\/\(\/\).*/{
24107 s//\1/
24108 q
24109 }
24110 s/.*/./; q'`
24111
24112 # CDPATH.
24113 $as_unset CDPATH
24114
24115
24116
24117 as_lineno_1=$LINENO
24118 as_lineno_2=$LINENO
24119 test "x$as_lineno_1" != "x$as_lineno_2" &&
24120 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24121
24122 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24123 # uniformly replaced by the line number. The first 'sed' inserts a
24124 # line-number line after each line using $LINENO; the second 'sed'
24125 # does the real work. The second script uses 'N' to pair each
24126 # line-number line with the line containing $LINENO, and appends
24127 # trailing '-' during substitution so that $LINENO is not a special
24128 # case at line end.
24129 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24130 # scripts with optimization help from Paolo Bonzini. Blame Lee
24131 # E. McMahon (1931-1989) for sed's syntax. :-)
24132 sed -n '
24133 p
24134 /[$]LINENO/=
24135 ' <$as_myself |
24136 sed '
24137 s/[$]LINENO.*/&-/
24138 t lineno
24139 b
24140 :lineno
24141 N
24142 :loop
24143 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24144 t loop
24145 s/-\n.*//
24146 ' >$as_me.lineno &&
24147 chmod +x "$as_me.lineno" ||
24148 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24149 { (exit 1); exit 1; }; }
24150
24151 # Don't try to exec as it changes $[0], causing all sort of problems
24152 # (the dirname of $[0] is not the place where we might find the
24153 # original and so on. Autoconf is especially sensitive to this).
24154 . "./$as_me.lineno"
24155 # Exit status is that of the last command.
24156 exit
24157 }
24158
24159
24160 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24161 as_dirname=dirname
24162 else
24163 as_dirname=false
24164 fi
24165
24166 ECHO_C= ECHO_N= ECHO_T=
24167 case `echo -n x` in
24168 -n*)
24169 case `echo 'x\c'` in
24170 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24171 *) ECHO_C='\c';;
24172 esac;;
24173 *)
24174 ECHO_N='-n';;
24175 esac
24176
24177 if expr a : '\(a\)' >/dev/null 2>&1 &&
24178 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24179 as_expr=expr
24180 else
24181 as_expr=false
24182 fi
24183
24184 rm -f conf$$ conf$$.exe conf$$.file
24185 if test -d conf$$.dir; then
24186 rm -f conf$$.dir/conf$$.file
24187 else
24188 rm -f conf$$.dir
24189 mkdir conf$$.dir
24190 fi
24191 echo >conf$$.file
24192 if ln -s conf$$.file conf$$ 2>/dev/null; then
24193 as_ln_s='ln -s'
24194 # ... but there are two gotchas:
24195 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24196 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24197 # In both cases, we have to default to `cp -p'.
24198 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24199 as_ln_s='cp -p'
24200 elif ln conf$$.file conf$$ 2>/dev/null; then
24201 as_ln_s=ln
24202 else
24203 as_ln_s='cp -p'
24204 fi
24205 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24206 rmdir conf$$.dir 2>/dev/null
24207
24208 if mkdir -p . 2>/dev/null; then
24209 as_mkdir_p=:
24210 else
24211 test -d ./-p && rmdir ./-p
24212 as_mkdir_p=false
24213 fi
24214
24215 if test -x / >/dev/null 2>&1; then
24216 as_test_x='test -x'
24217 else
24218 if ls -dL / >/dev/null 2>&1; then
24219 as_ls_L_option=L
24220 else
24221 as_ls_L_option=
24222 fi
24223 as_test_x='
24224 eval sh -c '\''
24225 if test -d "$1"; then
24226 test -d "$1/.";
24227 else
24228 case $1 in
24229 -*)set "./$1";;
24230 esac;
24231 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24232 ???[sx]*):;;*)false;;esac;fi
24233 '\'' sh
24234 '
24235 fi
24236 as_executable_p=$as_test_x
24237
24238 # Sed expression to map a string onto a valid CPP name.
24239 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24240
24241 # Sed expression to map a string onto a valid variable name.
24242 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24243
24244
24245 exec 6>&1
24246
24247 # Save the log message, to keep $[0] and so on meaningful, and to
24248 # report actual input values of CONFIG_FILES etc. instead of their
24249 # values after options handling.
24250 ac_log="
24251 This file was extended by $as_me, which was
24252 generated by GNU Autoconf 2.61. Invocation command line was
24253
24254 CONFIG_FILES = $CONFIG_FILES
24255 CONFIG_HEADERS = $CONFIG_HEADERS
24256 CONFIG_LINKS = $CONFIG_LINKS
24257 CONFIG_COMMANDS = $CONFIG_COMMANDS
24258 $ $0 $@
24259
24260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24261 "
24262
24263 _ACEOF
24264
24265 cat >>$CONFIG_STATUS <<_ACEOF
24266 # Files that config.status was made for.
24267 config_files="$ac_config_files"
24268 config_headers="$ac_config_headers"
24269 config_commands="$ac_config_commands"
24270
24271 _ACEOF
24272
24273 cat >>$CONFIG_STATUS <<\_ACEOF
24274 ac_cs_usage="\
24275 \`$as_me' instantiates files from templates according to the
24276 current configuration.
24277
24278 Usage: $0 [OPTIONS] [FILE]...
24279
24280 -h, --help print this help, then exit
24281 -V, --version print version number and configuration settings, then exit
24282 -q, --quiet do not print progress messages
24283 -d, --debug don't remove temporary files
24284 --recheck update $as_me by reconfiguring in the same conditions
24285 --file=FILE[:TEMPLATE]
24286 instantiate the configuration file FILE
24287 --header=FILE[:TEMPLATE]
24288 instantiate the configuration header FILE
24289
24290 Configuration files:
24291 $config_files
24292
24293 Configuration headers:
24294 $config_headers
24295
24296 Configuration commands:
24297 $config_commands
24298
24299 Report bugs to <bug-autoconf@gnu.org>."
24300
24301 _ACEOF
24302 cat >>$CONFIG_STATUS <<_ACEOF
24303 ac_cs_version="\\
24304 config.status
24305 configured by $0, generated by GNU Autoconf 2.61,
24306 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24307
24308 Copyright (C) 2006 Free Software Foundation, Inc.
24309 This config.status script is free software; the Free Software Foundation
24310 gives unlimited permission to copy, distribute and modify it."
24311
24312 ac_pwd='$ac_pwd'
24313 srcdir='$srcdir'
24314 INSTALL='$INSTALL'
24315 _ACEOF
24316
24317 cat >>$CONFIG_STATUS <<\_ACEOF
24318 # If no file are specified by the user, then we need to provide default
24319 # value. By we need to know if files were specified by the user.
24320 ac_need_defaults=:
24321 while test $# != 0
24322 do
24323 case $1 in
24324 --*=*)
24325 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24326 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24327 ac_shift=:
24328 ;;
24329 *)
24330 ac_option=$1
24331 ac_optarg=$2
24332 ac_shift=shift
24333 ;;
24334 esac
24335
24336 case $ac_option in
24337 # Handling of the options.
24338 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24339 ac_cs_recheck=: ;;
24340 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24341 echo "$ac_cs_version"; exit ;;
24342 --debug | --debu | --deb | --de | --d | -d )
24343 debug=: ;;
24344 --file | --fil | --fi | --f )
24345 $ac_shift
24346 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24347 ac_need_defaults=false;;
24348 --header | --heade | --head | --hea )
24349 $ac_shift
24350 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24351 ac_need_defaults=false;;
24352 --he | --h)
24353 # Conflict between --help and --header
24354 { echo "$as_me: error: ambiguous option: $1
24355 Try \`$0 --help' for more information." >&2
24356 { (exit 1); exit 1; }; };;
24357 --help | --hel | -h )
24358 echo "$ac_cs_usage"; exit ;;
24359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24360 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24361 ac_cs_silent=: ;;
24362
24363 # This is an error.
24364 -*) { echo "$as_me: error: unrecognized option: $1
24365 Try \`$0 --help' for more information." >&2
24366 { (exit 1); exit 1; }; } ;;
24367
24368 *) ac_config_targets="$ac_config_targets $1"
24369 ac_need_defaults=false ;;
24370
24371 esac
24372 shift
24373 done
24374
24375 ac_configure_extra_args=
24376
24377 if $ac_cs_silent; then
24378 exec 6>/dev/null
24379 ac_configure_extra_args="$ac_configure_extra_args --silent"
24380 fi
24381
24382 _ACEOF
24383 cat >>$CONFIG_STATUS <<_ACEOF
24384 if \$ac_cs_recheck; then
24385 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24386 CONFIG_SHELL=$SHELL
24387 export CONFIG_SHELL
24388 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24389 fi
24390
24391 _ACEOF
24392 cat >>$CONFIG_STATUS <<\_ACEOF
24393 exec 5>>config.log
24394 {
24395 echo
24396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24397 ## Running $as_me. ##
24398 _ASBOX
24399 echo "$ac_log"
24400 } >&5
24401
24402 _ACEOF
24403 cat >>$CONFIG_STATUS <<_ACEOF
24404 #
24405 # INIT-COMMANDS
24406 #
24407 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24408
24409 _ACEOF
24410
24411 cat >>$CONFIG_STATUS <<\_ACEOF
24412
24413 # Handling of arguments.
24414 for ac_config_target in $ac_config_targets
24415 do
24416 case $ac_config_target in
24417 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24418 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24419 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24420 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24421 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24422 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24423 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24424 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24425 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24426 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24427 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24428 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24429 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24430
24431 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24432 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24433 { (exit 1); exit 1; }; };;
24434 esac
24435 done
24436
24437
24438 # If the user did not use the arguments to specify the items to instantiate,
24439 # then the envvar interface is used. Set only those that are not.
24440 # We use the long form for the default assignment because of an extremely
24441 # bizarre bug on SunOS 4.1.3.
24442 if $ac_need_defaults; then
24443 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24444 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24445 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24446 fi
24447
24448 # Have a temporary directory for convenience. Make it in the build tree
24449 # simply because there is no reason against having it here, and in addition,
24450 # creating and moving files from /tmp can sometimes cause problems.
24451 # Hook for its removal unless debugging.
24452 # Note that there is a small window in which the directory will not be cleaned:
24453 # after its creation but before its name has been assigned to `$tmp'.
24454 $debug ||
24455 {
24456 tmp=
24457 trap 'exit_status=$?
24458 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24459 ' 0
24460 trap '{ (exit 1); exit 1; }' 1 2 13 15
24461 }
24462 # Create a (secure) tmp directory for tmp files.
24463
24464 {
24465 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24466 test -n "$tmp" && test -d "$tmp"
24467 } ||
24468 {
24469 tmp=./conf$$-$RANDOM
24470 (umask 077 && mkdir "$tmp")
24471 } ||
24472 {
24473 echo "$me: cannot create a temporary directory in ." >&2
24474 { (exit 1); exit 1; }
24475 }
24476
24477 #
24478 # Set up the sed scripts for CONFIG_FILES section.
24479 #
24480
24481 # No need to generate the scripts if there are no CONFIG_FILES.
24482 # This happens for instance when ./config.status config.h
24483 if test -n "$CONFIG_FILES"; then
24484
24485 _ACEOF
24486
24487
24488
24489 ac_delim='%!_!# '
24490 for ac_last_try in false false false false false :; do
24491 cat >conf$$subs.sed <<_ACEOF
24492 SHELL!$SHELL$ac_delim
24493 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24494 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24495 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24496 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24497 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24498 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24499 exec_prefix!$exec_prefix$ac_delim
24500 prefix!$prefix$ac_delim
24501 program_transform_name!$program_transform_name$ac_delim
24502 bindir!$bindir$ac_delim
24503 sbindir!$sbindir$ac_delim
24504 libexecdir!$libexecdir$ac_delim
24505 datarootdir!$datarootdir$ac_delim
24506 datadir!$datadir$ac_delim
24507 sysconfdir!$sysconfdir$ac_delim
24508 sharedstatedir!$sharedstatedir$ac_delim
24509 localstatedir!$localstatedir$ac_delim
24510 includedir!$includedir$ac_delim
24511 oldincludedir!$oldincludedir$ac_delim
24512 docdir!$docdir$ac_delim
24513 infodir!$infodir$ac_delim
24514 htmldir!$htmldir$ac_delim
24515 dvidir!$dvidir$ac_delim
24516 pdfdir!$pdfdir$ac_delim
24517 psdir!$psdir$ac_delim
24518 libdir!$libdir$ac_delim
24519 localedir!$localedir$ac_delim
24520 mandir!$mandir$ac_delim
24521 DEFS!$DEFS$ac_delim
24522 ECHO_C!$ECHO_C$ac_delim
24523 ECHO_N!$ECHO_N$ac_delim
24524 ECHO_T!$ECHO_T$ac_delim
24525 LIBS!$LIBS$ac_delim
24526 build_alias!$build_alias$ac_delim
24527 host_alias!$host_alias$ac_delim
24528 target_alias!$target_alias$ac_delim
24529 MAINT!$MAINT$ac_delim
24530 build!$build$ac_delim
24531 build_cpu!$build_cpu$ac_delim
24532 build_vendor!$build_vendor$ac_delim
24533 build_os!$build_os$ac_delim
24534 host!$host$ac_delim
24535 host_cpu!$host_cpu$ac_delim
24536 host_vendor!$host_vendor$ac_delim
24537 host_os!$host_os$ac_delim
24538 CC!$CC$ac_delim
24539 CFLAGS!$CFLAGS$ac_delim
24540 LDFLAGS!$LDFLAGS$ac_delim
24541 CPPFLAGS!$CPPFLAGS$ac_delim
24542 ac_ct_CC!$ac_ct_CC$ac_delim
24543 EXEEXT!$EXEEXT$ac_delim
24544 OBJEXT!$OBJEXT$ac_delim
24545 CPP!$CPP$ac_delim
24546 GREP!$GREP$ac_delim
24547 EGREP!$EGREP$ac_delim
24548 LN_S!$LN_S$ac_delim
24549 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24550 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24551 INSTALL_DATA!$INSTALL_DATA$ac_delim
24552 RANLIB!$RANLIB$ac_delim
24553 INSTALL_INFO!$INSTALL_INFO$ac_delim
24554 GZIP_PROG!$GZIP_PROG$ac_delim
24555 MAKEINFO!$MAKEINFO$ac_delim
24556 LIBSOUND!$LIBSOUND$ac_delim
24557 PKG_CONFIG!$PKG_CONFIG$ac_delim
24558 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24559 ALSA_LIBS!$ALSA_LIBS$ac_delim
24560 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24561 SET_MAKE!$SET_MAKE$ac_delim
24562 XMKMF!$XMKMF$ac_delim
24563 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24564 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24565 RSVG_LIBS!$RSVG_LIBS$ac_delim
24566 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24567 GTK_LIBS!$GTK_LIBS$ac_delim
24568 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24569 XFT_LIBS!$XFT_LIBS$ac_delim
24570 ALLOCA!$ALLOCA$ac_delim
24571 liblockfile!$liblockfile$ac_delim
24572 LIBOBJS!$LIBOBJS$ac_delim
24573 NEED_SETGID!$NEED_SETGID$ac_delim
24574 KMEM_GROUP!$KMEM_GROUP$ac_delim
24575 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24576 GETOPT_H!$GETOPT_H$ac_delim
24577 GETOPTOBJS!$GETOPTOBJS$ac_delim
24578 version!$version$ac_delim
24579 configuration!$configuration$ac_delim
24580 canonical!$canonical$ac_delim
24581 srcdir!$srcdir$ac_delim
24582 lispdir!$lispdir$ac_delim
24583 locallisppath!$locallisppath$ac_delim
24584 lisppath!$lisppath$ac_delim
24585 x_default_search_path!$x_default_search_path$ac_delim
24586 etcdir!$etcdir$ac_delim
24587 archlibdir!$archlibdir$ac_delim
24588 bitmapdir!$bitmapdir$ac_delim
24589 _ACEOF
24590
24591 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24592 break
24593 elif $ac_last_try; then
24594 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24595 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24596 { (exit 1); exit 1; }; }
24597 else
24598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24599 fi
24600 done
24601
24602 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24603 if test -n "$ac_eof"; then
24604 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24605 ac_eof=`expr $ac_eof + 1`
24606 fi
24607
24608 cat >>$CONFIG_STATUS <<_ACEOF
24609 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24611 _ACEOF
24612 sed '
24613 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24614 s/^/s,@/; s/!/@,|#_!!_#|/
24615 :n
24616 t n
24617 s/'"$ac_delim"'$/,g/; t
24618 s/$/\\/; p
24619 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24620 ' >>$CONFIG_STATUS <conf$$subs.sed
24621 rm -f conf$$subs.sed
24622 cat >>$CONFIG_STATUS <<_ACEOF
24623 CEOF$ac_eof
24624 _ACEOF
24625
24626
24627 ac_delim='%!_!# '
24628 for ac_last_try in false false false false false :; do
24629 cat >conf$$subs.sed <<_ACEOF
24630 gamedir!$gamedir$ac_delim
24631 gameuser!$gameuser$ac_delim
24632 c_switch_system!$c_switch_system$ac_delim
24633 c_switch_machine!$c_switch_machine$ac_delim
24634 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24635 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24636 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24637 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24638 machfile!$machfile$ac_delim
24639 opsysfile!$opsysfile$ac_delim
24640 carbon_appdir!$carbon_appdir$ac_delim
24641 LTLIBOBJS!$LTLIBOBJS$ac_delim
24642 _ACEOF
24643
24644 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24645 break
24646 elif $ac_last_try; then
24647 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24648 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24649 { (exit 1); exit 1; }; }
24650 else
24651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24652 fi
24653 done
24654
24655 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24656 if test -n "$ac_eof"; then
24657 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24658 ac_eof=`expr $ac_eof + 1`
24659 fi
24660
24661 cat >>$CONFIG_STATUS <<_ACEOF
24662 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24664 _ACEOF
24665 sed '
24666 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24667 s/^/s,@/; s/!/@,|#_!!_#|/
24668 :n
24669 t n
24670 s/'"$ac_delim"'$/,g/; t
24671 s/$/\\/; p
24672 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24673 ' >>$CONFIG_STATUS <conf$$subs.sed
24674 rm -f conf$$subs.sed
24675 cat >>$CONFIG_STATUS <<_ACEOF
24676 :end
24677 s/|#_!!_#|//g
24678 CEOF$ac_eof
24679 _ACEOF
24680
24681
24682 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24683 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24684 # trailing colons and then remove the whole line if VPATH becomes empty
24685 # (actually we leave an empty line to preserve line numbers).
24686 if test "x$srcdir" = x.; then
24687 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24688 s/:*\$(srcdir):*/:/
24689 s/:*\${srcdir}:*/:/
24690 s/:*@srcdir@:*/:/
24691 s/^\([^=]*=[ ]*\):*/\1/
24692 s/:*$//
24693 s/^[^=]*=[ ]*$//
24694 }'
24695 fi
24696
24697 cat >>$CONFIG_STATUS <<\_ACEOF
24698 fi # test -n "$CONFIG_FILES"
24699
24700
24701 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24702 do
24703 case $ac_tag in
24704 :[FHLC]) ac_mode=$ac_tag; continue;;
24705 esac
24706 case $ac_mode$ac_tag in
24707 :[FHL]*:*);;
24708 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24709 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24710 { (exit 1); exit 1; }; };;
24711 :[FH]-) ac_tag=-:-;;
24712 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24713 esac
24714 ac_save_IFS=$IFS
24715 IFS=:
24716 set x $ac_tag
24717 IFS=$ac_save_IFS
24718 shift
24719 ac_file=$1
24720 shift
24721
24722 case $ac_mode in
24723 :L) ac_source=$1;;
24724 :[FH])
24725 ac_file_inputs=
24726 for ac_f
24727 do
24728 case $ac_f in
24729 -) ac_f="$tmp/stdin";;
24730 *) # Look for the file first in the build tree, then in the source tree
24731 # (if the path is not absolute). The absolute path cannot be DOS-style,
24732 # because $ac_f cannot contain `:'.
24733 test -f "$ac_f" ||
24734 case $ac_f in
24735 [\\/$]*) false;;
24736 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24737 esac ||
24738 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24739 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24740 { (exit 1); exit 1; }; };;
24741 esac
24742 ac_file_inputs="$ac_file_inputs $ac_f"
24743 done
24744
24745 # Let's still pretend it is `configure' which instantiates (i.e., don't
24746 # use $as_me), people would be surprised to read:
24747 # /* config.h. Generated by config.status. */
24748 configure_input="Generated from "`IFS=:
24749 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24750 if test x"$ac_file" != x-; then
24751 configure_input="$ac_file. $configure_input"
24752 { echo "$as_me:$LINENO: creating $ac_file" >&5
24753 echo "$as_me: creating $ac_file" >&6;}
24754 fi
24755
24756 case $ac_tag in
24757 *:-:* | *:-) cat >"$tmp/stdin";;
24758 esac
24759 ;;
24760 esac
24761
24762 ac_dir=`$as_dirname -- "$ac_file" ||
24763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24764 X"$ac_file" : 'X\(//\)[^/]' \| \
24765 X"$ac_file" : 'X\(//\)$' \| \
24766 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24767 echo X"$ac_file" |
24768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24769 s//\1/
24770 q
24771 }
24772 /^X\(\/\/\)[^/].*/{
24773 s//\1/
24774 q
24775 }
24776 /^X\(\/\/\)$/{
24777 s//\1/
24778 q
24779 }
24780 /^X\(\/\).*/{
24781 s//\1/
24782 q
24783 }
24784 s/.*/./; q'`
24785 { as_dir="$ac_dir"
24786 case $as_dir in #(
24787 -*) as_dir=./$as_dir;;
24788 esac
24789 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24790 as_dirs=
24791 while :; do
24792 case $as_dir in #(
24793 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24794 *) as_qdir=$as_dir;;
24795 esac
24796 as_dirs="'$as_qdir' $as_dirs"
24797 as_dir=`$as_dirname -- "$as_dir" ||
24798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24799 X"$as_dir" : 'X\(//\)[^/]' \| \
24800 X"$as_dir" : 'X\(//\)$' \| \
24801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24802 echo X"$as_dir" |
24803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24804 s//\1/
24805 q
24806 }
24807 /^X\(\/\/\)[^/].*/{
24808 s//\1/
24809 q
24810 }
24811 /^X\(\/\/\)$/{
24812 s//\1/
24813 q
24814 }
24815 /^X\(\/\).*/{
24816 s//\1/
24817 q
24818 }
24819 s/.*/./; q'`
24820 test -d "$as_dir" && break
24821 done
24822 test -z "$as_dirs" || eval "mkdir $as_dirs"
24823 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24824 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24825 { (exit 1); exit 1; }; }; }
24826 ac_builddir=.
24827
24828 case "$ac_dir" in
24829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24830 *)
24831 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24832 # A ".." for each directory in $ac_dir_suffix.
24833 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24834 case $ac_top_builddir_sub in
24835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24837 esac ;;
24838 esac
24839 ac_abs_top_builddir=$ac_pwd
24840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24841 # for backward compatibility:
24842 ac_top_builddir=$ac_top_build_prefix
24843
24844 case $srcdir in
24845 .) # We are building in place.
24846 ac_srcdir=.
24847 ac_top_srcdir=$ac_top_builddir_sub
24848 ac_abs_top_srcdir=$ac_pwd ;;
24849 [\\/]* | ?:[\\/]* ) # Absolute name.
24850 ac_srcdir=$srcdir$ac_dir_suffix;
24851 ac_top_srcdir=$srcdir
24852 ac_abs_top_srcdir=$srcdir ;;
24853 *) # Relative name.
24854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24855 ac_top_srcdir=$ac_top_build_prefix$srcdir
24856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24857 esac
24858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24859
24860
24861 case $ac_mode in
24862 :F)
24863 #
24864 # CONFIG_FILE
24865 #
24866
24867 case $INSTALL in
24868 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24869 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24870 esac
24871 _ACEOF
24872
24873 cat >>$CONFIG_STATUS <<\_ACEOF
24874 # If the template does not know about datarootdir, expand it.
24875 # FIXME: This hack should be removed a few years after 2.60.
24876 ac_datarootdir_hack=; ac_datarootdir_seen=
24877
24878 case `sed -n '/datarootdir/ {
24879 p
24880 q
24881 }
24882 /@datadir@/p
24883 /@docdir@/p
24884 /@infodir@/p
24885 /@localedir@/p
24886 /@mandir@/p
24887 ' $ac_file_inputs` in
24888 *datarootdir*) ac_datarootdir_seen=yes;;
24889 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24890 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24891 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24892 _ACEOF
24893 cat >>$CONFIG_STATUS <<_ACEOF
24894 ac_datarootdir_hack='
24895 s&@datadir@&$datadir&g
24896 s&@docdir@&$docdir&g
24897 s&@infodir@&$infodir&g
24898 s&@localedir@&$localedir&g
24899 s&@mandir@&$mandir&g
24900 s&\\\${datarootdir}&$datarootdir&g' ;;
24901 esac
24902 _ACEOF
24903
24904 # Neutralize VPATH when `$srcdir' = `.'.
24905 # Shell code in configure.ac might set extrasub.
24906 # FIXME: do we really want to maintain this feature?
24907 cat >>$CONFIG_STATUS <<_ACEOF
24908 sed "$ac_vpsub
24909 $extrasub
24910 _ACEOF
24911 cat >>$CONFIG_STATUS <<\_ACEOF
24912 :t
24913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24914 s&@configure_input@&$configure_input&;t t
24915 s&@top_builddir@&$ac_top_builddir_sub&;t t
24916 s&@srcdir@&$ac_srcdir&;t t
24917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24918 s&@top_srcdir@&$ac_top_srcdir&;t t
24919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24920 s&@builddir@&$ac_builddir&;t t
24921 s&@abs_builddir@&$ac_abs_builddir&;t t
24922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24923 s&@INSTALL@&$ac_INSTALL&;t t
24924 $ac_datarootdir_hack
24925 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24926
24927 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24928 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24929 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24930 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24931 which seems to be undefined. Please make sure it is defined." >&5
24932 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24933 which seems to be undefined. Please make sure it is defined." >&2;}
24934
24935 rm -f "$tmp/stdin"
24936 case $ac_file in
24937 -) cat "$tmp/out"; rm -f "$tmp/out";;
24938 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24939 esac
24940 ;;
24941 :H)
24942 #
24943 # CONFIG_HEADER
24944 #
24945 _ACEOF
24946
24947 # Transform confdefs.h into a sed script `conftest.defines', that
24948 # substitutes the proper values into config.h.in to produce config.h.
24949 rm -f conftest.defines conftest.tail
24950 # First, append a space to every undef/define line, to ease matching.
24951 echo 's/$/ /' >conftest.defines
24952 # Then, protect against being on the right side of a sed subst, or in
24953 # an unquoted here document, in config.status. If some macros were
24954 # called several times there might be several #defines for the same
24955 # symbol, which is useless. But do not sort them, since the last
24956 # AC_DEFINE must be honored.
24957 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24958 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24959 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24960 # PARAMS is the parameter list in the macro definition--in most cases, it's
24961 # just an empty string.
24962 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24963 ac_dB='\\)[ (].*,\\1define\\2'
24964 ac_dC=' '
24965 ac_dD=' ,'
24966
24967 uniq confdefs.h |
24968 sed -n '
24969 t rset
24970 :rset
24971 s/^[ ]*#[ ]*define[ ][ ]*//
24972 t ok
24973 d
24974 :ok
24975 s/[\\&,]/\\&/g
24976 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24977 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24978 ' >>conftest.defines
24979
24980 # Remove the space that was appended to ease matching.
24981 # Then replace #undef with comments. This is necessary, for
24982 # example, in the case of _POSIX_SOURCE, which is predefined and required
24983 # on some systems where configure will not decide to define it.
24984 # (The regexp can be short, since the line contains either #define or #undef.)
24985 echo 's/ $//
24986 s,^[ #]*u.*,/* & */,' >>conftest.defines
24987
24988 # Break up conftest.defines:
24989 ac_max_sed_lines=50
24990
24991 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24992 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24993 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24994 # et cetera.
24995 ac_in='$ac_file_inputs'
24996 ac_out='"$tmp/out1"'
24997 ac_nxt='"$tmp/out2"'
24998
24999 while :
25000 do
25001 # Write a here document:
25002 cat >>$CONFIG_STATUS <<_ACEOF
25003 # First, check the format of the line:
25004 cat >"\$tmp/defines.sed" <<\\CEOF
25005 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25006 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25007 b
25008 :def
25009 _ACEOF
25010 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25011 echo 'CEOF
25012 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25013 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25014 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25015 grep . conftest.tail >/dev/null || break
25016 rm -f conftest.defines
25017 mv conftest.tail conftest.defines
25018 done
25019 rm -f conftest.defines conftest.tail
25020
25021 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25022 cat >>$CONFIG_STATUS <<\_ACEOF
25023 if test x"$ac_file" != x-; then
25024 echo "/* $configure_input */" >"$tmp/config.h"
25025 cat "$ac_result" >>"$tmp/config.h"
25026 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25027 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25028 echo "$as_me: $ac_file is unchanged" >&6;}
25029 else
25030 rm -f $ac_file
25031 mv "$tmp/config.h" $ac_file
25032 fi
25033 else
25034 echo "/* $configure_input */"
25035 cat "$ac_result"
25036 fi
25037 rm -f "$tmp/out12"
25038 ;;
25039
25040 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25041 echo "$as_me: executing $ac_file commands" >&6;}
25042 ;;
25043 esac
25044
25045
25046 case $ac_file$ac_mode in
25047 "default":C)
25048
25049 ### Make the necessary directories, if they don't exist.
25050 for dir in etc lisp ; do
25051 test -d ${dir} || mkdir ${dir}
25052 done
25053
25054 # Build src/Makefile from ${srcdir}/src/Makefile.c
25055 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25056 # This must be done after src/config.h is built, since we rely on that file.
25057
25058 # Now get this: Some word that is part of the ${srcdir} directory name
25059 # or the ${configuration} value might, just might, happen to be an
25060 # identifier like `sun4' or `i386' or something, and be predefined by
25061 # the C preprocessor to some helpful value like 1, or maybe the empty
25062 # string. Needless to say consequent macro substitutions are less
25063 # than conducive to the makefile finding the correct directory.
25064 undefs="`echo $top_srcdir $configuration $canonical |
25065 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25066 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25067 `"
25068
25069 echo creating src/epaths.h
25070 ${MAKE-make} epaths-force
25071
25072 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25073 # `..' to `. .' unless invoked with -traditional
25074
25075 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25076 CPPFLAGS="$CPPFLAGS -traditional"
25077 fi
25078
25079 echo creating lib-src/Makefile
25080 ( cd lib-src
25081 rm -f junk.c junk1.c junk2.c
25082 sed -e '/start of cpp stuff/q' \
25083 < Makefile.c > junk1.c
25084 sed -e '1,/start of cpp stuff/d'\
25085 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25086 < Makefile.c > junk.c
25087 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25088 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25089 cat junk1.c junk2.c > Makefile.new
25090 rm -f junk.c junk1.c junk2.c
25091 chmod 444 Makefile.new
25092 mv -f Makefile.new Makefile
25093 )
25094
25095 echo creating src/Makefile
25096 ( cd src
25097 rm -f junk.c junk1.c junk2.c
25098 sed -e '/start of cpp stuff/q' \
25099 < Makefile.c > junk1.c
25100 sed -e '1,/start of cpp stuff/d'\
25101 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25102 < Makefile.c > junk.c
25103 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25104 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25105 cat junk1.c junk2.c > Makefile.new
25106 rm -f junk.c junk1.c junk2.c
25107 chmod 444 Makefile.new
25108 mv -f Makefile.new Makefile
25109 )
25110
25111 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25112 echo creating src/.gdbinit
25113 echo source $srcdir/src/.gdbinit > src/.gdbinit
25114 fi
25115
25116 # This is how we know whether to re-run configure in certain cases.
25117 touch src/config.stamp
25118
25119 ;;
25120
25121 esac
25122 done # for ac_tag
25123
25124
25125 { (exit 0); exit 0; }
25126 _ACEOF
25127 chmod +x $CONFIG_STATUS
25128 ac_clean_files=$ac_clean_files_save
25129
25130
25131 # configure is writing to config.log, and then calls config.status.
25132 # config.status does its own redirection, appending to config.log.
25133 # Unfortunately, on DOS this fails, as config.log is still kept open
25134 # by configure, so config.status won't be able to write to it; its
25135 # output is simply discarded. So we exec the FD to /dev/null,
25136 # effectively closing config.log, so it can be properly (re)opened and
25137 # appended to by config.status. When coming back to configure, we
25138 # need to make the FD available again.
25139 if test "$no_create" != yes; then
25140 ac_cs_success=:
25141 ac_config_status_args=
25142 test "$silent" = yes &&
25143 ac_config_status_args="$ac_config_status_args --quiet"
25144 exec 5>/dev/null
25145 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25146 exec 5>>config.log
25147 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25148 # would make configure fail if this is the last instruction.
25149 $ac_cs_success || { (exit 1); exit 1; }
25150 fi
25151
25152