Improve index entries. Remove redundant ones.
[emacs.git] / configure
blob0e79c5aa980655e194e7df1b76ecbb6415a46ad8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 ## --------------------- ##
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
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
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=:
50 rm -f conf$$.sh
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
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='
68 IFS=" "" $as_nl"
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
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
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
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; }
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='+ '
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
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
113 done
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
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
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/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
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
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
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
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
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
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
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
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
333 _ASEOF
334 }; then
335 break
340 done
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+"$@"}
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; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
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" || {
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 '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
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; }; }
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
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
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;;
480 ECHO_N='-n';;
481 esac
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
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
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'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
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
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=
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
542 as_executable_p=$as_test_x
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'"
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'"
552 exec 7<&0 </dev/null 6>&1
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`
560 # Initializations.
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}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
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"
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
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
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 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 ALLOCA
695 liblockfile
696 LIBOBJS
697 NEED_SETGID
698 KMEM_GROUP
699 GETLOADAVG_LIBS
700 GETOPT_H
701 GETOPTOBJS
702 version
703 configuration
704 canonical
705 srcdir
706 lispdir
707 locallisppath
708 lisppath
709 x_default_search_path
710 etcdir
711 archlibdir
712 bitmapdir
713 gamedir
714 gameuser
715 c_switch_system
716 c_switch_machine
717 LD_SWITCH_X_SITE
718 LD_SWITCH_X_SITE_AUX
719 C_SWITCH_X_SITE
720 X_TOOLKIT_TYPE
721 machfile
722 opsysfile
723 carbon_appdir
724 LTLIBOBJS'
725 ac_subst_files=''
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
735 XMKMF'
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
784 ac_prev=
785 ac_dashdash=
786 for ac_option
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
804 ac_dashdash=yes ;;
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
823 --config-cache | -C)
824 cache_file=config.cache ;;
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
838 -disable-* | --disable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=no ;;
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
857 -enable-* | --enable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_$ac_feature=\$ac_optarg ;;
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1054 -with-* | --with-*)
1055 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=\$ac_optarg ;;
1063 -without-* | --without-*)
1064 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=no ;;
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1095 *=*)
1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112 esac
1113 done
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val=\$$ac_var
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1134 done
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1139 build=$build_alias
1140 host=$host_alias
1141 target=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x; then
1145 if test "x$build_alias" = x; then
1146 cross_compiling=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1150 cross_compiling=yes
1154 ac_tool_prefix=
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157 test "$silent" = yes && exec 6>/dev/null
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 echo X"$0" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1188 /^X\(\/\/\)$/{
1189 s//\1/
1192 /^X\(\/\).*/{
1193 s//\1/
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1201 else
1202 ac_srcdir_defaulted=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1213 pwd)`
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1221 case $srcdir in
1222 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 esac
1224 for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 done
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1247 Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1293 cat <<\_ACEOF
1295 Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1300 X features:
1301 --x-includes=DIR X include files are in DIR
1302 --x-libraries=DIR X library files are in DIR
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1310 if test -n "$ac_init_help"; then
1312 cat <<\_ACEOF
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-carbon-app[=DIR] [DIR=/Application]
1318 specify install directory for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search for lisp files
1324 specific to this site
1325 --disable-largefile omit support for large files
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc don't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version 5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server host
1335 --without-sound don't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CPP C preprocessor
1360 XMKMF Path to xmkmf, Makefile generator for X Window System
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1365 _ACEOF
1366 ac_status=$?
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1373 ac_builddir=.
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 configure
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1442 $ $0 $@
1444 _ACEOF
1445 exec 5>>config.log
1447 cat <<_ASUNAME
1448 ## --------- ##
1449 ## Platform. ##
1450 ## --------- ##
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1469 _ASUNAME
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1477 done
1478 IFS=$as_save_IFS
1480 } >&5
1482 cat >&5 <<_ACEOF
1485 ## ----------- ##
1486 ## Core tests. ##
1487 ## ----------- ##
1489 _ACEOF
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_configure_args=
1498 ac_configure_args0=
1499 ac_configure_args1=
1500 ac_must_keep_next=false
1501 for ac_pass in 1 2
1503 for ac_arg
1505 case $ac_arg in
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 continue ;;
1510 *\'*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512 esac
1513 case $ac_pass in
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1519 else
1520 case $ac_arg in
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 esac
1529 -* ) ac_must_keep_next=true ;;
1530 esac
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1534 esac
1535 done
1536 done
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1548 echo
1550 cat <<\_ASBOX
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1554 _ASBOX
1555 echo
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1560 case $ac_val in #(
1561 *${as_nl}*)
1562 case $ac_var in #(
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 esac
1566 case $ac_var in #(
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1569 esac ;;
1570 esac
1571 done
1572 (set) 2>&1 |
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1575 sed -n \
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 ;; #(
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1582 esac |
1583 sort
1585 echo
1587 cat <<\_ASBOX
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1591 _ASBOX
1592 echo
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1603 if test -n "$ac_subst_files"; then
1604 cat <<\_ASBOX
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1621 if test -s confdefs.h; then
1622 cat <<\_ASBOX
1623 ## ----------- ##
1624 ## confdefs.h. ##
1625 ## ----------- ##
1626 _ASBOX
1627 echo
1628 cat confdefs.h
1629 echo
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1634 } >&5
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 exit $exit_status
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 done
1642 ac_signal=0
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 _ACEOF
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 _ACEOF
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 _ACEOF
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 _ACEOF
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 else
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1684 shift
1685 for ac_site_file
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file"
1693 done
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1704 esac
1706 else
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1716 # value.
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1724 set,)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1726 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,set)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,);;
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1738 echo "$as_me: former value: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1740 echo "$as_me: current value: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1742 fi;;
1743 esac
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1746 case $ac_new_val in
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1749 esac
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 esac
1755 done
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s,x,x', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1799 _ACEOF
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1801 rm -f conftest.sed
1804 lispdir='${datadir}/emacs/${version}/lisp'
1805 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1806 '${datadir}/emacs/site-lisp'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1808 etcdir='${datadir}/emacs/${version}/etc'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs/${version}/etc'
1811 gamedir='${localstatedir}/games/emacs'
1813 gameuser=games
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1818 withval=$with_gcc;
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1827 _ACEOF
1829 else :
1831 else
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1834 _ACEOF
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1844 #define KERBEROS 1
1845 _ACEOF
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1856 with_kerberos=yes
1857 cat >>confdefs.h <<\_ACEOF
1858 #define KERBEROS 1
1859 _ACEOF
1863 cat >>confdefs.h <<\_ACEOF
1864 #define KERBEROS5 1
1865 _ACEOF
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1876 #define HESIOD 1
1877 _ACEOF
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=athena ;;
1895 n | no ) val=no ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1902 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1903 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1904 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1905 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1906 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1909 esac
1910 with_x_toolkit=$val
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1917 withval=$with_xpm;
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1923 withval=$with_jpeg;
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1929 withval=$with_tiff;
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1935 withval=$with_gif;
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1941 withval=$with_png;
1945 # Check whether --with-gtk was given.
1946 if test "${with_gtk+set}" = set; then
1947 withval=$with_gtk;
1951 # Check whether --with-pkg-config-prog was given.
1952 if test "${with_pkg_config_prog+set}" = set; then
1953 withval=$with_pkg_config_prog;
1957 # Check whether --with-toolkit-scroll-bars was given.
1958 if test "${with_toolkit_scroll_bars+set}" = set; then
1959 withval=$with_toolkit_scroll_bars;
1963 # Check whether --with-xim was given.
1964 if test "${with_xim+set}" = set; then
1965 withval=$with_xim;
1969 # Check whether --with-carbon was given.
1970 if test "${with_carbon+set}" = set; then
1971 withval=$with_carbon;
1974 # Check whether --enable-carbon-app was given.
1975 if test "${enable_carbon_app+set}" = set; then
1976 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1980 # Check whether --enable-asserts was given.
1981 if test "${enable_asserts+set}" = set; then
1982 enableval=$enable_asserts; USE_XASSERTS=$enableval
1983 else
1984 USE_XASSERTS=no
1988 # Check whether --enable-maintainer-mode was given.
1989 if test "${enable_maintainer_mode+set}" = set; then
1990 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1991 else
1992 USE_MAINTAINER_MODE=no
1995 if test $USE_MAINTAINER_MODE = yes; then
1996 MAINT=
1997 else
1998 MAINT=#
2002 # Check whether --enable-locallisppath was given.
2003 if test "${enable_locallisppath+set}" = set; then
2004 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2005 locallisppath=
2006 elif test "${enableval}" != "yes"; then
2007 locallisppath=${enableval}
2012 #### Make srcdir absolute, if it isn't already. It's important to
2013 #### avoid running the path through pwd unnecessarily, since pwd can
2014 #### give you automounter prefixes, which can go away. We do all this
2015 #### so Emacs can find its files when run uninstalled.
2016 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2017 unset CDPATH
2018 case "${srcdir}" in
2019 /* ) ;;
2021 ## We may be able to use the $PWD environment variable to make this
2022 ## absolute. But sometimes PWD is inaccurate.
2023 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2024 ## but that tested only for a well-formed and valid PWD,
2025 ## it did not object when PWD was well-formed and valid but just wrong.
2026 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2027 then
2028 srcdir="$PWD"
2029 else
2030 srcdir="`(cd ${srcdir}; pwd)`"
2033 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2034 esac
2036 #### Check if the source directory already has a configured system in it.
2037 if test `pwd` != `(cd ${srcdir} && pwd)` \
2038 && test -f "${srcdir}/src/config.h" ; then
2039 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2040 as a build directory right now; it has been configured in its own
2041 right. To configure in another directory as well, you MUST
2042 use GNU make. If you do not have GNU make, then you must
2043 now do \`make distclean' in ${srcdir},
2044 and then run $0 again." >&5
2045 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&2;}
2053 #### Given the configuration name, set machfile and opsysfile to the
2054 #### names of the m/*.h and s/*.h files we should use.
2056 ### Canonicalize the configuration name.
2058 ac_aux_dir=
2059 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2060 if test -f "$ac_dir/install-sh"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/install-sh -c"
2063 break
2064 elif test -f "$ac_dir/install.sh"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install.sh -c"
2067 break
2068 elif test -f "$ac_dir/shtool"; then
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/shtool install -c"
2071 break
2073 done
2074 if test -z "$ac_aux_dir"; then
2075 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2076 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2077 { (exit 1); exit 1; }; }
2080 # These three variables are undocumented and unsupported,
2081 # and are intended to be withdrawn in a future Autoconf release.
2082 # They can cause serious problems if a builder's source tree is in a directory
2083 # whose full name contains unusual characters.
2084 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2085 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2086 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089 # Make sure we can run config.sub.
2090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2091 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2093 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: checking build system type" >&5
2096 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2097 if test "${ac_cv_build+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 ac_build_alias=$build_alias
2101 test "x$ac_build_alias" = x &&
2102 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2103 test "x$ac_build_alias" = x &&
2104 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2106 { (exit 1); exit 1; }; }
2107 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114 echo "${ECHO_T}$ac_cv_build" >&6; }
2115 case $ac_cv_build in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118 echo "$as_me: error: invalid value of canonical build" >&2;}
2119 { (exit 1); exit 1; }; };;
2120 esac
2121 build=$ac_cv_build
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_build
2124 shift
2125 build_cpu=$1
2126 build_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 build_os=$*
2131 IFS=$ac_save_IFS
2132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2135 { echo "$as_me:$LINENO: checking host system type" >&5
2136 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_host+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 if test "x$host_alias" = x; then
2141 ac_cv_host=$ac_cv_build
2142 else
2143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151 echo "${ECHO_T}$ac_cv_host" >&6; }
2152 case $ac_cv_host in
2153 *-*-*) ;;
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155 echo "$as_me: error: invalid value of canonical host" >&2;}
2156 { (exit 1); exit 1; }; };;
2157 esac
2158 host=$ac_cv_host
2159 ac_save_IFS=$IFS; IFS='-'
2160 set x $ac_cv_host
2161 shift
2162 host_cpu=$1
2163 host_vendor=$2
2164 shift; shift
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2167 host_os=$*
2168 IFS=$ac_save_IFS
2169 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2172 canonical=$host
2173 configuration=${host_alias-$host}
2177 ### If you add support for a new configuration, add code to this
2178 ### switch statement to recognize your configuration name and select
2179 ### the appropriate operating system and machine description files.
2181 ### You would hope that you could choose an m/*.h file pretty much
2182 ### based on the machine portion of the configuration name, and an s-
2183 ### file based on the operating system portion. However, it turns out
2184 ### that each m/*.h file is pretty manufacturer-specific - for
2185 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2186 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2187 ### machines. So we basically have to have a special case for each
2188 ### configuration name.
2190 ### As far as handling version numbers on operating systems is
2191 ### concerned, make sure things will fail in a fixable way. If
2192 ### /etc/MACHINES doesn't say anything about version numbers, be
2193 ### prepared to handle anything reasonably. If version numbers
2194 ### matter, be sure /etc/MACHINES says something about it.
2196 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2197 ### "System V Release 4"; he writes, "The old convention encouraged
2198 ### confusion between `system' and `release' levels'."
2200 machine='' opsys='' unported=no
2201 case "${canonical}" in
2203 ## FreeBSD ports
2204 *-*-freebsd* )
2205 opsys=freebsd
2206 case "${canonical}" in
2207 alpha*-*-freebsd*) machine=alpha ;;
2208 ia64-*-freebsd*) machine=ia64 ;;
2209 sparc64-*-freebsd*) machine=sparc ;;
2210 powerpc-*-freebsd*) machine=macppc ;;
2211 i[3456]86-*-freebsd*) machine=intel386 ;;
2212 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2213 esac
2216 ## NetBSD ports
2217 *-*-netbsd* )
2218 opsys=netbsd
2219 if test -f /usr/lib/crti.o; then
2221 cat >>confdefs.h <<\_ACEOF
2222 #define HAVE_CRTIN
2223 _ACEOF
2227 case "${canonical}" in
2228 alpha*-*-netbsd*) machine=alpha ;;
2229 i[3456]86-*-netbsd*) machine=intel386 ;;
2230 m68k-*-netbsd*)
2231 # This is somewhat bogus.
2232 machine=hp9000s300 ;;
2233 mips-*-netbsd*) machine=pmax ;;
2234 mipsel-*-netbsd*) machine=pmax ;;
2235 mipseb-*-netbsd*) machine=pmax ;;
2236 ns32k-*-netbsd*) machine=ns32000 ;;
2237 powerpc-*-netbsd*) machine=macppc ;;
2238 sparc*-*-netbsd*) machine=sparc ;;
2239 vax-*-netbsd*) machine=vax ;;
2240 arm-*-netbsd*) machine=arm ;;
2241 x86_64-*-netbsd*) machine=amdx86-64 ;;
2242 hppa-*-netbsd*) machine=hp800 ;;
2243 shle-*-netbsd*) machine=sh3el ;;
2244 esac
2247 ## OpenBSD ports
2248 *-*-openbsd* )
2249 opsys=openbsd
2250 case "${canonical}" in
2251 alpha*-*-openbsd*) machine=alpha ;;
2252 arm-*-openbsd*) machine=arm ;;
2253 hppa-*-openbsd*) machine=hp9000s300 ;;
2254 i386-*-openbsd*) machine=intel386 ;;
2255 m68k-*-openbsd*) machine=hp9000s300 ;;
2256 m88k-*-openbsd*) machine=aviion ;;
2257 mips64-*-openbsd*) machine=mips64 ;;
2258 powerpc-*-openbsd*) machine=macppc ;;
2259 sh-*-openbsd*) machine=sh3el ;;
2260 sparc*-*-openbsd*) machine=sparc ;;
2261 vax-*-openbsd*) machine=vax ;;
2262 x86_64-*-openbsd*) machine=amdx86-64 ;;
2263 esac
2266 ## LynxOS ports
2267 *-*-lynxos* )
2268 opsys=lynxos
2269 case "${canonical}" in
2270 i[3456]86-*-lynxos*) machine=intel386 ;;
2271 powerpc-*-lynxos*) machine=powerpc ;;
2272 esac
2275 ## Acorn RISCiX:
2276 arm-acorn-riscix1.1* )
2277 machine=acorn opsys=riscix1-1
2279 arm-acorn-riscix1.2* | arm-acorn-riscix )
2280 ## This name is riscix12 instead of riscix1.2
2281 ## to avoid a file name conflict on MSDOS.
2282 machine=acorn opsys=riscix12
2285 ## BSDI ports
2286 *-*-bsdi* )
2287 opsys=bsdi
2288 case "${canonical}" in
2289 i[345]86-*-bsdi*) machine=intel386 ;;
2290 sparc-*-bsdi*) machine=sparc ;;
2291 powerpc-*-bsdi*) machine=macppc ;;
2292 esac
2293 case "${canonical}" in
2294 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2295 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2296 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2297 *-*-bsdi3* ) opsys=bsdos3 ;;
2298 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2299 esac
2302 ## Alliant machines
2303 ## Strictly speaking, we need the version of the alliant operating
2304 ## system to choose the right machine file, but currently the
2305 ## configuration name doesn't tell us enough to choose the right
2306 ## one; we need to give alliants their own operating system name to
2307 ## do this right. When someone cares, they can help us.
2308 fx80-alliant-* )
2309 machine=alliant4 opsys=bsd4-2
2311 i860-alliant-* )
2312 machine=alliant-2800 opsys=bsd4-3
2315 ## Alpha (DEC) machines.
2316 alpha*-dec-osf* )
2317 machine=alpha opsys=osf1
2318 # This is needed to find X11R6.1 libraries for certain tests.
2319 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2320 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2321 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2322 # due to non-traditional preprocessing with the current compiler
2323 # defaults. OSF 4 can also have that compiler version, and there
2324 # seems always to have been a usable /usr/bin/cpp.
2325 NON_GNU_CPP=/usr/bin/cpp
2326 case "${canonical}" in
2327 alpha*-dec-osf[5-9]*)
2328 opsys=osf5-0 ;;
2329 esac
2332 alpha*-*-linux-gnu* )
2333 machine=alpha opsys=gnu-linux
2336 arm*-*-linux-gnu* )
2337 machine=arm opsys=gnu-linux
2340 ## Altos 3068
2341 m68*-altos-sysv* )
2342 machine=altos opsys=usg5-2
2345 ## Amdahl UTS
2346 580-amdahl-sysv* )
2347 machine=amdahl opsys=usg5-2-2
2350 ## Apollo, Domain/OS
2351 m68*-apollo-* )
2352 machine=apollo opsys=bsd4-3
2355 ## Apple Darwin / Mac OS X
2356 *-apple-darwin* )
2357 case "${canonical}" in
2358 i[3456]86-* ) machine=intel386 ;;
2359 powerpc-* ) machine=powermac ;;
2360 * ) unported=yes ;;
2361 esac
2362 opsys=darwin
2363 # Define CPP as follows to make autoconf work correctly.
2364 CPP="${CC-cc} -E -no-cpp-precomp"
2365 # Use fink packages if available.
2366 if test -d /sw/include && test -d /sw/lib; then
2367 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2368 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2369 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2373 ## AT&T 3b2, 3b5, 3b15, 3b20
2374 we32k-att-sysv* )
2375 machine=att3b opsys=usg5-2-2
2378 ## AT&T 3b1 - The Mighty Unix PC!
2379 m68*-att-sysv* )
2380 machine=7300 opsys=usg5-2-2
2383 ## Bull dpx20
2384 rs6000-bull-bosx* )
2385 machine=ibmrs6000 opsys=aix3-2
2388 ## Bull dpx2
2389 m68*-bull-sysv3* )
2390 machine=dpx2 opsys=usg5-3
2393 ## Bull sps7
2394 m68*-bull-sysv2* )
2395 machine=sps7 opsys=usg5-2
2398 ## CCI 5/32, 6/32 -- see "Tahoe".
2400 ## Celerity
2401 ## I don't know what configuration name to use for this; config.sub
2402 ## doesn't seem to know anything about it. Hey, Celerity users, get
2403 ## in touch with us!
2404 celerity-celerity-bsd* )
2405 machine=celerity opsys=bsd4-2
2408 ## Clipper
2409 ## What operating systems does this chip run that Emacs has been
2410 ## tested on?
2411 clipper-* )
2412 machine=clipper
2413 ## We'll use the catch-all code at the bottom to guess the
2414 ## operating system.
2417 ## Compaq Nonstop
2418 mips-compaq-nonstopux* )
2419 machine=nonstopux opsys=nonstopux
2422 ## Convex
2423 *-convex-bsd* | *-convex-convexos* )
2424 machine=convex opsys=bsd4-3
2425 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2426 NON_GNU_CPP="cc -E -P"
2429 ## Cubix QBx/386
2430 i[3456]86-cubix-sysv* )
2431 machine=intel386 opsys=usg5-3
2434 ## Cydra 5
2435 cydra*-cydrome-sysv* )
2436 machine=cydra5 opsys=usg5-3
2439 ## Data General AViiON Machines
2440 ## DG changed naming conventions with the release of 5.4.4.10, they
2441 ## dropped the initial 5.4 but left the intervening R. Because of the
2442 ## R this shouldn't conflict with older versions of the OS (which I
2443 ## think were named like dgux4.*). In addition, DG new AViiONs series
2444 ## uses either Motorola M88k or Intel Pentium CPUs.
2445 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2446 machine=aviion opsys=dgux4
2448 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2449 ## This name is dgux5-4-3 instead of dgux5-4r3
2450 ## to avoid a file name conflict on MSDOS.
2451 machine=aviion opsys=dgux5-4-3
2453 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2454 machine=aviion opsys=dgux5-4r2
2456 m88k-dg-dgux* )
2457 machine=aviion opsys=dgux
2460 ## Data General AViiON Intel (x86) Machines
2461 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2462 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2463 i[345]86-dg-dguxR4* )
2464 machine=aviion-intel opsys=dgux4
2467 ## DECstations
2468 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2469 machine=pmax opsys=bsd4-2
2471 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2472 machine=pmax opsys=bsd4-3
2474 mips-dec-ultrix* )
2475 machine=pmax opsys=ultrix4-3
2477 mips-dec-osf* )
2478 machine=pmax opsys=osf1
2480 mips-dec-mach_bsd4.3* )
2481 machine=pmax opsys=mach-bsd4-3
2484 ## Motorola Delta machines
2485 m68k-motorola-sysv* | m68000-motorola-sysv* )
2486 machine=delta opsys=usg5-3
2487 if test -z "`type gnucc | grep 'not found'`"
2488 then
2489 if test -s /etc/167config
2490 then CC="gnucc -m68040"
2491 else CC="gnucc -m68881"
2493 else
2494 if test -z "`type gcc | grep 'not found'`"
2495 then CC=gcc
2496 else CC=cc
2500 m88k-motorola-sysv4* )
2501 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2502 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2503 # I hope there are not other 4.0 versions for this machine
2504 # which really need usg5-4 instead.
2505 machine=delta88k opsys=usg5-4-2
2507 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2508 machine=delta88k opsys=usg5-3
2511 ## Dual machines
2512 m68*-dual-sysv* )
2513 machine=dual opsys=usg5-2
2515 m68*-dual-uniplus* )
2516 machine=dual opsys=unipl5-2
2519 ## Elxsi 6400
2520 elxsi-elxsi-sysv* )
2521 machine=elxsi opsys=usg5-2
2524 ## Encore machines
2525 ns16k-encore-bsd* )
2526 machine=ns16000 opsys=umax
2529 ## The GEC 63 - apparently, this port isn't really finished yet.
2530 # I'm sure we finished off the last of the machines, though. -- fx
2532 ## Gould Power Node and NP1
2533 pn-gould-bsd4.2* )
2534 machine=gould opsys=bsd4-2
2536 pn-gould-bsd4.3* )
2537 machine=gould opsys=bsd4-3
2539 np1-gould-bsd* )
2540 machine=gould-np1 opsys=bsd4-3
2543 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2544 ## as far as Emacs is concerned).
2545 m88k-harris-cxux* )
2546 # Build needs to be different on 7.0 and later releases
2547 case "`uname -r`" in
2548 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2549 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2550 esac
2551 NON_GNU_CPP="/lib/cpp"
2553 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2554 m68k-harris-cxux* )
2555 machine=nh3000 opsys=cxux
2557 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2558 powerpc-harris-powerunix )
2559 machine=nh6000 opsys=powerunix
2560 NON_GNU_CPP="cc -Xo -E -P"
2562 ## SR2001/SR2201 running HI-UX/MPP
2563 hppa1.1-hitachi-hiuxmpp* )
2564 machine=sr2k opsys=hiuxmpp
2566 hppa1.1-hitachi-hiuxwe2* )
2567 machine=sr2k opsys=hiuxwe2
2569 ## Honeywell XPS100
2570 xps*-honeywell-sysv* )
2571 machine=xps100 opsys=usg5-2
2574 ## HP 9000 series 200 or 300
2575 m68*-hp-bsd* )
2576 machine=hp9000s300 opsys=bsd4-3
2578 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2579 m68*-hp-hpux* )
2580 case "`uname -r`" in
2581 ## Someone's system reports A.B8.05 for this.
2582 ## I wonder what other possibilities there are.
2583 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2584 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2585 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2586 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2587 *) machine=hp9000s300 opsys=hpux ;;
2588 esac
2591 ## HP 9000 series 700 and 800, running HP/UX
2592 hppa*-hp-hpux7* )
2593 machine=hp800 opsys=hpux
2595 hppa*-hp-hpux8* )
2596 machine=hp800 opsys=hpux8
2598 hppa*-hp-hpux9shr* )
2599 machine=hp800 opsys=hpux9shr
2601 hppa*-hp-hpux9* )
2602 machine=hp800 opsys=hpux9
2604 hppa*-hp-hpux10.2* )
2605 machine=hp800 opsys=hpux10-20
2607 hppa*-hp-hpux10* )
2608 machine=hp800 opsys=hpux10
2610 hppa*-hp-hpux1[1-9]* )
2611 machine=hp800 opsys=hpux11
2612 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2615 hppa*-*-linux-gnu* )
2616 machine=hp800 opsys=gnu-linux
2619 ## HP 9000 series 700 and 800, running HP/UX
2620 hppa*-hp-hpux* )
2621 ## Cross-compilation? Nah!
2622 case "`uname -r`" in
2623 ## Someone's system reports A.B8.05 for this.
2624 ## I wonder what other possibilities there are.
2625 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2626 *.08.* ) machine=hp800 opsys=hpux8 ;;
2627 *.09.* ) machine=hp800 opsys=hpux9 ;;
2628 *) machine=hp800 opsys=hpux10 ;;
2629 esac
2631 hppa*-*-nextstep* )
2632 machine=hp800 opsys=nextstep
2635 ## Orion machines
2636 orion-orion-bsd* )
2637 machine=orion opsys=bsd4-2
2639 clipper-orion-bsd* )
2640 machine=orion105 opsys=bsd4-2
2643 ## IBM machines
2644 i[3456]86-ibm-aix1.1* )
2645 machine=ibmps2-aix opsys=usg5-2-2
2647 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2648 machine=ibmps2-aix opsys=usg5-3
2650 i370-ibm-aix*)
2651 machine=ibm370aix opsys=usg5-3
2653 s390-*-linux-gnu* )
2654 machine=ibms390 opsys=gnu-linux
2656 s390x-*-linux-gnu* )
2657 machine=ibms390x opsys=gnu-linux
2659 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2660 machine=ibmrs6000 opsys=aix3-1
2662 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2663 machine=ibmrs6000 opsys=aix3-2-5
2665 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2666 machine=ibmrs6000 opsys=aix4-1
2668 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2669 machine=ibmrs6000 opsys=aix4-2
2671 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2672 machine=ibmrs6000 opsys=aix4-2
2674 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2675 machine=ibmrs6000 opsys=aix4-2
2677 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2678 machine=ibmrs6000 opsys=aix4
2680 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2681 machine=ibmrs6000 opsys=aix4-1
2683 rs6000-ibm-aix* | powerpc-ibm-aix* )
2684 machine=ibmrs6000 opsys=aix3-2
2686 romp-ibm-bsd4.3* )
2687 machine=ibmrt opsys=bsd4-3
2689 romp-ibm-bsd4.2* )
2690 machine=ibmrt opsys=bsd4-2
2692 romp-ibm-aos4.3* )
2693 machine=ibmrt opsys=bsd4-3
2695 romp-ibm-aos4.2* )
2696 machine=ibmrt opsys=bsd4-2
2698 romp-ibm-aos* )
2699 machine=ibmrt opsys=bsd4-3
2701 romp-ibm-bsd* )
2702 machine=ibmrt opsys=bsd4-3
2704 romp-ibm-aix* )
2705 machine=ibmrt-aix opsys=usg5-2-2
2708 ## Integrated Solutions `Optimum V'
2709 m68*-isi-bsd4.2* )
2710 machine=isi-ov opsys=bsd4-2
2712 m68*-isi-bsd4.3* )
2713 machine=isi-ov opsys=bsd4-3
2716 ## Intel 386 machines where we do care about the manufacturer
2717 i[3456]86-intsys-sysv* )
2718 machine=is386 opsys=usg5-2-2
2721 ## Prime EXL
2722 i[3456]86-prime-sysv* )
2723 machine=i386 opsys=usg5-3
2726 ## Sequent Symmetry running Dynix
2727 i[3456]86-sequent-bsd* )
2728 machine=symmetry opsys=bsd4-3
2731 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2732 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2733 machine=sequent-ptx opsys=ptx4
2734 NON_GNU_CPP=/lib/cpp
2737 ## Sequent Symmetry running DYNIX/ptx
2738 ## Use the old cpp rather than the newer ANSI one.
2739 i[3456]86-sequent-ptx* )
2740 machine=sequent-ptx opsys=ptx
2741 NON_GNU_CPP="/lib/cpp"
2744 ## ncr machine running svr4.3.
2745 i[3456]86-ncr-sysv4.3 )
2746 machine=ncr386 opsys=usg5-4-3
2749 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2750 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2751 i[3456]86-ncr-sysv* )
2752 machine=ncr386 opsys=usg5-4-2
2755 ## Intel Paragon OSF/1
2756 i860-intel-osf1* )
2757 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2760 ## Intel 860
2761 i860-*-sysv4* )
2762 machine=i860 opsys=usg5-4
2763 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2764 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2767 ## Macintosh PowerPC
2768 powerpc*-*-linux-gnu* )
2769 machine=macppc opsys=gnu-linux
2772 ## Masscomp machines
2773 m68*-masscomp-rtu* )
2774 machine=masscomp opsys=rtu
2777 ## Megatest machines
2778 m68*-megatest-bsd* )
2779 machine=mega68 opsys=bsd4-2
2782 ## Workstations sold by MIPS
2783 ## This is not necessarily all workstations using the MIPS processor -
2784 ## Irises are produced by SGI, and DECstations by DEC.
2786 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2787 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2788 ## it gives for choosing between the alternatives seems to be "Use
2789 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2790 ## the BSD world." I'll assume that these are instructions for
2791 ## handling two odd situations, and that every other situation
2792 ## should use mips.h and usg5-2-2, they being listed first.
2793 mips-mips-usg* )
2794 machine=mips4
2795 ## Fall through to the general code at the bottom to decide on the OS.
2797 mips-mips-riscos4* )
2798 machine=mips4 opsys=bsd4-3
2799 NON_GNU_CC="cc -systype bsd43"
2800 NON_GNU_CPP="cc -systype bsd43 -E"
2802 mips-mips-riscos5* )
2803 machine=mips4 opsys=riscos5
2804 NON_GNU_CC="cc -systype bsd43"
2805 NON_GNU_CPP="cc -systype bsd43 -E"
2807 mips-mips-bsd* )
2808 machine=mips opsys=bsd4-3
2810 mips-mips-* )
2811 machine=mips opsys=usg5-2-2
2814 ## NeXT
2815 m68*-next-* | m68k-*-nextstep* )
2816 machine=m68k opsys=nextstep
2819 ## The complete machine from National Semiconductor
2820 ns32k-ns-genix* )
2821 machine=ns32000 opsys=usg5-2
2824 ## NCR machines
2825 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2826 machine=tower32 opsys=usg5-2-2
2828 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2829 machine=tower32v3 opsys=usg5-3
2832 ## NEC EWS4800
2833 mips-nec-sysv4*)
2834 machine=ews4800 opsys=ux4800
2837 ## Nixdorf Targon 31
2838 m68*-nixdorf-sysv* )
2839 machine=targon31 opsys=usg5-2-2
2842 ## Nu (TI or LMI)
2843 m68*-nu-sysv* )
2844 machine=nu opsys=usg5-2
2847 ## Plexus
2848 m68*-plexus-sysv* )
2849 machine=plexus opsys=usg5-2
2852 ## Pyramid machines
2853 ## I don't really have any idea what sort of processor the Pyramid has,
2854 ## so I'm assuming it is its own architecture.
2855 pyramid-pyramid-bsd* )
2856 machine=pyramid opsys=bsd4-2
2859 ## Sequent Balance
2860 ns32k-sequent-bsd4.2* )
2861 machine=sequent opsys=bsd4-2
2863 ns32k-sequent-bsd4.3* )
2864 machine=sequent opsys=bsd4-3
2867 ## Siemens Nixdorf
2868 mips-siemens-sysv* | mips-sni-sysv*)
2869 machine=mips-siemens opsys=usg5-4
2870 NON_GNU_CC=/usr/ccs/bin/cc
2871 NON_GNU_CPP=/usr/ccs/lib/cpp
2874 ## Silicon Graphics machines
2875 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2876 m68*-sgi-iris3.5* )
2877 machine=irist opsys=iris3-5
2879 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2880 machine=irist opsys=iris3-6
2882 ## Iris 4D
2883 mips-sgi-irix3* )
2884 machine=iris4d opsys=irix3-3
2886 mips-sgi-irix4* )
2887 machine=iris4d opsys=irix4-0
2889 mips-sgi-irix6.5 )
2890 machine=iris4d opsys=irix6-5
2891 # Without defining _LANGUAGE_C, things get masked out in the headers
2892 # so that, for instance, grepping for `free' in stdlib.h fails and
2893 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2894 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2895 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2897 mips-sgi-irix6* )
2898 machine=iris4d opsys=irix6-0
2899 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2900 # but presumably it does no harm.
2901 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2902 # -32 probably isn't necessary in later v.6s -- anyone know which?
2903 NON_GCC_TEST_OPTIONS=-32
2905 mips-sgi-irix5.[01]* )
2906 machine=iris4d opsys=irix5-0
2908 mips-sgi-irix5* | mips-sgi-irix* )
2909 machine=iris4d opsys=irix5-2
2912 ## SONY machines
2913 m68*-sony-bsd4.2* )
2914 machine=news opsys=bsd4-2
2916 m68*-sony-bsd4.3* )
2917 machine=news opsys=bsd4-3
2919 m68*-sony-newsos3* | m68*-sony-news3*)
2920 machine=news opsys=bsd4-3
2922 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2923 machine=news-risc opsys=bsd4-3
2925 mips-sony-newsos6* )
2926 machine=news-r6 opsys=newsos6
2928 mips-sony-news* )
2929 machine=news-risc opsys=newsos5
2932 ## Stride
2933 m68*-stride-sysv* )
2934 machine=stride opsys=usg5-2
2937 ## Suns
2938 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2939 machine=sparc opsys=gnu-linux
2942 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2943 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2944 | rs6000-*-solaris2*)
2945 case "${canonical}" in
2946 m68*-sunos1* ) machine=sun1 ;;
2947 m68*-sunos2* ) machine=sun2 ;;
2948 m68* ) machine=sun3 ;;
2949 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2950 i[3456]86-*-* ) machine=intel386 ;;
2951 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2952 powerpcle* ) machine=powerpcle ;;
2953 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2954 sparc* ) machine=sparc ;;
2955 * ) unported=yes ;;
2956 esac
2957 case "${canonical}" in
2958 ## The Sun386 didn't get past 4.0.
2959 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2960 *-sunos4.0* ) opsys=sunos4-0 ;;
2961 *-sunos4.1.[3-9]*noshare )
2962 ## This name is sunos413 instead of sunos4-1-3
2963 ## to avoid a file name conflict on MSDOS.
2964 opsys=sunos413
2965 NON_GNU_CPP=/usr/lib/cpp
2966 NON_GCC_TEST_OPTIONS=-Bstatic
2967 GCC_TEST_OPTIONS=-static
2969 *-sunos4.1.[3-9]* | *-sunos4shr*)
2970 opsys=sunos4shr
2971 NON_GNU_CPP=/usr/lib/cpp
2973 *-sunos4* | *-sunos )
2974 opsys=sunos4-1
2975 NON_GCC_TEST_OPTIONS=-Bstatic
2976 GCC_TEST_OPTIONS=-static
2978 *-sunos5.3* | *-solaris2.3* )
2979 opsys=sol2-3
2980 NON_GNU_CPP=/usr/ccs/lib/cpp
2982 *-sunos5.4* | *-solaris2.4* )
2983 opsys=sol2-4
2984 NON_GNU_CPP=/usr/ccs/lib/cpp
2985 RANLIB="ar -ts"
2987 *-sunos5.5* | *-solaris2.5* )
2988 opsys=sol2-5
2989 NON_GNU_CPP=/usr/ccs/lib/cpp
2990 RANLIB="ar -ts"
2992 *-sunos5.6* | *-solaris2.6* )
2993 opsys=sol2-6
2994 NON_GNU_CPP=/usr/ccs/lib/cpp
2995 RANLIB="ar -ts"
2997 *-sunos5* | *-solaris* )
2998 opsys=sol2-6
2999 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3000 ## -Xs prevents spurious whitespace.
3001 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3002 else
3003 NON_GNU_CPP=/usr/ccs/lib/cpp
3006 * ) opsys=bsd4-2 ;;
3007 esac
3008 ## Watch out for a compiler that we know will not work.
3009 case "${canonical}" in
3010 *-solaris* | *-sunos5* )
3011 if [ "x$CC" = x/usr/ucb/cc ]; then
3012 ## /usr/ucb/cc doesn't work;
3013 ## we should find some other compiler that does work.
3014 unset CC
3017 *) ;;
3018 esac
3020 sparc-*-nextstep* )
3021 machine=sparc opsys=nextstep
3024 ## Tadpole 68k
3025 m68*-tadpole-sysv* )
3026 machine=tad68k opsys=usg5-3
3029 ## Tahoe machines
3030 tahoe-tahoe-bsd4.2* )
3031 machine=tahoe opsys=bsd4-2
3033 tahoe-tahoe-bsd4.3* )
3034 machine=tahoe opsys=bsd4-3
3037 ## Tandem Integrity S2
3038 mips-tandem-sysv* )
3039 machine=tandem-s2 opsys=usg5-3
3042 ## Tektronix XD88
3043 m88k-tektronix-sysv3* )
3044 machine=tekxd88 opsys=usg5-3
3047 ## Tektronix 16000 box (6130?)
3048 ns16k-tektronix-bsd* )
3049 machine=ns16000 opsys=bsd4-2
3051 ## Tektronix 4300
3052 ## src/m/tek4300.h hints that this is a m68k machine.
3053 m68*-tektronix-bsd* )
3054 machine=tek4300 opsys=bsd4-3
3057 ## Titan P2 or P3
3058 ## We seem to have lost the machine-description file titan.h!
3059 titan-titan-sysv* )
3060 machine=titan opsys=usg5-3
3063 ## Ustation E30 (SS5E)
3064 m68*-unisys-uniplus* )
3065 machine=ustation opsystem=unipl5-2
3068 ## Vaxen.
3069 vax-dec-* )
3070 machine=vax
3071 case "${canonical}" in
3072 *-bsd4.1* ) opsys=bsd4-1 ;;
3073 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3074 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3075 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3076 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3077 *-vms* ) opsys=vms ;;
3078 * ) unported=yes
3079 esac
3082 ## Whitechapel MG1
3083 ns16k-whitechapel-* )
3084 machine=mg1
3085 ## We don't know what sort of OS runs on these; we'll let the
3086 ## operating system guessing code below try.
3089 ## Wicat
3090 m68*-wicat-sysv* )
3091 machine=wicat opsys=usg5-2
3094 ## IA-64
3095 ia64*-*-linux* )
3096 machine=ia64 opsys=gnu-linux
3099 ## Intel 386 machines where we don't care about the manufacturer
3100 i[3456]86-*-* )
3101 machine=intel386
3102 case "${canonical}" in
3103 *-cygwin ) opsys=cygwin ;;
3104 *-darwin* ) opsys=darwin
3105 CPP="${CC-cc} -E -no-cpp-precomp"
3107 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3108 *-isc2.2* ) opsys=isc2-2 ;;
3109 *-isc4.0* ) opsys=isc4-0 ;;
3110 *-isc4.* ) opsys=isc4-1
3111 GCC_TEST_OPTIONS=-posix
3112 NON_GCC_TEST_OPTIONS=-Xp
3114 *-isc* ) opsys=isc3-0 ;;
3115 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3116 *-esix* ) opsys=esix ;;
3117 *-xenix* ) opsys=xenix ;;
3118 *-linux-gnu* ) opsys=gnu-linux ;;
3119 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3120 *-sco3.2v5* ) opsys=sco5
3121 NON_GNU_CPP=/lib/cpp
3122 # Prevent -belf from being passed to $CPP.
3123 # /lib/cpp does not accept it.
3124 OVERRIDE_CPPFLAGS=" "
3126 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3127 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3128 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3129 *-386bsd* ) opsys=386bsd ;;
3130 *-nextstep* ) opsys=nextstep ;;
3131 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3132 esac
3135 ## m68k Linux-based GNU system
3136 m68k-*-linux-gnu* )
3137 machine=m68k opsys=gnu-linux
3140 ## Mips Linux-based GNU system
3141 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3142 machine=mips opsys=gnu-linux
3145 ## UXP/DS
3146 sparc-fujitsu-sysv4* )
3147 machine=sparc opsys=uxpds
3148 NON_GNU_CPP=/usr/ccs/lib/cpp
3149 RANLIB="ar -ts"
3152 ## UXP/V
3153 f301-fujitsu-uxpv4.1)
3154 machine=f301 opsys=uxpv
3157 ## AMD x86-64 Linux-based GNU system
3158 x86_64-*-linux-gnu* )
3159 machine=amdx86-64 opsys=gnu-linux
3162 ## Tensilica Xtensa Linux-based GNU system
3163 xtensa-*-linux-gnu* )
3164 machine=xtensa opsys=gnu-linux
3168 unported=yes
3170 esac
3172 ### If the code above didn't choose an operating system, just choose
3173 ### an operating system based on the configuration name. You really
3174 ### only want to use this when you have no idea what the right
3175 ### operating system is; if you know what operating systems a machine
3176 ### runs, it's cleaner to make it explicit in the case statement
3177 ### above.
3178 if test x"${opsys}" = x; then
3179 case "${canonical}" in
3180 *-gnu* ) opsys=gnu ;;
3181 *-bsd4.[01] ) opsys=bsd4-1 ;;
3182 *-bsd4.2 ) opsys=bsd4-2 ;;
3183 *-bsd4.3 ) opsys=bsd4-3 ;;
3184 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3185 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3186 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3187 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3188 *-sysv4.2uw* ) opsys=unixware ;;
3189 *-sysv5uw* ) opsys=unixware ;;
3190 *-sysv5OpenUNIX* ) opsys=unixware ;;
3191 *-sysv4.1* | *-sysvr4.1* )
3192 NON_GNU_CPP=/usr/lib/cpp
3193 opsys=usg5-4 ;;
3194 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3195 if [ x$NON_GNU_CPP = x ]; then
3196 if [ -f /usr/ccs/lib/cpp ]; then
3197 NON_GNU_CPP=/usr/ccs/lib/cpp
3198 else
3199 NON_GNU_CPP=/lib/cpp
3202 opsys=usg5-4-2 ;;
3203 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3205 unported=yes
3207 esac
3212 if test $unported = yes; then
3213 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3214 Check \`etc/MACHINES' for recognized configuration names." >&5
3215 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3216 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3217 { (exit 1); exit 1; }; }
3220 machfile="m/${machine}.h"
3221 opsysfile="s/${opsys}.h"
3224 #### Choose a compiler.
3225 test -n "$CC" && cc_specified=yes
3227 # Save the value of CFLAGS that the user specified.
3228 SPECIFIED_CFLAGS="$CFLAGS"
3230 case ${with_gcc} in
3231 "yes" ) CC="gcc" GCC=yes ;;
3232 "no" ) : ${CC=cc} ;;
3234 esac
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3245 if test "${ac_cv_prog_CC+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3262 done
3263 done
3264 IFS=$as_save_IFS
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270 { echo "$as_me:$LINENO: result: $CC" >&5
3271 echo "${ECHO_T}$CC" >&6; }
3272 else
3273 { echo "$as_me:$LINENO: result: no" >&5
3274 echo "${ECHO_T}no" >&6; }
3279 if test -z "$ac_cv_prog_CC"; then
3280 ac_ct_CC=$CC
3281 # Extract the first word of "gcc", so it can be a program name with args.
3282 set dummy gcc; ac_word=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 if test -n "$ac_ct_CC"; then
3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_ac_ct_CC="gcc"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309 if test -n "$ac_ct_CC"; then
3310 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3311 echo "${ECHO_T}$ac_ct_CC" >&6; }
3312 else
3313 { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3317 if test "x$ac_ct_CC" = x; then
3318 CC=""
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321 yes:)
3322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3323 whose name does not start with the host triplet. If you think this
3324 configuration is useful to you, please write to autoconf@gnu.org." >&5
3325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3328 ac_tool_warned=yes ;;
3329 esac
3330 CC=$ac_ct_CC
3332 else
3333 CC="$ac_cv_prog_CC"
3336 if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}cc; ac_word=$2
3340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3342 if test "${ac_cv_prog_CC+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_CC="${ac_tool_prefix}cc"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3359 done
3360 done
3361 IFS=$as_save_IFS
3365 CC=$ac_cv_prog_CC
3366 if test -n "$CC"; then
3367 { echo "$as_me:$LINENO: result: $CC" >&5
3368 echo "${ECHO_T}$CC" >&6; }
3369 else
3370 { echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6; }
3377 if test -z "$CC"; then
3378 # Extract the first word of "cc", so it can be a program name with args.
3379 set dummy cc; ac_word=$2
3380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_CC+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
3387 else
3388 ac_prog_rejected=no
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3397 ac_prog_rejected=yes
3398 continue
3400 ac_cv_prog_CC="cc"
3401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3404 done
3405 done
3406 IFS=$as_save_IFS
3408 if test $ac_prog_rejected = yes; then
3409 # We found a bogon in the path, so make sure we never use it.
3410 set dummy $ac_cv_prog_CC
3411 shift
3412 if test $# != 0; then
3413 # We chose a different compiler from the bogus one.
3414 # However, it has the same basename, so the bogon will be chosen
3415 # first if we set CC to just the basename; use the full file name.
3416 shift
3417 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3422 CC=$ac_cv_prog_CC
3423 if test -n "$CC"; then
3424 { echo "$as_me:$LINENO: result: $CC" >&5
3425 echo "${ECHO_T}$CC" >&6; }
3426 else
3427 { echo "$as_me:$LINENO: result: no" >&5
3428 echo "${ECHO_T}no" >&6; }
3433 if test -z "$CC"; then
3434 if test -n "$ac_tool_prefix"; then
3435 for ac_prog in cl.exe
3437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3441 if test "${ac_cv_prog_CC+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3458 done
3459 done
3460 IFS=$as_save_IFS
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; }
3474 test -n "$CC" && break
3475 done
3477 if test -z "$CC"; then
3478 ac_ct_CC=$CC
3479 for ac_prog in cl.exe
3481 # Extract the first word of "$ac_prog", so it can be a program name with args.
3482 set dummy $ac_prog; ac_word=$2
3483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3485 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 if test -n "$ac_ct_CC"; then
3489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_ac_ct_CC="$ac_prog"
3499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3502 done
3503 done
3504 IFS=$as_save_IFS
3508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3509 if test -n "$ac_ct_CC"; then
3510 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3511 echo "${ECHO_T}$ac_ct_CC" >&6; }
3512 else
3513 { echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6; }
3518 test -n "$ac_ct_CC" && break
3519 done
3521 if test "x$ac_ct_CC" = x; then
3522 CC=""
3523 else
3524 case $cross_compiling:$ac_tool_warned in
3525 yes:)
3526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3527 whose name does not start with the host triplet. If you think this
3528 configuration is useful to you, please write to autoconf@gnu.org." >&5
3529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3530 whose name does not start with the host triplet. If you think this
3531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3532 ac_tool_warned=yes ;;
3533 esac
3534 CC=$ac_ct_CC
3541 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3542 See \`config.log' for more details." >&5
3543 echo "$as_me: error: no acceptable C compiler found in \$PATH
3544 See \`config.log' for more details." >&2;}
3545 { (exit 1); exit 1; }; }
3547 # Provide some information about the compiler.
3548 echo "$as_me:$LINENO: checking for C compiler version" >&5
3549 ac_compiler=`set X $ac_compile; echo $2`
3550 { (ac_try="$ac_compiler --version >&5"
3551 case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_compiler --version >&5") 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }
3560 { (ac_try="$ac_compiler -v >&5"
3561 case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564 esac
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_compiler -v >&5") 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }
3570 { (ac_try="$ac_compiler -V >&5"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compiler -V >&5") 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h. */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3589 main ()
3593 return 0;
3595 _ACEOF
3596 ac_clean_files_save=$ac_clean_files
3597 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3598 # Try to create an executable without -o first, disregard a.out.
3599 # It will help us diagnose broken compilers, and finding out an intuition
3600 # of exeext.
3601 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3602 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3603 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3605 # List of possible output files, starting from the most likely.
3606 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3607 # only as a last resort. b.out is created by i960 compilers.
3608 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3610 # The IRIX 6 linker writes into existing files which may not be
3611 # executable, retaining their permissions. Remove them first so a
3612 # subsequent execution test works.
3613 ac_rmfiles=
3614 for ac_file in $ac_files
3616 case $ac_file in
3617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3618 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3619 esac
3620 done
3621 rm -f $ac_rmfiles
3623 if { (ac_try="$ac_link_default"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_link_default") 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; then
3633 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3634 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3635 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3636 # so that the user can short-circuit this test for compilers unknown to
3637 # Autoconf.
3638 for ac_file in $ac_files ''
3640 test -f "$ac_file" || continue
3641 case $ac_file in
3642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3644 [ab].out )
3645 # We found the default executable, but exeext='' is most
3646 # certainly right.
3647 break;;
3648 *.* )
3649 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3650 then :; else
3651 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3653 # We set ac_cv_exeext here because the later test for it is not
3654 # safe: cross compilers may not add the suffix if given an `-o'
3655 # argument, so we may need to know it at that point already.
3656 # Even if this section looks crufty: it has the advantage of
3657 # actually working.
3658 break;;
3660 break;;
3661 esac
3662 done
3663 test "$ac_cv_exeext" = no && ac_cv_exeext=
3665 else
3666 ac_file=''
3669 { echo "$as_me:$LINENO: result: $ac_file" >&5
3670 echo "${ECHO_T}$ac_file" >&6; }
3671 if test -z "$ac_file"; then
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3676 See \`config.log' for more details." >&5
3677 echo "$as_me: error: C compiler cannot create executables
3678 See \`config.log' for more details." >&2;}
3679 { (exit 77); exit 77; }; }
3682 ac_exeext=$ac_cv_exeext
3684 # Check that the compiler produces executables we can run. If not, either
3685 # the compiler is broken, or we cross compile.
3686 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3687 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3688 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3689 # If not cross compiling, check that we can run a simple program.
3690 if test "$cross_compiling" != yes; then
3691 if { ac_try='./$ac_file'
3692 { (case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695 esac
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_try") 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 cross_compiling=no
3702 else
3703 if test "$cross_compiling" = maybe; then
3704 cross_compiling=yes
3705 else
3706 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3707 If you meant to cross compile, use \`--host'.
3708 See \`config.log' for more details." >&5
3709 echo "$as_me: error: cannot run C compiled programs.
3710 If you meant to cross compile, use \`--host'.
3711 See \`config.log' for more details." >&2;}
3712 { (exit 1); exit 1; }; }
3716 { echo "$as_me:$LINENO: result: yes" >&5
3717 echo "${ECHO_T}yes" >&6; }
3719 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3720 ac_clean_files=$ac_clean_files_save
3721 # Check that the compiler produces executables we can run. If not, either
3722 # the compiler is broken, or we cross compile.
3723 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3724 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3725 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3726 echo "${ECHO_T}$cross_compiling" >&6; }
3728 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3729 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3730 if { (ac_try="$ac_link"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_link") 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; then
3740 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3741 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3742 # work properly (i.e., refer to `conftest.exe'), while it won't with
3743 # `rm'.
3744 for ac_file in conftest.exe conftest conftest.*; do
3745 test -f "$ac_file" || continue
3746 case $ac_file in
3747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3748 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3749 break;;
3750 * ) break;;
3751 esac
3752 done
3753 else
3754 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3755 See \`config.log' for more details." >&5
3756 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3757 See \`config.log' for more details." >&2;}
3758 { (exit 1); exit 1; }; }
3761 rm -f conftest$ac_cv_exeext
3762 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3763 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3765 rm -f conftest.$ac_ext
3766 EXEEXT=$ac_cv_exeext
3767 ac_exeext=$EXEEXT
3768 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3769 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3770 if test "${ac_cv_objext+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h. */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3781 main ()
3785 return 0;
3787 _ACEOF
3788 rm -f conftest.o conftest.obj
3789 if { (ac_try="$ac_compile"
3790 case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_compile") 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; then
3799 for ac_file in conftest.o conftest.obj conftest.*; do
3800 test -f "$ac_file" || continue;
3801 case $ac_file in
3802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3803 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3804 break;;
3805 esac
3806 done
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3812 See \`config.log' for more details." >&5
3813 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3814 See \`config.log' for more details." >&2;}
3815 { (exit 1); exit 1; }; }
3818 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3820 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3821 echo "${ECHO_T}$ac_cv_objext" >&6; }
3822 OBJEXT=$ac_cv_objext
3823 ac_objext=$OBJEXT
3824 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3825 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3826 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3837 main ()
3839 #ifndef __GNUC__
3840 choke me
3841 #endif
3844 return 0;
3846 _ACEOF
3847 rm -f conftest.$ac_objext
3848 if { (ac_try="$ac_compile"
3849 case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852 esac
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854 (eval "$ac_compile") 2>conftest.er1
3855 ac_status=$?
3856 grep -v '^ *+' conftest.er1 >conftest.err
3857 rm -f conftest.er1
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && {
3861 test -z "$ac_c_werror_flag" ||
3862 test ! -s conftest.err
3863 } && test -s conftest.$ac_objext; then
3864 ac_compiler_gnu=yes
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 ac_compiler_gnu=no
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3876 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3877 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3878 GCC=`test $ac_compiler_gnu = yes && echo yes`
3879 ac_test_CFLAGS=${CFLAGS+set}
3880 ac_save_CFLAGS=$CFLAGS
3881 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3882 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3883 if test "${ac_cv_prog_cc_g+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886 ac_save_c_werror_flag=$ac_c_werror_flag
3887 ac_c_werror_flag=yes
3888 ac_cv_prog_cc_g=no
3889 CFLAGS="-g"
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3898 main ()
3902 return 0;
3904 _ACEOF
3905 rm -f conftest.$ac_objext
3906 if { (ac_try="$ac_compile"
3907 case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910 esac
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_compile") 2>conftest.er1
3913 ac_status=$?
3914 grep -v '^ *+' conftest.er1 >conftest.err
3915 rm -f conftest.er1
3916 cat conftest.err >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && {
3919 test -z "$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 } && test -s conftest.$ac_objext; then
3922 ac_cv_prog_cc_g=yes
3923 else
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 CFLAGS=""
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3936 main ()
3940 return 0;
3942 _ACEOF
3943 rm -f conftest.$ac_objext
3944 if { (ac_try="$ac_compile"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_compile") 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } && {
3957 test -z "$ac_c_werror_flag" ||
3958 test ! -s conftest.err
3959 } && test -s conftest.$ac_objext; then
3961 else
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3965 ac_c_werror_flag=$ac_save_c_werror_flag
3966 CFLAGS="-g"
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3975 main ()
3979 return 0;
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (ac_try="$ac_compile"
3984 case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987 esac
3988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989 (eval "$ac_compile") 2>conftest.er1
3990 ac_status=$?
3991 grep -v '^ *+' conftest.er1 >conftest.err
3992 rm -f conftest.er1
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } && {
3996 test -z "$ac_c_werror_flag" ||
3997 test ! -s conftest.err
3998 } && test -s conftest.$ac_objext; then
3999 ac_cv_prog_cc_g=yes
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 ac_c_werror_flag=$ac_save_c_werror_flag
4016 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4017 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4018 if test "$ac_test_CFLAGS" = set; then
4019 CFLAGS=$ac_save_CFLAGS
4020 elif test $ac_cv_prog_cc_g = yes; then
4021 if test "$GCC" = yes; then
4022 CFLAGS="-g -O2"
4023 else
4024 CFLAGS="-g"
4026 else
4027 if test "$GCC" = yes; then
4028 CFLAGS="-O2"
4029 else
4030 CFLAGS=
4033 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4034 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4035 if test "${ac_cv_prog_cc_c89+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 ac_cv_prog_cc_c89=no
4039 ac_save_CC=$CC
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 #include <stdarg.h>
4047 #include <stdio.h>
4048 #include <sys/types.h>
4049 #include <sys/stat.h>
4050 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4051 struct buf { int x; };
4052 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4053 static char *e (p, i)
4054 char **p;
4055 int i;
4057 return p[i];
4059 static char *f (char * (*g) (char **, int), char **p, ...)
4061 char *s;
4062 va_list v;
4063 va_start (v,p);
4064 s = g (p, va_arg (v,int));
4065 va_end (v);
4066 return s;
4069 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4070 function prototypes and stuff, but not '\xHH' hex character constants.
4071 These don't provoke an error unfortunately, instead are silently treated
4072 as 'x'. The following induces an error, until -std is added to get
4073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4074 array size at least. It's necessary to write '\x00'==0 to get something
4075 that's true only with -std. */
4076 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4078 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4079 inside strings and character constants. */
4080 #define FOO(x) 'x'
4081 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4083 int test (int i, double x);
4084 struct s1 {int (*f) (int a);};
4085 struct s2 {int (*f) (double a);};
4086 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4087 int argc;
4088 char **argv;
4090 main ()
4092 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4094 return 0;
4096 _ACEOF
4097 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4098 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4100 CC="$ac_save_CC $ac_arg"
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_compile") 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } && {
4115 test -z "$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4117 } && test -s conftest.$ac_objext; then
4118 ac_cv_prog_cc_c89=$ac_arg
4119 else
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4126 rm -f core conftest.err conftest.$ac_objext
4127 test "x$ac_cv_prog_cc_c89" != "xno" && break
4128 done
4129 rm -f conftest.$ac_ext
4130 CC=$ac_save_CC
4133 # AC_CACHE_VAL
4134 case "x$ac_cv_prog_cc_c89" in
4136 { echo "$as_me:$LINENO: result: none needed" >&5
4137 echo "${ECHO_T}none needed" >&6; } ;;
4138 xno)
4139 { echo "$as_me:$LINENO: result: unsupported" >&5
4140 echo "${ECHO_T}unsupported" >&6; } ;;
4142 CC="$CC $ac_cv_prog_cc_c89"
4143 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4144 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4145 esac
4148 ac_ext=c
4149 ac_cpp='$CPP $CPPFLAGS'
4150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 # On Suns, sometimes $CPP names a directory.
4156 if test -n "$CPP" && test -d "$CPP"; then
4157 CPP=
4160 #### Some systems specify a CPP to use unless we are using GCC.
4161 #### Now that we know whether we are using GCC, we can decide whether
4162 #### to use that one.
4163 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4164 then
4165 CPP="$NON_GNU_CPP"
4168 #### Some systems specify a CC to use unless we are using GCC.
4169 #### Now that we know whether we are using GCC, we can decide whether
4170 #### to use that one.
4171 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4172 test x$cc_specified != xyes
4173 then
4174 CC="$NON_GNU_CC"
4177 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4178 then
4179 CC="$CC $GCC_TEST_OPTIONS"
4182 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4183 then
4184 CC="$CC $NON_GCC_TEST_OPTIONS"
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4194 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4195 # On Suns, sometimes $CPP names a directory.
4196 if test -n "$CPP" && test -d "$CPP"; then
4197 CPP=
4199 if test -z "$CPP"; then
4200 if test "${ac_cv_prog_CPP+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 # Double quotes because CPP needs to be expanded
4204 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4206 ac_preproc_ok=false
4207 for ac_c_preproc_warn_flag in '' yes
4209 # Use a header file that comes with gcc, so configuring glibc
4210 # with a fresh cross-compiler works.
4211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212 # <limits.h> exists even on freestanding compilers.
4213 # On the NeXT, cc -E runs the code through the compiler's parser,
4214 # not just through cpp. "Syntax error" is here to catch this case.
4215 cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h. */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 #ifdef __STDC__
4222 # include <limits.h>
4223 #else
4224 # include <assert.h>
4225 #endif
4226 Syntax error
4227 _ACEOF
4228 if { (ac_try="$ac_cpp conftest.$ac_ext"
4229 case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232 esac
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } >/dev/null && {
4241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4242 test ! -s conftest.err
4243 }; then
4245 else
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 # Broken: fails on valid input.
4250 continue
4253 rm -f conftest.err conftest.$ac_ext
4255 # OK, works on sane cases. Now check whether nonexistent headers
4256 # can be detected and how.
4257 cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h. */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 #include <ac_nonexistent.h>
4264 _ACEOF
4265 if { (ac_try="$ac_cpp conftest.$ac_ext"
4266 case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269 esac
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4272 ac_status=$?
4273 grep -v '^ *+' conftest.er1 >conftest.err
4274 rm -f conftest.er1
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } >/dev/null && {
4278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4279 test ! -s conftest.err
4280 }; then
4281 # Broken: success on invalid input.
4282 continue
4283 else
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4287 # Passes both tests.
4288 ac_preproc_ok=:
4289 break
4292 rm -f conftest.err conftest.$ac_ext
4294 done
4295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296 rm -f conftest.err conftest.$ac_ext
4297 if $ac_preproc_ok; then
4298 break
4301 done
4302 ac_cv_prog_CPP=$CPP
4305 CPP=$ac_cv_prog_CPP
4306 else
4307 ac_cv_prog_CPP=$CPP
4309 { echo "$as_me:$LINENO: result: $CPP" >&5
4310 echo "${ECHO_T}$CPP" >&6; }
4311 ac_preproc_ok=false
4312 for ac_c_preproc_warn_flag in '' yes
4314 # Use a header file that comes with gcc, so configuring glibc
4315 # with a fresh cross-compiler works.
4316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317 # <limits.h> exists even on freestanding compilers.
4318 # On the NeXT, cc -E runs the code through the compiler's parser,
4319 # not just through cpp. "Syntax error" is here to catch this case.
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h. */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 #ifdef __STDC__
4327 # include <limits.h>
4328 #else
4329 # include <assert.h>
4330 #endif
4331 Syntax error
4332 _ACEOF
4333 if { (ac_try="$ac_cpp conftest.$ac_ext"
4334 case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } >/dev/null && {
4346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347 test ! -s conftest.err
4348 }; then
4350 else
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4354 # Broken: fails on valid input.
4355 continue
4358 rm -f conftest.err conftest.$ac_ext
4360 # OK, works on sane cases. Now check whether nonexistent headers
4361 # can be detected and how.
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h. */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 #include <ac_nonexistent.h>
4369 _ACEOF
4370 if { (ac_try="$ac_cpp conftest.$ac_ext"
4371 case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374 esac
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } >/dev/null && {
4383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4384 test ! -s conftest.err
4385 }; then
4386 # Broken: success on invalid input.
4387 continue
4388 else
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 # Passes both tests.
4393 ac_preproc_ok=:
4394 break
4397 rm -f conftest.err conftest.$ac_ext
4399 done
4400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4401 rm -f conftest.err conftest.$ac_ext
4402 if $ac_preproc_ok; then
4404 else
4405 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4406 See \`config.log' for more details." >&5
4407 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4408 See \`config.log' for more details." >&2;}
4409 { (exit 1); exit 1; }; }
4412 ac_ext=c
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4420 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4421 if test "${ac_cv_path_GREP+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 # Extract the first word of "grep ggrep" to use in msg output
4425 if test -z "$GREP"; then
4426 set dummy grep ggrep; ac_prog_name=$2
4427 if test "${ac_cv_path_GREP+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 ac_path_GREP_found=false
4431 # Loop through the user's path and test for each of PROGNAME-LIST
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_prog in grep ggrep; do
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4440 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4441 # Check for GNU ac_path_GREP and select it if it is found.
4442 # Check for GNU $ac_path_GREP
4443 case `"$ac_path_GREP" --version 2>&1` in
4444 *GNU*)
4445 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4447 ac_count=0
4448 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4449 while :
4451 cat "conftest.in" "conftest.in" >"conftest.tmp"
4452 mv "conftest.tmp" "conftest.in"
4453 cp "conftest.in" "conftest.nl"
4454 echo 'GREP' >> "conftest.nl"
4455 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4457 ac_count=`expr $ac_count + 1`
4458 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4459 # Best one so far, save it but keep looking for a better one
4460 ac_cv_path_GREP="$ac_path_GREP"
4461 ac_path_GREP_max=$ac_count
4463 # 10*(2^10) chars as input seems more than enough
4464 test $ac_count -gt 10 && break
4465 done
4466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4467 esac
4470 $ac_path_GREP_found && break 3
4471 done
4472 done
4474 done
4475 IFS=$as_save_IFS
4480 GREP="$ac_cv_path_GREP"
4481 if test -z "$GREP"; then
4482 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4483 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4484 { (exit 1); exit 1; }; }
4487 else
4488 ac_cv_path_GREP=$GREP
4493 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4494 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4495 GREP="$ac_cv_path_GREP"
4498 { echo "$as_me:$LINENO: checking for egrep" >&5
4499 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4500 if test "${ac_cv_path_EGREP+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4504 then ac_cv_path_EGREP="$GREP -E"
4505 else
4506 # Extract the first word of "egrep" to use in msg output
4507 if test -z "$EGREP"; then
4508 set dummy egrep; ac_prog_name=$2
4509 if test "${ac_cv_path_EGREP+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 ac_path_EGREP_found=false
4513 # Loop through the user's path and test for each of PROGNAME-LIST
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_prog in egrep; do
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4522 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4523 # Check for GNU ac_path_EGREP and select it if it is found.
4524 # Check for GNU $ac_path_EGREP
4525 case `"$ac_path_EGREP" --version 2>&1` in
4526 *GNU*)
4527 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4529 ac_count=0
4530 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4531 while :
4533 cat "conftest.in" "conftest.in" >"conftest.tmp"
4534 mv "conftest.tmp" "conftest.in"
4535 cp "conftest.in" "conftest.nl"
4536 echo 'EGREP' >> "conftest.nl"
4537 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4539 ac_count=`expr $ac_count + 1`
4540 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4541 # Best one so far, save it but keep looking for a better one
4542 ac_cv_path_EGREP="$ac_path_EGREP"
4543 ac_path_EGREP_max=$ac_count
4545 # 10*(2^10) chars as input seems more than enough
4546 test $ac_count -gt 10 && break
4547 done
4548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4549 esac
4552 $ac_path_EGREP_found && break 3
4553 done
4554 done
4556 done
4557 IFS=$as_save_IFS
4562 EGREP="$ac_cv_path_EGREP"
4563 if test -z "$EGREP"; then
4564 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4565 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4566 { (exit 1); exit 1; }; }
4569 else
4570 ac_cv_path_EGREP=$EGREP
4576 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4577 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4578 EGREP="$ac_cv_path_EGREP"
4582 { echo "$as_me:$LINENO: checking for AIX" >&5
4583 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 #ifdef _AIX
4592 #endif
4594 _ACEOF
4595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596 $EGREP "yes" >/dev/null 2>&1; then
4597 { echo "$as_me:$LINENO: result: yes" >&5
4598 echo "${ECHO_T}yes" >&6; }
4599 cat >>confdefs.h <<\_ACEOF
4600 #define _ALL_SOURCE 1
4601 _ACEOF
4603 else
4604 { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4607 rm -f conftest*
4611 cat >>confdefs.h <<\_ACEOF
4612 #define _GNU_SOURCE 1
4613 _ACEOF
4617 ### Use -Wno-pointer-sign if the compiler supports it
4618 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4619 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4620 SAVE_CFLAGS="$CFLAGS"
4621 CFLAGS="$CFLAGS -Wno-pointer-sign"
4622 cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4630 main ()
4634 return 0;
4636 _ACEOF
4637 rm -f conftest.$ac_objext
4638 if { (ac_try="$ac_compile"
4639 case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642 esac
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_compile") 2>conftest.er1
4645 ac_status=$?
4646 grep -v '^ *+' conftest.er1 >conftest.err
4647 rm -f conftest.er1
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } && {
4651 test -z "$ac_c_werror_flag" ||
4652 test ! -s conftest.err
4653 } && test -s conftest.$ac_objext; then
4654 has_option=yes
4655 else
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4659 has_option=no
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 if test $has_option = yes; then
4664 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4666 { echo "$as_me:$LINENO: result: $has_option" >&5
4667 echo "${ECHO_T}$has_option" >&6; }
4668 CFLAGS="$SAVE_CFLAGS"
4669 unset has_option
4670 unset SAVE_CFLAGS
4672 #### Some other nice autoconf tests.
4674 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4675 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4676 LN_S=$as_ln_s
4677 if test "$LN_S" = "ln -s"; then
4678 { echo "$as_me:$LINENO: result: yes" >&5
4679 echo "${ECHO_T}yes" >&6; }
4680 else
4681 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4682 echo "${ECHO_T}no, using $LN_S" >&6; }
4685 ac_ext=c
4686 ac_cpp='$CPP $CPPFLAGS'
4687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4690 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4691 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4692 # On Suns, sometimes $CPP names a directory.
4693 if test -n "$CPP" && test -d "$CPP"; then
4694 CPP=
4696 if test -z "$CPP"; then
4697 if test "${ac_cv_prog_CPP+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700 # Double quotes because CPP needs to be expanded
4701 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4703 ac_preproc_ok=false
4704 for ac_c_preproc_warn_flag in '' yes
4706 # Use a header file that comes with gcc, so configuring glibc
4707 # with a fresh cross-compiler works.
4708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709 # <limits.h> exists even on freestanding compilers.
4710 # On the NeXT, cc -E runs the code through the compiler's parser,
4711 # not just through cpp. "Syntax error" is here to catch this case.
4712 cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h. */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 #ifdef __STDC__
4719 # include <limits.h>
4720 #else
4721 # include <assert.h>
4722 #endif
4723 Syntax error
4724 _ACEOF
4725 if { (ac_try="$ac_cpp conftest.$ac_ext"
4726 case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } >/dev/null && {
4738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4739 test ! -s conftest.err
4740 }; then
4742 else
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 # Broken: fails on valid input.
4747 continue
4750 rm -f conftest.err conftest.$ac_ext
4752 # OK, works on sane cases. Now check whether nonexistent headers
4753 # can be detected and how.
4754 cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h. */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 #include <ac_nonexistent.h>
4761 _ACEOF
4762 if { (ac_try="$ac_cpp conftest.$ac_ext"
4763 case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766 esac
4767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4769 ac_status=$?
4770 grep -v '^ *+' conftest.er1 >conftest.err
4771 rm -f conftest.er1
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } >/dev/null && {
4775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4776 test ! -s conftest.err
4777 }; then
4778 # Broken: success on invalid input.
4779 continue
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 # Passes both tests.
4785 ac_preproc_ok=:
4786 break
4789 rm -f conftest.err conftest.$ac_ext
4791 done
4792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4793 rm -f conftest.err conftest.$ac_ext
4794 if $ac_preproc_ok; then
4795 break
4798 done
4799 ac_cv_prog_CPP=$CPP
4802 CPP=$ac_cv_prog_CPP
4803 else
4804 ac_cv_prog_CPP=$CPP
4806 { echo "$as_me:$LINENO: result: $CPP" >&5
4807 echo "${ECHO_T}$CPP" >&6; }
4808 ac_preproc_ok=false
4809 for ac_c_preproc_warn_flag in '' yes
4811 # Use a header file that comes with gcc, so configuring glibc
4812 # with a fresh cross-compiler works.
4813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814 # <limits.h> exists even on freestanding compilers.
4815 # On the NeXT, cc -E runs the code through the compiler's parser,
4816 # not just through cpp. "Syntax error" is here to catch this case.
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #ifdef __STDC__
4824 # include <limits.h>
4825 #else
4826 # include <assert.h>
4827 #endif
4828 Syntax error
4829 _ACEOF
4830 if { (ac_try="$ac_cpp conftest.$ac_ext"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } >/dev/null && {
4843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 }; then
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 # Broken: fails on valid input.
4852 continue
4855 rm -f conftest.err conftest.$ac_ext
4857 # OK, works on sane cases. Now check whether nonexistent headers
4858 # can be detected and how.
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #include <ac_nonexistent.h>
4866 _ACEOF
4867 if { (ac_try="$ac_cpp conftest.$ac_ext"
4868 case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } >/dev/null && {
4880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4881 test ! -s conftest.err
4882 }; then
4883 # Broken: success on invalid input.
4884 continue
4885 else
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 # Passes both tests.
4890 ac_preproc_ok=:
4891 break
4894 rm -f conftest.err conftest.$ac_ext
4896 done
4897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4898 rm -f conftest.err conftest.$ac_ext
4899 if $ac_preproc_ok; then
4901 else
4902 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4903 See \`config.log' for more details." >&5
4904 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4905 See \`config.log' for more details." >&2;}
4906 { (exit 1); exit 1; }; }
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 # Find a good install program. We prefer a C program (faster),
4916 # so one script is as good as another. But avoid the broken or
4917 # incompatible versions:
4918 # SysV /etc/install, /usr/sbin/install
4919 # SunOS /usr/etc/install
4920 # IRIX /sbin/install
4921 # AIX /bin/install
4922 # AmigaOS /C/install, which installs bootblocks on floppy discs
4923 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4924 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4925 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4926 # OS/2's system install, which has a completely different semantic
4927 # ./install, which can be erroneously created by make from ./install.sh.
4928 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4929 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4930 if test -z "$INSTALL"; then
4931 if test "${ac_cv_path_install+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 # Account for people who put trailing slashes in PATH elements.
4940 case $as_dir/ in
4941 ./ | .// | /cC/* | \
4942 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4943 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4944 /usr/ucb/* ) ;;
4946 # OSF1 and SCO ODT 3.0 have their own names for install.
4947 # Don't use installbsd from OSF since it installs stuff as root
4948 # by default.
4949 for ac_prog in ginstall scoinst install; do
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4952 if test $ac_prog = install &&
4953 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4954 # AIX install. It has an incompatible calling convention.
4956 elif test $ac_prog = install &&
4957 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4958 # program-specific install script used by HP pwplus--don't use.
4960 else
4961 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4962 break 3
4965 done
4966 done
4968 esac
4969 done
4970 IFS=$as_save_IFS
4974 if test "${ac_cv_path_install+set}" = set; then
4975 INSTALL=$ac_cv_path_install
4976 else
4977 # As a last resort, use the slow shell script. Don't cache a
4978 # value for INSTALL within a source directory, because that will
4979 # break other packages using the cache if that directory is
4980 # removed, or if the value is a relative name.
4981 INSTALL=$ac_install_sh
4984 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4985 echo "${ECHO_T}$INSTALL" >&6; }
4987 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4988 # It thinks the first close brace ends the variable substitution.
4989 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4991 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4993 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4995 if test "x$RANLIB" = x; then
4996 if test -n "$ac_tool_prefix"; then
4997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4998 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5001 if test "${ac_cv_prog_RANLIB+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 if test -n "$RANLIB"; then
5005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5018 done
5019 done
5020 IFS=$as_save_IFS
5024 RANLIB=$ac_cv_prog_RANLIB
5025 if test -n "$RANLIB"; then
5026 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5027 echo "${ECHO_T}$RANLIB" >&6; }
5028 else
5029 { echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6; }
5035 if test -z "$ac_cv_prog_RANLIB"; then
5036 ac_ct_RANLIB=$RANLIB
5037 # Extract the first word of "ranlib", so it can be a program name with args.
5038 set dummy ranlib; ac_word=$2
5039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5041 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 if test -n "$ac_ct_RANLIB"; then
5045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054 ac_cv_prog_ac_ct_RANLIB="ranlib"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5058 done
5059 done
5060 IFS=$as_save_IFS
5064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5065 if test -n "$ac_ct_RANLIB"; then
5066 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5067 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5068 else
5069 { echo "$as_me:$LINENO: result: no" >&5
5070 echo "${ECHO_T}no" >&6; }
5073 if test "x$ac_ct_RANLIB" = x; then
5074 RANLIB=":"
5075 else
5076 case $cross_compiling:$ac_tool_warned in
5077 yes:)
5078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5079 whose name does not start with the host triplet. If you think this
5080 configuration is useful to you, please write to autoconf@gnu.org." >&5
5081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5082 whose name does not start with the host triplet. If you think this
5083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5084 ac_tool_warned=yes ;;
5085 esac
5086 RANLIB=$ac_ct_RANLIB
5088 else
5089 RANLIB="$ac_cv_prog_RANLIB"
5093 # Extract the first word of "install-info", so it can be a program name with args.
5094 set dummy install-info; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 case $INSTALL_INFO in
5101 [\\/]* | ?:[\\/]*)
5102 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5116 done
5117 done
5118 IFS=$as_save_IFS
5121 esac
5123 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5124 if test -n "$INSTALL_INFO"; then
5125 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5126 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5127 else
5128 { echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6; }
5133 # Extract the first word of "install-info", so it can be a program name with args.
5134 set dummy install-info; ac_word=$2
5135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5137 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140 case $INSTALL_INFO in
5141 [\\/]* | ?:[\\/]*)
5142 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in /usr/sbin
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5161 esac
5163 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5164 if test -n "$INSTALL_INFO"; then
5165 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5166 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5167 else
5168 { echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6; }
5173 # Extract the first word of "install-info", so it can be a program name with args.
5174 set dummy install-info; ac_word=$2
5175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5177 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180 case $INSTALL_INFO in
5181 [\\/]* | ?:[\\/]*)
5182 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in /sbin
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5200 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5202 esac
5204 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5205 if test -n "$INSTALL_INFO"; then
5206 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5207 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5208 else
5209 { echo "$as_me:$LINENO: result: no" >&5
5210 echo "${ECHO_T}no" >&6; }
5214 # Extract the first word of "gzip", so it can be a program name with args.
5215 set dummy gzip; ac_word=$2
5216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5218 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 case $GZIP_PROG in
5222 [\\/]* | ?:[\\/]*)
5223 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5237 done
5238 done
5239 IFS=$as_save_IFS
5242 esac
5244 GZIP_PROG=$ac_cv_path_GZIP_PROG
5245 if test -n "$GZIP_PROG"; then
5246 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5247 echo "${ECHO_T}$GZIP_PROG" >&6; }
5248 else
5249 { echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6; }
5256 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5257 then
5258 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5261 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5262 then
5263 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5267 late_LDFLAGS=$LDFLAGS
5268 if test "$GCC" = yes; then
5269 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5270 else
5271 LDFLAGS="$LDFLAGS -znocombreloc"
5274 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5275 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5276 cat >conftest.$ac_ext <<_ACEOF
5277 main(){return 0;}
5278 _ACEOF
5279 rm -f conftest.$ac_objext conftest$ac_exeext
5280 if { (ac_try="$ac_link"
5281 case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284 esac
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_link") 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } && {
5293 test -z "$ac_c_werror_flag" ||
5294 test ! -s conftest.err
5295 } && test -s conftest$ac_exeext &&
5296 $as_test_x conftest$ac_exeext; then
5297 { echo "$as_me:$LINENO: result: yes" >&5
5298 echo "${ECHO_T}yes" >&6; }
5299 else
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5303 LDFLAGS=$late_LDFLAGS
5304 { echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6; }
5308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5309 conftest$ac_exeext conftest.$ac_ext
5311 #### Extract some information from the operating system and machine files.
5313 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5314 - which libraries the lib-src programs will want, and
5315 - whether the GNU malloc routines are usable..." >&5
5316 echo "$as_me: checking the machine- and system-dependent files to find out
5317 - which libraries the lib-src programs will want, and
5318 - whether the GNU malloc routines are usable..." >&6;}
5320 ### First figure out CFLAGS (which we use for running the compiler here)
5321 ### and REAL_CFLAGS (which we use for real compilation).
5322 ### The two are the same except on a few systems, where they are made
5323 ### different to work around various lossages. For example,
5324 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5325 ### as implying static linking.
5327 ### If the CFLAGS env var is specified, we use that value
5328 ### instead of the default.
5330 ### It's not important that this name contain the PID; you can't run
5331 ### two configures in the same directory and have anything work
5332 ### anyway.
5333 tempcname="conftest.c"
5335 echo '
5336 #include "'${srcdir}'/src/'${opsysfile}'"
5337 #include "'${srcdir}'/src/'${machfile}'"
5338 #ifndef LIBS_MACHINE
5339 #define LIBS_MACHINE
5340 #endif
5341 #ifndef LIBS_SYSTEM
5342 #define LIBS_SYSTEM
5343 #endif
5344 #ifndef C_SWITCH_SYSTEM
5345 #define C_SWITCH_SYSTEM
5346 #endif
5347 #ifndef C_SWITCH_MACHINE
5348 #define C_SWITCH_MACHINE
5349 #endif
5350 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5351 configure___ c_switch_system=C_SWITCH_SYSTEM
5352 configure___ c_switch_machine=C_SWITCH_MACHINE
5354 #ifndef LIB_X11_LIB
5355 #define LIB_X11_LIB -lX11
5356 #endif
5358 #ifndef LIBX11_MACHINE
5359 #define LIBX11_MACHINE
5360 #endif
5362 #ifndef LIBX11_SYSTEM
5363 #define LIBX11_SYSTEM
5364 #endif
5365 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5367 #ifdef UNEXEC
5368 configure___ unexec=UNEXEC
5369 #else
5370 configure___ unexec=unexec.o
5371 #endif
5373 #ifdef SYSTEM_MALLOC
5374 configure___ system_malloc=yes
5375 #else
5376 configure___ system_malloc=no
5377 #endif
5379 #ifdef USE_MMAP_FOR_BUFFERS
5380 configure___ use_mmap_for_buffers=yes
5381 #else
5382 configure___ use_mmap_for_buffers=no
5383 #endif
5385 #ifndef C_DEBUG_SWITCH
5386 #define C_DEBUG_SWITCH -g
5387 #endif
5389 #ifndef C_OPTIMIZE_SWITCH
5390 #ifdef __GNUC__
5391 #define C_OPTIMIZE_SWITCH -O2
5392 #else
5393 #define C_OPTIMIZE_SWITCH -O
5394 #endif
5395 #endif
5397 #ifndef C_WARNINGS_SWITCH
5398 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5399 #endif
5401 #ifndef LD_SWITCH_MACHINE
5402 #define LD_SWITCH_MACHINE
5403 #endif
5405 #ifndef LD_SWITCH_SYSTEM
5406 #define LD_SWITCH_SYSTEM
5407 #endif
5409 #ifndef LD_SWITCH_X_SITE_AUX
5410 #define LD_SWITCH_X_SITE_AUX
5411 #endif
5413 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5414 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5416 #ifdef THIS_IS_CONFIGURE
5418 /* Get the CFLAGS for tests in configure. */
5419 #ifdef __GNUC__
5420 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5421 #else
5422 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5423 #endif
5425 #else /* not THIS_IS_CONFIGURE */
5427 /* Get the CFLAGS for real compilation. */
5428 #ifdef __GNUC__
5429 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5430 #else
5431 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5432 #endif
5434 #endif /* not THIS_IS_CONFIGURE */
5435 ' > ${tempcname}
5437 # The value of CPP is a quoted variable reference, so we need to do this
5438 # to get its actual value...
5439 CPP=`eval "echo $CPP"`
5440 eval `${CPP} -Isrc ${tempcname} \
5441 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5442 if test "x$SPECIFIED_CFLAGS" = x; then
5443 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5444 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5445 else
5446 REAL_CFLAGS="$CFLAGS"
5448 rm ${tempcname}
5450 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5452 ### Make sure subsequent tests use flags consistent with the build flags.
5454 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5455 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5456 else
5457 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5462 # Check whether --enable-largefile was given.
5463 if test "${enable_largefile+set}" = set; then
5464 enableval=$enable_largefile;
5467 if test "$enable_largefile" != no; then
5469 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5470 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5471 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474 ac_cv_sys_largefile_CC=no
5475 if test "$GCC" != yes; then
5476 ac_save_CC=$CC
5477 while :; do
5478 # IRIX 6.2 and later do not support large files by default,
5479 # so use the C compiler's -n32 option if that helps.
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 #include <sys/types.h>
5487 /* Check that off_t can represent 2**63 - 1 correctly.
5488 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5489 since some C++ compilers masquerading as C compilers
5490 incorrectly reject 9223372036854775807. */
5491 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5492 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5493 && LARGE_OFF_T % 2147483647 == 1)
5494 ? 1 : -1];
5496 main ()
5500 return 0;
5502 _ACEOF
5503 rm -f conftest.$ac_objext
5504 if { (ac_try="$ac_compile"
5505 case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508 esac
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_compile") 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } && {
5517 test -z "$ac_c_werror_flag" ||
5518 test ! -s conftest.err
5519 } && test -s conftest.$ac_objext; then
5520 break
5521 else
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5528 rm -f core conftest.err conftest.$ac_objext
5529 CC="$CC -n32"
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5532 case "(($ac_try" in
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5535 esac
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5538 ac_status=$?
5539 grep -v '^ *+' conftest.er1 >conftest.err
5540 rm -f conftest.er1
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_c_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.$ac_objext; then
5547 ac_cv_sys_largefile_CC=' -n32'; break
5548 else
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5555 rm -f core conftest.err conftest.$ac_objext
5556 break
5557 done
5558 CC=$ac_save_CC
5559 rm -f conftest.$ac_ext
5562 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5563 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5564 if test "$ac_cv_sys_largefile_CC" != no; then
5565 CC=$CC$ac_cv_sys_largefile_CC
5568 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5569 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5570 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 while :; do
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 #include <sys/types.h>
5581 /* Check that off_t can represent 2**63 - 1 correctly.
5582 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5583 since some C++ compilers masquerading as C compilers
5584 incorrectly reject 9223372036854775807. */
5585 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5587 && LARGE_OFF_T % 2147483647 == 1)
5588 ? 1 : -1];
5590 main ()
5594 return 0;
5596 _ACEOF
5597 rm -f conftest.$ac_objext
5598 if { (ac_try="$ac_compile"
5599 case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compile") 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest.$ac_objext; then
5614 ac_cv_sys_file_offset_bits=no; break
5615 else
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 cat >conftest.$ac_ext <<_ACEOF
5624 /* confdefs.h. */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 #define _FILE_OFFSET_BITS 64
5630 #include <sys/types.h>
5631 /* Check that off_t can represent 2**63 - 1 correctly.
5632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5633 since some C++ compilers masquerading as C compilers
5634 incorrectly reject 9223372036854775807. */
5635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5637 && LARGE_OFF_T % 2147483647 == 1)
5638 ? 1 : -1];
5640 main ()
5644 return 0;
5646 _ACEOF
5647 rm -f conftest.$ac_objext
5648 if { (ac_try="$ac_compile"
5649 case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652 esac
5653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5654 (eval "$ac_compile") 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } && {
5661 test -z "$ac_c_werror_flag" ||
5662 test ! -s conftest.err
5663 } && test -s conftest.$ac_objext; then
5664 ac_cv_sys_file_offset_bits=64; break
5665 else
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 ac_cv_sys_file_offset_bits=unknown
5674 break
5675 done
5677 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5678 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5679 case $ac_cv_sys_file_offset_bits in #(
5680 no | unknown) ;;
5682 cat >>confdefs.h <<_ACEOF
5683 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5684 _ACEOF
5686 esac
5687 rm -f conftest*
5688 if test $ac_cv_sys_file_offset_bits = unknown; then
5689 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5690 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5691 if test "${ac_cv_sys_large_files+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 while :; do
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 #include <sys/types.h>
5702 /* Check that off_t can represent 2**63 - 1 correctly.
5703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5704 since some C++ compilers masquerading as C compilers
5705 incorrectly reject 9223372036854775807. */
5706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5708 && LARGE_OFF_T % 2147483647 == 1)
5709 ? 1 : -1];
5711 main ()
5715 return 0;
5717 _ACEOF
5718 rm -f conftest.$ac_objext
5719 if { (ac_try="$ac_compile"
5720 case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest.$ac_objext; then
5735 ac_cv_sys_large_files=no; break
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h. */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 #define _LARGE_FILES 1
5751 #include <sys/types.h>
5752 /* Check that off_t can represent 2**63 - 1 correctly.
5753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5754 since some C++ compilers masquerading as C compilers
5755 incorrectly reject 9223372036854775807. */
5756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5758 && LARGE_OFF_T % 2147483647 == 1)
5759 ? 1 : -1];
5761 main ()
5765 return 0;
5767 _ACEOF
5768 rm -f conftest.$ac_objext
5769 if { (ac_try="$ac_compile"
5770 case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compile") 2>conftest.er1
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest.$ac_objext; then
5785 ac_cv_sys_large_files=1; break
5786 else
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 ac_cv_sys_large_files=unknown
5795 break
5796 done
5798 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5799 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5800 case $ac_cv_sys_large_files in #(
5801 no | unknown) ;;
5803 cat >>confdefs.h <<_ACEOF
5804 #define _LARGE_FILES $ac_cv_sys_large_files
5805 _ACEOF
5807 esac
5808 rm -f conftest*
5814 ### The standard library on x86-64 GNU/Linux distributions can
5815 ### be located in either /usr/lib64 or /usr/lib.
5816 case "${canonical}" in
5817 x86_64-*-linux-gnu* )
5818 if test -d /usr/lib64; then
5820 cat >>confdefs.h <<\_ACEOF
5821 #define HAVE_X86_64_LIB64_DIR 1
5822 _ACEOF
5825 esac
5830 if test "${with_sound}" != "no"; then
5831 # Sound support for GNU/Linux and the free BSDs.
5832 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5834 if test "${ac_cv_header_stdc+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 #include <stdlib.h>
5844 #include <stdarg.h>
5845 #include <string.h>
5846 #include <float.h>
5849 main ()
5853 return 0;
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (ac_try="$ac_compile"
5858 case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5873 ac_cv_header_stdc=yes
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 ac_cv_header_stdc=no
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 if test $ac_cv_header_stdc = yes; then
5884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5885 cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h. */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5891 #include <string.h>
5893 _ACEOF
5894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5895 $EGREP "memchr" >/dev/null 2>&1; then
5897 else
5898 ac_cv_header_stdc=no
5900 rm -f conftest*
5904 if test $ac_cv_header_stdc = yes; then
5905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 #include <stdlib.h>
5914 _ACEOF
5915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916 $EGREP "free" >/dev/null 2>&1; then
5918 else
5919 ac_cv_header_stdc=no
5921 rm -f conftest*
5925 if test $ac_cv_header_stdc = yes; then
5926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5927 if test "$cross_compiling" = yes; then
5929 else
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h. */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <ctype.h>
5937 #include <stdlib.h>
5938 #if ((' ' & 0x0FF) == 0x020)
5939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5941 #else
5942 # define ISLOWER(c) \
5943 (('a' <= (c) && (c) <= 'i') \
5944 || ('j' <= (c) && (c) <= 'r') \
5945 || ('s' <= (c) && (c) <= 'z'))
5946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5947 #endif
5949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5951 main ()
5953 int i;
5954 for (i = 0; i < 256; i++)
5955 if (XOR (islower (i), ISLOWER (i))
5956 || toupper (i) != TOUPPER (i))
5957 return 2;
5958 return 0;
5960 _ACEOF
5961 rm -f conftest$ac_exeext
5962 if { (ac_try="$ac_link"
5963 case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_link") 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5972 { (case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_try") 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5982 else
5983 echo "$as_me: program exited with status $ac_status" >&5
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987 ( exit $ac_status )
5988 ac_cv_header_stdc=no
5990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5996 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5997 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5998 if test $ac_cv_header_stdc = yes; then
6000 cat >>confdefs.h <<\_ACEOF
6001 #define STDC_HEADERS 1
6002 _ACEOF
6006 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6016 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6017 inttypes.h stdint.h unistd.h
6019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h. */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 $ac_includes_default
6033 #include <$ac_header>
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6037 case "(($ac_try" in
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6040 esac
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && {
6049 test -z "$ac_c_werror_flag" ||
6050 test ! -s conftest.err
6051 } && test -s conftest.$ac_objext; then
6052 eval "$as_ac_Header=yes"
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 eval "$as_ac_Header=no"
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 ac_res=`eval echo '${'$as_ac_Header'}'`
6063 { echo "$as_me:$LINENO: result: $ac_res" >&5
6064 echo "${ECHO_T}$ac_res" >&6; }
6065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6066 cat >>confdefs.h <<_ACEOF
6067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6068 _ACEOF
6072 done
6078 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 ac_res=`eval echo '${'$as_ac_Header'}'`
6088 { echo "$as_me:$LINENO: result: $ac_res" >&5
6089 echo "${ECHO_T}$ac_res" >&6; }
6090 else
6091 # Is the header compilable?
6092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6094 cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h. */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 $ac_includes_default
6101 #include <$ac_header>
6102 _ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6105 case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 ac_header_compiler=yes
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_header_compiler=no
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6130 echo "${ECHO_T}$ac_header_compiler" >&6; }
6132 # Is the header present?
6133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6135 cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h. */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <$ac_header>
6142 _ACEOF
6143 if { (ac_try="$ac_cpp conftest.$ac_ext"
6144 case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } >/dev/null && {
6156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6157 test ! -s conftest.err
6158 }; then
6159 ac_header_preproc=yes
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_header_preproc=no
6167 rm -f conftest.err conftest.$ac_ext
6168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6169 echo "${ECHO_T}$ac_header_preproc" >&6; }
6171 # So? What about this header?
6172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6173 yes:no: )
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6178 ac_header_preproc=yes
6180 no:yes:* )
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6195 esac
6196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 eval "$as_ac_Header=\$ac_header_preproc"
6203 ac_res=`eval echo '${'$as_ac_Header'}'`
6204 { echo "$as_me:$LINENO: result: $ac_res" >&5
6205 echo "${ECHO_T}$ac_res" >&6; }
6208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6209 cat >>confdefs.h <<_ACEOF
6210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6211 _ACEOF
6215 done
6217 # Emulation library used on NetBSD.
6218 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6219 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6220 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 ac_check_lib_save_LIBS=$LIBS
6224 LIBS="-lossaudio $LIBS"
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6232 /* Override any GCC internal prototype to avoid an error.
6233 Use char because int might match the return type of a GCC
6234 builtin and then its argument prototype would still apply. */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 char _oss_ioctl ();
6240 main ()
6242 return _oss_ioctl ();
6244 return 0;
6246 _ACEOF
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (ac_try="$ac_link"
6249 case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_link") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest$ac_exeext &&
6264 $as_test_x conftest$ac_exeext; then
6265 ac_cv_lib_ossaudio__oss_ioctl=yes
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 ac_cv_lib_ossaudio__oss_ioctl=no
6273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6274 conftest$ac_exeext conftest.$ac_ext
6275 LIBS=$ac_check_lib_save_LIBS
6277 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6278 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6279 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6280 LIBSOUND=-lossaudio
6281 else
6282 LIBSOUND=
6287 ALSA_REQUIRED=1.0.0
6288 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6289 if test "X${with_pkg_config_prog}" != X; then
6290 PKG_CONFIG="${with_pkg_config_prog}"
6293 succeeded=no
6295 if test -z "$PKG_CONFIG"; then
6296 # Extract the first word of "pkg-config", so it can be a program name with args.
6297 set dummy pkg-config; ac_word=$2
6298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303 case $PKG_CONFIG in
6304 [\\/]* | ?:[\\/]*)
6305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6319 done
6320 done
6321 IFS=$as_save_IFS
6323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6325 esac
6327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6328 if test -n "$PKG_CONFIG"; then
6329 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6330 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6331 else
6332 { echo "$as_me:$LINENO: result: no" >&5
6333 echo "${ECHO_T}no" >&6; }
6339 if test "$PKG_CONFIG" = "no" ; then
6340 HAVE_ALSA=no
6341 else
6342 PKG_CONFIG_MIN_VERSION=0.9.0
6343 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6344 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6345 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6347 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6348 { echo "$as_me:$LINENO: result: yes" >&5
6349 echo "${ECHO_T}yes" >&6; }
6350 succeeded=yes
6352 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6353 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6354 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6355 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6356 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6358 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6359 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6360 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6361 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6362 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6363 else
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6366 ALSA_CFLAGS=""
6367 ALSA_LIBS=""
6368 ## If we have a custom action on failure, don't print errors, but
6369 ## do set a variable so people can do so.
6370 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6376 else
6377 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6378 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6382 if test $succeeded = yes; then
6383 HAVE_ALSA=yes
6384 else
6385 HAVE_ALSA=no
6388 if test $HAVE_ALSA = yes; then
6389 SAVE_CFLAGS="$CFLAGS"
6390 SAVE_LDFLAGS="$LDFLAGS"
6391 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6392 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6393 cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h. */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6399 #include <asoundlib.h>
6401 main ()
6403 snd_lib_error_set_handler (0);
6405 return 0;
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (ac_try="$ac_compile"
6410 case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413 esac
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_compile") 2>conftest.er1
6416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } && {
6422 test -z "$ac_c_werror_flag" ||
6423 test ! -s conftest.err
6424 } && test -s conftest.$ac_objext; then
6425 emacs_alsa_normal=yes
6426 else
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6430 emacs_alsa_normal=no
6433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 if test "$emacs_alsa_normal" != yes; then
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <alsa/asoundlib.h>
6443 main ()
6445 snd_lib_error_set_handler (0);
6447 return 0;
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (ac_try="$ac_compile"
6452 case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6455 esac
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_compile") 2>conftest.er1
6458 ac_status=$?
6459 grep -v '^ *+' conftest.er1 >conftest.err
6460 rm -f conftest.er1
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } && {
6464 test -z "$ac_c_werror_flag" ||
6465 test ! -s conftest.err
6466 } && test -s conftest.$ac_objext; then
6467 emacs_alsa_subdir=yes
6468 else
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6472 emacs_alsa_subdir=no
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 if test "$emacs_alsa_subdir" != yes; then
6477 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6478 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6479 { (exit 1); exit 1; }; }
6481 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6484 CFLAGS="$SAVE_CFLAGS"
6485 LDFLAGS="$SAVE_LDFLAGS"
6486 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6487 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6489 cat >>confdefs.h <<\_ACEOF
6490 #define HAVE_ALSA 1
6491 _ACEOF
6523 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6524 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6525 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6526 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6527 sys/utsname.h pwd.h
6529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 ac_res=`eval echo '${'$as_ac_Header'}'`
6537 { echo "$as_me:$LINENO: result: $ac_res" >&5
6538 echo "${ECHO_T}$ac_res" >&6; }
6539 else
6540 # Is the header compilable?
6541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 $ac_includes_default
6550 #include <$ac_header>
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_header_compiler=yes
6570 else
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_header_compiler=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6579 echo "${ECHO_T}$ac_header_compiler" >&6; }
6581 # Is the header present?
6582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <$ac_header>
6591 _ACEOF
6592 if { (ac_try="$ac_cpp conftest.$ac_ext"
6593 case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } >/dev/null && {
6605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6607 }; then
6608 ac_header_preproc=yes
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_header_preproc=no
6616 rm -f conftest.err conftest.$ac_ext
6617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6618 echo "${ECHO_T}$ac_header_preproc" >&6; }
6620 # So? What about this header?
6621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6622 yes:no: )
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6627 ac_header_preproc=yes
6629 no:yes:* )
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6644 esac
6645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 eval "$as_ac_Header=\$ac_header_preproc"
6652 ac_res=`eval echo '${'$as_ac_Header'}'`
6653 { echo "$as_me:$LINENO: result: $ac_res" >&5
6654 echo "${ECHO_T}$ac_res" >&6; }
6657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6658 cat >>confdefs.h <<_ACEOF
6659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6660 _ACEOF
6664 done
6667 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6668 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #include <sys/personality.h>
6677 main ()
6679 personality (PER_LINUX32)
6681 return 0;
6683 _ACEOF
6684 rm -f conftest.$ac_objext
6685 if { (ac_try="$ac_compile"
6686 case "(($ac_try" in
6687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6688 *) ac_try_echo=$ac_try;;
6689 esac
6690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6691 (eval "$ac_compile") 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } && {
6698 test -z "$ac_c_werror_flag" ||
6699 test ! -s conftest.err
6700 } && test -s conftest.$ac_objext; then
6701 emacs_cv_personality_linux32=yes
6702 else
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 emacs_cv_personality_linux32=no
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6711 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6713 if test $emacs_cv_personality_linux32 = yes; then
6715 cat >>confdefs.h <<\_ACEOF
6716 #define HAVE_PERSONALITY_LINUX32 1
6717 _ACEOF
6722 for ac_header in term.h
6724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 cat >conftest.$ac_ext <<_ACEOF
6731 /* confdefs.h. */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 #include <$ac_header>
6737 _ACEOF
6738 if { (ac_try="$ac_cpp conftest.$ac_ext"
6739 case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } >/dev/null && {
6751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6753 }; then
6754 eval "$as_ac_Header=yes"
6755 else
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6759 eval "$as_ac_Header=no"
6762 rm -f conftest.err conftest.$ac_ext
6764 ac_res=`eval echo '${'$as_ac_Header'}'`
6765 { echo "$as_me:$LINENO: result: $ac_res" >&5
6766 echo "${ECHO_T}$ac_res" >&6; }
6767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6768 cat >>confdefs.h <<_ACEOF
6769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6770 _ACEOF
6774 done
6776 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6777 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6778 if test "${ac_cv_header_stdc+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <stdlib.h>
6788 #include <stdarg.h>
6789 #include <string.h>
6790 #include <float.h>
6793 main ()
6797 return 0;
6799 _ACEOF
6800 rm -f conftest.$ac_objext
6801 if { (ac_try="$ac_compile"
6802 case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6805 esac
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_compile") 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && {
6814 test -z "$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6816 } && test -s conftest.$ac_objext; then
6817 ac_cv_header_stdc=yes
6818 else
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ac_cv_header_stdc=no
6825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827 if test $ac_cv_header_stdc = yes; then
6828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #include <string.h>
6837 _ACEOF
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839 $EGREP "memchr" >/dev/null 2>&1; then
6841 else
6842 ac_cv_header_stdc=no
6844 rm -f conftest*
6848 if test $ac_cv_header_stdc = yes; then
6849 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h. */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 #include <stdlib.h>
6858 _ACEOF
6859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6860 $EGREP "free" >/dev/null 2>&1; then
6862 else
6863 ac_cv_header_stdc=no
6865 rm -f conftest*
6869 if test $ac_cv_header_stdc = yes; then
6870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6871 if test "$cross_compiling" = yes; then
6873 else
6874 cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h. */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 #include <ctype.h>
6881 #include <stdlib.h>
6882 #if ((' ' & 0x0FF) == 0x020)
6883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6885 #else
6886 # define ISLOWER(c) \
6887 (('a' <= (c) && (c) <= 'i') \
6888 || ('j' <= (c) && (c) <= 'r') \
6889 || ('s' <= (c) && (c) <= 'z'))
6890 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6891 #endif
6893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6895 main ()
6897 int i;
6898 for (i = 0; i < 256; i++)
6899 if (XOR (islower (i), ISLOWER (i))
6900 || toupper (i) != TOUPPER (i))
6901 return 2;
6902 return 0;
6904 _ACEOF
6905 rm -f conftest$ac_exeext
6906 if { (ac_try="$ac_link"
6907 case "(($ac_try" in
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_link") 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6916 { (case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_try") 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6926 else
6927 echo "$as_me: program exited with status $ac_status" >&5
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6931 ( exit $ac_status )
6932 ac_cv_header_stdc=no
6934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6940 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6941 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6942 if test $ac_cv_header_stdc = yes; then
6944 cat >>confdefs.h <<\_ACEOF
6945 #define STDC_HEADERS 1
6946 _ACEOF
6950 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6951 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6952 if test "${ac_cv_header_time+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 cat >conftest.$ac_ext <<_ACEOF
6956 /* confdefs.h. */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 #include <sys/types.h>
6962 #include <sys/time.h>
6963 #include <time.h>
6966 main ()
6968 if ((struct tm *) 0)
6969 return 0;
6971 return 0;
6973 _ACEOF
6974 rm -f conftest.$ac_objext
6975 if { (ac_try="$ac_compile"
6976 case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979 esac
6980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6991 ac_cv_header_time=yes
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 ac_cv_header_time=no
6999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7002 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7003 if test $ac_cv_header_time = yes; then
7005 cat >>confdefs.h <<\_ACEOF
7006 #define TIME_WITH_SYS_TIME 1
7007 _ACEOF
7011 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7012 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7013 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 $ac_includes_default
7024 main ()
7026 #ifndef sys_siglist
7027 (void) sys_siglist;
7028 #endif
7031 return 0;
7033 _ACEOF
7034 rm -f conftest.$ac_objext
7035 if { (ac_try="$ac_compile"
7036 case "(($ac_try" in
7037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7038 *) ac_try_echo=$ac_try;;
7039 esac
7040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7041 (eval "$ac_compile") 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } && {
7048 test -z "$ac_c_werror_flag" ||
7049 test ! -s conftest.err
7050 } && test -s conftest.$ac_objext; then
7051 ac_cv_have_decl_sys_siglist=yes
7052 else
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7056 ac_cv_have_decl_sys_siglist=no
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7062 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7063 if test $ac_cv_have_decl_sys_siglist = yes; then
7065 cat >>confdefs.h <<_ACEOF
7066 #define HAVE_DECL_SYS_SIGLIST 1
7067 _ACEOF
7070 else
7071 cat >>confdefs.h <<_ACEOF
7072 #define HAVE_DECL_SYS_SIGLIST 0
7073 _ACEOF
7079 if test $ac_cv_have_decl_sys_siglist != yes; then
7080 # For Tru64, at least:
7081 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7082 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7083 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h. */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7094 main ()
7096 #ifndef __sys_siglist
7097 (void) __sys_siglist;
7098 #endif
7101 return 0;
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (ac_try="$ac_compile"
7106 case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109 esac
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.$ac_objext; then
7121 ac_cv_have_decl___sys_siglist=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 ac_cv_have_decl___sys_siglist=no
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7132 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7133 if test $ac_cv_have_decl___sys_siglist = yes; then
7135 cat >>confdefs.h <<_ACEOF
7136 #define HAVE_DECL___SYS_SIGLIST 1
7137 _ACEOF
7140 else
7141 cat >>confdefs.h <<_ACEOF
7142 #define HAVE_DECL___SYS_SIGLIST 0
7143 _ACEOF
7149 if test $ac_cv_have_decl___sys_siglist = yes; then
7151 cat >>confdefs.h <<\_ACEOF
7152 #define sys_siglist __sys_siglist
7153 _ACEOF
7157 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7158 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7159 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 #include <sys/types.h>
7169 #include <sys/wait.h>
7170 #ifndef WEXITSTATUS
7171 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7172 #endif
7173 #ifndef WIFEXITED
7174 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7175 #endif
7178 main ()
7180 int s;
7181 wait (&s);
7182 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7184 return 0;
7186 _ACEOF
7187 rm -f conftest.$ac_objext
7188 if { (ac_try="$ac_compile"
7189 case "(($ac_try" in
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7192 esac
7193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194 (eval "$ac_compile") 2>conftest.er1
7195 ac_status=$?
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest.$ac_objext; then
7204 ac_cv_header_sys_wait_h=yes
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 ac_cv_header_sys_wait_h=no
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7215 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7216 if test $ac_cv_header_sys_wait_h = yes; then
7218 cat >>confdefs.h <<\_ACEOF
7219 #define HAVE_SYS_WAIT_H 1
7220 _ACEOF
7225 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7226 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7227 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h. */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 #ifdef TIME_WITH_SYS_TIME
7237 #include <sys/time.h>
7238 #include <time.h>
7239 #else
7240 #ifdef HAVE_SYS_TIME_H
7241 #include <sys/time.h>
7242 #else
7243 #include <time.h>
7244 #endif
7245 #endif
7246 #ifdef HAVE_UTIME_H
7247 #include <utime.h>
7248 #endif
7250 main ()
7252 static struct utimbuf x; x.actime = x.modtime;
7254 return 0;
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7259 case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262 esac
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_compile") 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.$ac_objext; then
7274 emacs_cv_struct_utimbuf=yes
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7279 emacs_cv_struct_utimbuf=no
7282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7285 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7286 if test $emacs_cv_struct_utimbuf = yes; then
7288 cat >>confdefs.h <<\_ACEOF
7289 #define HAVE_STRUCT_UTIMBUF 1
7290 _ACEOF
7294 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7295 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7296 if test "${ac_cv_type_signal+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 #include <sys/types.h>
7306 #include <signal.h>
7309 main ()
7311 return *(signal (0, 0)) (0) == 1;
7313 return 0;
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7318 case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_compile") 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest.$ac_objext; then
7333 ac_cv_type_signal=int
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_cv_type_signal=void
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7344 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7346 cat >>confdefs.h <<_ACEOF
7347 #define RETSIGTYPE $ac_cv_type_signal
7348 _ACEOF
7352 { echo "$as_me:$LINENO: checking for speed_t" >&5
7353 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7354 if test "${emacs_cv_speed_t+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357 cat >conftest.$ac_ext <<_ACEOF
7358 /* confdefs.h. */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 #include <termios.h>
7365 main ()
7367 speed_t x = 1;
7369 return 0;
7371 _ACEOF
7372 rm -f conftest.$ac_objext
7373 if { (ac_try="$ac_compile"
7374 case "(($ac_try" in
7375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7377 esac
7378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7379 (eval "$ac_compile") 2>conftest.er1
7380 ac_status=$?
7381 grep -v '^ *+' conftest.er1 >conftest.err
7382 rm -f conftest.er1
7383 cat conftest.err >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } && {
7386 test -z "$ac_c_werror_flag" ||
7387 test ! -s conftest.err
7388 } && test -s conftest.$ac_objext; then
7389 emacs_cv_speed_t=yes
7390 else
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7394 emacs_cv_speed_t=no
7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7400 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7401 if test $emacs_cv_speed_t = yes; then
7403 cat >>confdefs.h <<\_ACEOF
7404 #define HAVE_SPEED_T 1
7405 _ACEOF
7409 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7410 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7411 if test "${emacs_cv_struct_timeval+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h. */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7420 #ifdef TIME_WITH_SYS_TIME
7421 #include <sys/time.h>
7422 #include <time.h>
7423 #else
7424 #ifdef HAVE_SYS_TIME_H
7425 #include <sys/time.h>
7426 #else
7427 #include <time.h>
7428 #endif
7429 #endif
7431 main ()
7433 static struct timeval x; x.tv_sec = x.tv_usec;
7435 return 0;
7437 _ACEOF
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.$ac_objext; then
7455 emacs_cv_struct_timeval=yes
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 emacs_cv_struct_timeval=no
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7466 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7467 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7468 if test $emacs_cv_struct_timeval = yes; then
7470 cat >>confdefs.h <<\_ACEOF
7471 #define HAVE_TIMEVAL 1
7472 _ACEOF
7476 { echo "$as_me:$LINENO: checking for struct exception" >&5
7477 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7478 if test "${emacs_cv_struct_exception+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 cat >conftest.$ac_ext <<_ACEOF
7482 /* confdefs.h. */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 #include <math.h>
7489 main ()
7491 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7493 return 0;
7495 _ACEOF
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7498 case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501 esac
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 emacs_cv_struct_exception=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 emacs_cv_struct_exception=no
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7524 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7525 HAVE_EXCEPTION=$emacs_cv_struct_exception
7526 if test $emacs_cv_struct_exception != yes; then
7528 cat >>confdefs.h <<\_ACEOF
7529 #define NO_MATHERR 1
7530 _ACEOF
7535 for ac_header in sys/socket.h
7537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_res=`eval echo '${'$as_ac_Header'}'`
7545 { echo "$as_me:$LINENO: result: $ac_res" >&5
7546 echo "${ECHO_T}$ac_res" >&6; }
7547 else
7548 # Is the header compilable?
7549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7551 cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h. */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7557 $ac_includes_default
7558 #include <$ac_header>
7559 _ACEOF
7560 rm -f conftest.$ac_objext
7561 if { (ac_try="$ac_compile"
7562 case "(($ac_try" in
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7565 esac
7566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567 (eval "$ac_compile") 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && {
7574 test -z "$ac_c_werror_flag" ||
7575 test ! -s conftest.err
7576 } && test -s conftest.$ac_objext; then
7577 ac_header_compiler=yes
7578 else
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_header_compiler=no
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7587 echo "${ECHO_T}$ac_header_compiler" >&6; }
7589 # Is the header present?
7590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 #include <$ac_header>
7599 _ACEOF
7600 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
7613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 }; then
7616 ac_header_preproc=yes
7617 else
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7621 ac_header_preproc=no
7624 rm -f conftest.err conftest.$ac_ext
7625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7626 echo "${ECHO_T}$ac_header_preproc" >&6; }
7628 # So? What about this header?
7629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7630 yes:no: )
7631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7635 ac_header_preproc=yes
7637 no:yes:* )
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7652 esac
7653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658 eval "$as_ac_Header=\$ac_header_preproc"
7660 ac_res=`eval echo '${'$as_ac_Header'}'`
7661 { echo "$as_me:$LINENO: result: $ac_res" >&5
7662 echo "${ECHO_T}$ac_res" >&6; }
7665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7666 cat >>confdefs.h <<_ACEOF
7667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7668 _ACEOF
7672 done
7675 for ac_header in net/if.h
7677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 #if HAVE_SYS_SOCKET_H
7691 #include <sys/socket.h>
7692 #endif
7694 #include <$ac_header>
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then
7713 eval "$as_ac_Header=yes"
7714 else
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 eval "$as_ac_Header=no"
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 ac_res=`eval echo '${'$as_ac_Header'}'`
7724 { echo "$as_me:$LINENO: result: $ac_res" >&5
7725 echo "${ECHO_T}$ac_res" >&6; }
7726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7727 cat >>confdefs.h <<_ACEOF
7728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7729 _ACEOF
7733 done
7736 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7737 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7738 if test "${ac_cv_struct_tm+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741 cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h. */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 #include <sys/types.h>
7748 #include <time.h>
7751 main ()
7753 struct tm tm;
7754 int *p = &tm.tm_sec;
7755 return !p;
7757 return 0;
7759 _ACEOF
7760 rm -f conftest.$ac_objext
7761 if { (ac_try="$ac_compile"
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_compile") 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); } && {
7774 test -z "$ac_c_werror_flag" ||
7775 test ! -s conftest.err
7776 } && test -s conftest.$ac_objext; then
7777 ac_cv_struct_tm=time.h
7778 else
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 ac_cv_struct_tm=sys/time.h
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7788 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7789 if test $ac_cv_struct_tm = sys/time.h; then
7791 cat >>confdefs.h <<\_ACEOF
7792 #define TM_IN_SYS_TIME 1
7793 _ACEOF
7797 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7798 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7799 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <sys/types.h>
7809 #include <$ac_cv_struct_tm>
7813 main ()
7815 static struct tm ac_aggr;
7816 if (ac_aggr.tm_zone)
7817 return 0;
7819 return 0;
7821 _ACEOF
7822 rm -f conftest.$ac_objext
7823 if { (ac_try="$ac_compile"
7824 case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7827 esac
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829 (eval "$ac_compile") 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } && {
7836 test -z "$ac_c_werror_flag" ||
7837 test ! -s conftest.err
7838 } && test -s conftest.$ac_objext; then
7839 ac_cv_member_struct_tm_tm_zone=yes
7840 else
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
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 #include <sys/types.h>
7851 #include <$ac_cv_struct_tm>
7855 main ()
7857 static struct tm ac_aggr;
7858 if (sizeof ac_aggr.tm_zone)
7859 return 0;
7861 return 0;
7863 _ACEOF
7864 rm -f conftest.$ac_objext
7865 if { (ac_try="$ac_compile"
7866 case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7869 esac
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_compile") 2>conftest.er1
7872 ac_status=$?
7873 grep -v '^ *+' conftest.er1 >conftest.err
7874 rm -f conftest.er1
7875 cat conftest.err >&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } && {
7878 test -z "$ac_c_werror_flag" ||
7879 test ! -s conftest.err
7880 } && test -s conftest.$ac_objext; then
7881 ac_cv_member_struct_tm_tm_zone=yes
7882 else
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 ac_cv_member_struct_tm_tm_zone=no
7889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7895 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7896 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7898 cat >>confdefs.h <<_ACEOF
7899 #define HAVE_STRUCT_TM_TM_ZONE 1
7900 _ACEOF
7905 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7907 cat >>confdefs.h <<\_ACEOF
7908 #define HAVE_TM_ZONE 1
7909 _ACEOF
7911 else
7912 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7913 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7914 if test "${ac_cv_have_decl_tzname+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 #include <time.h>
7926 main ()
7928 #ifndef tzname
7929 (void) tzname;
7930 #endif
7933 return 0;
7935 _ACEOF
7936 rm -f conftest.$ac_objext
7937 if { (ac_try="$ac_compile"
7938 case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941 esac
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 ac_cv_have_decl_tzname=yes
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_cv_have_decl_tzname=no
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7964 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7965 if test $ac_cv_have_decl_tzname = yes; then
7967 cat >>confdefs.h <<_ACEOF
7968 #define HAVE_DECL_TZNAME 1
7969 _ACEOF
7972 else
7973 cat >>confdefs.h <<_ACEOF
7974 #define HAVE_DECL_TZNAME 0
7975 _ACEOF
7981 { echo "$as_me:$LINENO: checking for tzname" >&5
7982 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7983 if test "${ac_cv_var_tzname+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7992 #include <time.h>
7993 #if !HAVE_DECL_TZNAME
7994 extern char *tzname[];
7995 #endif
7998 main ()
8000 return tzname[0][0];
8002 return 0;
8004 _ACEOF
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (ac_try="$ac_link"
8007 case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_link") 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && {
8019 test -z "$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest$ac_exeext &&
8022 $as_test_x conftest$ac_exeext; then
8023 ac_cv_var_tzname=yes
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 ac_cv_var_tzname=no
8031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8032 conftest$ac_exeext conftest.$ac_ext
8034 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8035 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8036 if test $ac_cv_var_tzname = yes; then
8038 cat >>confdefs.h <<\_ACEOF
8039 #define HAVE_TZNAME 1
8040 _ACEOF
8045 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8046 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8047 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050 cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h. */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 #include <time.h>
8059 main ()
8061 static struct tm ac_aggr;
8062 if (ac_aggr.tm_gmtoff)
8063 return 0;
8065 return 0;
8067 _ACEOF
8068 rm -f conftest.$ac_objext
8069 if { (ac_try="$ac_compile"
8070 case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_compile") 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest.$ac_objext; then
8085 ac_cv_member_struct_tm_tm_gmtoff=yes
8086 else
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h. */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 #include <time.h>
8099 main ()
8101 static struct tm ac_aggr;
8102 if (sizeof ac_aggr.tm_gmtoff)
8103 return 0;
8105 return 0;
8107 _ACEOF
8108 rm -f conftest.$ac_objext
8109 if { (ac_try="$ac_compile"
8110 case "(($ac_try" in
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8113 esac
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_compile") 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && {
8122 test -z "$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8124 } && test -s conftest.$ac_objext; then
8125 ac_cv_member_struct_tm_tm_gmtoff=yes
8126 else
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8130 ac_cv_member_struct_tm_tm_gmtoff=no
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8139 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8140 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8142 cat >>confdefs.h <<\_ACEOF
8143 #define HAVE_TM_GMTOFF 1
8144 _ACEOF
8148 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8149 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8150 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h. */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 $ac_includes_default
8160 #if HAVE_SYS_SOCKET_H
8161 #include <sys/socket.h>
8162 #endif
8163 #if HAVE_NET_IF_H
8164 #include <net/if.h>
8165 #endif
8168 main ()
8170 static struct ifreq ac_aggr;
8171 if (ac_aggr.ifr_flags)
8172 return 0;
8174 return 0;
8176 _ACEOF
8177 rm -f conftest.$ac_objext
8178 if { (ac_try="$ac_compile"
8179 case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_compile") 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest.$ac_objext; then
8194 ac_cv_member_struct_ifreq_ifr_flags=yes
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h. */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8205 $ac_includes_default
8206 #if HAVE_SYS_SOCKET_H
8207 #include <sys/socket.h>
8208 #endif
8209 #if HAVE_NET_IF_H
8210 #include <net/if.h>
8211 #endif
8214 main ()
8216 static struct ifreq ac_aggr;
8217 if (sizeof ac_aggr.ifr_flags)
8218 return 0;
8220 return 0;
8222 _ACEOF
8223 rm -f conftest.$ac_objext
8224 if { (ac_try="$ac_compile"
8225 case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_compile") 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest.$ac_objext; then
8240 ac_cv_member_struct_ifreq_ifr_flags=yes
8241 else
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8245 ac_cv_member_struct_ifreq_ifr_flags=no
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8254 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8255 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8257 cat >>confdefs.h <<_ACEOF
8258 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8259 _ACEOF
8263 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8264 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8265 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h. */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 $ac_includes_default
8275 #if HAVE_SYS_SOCKET_H
8276 #include <sys/socket.h>
8277 #endif
8278 #if HAVE_NET_IF_H
8279 #include <net/if.h>
8280 #endif
8283 main ()
8285 static struct ifreq ac_aggr;
8286 if (ac_aggr.ifr_hwaddr)
8287 return 0;
8289 return 0;
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8310 else
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
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
8329 main ()
8331 static struct ifreq ac_aggr;
8332 if (sizeof ac_aggr.ifr_hwaddr)
8333 return 0;
8335 return 0;
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_hwaddr=yes
8356 else
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8360 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8369 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8370 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8372 cat >>confdefs.h <<_ACEOF
8373 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8374 _ACEOF
8378 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8379 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8380 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8390 #if HAVE_SYS_SOCKET_H
8391 #include <sys/socket.h>
8392 #endif
8393 #if HAVE_NET_IF_H
8394 #include <net/if.h>
8395 #endif
8398 main ()
8400 static struct ifreq ac_aggr;
8401 if (ac_aggr.ifr_netmask)
8402 return 0;
8404 return 0;
8406 _ACEOF
8407 rm -f conftest.$ac_objext
8408 if { (ac_try="$ac_compile"
8409 case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8424 ac_cv_member_struct_ifreq_ifr_netmask=yes
8425 else
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
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
8444 main ()
8446 static struct ifreq ac_aggr;
8447 if (sizeof ac_aggr.ifr_netmask)
8448 return 0;
8450 return 0;
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_netmask=yes
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_cv_member_struct_ifreq_ifr_netmask=no
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8484 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8485 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8487 cat >>confdefs.h <<_ACEOF
8488 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8489 _ACEOF
8493 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8494 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8495 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 else
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h. */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8504 $ac_includes_default
8505 #if HAVE_SYS_SOCKET_H
8506 #include <sys/socket.h>
8507 #endif
8508 #if HAVE_NET_IF_H
8509 #include <net/if.h>
8510 #endif
8513 main ()
8515 static struct ifreq ac_aggr;
8516 if (ac_aggr.ifr_broadaddr)
8517 return 0;
8519 return 0;
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8524 case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_compile") 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } && {
8536 test -z "$ac_c_werror_flag" ||
8537 test ! -s conftest.err
8538 } && test -s conftest.$ac_objext; then
8539 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8540 else
8541 echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
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
8559 main ()
8561 static struct ifreq ac_aggr;
8562 if (sizeof ac_aggr.ifr_broadaddr)
8563 return 0;
8565 return 0;
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_broadaddr=yes
8586 else
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8599 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8600 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8602 cat >>confdefs.h <<_ACEOF
8603 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8604 _ACEOF
8608 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8609 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8610 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 $ac_includes_default
8620 #if HAVE_SYS_SOCKET_H
8621 #include <sys/socket.h>
8622 #endif
8623 #if HAVE_NET_IF_H
8624 #include <net/if.h>
8625 #endif
8628 main ()
8630 static struct ifreq ac_aggr;
8631 if (ac_aggr.ifr_addr)
8632 return 0;
8634 return 0;
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8639 case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_compile") 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest.$ac_objext; then
8654 ac_cv_member_struct_ifreq_ifr_addr=yes
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
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
8674 main ()
8676 static struct ifreq ac_aggr;
8677 if (sizeof ac_aggr.ifr_addr)
8678 return 0;
8680 return 0;
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_addr=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_cv_member_struct_ifreq_ifr_addr=no
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8714 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8715 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8717 cat >>confdefs.h <<_ACEOF
8718 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8719 _ACEOF
8726 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8727 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8728 if test "$ac_cv_prog_cc_c89" != no; then
8729 { echo "$as_me:$LINENO: result: yes" >&5
8730 echo "${ECHO_T}yes" >&6; }
8732 cat >>confdefs.h <<\_ACEOF
8733 #define PROTOTYPES 1
8734 _ACEOF
8737 cat >>confdefs.h <<\_ACEOF
8738 #define __PROTOTYPES 1
8739 _ACEOF
8741 else
8742 { echo "$as_me:$LINENO: result: no" >&5
8743 echo "${ECHO_T}no" >&6; }
8746 { echo "$as_me:$LINENO: checking for working volatile" >&5
8747 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8748 if test "${ac_cv_c_volatile+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751 cat >conftest.$ac_ext <<_ACEOF
8752 /* confdefs.h. */
8753 _ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8759 main ()
8762 volatile int x;
8763 int * volatile y = (int *) 0;
8764 return !x && !y;
8766 return 0;
8768 _ACEOF
8769 rm -f conftest.$ac_objext
8770 if { (ac_try="$ac_compile"
8771 case "(($ac_try" in
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8774 esac
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_compile") 2>conftest.er1
8777 ac_status=$?
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } && {
8783 test -z "$ac_c_werror_flag" ||
8784 test ! -s conftest.err
8785 } && test -s conftest.$ac_objext; then
8786 ac_cv_c_volatile=yes
8787 else
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 ac_cv_c_volatile=no
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8797 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8798 if test $ac_cv_c_volatile = no; then
8800 cat >>confdefs.h <<\_ACEOF
8801 #define volatile
8802 _ACEOF
8806 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8807 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8808 if test "${ac_cv_c_const+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811 cat >conftest.$ac_ext <<_ACEOF
8812 /* confdefs.h. */
8813 _ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8819 main ()
8821 /* FIXME: Include the comments suggested by Paul. */
8822 #ifndef __cplusplus
8823 /* Ultrix mips cc rejects this. */
8824 typedef int charset[2];
8825 const charset cs;
8826 /* SunOS 4.1.1 cc rejects this. */
8827 char const *const *pcpcc;
8828 char **ppc;
8829 /* NEC SVR4.0.2 mips cc rejects this. */
8830 struct point {int x, y;};
8831 static struct point const zero = {0,0};
8832 /* AIX XL C 1.02.0.0 rejects this.
8833 It does not let you subtract one const X* pointer from another in
8834 an arm of an if-expression whose if-part is not a constant
8835 expression */
8836 const char *g = "string";
8837 pcpcc = &g + (g ? g-g : 0);
8838 /* HPUX 7.0 cc rejects these. */
8839 ++pcpcc;
8840 ppc = (char**) pcpcc;
8841 pcpcc = (char const *const *) ppc;
8842 { /* SCO 3.2v4 cc rejects this. */
8843 char *t;
8844 char const *s = 0 ? (char *) 0 : (char const *) 0;
8846 *t++ = 0;
8847 if (s) return 0;
8849 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8850 int x[] = {25, 17};
8851 const int *foo = &x[0];
8852 ++foo;
8854 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8855 typedef const int *iptr;
8856 iptr p = 0;
8857 ++p;
8859 { /* AIX XL C 1.02.0.0 rejects this saying
8860 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8861 struct s { int j; const int *ap[3]; };
8862 struct s *b; b->j = 5;
8864 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8865 const int foo = 10;
8866 if (!foo) return 0;
8868 return !cs[0] && !zero.x;
8869 #endif
8872 return 0;
8874 _ACEOF
8875 rm -f conftest.$ac_objext
8876 if { (ac_try="$ac_compile"
8877 case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_compile") 2>conftest.er1
8883 ac_status=$?
8884 grep -v '^ *+' conftest.er1 >conftest.err
8885 rm -f conftest.er1
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest.$ac_objext; then
8892 ac_cv_c_const=yes
8893 else
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_c_const=no
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8903 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8904 if test $ac_cv_c_const = no; then
8906 cat >>confdefs.h <<\_ACEOF
8907 #define const
8908 _ACEOF
8912 { echo "$as_me:$LINENO: checking for void * support" >&5
8913 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8914 if test "${emacs_cv_void_star+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8925 main ()
8927 void * foo;
8929 return 0;
8931 _ACEOF
8932 rm -f conftest.$ac_objext
8933 if { (ac_try="$ac_compile"
8934 case "(($ac_try" in
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8937 esac
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939 (eval "$ac_compile") 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && {
8946 test -z "$ac_c_werror_flag" ||
8947 test ! -s conftest.err
8948 } && test -s conftest.$ac_objext; then
8949 emacs_cv_void_star=yes
8950 else
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8954 emacs_cv_void_star=no
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8960 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8961 if test $emacs_cv_void_star = yes; then
8962 cat >>confdefs.h <<\_ACEOF
8963 #define POINTER_TYPE void
8964 _ACEOF
8966 else
8967 cat >>confdefs.h <<\_ACEOF
8968 #define POINTER_TYPE char
8969 _ACEOF
8977 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8978 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8979 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8980 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983 cat >conftest.make <<\_ACEOF
8984 SHELL = /bin/sh
8985 all:
8986 @echo '@@@%%%=$(MAKE)=@@@%%%'
8987 _ACEOF
8988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8989 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8990 *@@@%%%=?*=@@@%%%*)
8991 eval ac_cv_prog_make_${ac_make}_set=yes;;
8993 eval ac_cv_prog_make_${ac_make}_set=no;;
8994 esac
8995 rm -f conftest.make
8997 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8998 { echo "$as_me:$LINENO: result: yes" >&5
8999 echo "${ECHO_T}yes" >&6; }
9000 SET_MAKE=
9001 else
9002 { echo "$as_me:$LINENO: result: no" >&5
9003 echo "${ECHO_T}no" >&6; }
9004 SET_MAKE="MAKE=${MAKE-make}"
9008 { echo "$as_me:$LINENO: checking for long file names" >&5
9009 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9010 if test "${ac_cv_sys_long_file_names+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 ac_cv_sys_long_file_names=yes
9014 # Test for long file names in all the places we know might matter:
9015 # . the current directory, where building will happen
9016 # $prefix/lib where we will be installing things
9017 # $exec_prefix/lib likewise
9018 # $TMPDIR if set, where it might want to write temporary files
9019 # /tmp where it might want to write temporary files
9020 # /var/tmp likewise
9021 # /usr/tmp likewise
9022 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9023 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9024 # in the usual case where exec_prefix is '${prefix}'.
9025 case $ac_dir in #(
9026 . | /* | ?:[\\/]*) ;; #(
9027 *) continue;;
9028 esac
9029 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9030 ac_xdir=$ac_dir/cf$$
9031 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9032 ac_tf1=$ac_xdir/conftest9012345
9033 ac_tf2=$ac_xdir/conftest9012346
9034 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9035 ac_cv_sys_long_file_names=no
9036 rm -f -r "$ac_xdir" 2>/dev/null
9037 test $ac_cv_sys_long_file_names = no && break
9038 done
9040 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9041 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9042 if test $ac_cv_sys_long_file_names = yes; then
9044 cat >>confdefs.h <<\_ACEOF
9045 #define HAVE_LONG_FILE_NAMES 1
9046 _ACEOF
9051 #### Choose a window system.
9053 { echo "$as_me:$LINENO: checking for X" >&5
9054 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9057 # Check whether --with-x was given.
9058 if test "${with_x+set}" = set; then
9059 withval=$with_x;
9062 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9063 if test "x$with_x" = xno; then
9064 # The user explicitly disabled X.
9065 have_x=disabled
9066 else
9067 case $x_includes,$x_libraries in #(
9068 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9069 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9070 { (exit 1); exit 1; }; };; #(
9071 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074 # One or both of the vars are not set, and there is no cached value.
9075 ac_x_includes=no ac_x_libraries=no
9076 rm -f -r conftest.dir
9077 if mkdir conftest.dir; then
9078 cd conftest.dir
9079 cat >Imakefile <<'_ACEOF'
9080 incroot:
9081 @echo incroot='${INCROOT}'
9082 usrlibdir:
9083 @echo usrlibdir='${USRLIBDIR}'
9084 libdir:
9085 @echo libdir='${LIBDIR}'
9086 _ACEOF
9087 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9088 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9089 for ac_var in incroot usrlibdir libdir; do
9090 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9091 done
9092 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9093 for ac_extension in a so sl; do
9094 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9095 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9096 ac_im_usrlibdir=$ac_im_libdir; break
9098 done
9099 # Screen out bogus values from the imake configuration. They are
9100 # bogus both because they are the default anyway, and because
9101 # using them would break gcc on systems where it needs fixed includes.
9102 case $ac_im_incroot in
9103 /usr/include) ac_x_includes= ;;
9104 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9105 esac
9106 case $ac_im_usrlibdir in
9107 /usr/lib | /lib) ;;
9108 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9109 esac
9111 cd ..
9112 rm -f -r conftest.dir
9115 # Standard set of common directories for X headers.
9116 # Check X11 before X11Rn because it is often a symlink to the current release.
9117 ac_x_header_dirs='
9118 /usr/X11/include
9119 /usr/X11R6/include
9120 /usr/X11R5/include
9121 /usr/X11R4/include
9123 /usr/include/X11
9124 /usr/include/X11R6
9125 /usr/include/X11R5
9126 /usr/include/X11R4
9128 /usr/local/X11/include
9129 /usr/local/X11R6/include
9130 /usr/local/X11R5/include
9131 /usr/local/X11R4/include
9133 /usr/local/include/X11
9134 /usr/local/include/X11R6
9135 /usr/local/include/X11R5
9136 /usr/local/include/X11R4
9138 /usr/X386/include
9139 /usr/x386/include
9140 /usr/XFree86/include/X11
9142 /usr/include
9143 /usr/local/include
9144 /usr/unsupported/include
9145 /usr/athena/include
9146 /usr/local/x11r5/include
9147 /usr/lpp/Xamples/include
9149 /usr/openwin/include
9150 /usr/openwin/share/include'
9152 if test "$ac_x_includes" = no; then
9153 # Guess where to find include files, by looking for Xlib.h.
9154 # First, try using that file with no special directory specified.
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 #include <X11/Xlib.h>
9162 _ACEOF
9163 if { (ac_try="$ac_cpp conftest.$ac_ext"
9164 case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9167 esac
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } >/dev/null && {
9176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 }; then
9179 # We can compile using X headers with no special include directory.
9180 ac_x_includes=
9181 else
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9185 for ac_dir in $ac_x_header_dirs; do
9186 if test -r "$ac_dir/X11/Xlib.h"; then
9187 ac_x_includes=$ac_dir
9188 break
9190 done
9193 rm -f conftest.err conftest.$ac_ext
9194 fi # $ac_x_includes = no
9196 if test "$ac_x_libraries" = no; then
9197 # Check for the libraries.
9198 # See if we find them without any special options.
9199 # Don't add to $LIBS permanently.
9200 ac_save_LIBS=$LIBS
9201 LIBS="-lX11 $LIBS"
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <X11/Xlib.h>
9210 main ()
9212 XrmInitialize ()
9214 return 0;
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (ac_try="$ac_link"
9219 case "(($ac_try" in
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9222 esac
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_link") 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } && {
9231 test -z "$ac_c_werror_flag" ||
9232 test ! -s conftest.err
9233 } && test -s conftest$ac_exeext &&
9234 $as_test_x conftest$ac_exeext; then
9235 LIBS=$ac_save_LIBS
9236 # We can link X programs with no special library path.
9237 ac_x_libraries=
9238 else
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9242 LIBS=$ac_save_LIBS
9243 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9245 # Don't even attempt the hair of trying to link an X program!
9246 for ac_extension in a so sl; do
9247 if test -r "$ac_dir/libX11.$ac_extension"; then
9248 ac_x_libraries=$ac_dir
9249 break 2
9251 done
9252 done
9255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9256 conftest$ac_exeext conftest.$ac_ext
9257 fi # $ac_x_libraries = no
9259 case $ac_x_includes,$ac_x_libraries in #(
9260 no,* | *,no | *\'*)
9261 # Didn't find X, or a directory has "'" in its name.
9262 ac_cv_have_x="have_x=no";; #(
9264 # Record where we found X for the cache.
9265 ac_cv_have_x="have_x=yes\
9266 ac_x_includes='$ac_x_includes'\
9267 ac_x_libraries='$ac_x_libraries'"
9268 esac
9270 ;; #(
9271 *) have_x=yes;;
9272 esac
9273 eval "$ac_cv_have_x"
9274 fi # $with_x != no
9276 if test "$have_x" != yes; then
9277 { echo "$as_me:$LINENO: result: $have_x" >&5
9278 echo "${ECHO_T}$have_x" >&6; }
9279 no_x=yes
9280 else
9281 # If each of the values was on the command line, it overrides each guess.
9282 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9283 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9284 # Update the cache value to reflect the command line values.
9285 ac_cv_have_x="have_x=yes\
9286 ac_x_includes='$x_includes'\
9287 ac_x_libraries='$x_libraries'"
9288 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9289 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9292 if test "$no_x" = yes; then
9293 window_system=none
9294 else
9295 window_system=x11
9298 if test "${x_libraries}" != NONE; then
9299 if test -n "${x_libraries}"; then
9300 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9301 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9303 x_default_search_path=""
9304 x_search_path=${x_libraries}
9305 if test -z "${x_search_path}"; then
9306 x_search_path=/usr/lib
9308 for x_library in `echo ${x_search_path}: | \
9309 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9310 x_search_path="\
9311 ${x_library}/X11/%L/%T/%N%C%S:\
9312 ${x_library}/X11/%l/%T/%N%C%S:\
9313 ${x_library}/X11/%T/%N%C%S:\
9314 ${x_library}/X11/%L/%T/%N%S:\
9315 ${x_library}/X11/%l/%T/%N%S:\
9316 ${x_library}/X11/%T/%N%S"
9317 if test x"${x_default_search_path}" = x; then
9318 x_default_search_path=${x_search_path}
9319 else
9320 x_default_search_path="${x_search_path}:${x_default_search_path}"
9322 done
9324 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9325 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9328 if test x"${x_includes}" = x; then
9329 bitmapdir=/usr/include/X11/bitmaps
9330 else
9331 # accumulate include directories that have X11 bitmap subdirectories
9332 bmd_acc="dummyval"
9333 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9334 if test -d "${bmd}/X11/bitmaps"; then
9335 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9337 if test -d "${bmd}/bitmaps"; then
9338 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9340 done
9341 if test ${bmd_acc} != "dummyval"; then
9342 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9346 HAVE_CARBON=no
9347 if test "${with_carbon}" != no; then
9348 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9349 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9350 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9351 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9355 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9356 else
9357 # Is the header compilable?
9358 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9359 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 $ac_includes_default
9367 #include <Carbon/Carbon.h>
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9371 case "(($ac_try" in
9372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9374 esac
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_compile") 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest.$ac_objext; then
9386 ac_header_compiler=yes
9387 else
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_header_compiler=no
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9396 echo "${ECHO_T}$ac_header_compiler" >&6; }
9398 # Is the header present?
9399 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9400 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 #include <Carbon/Carbon.h>
9408 _ACEOF
9409 if { (ac_try="$ac_cpp conftest.$ac_ext"
9410 case "(($ac_try" in
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9413 esac
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9416 ac_status=$?
9417 grep -v '^ *+' conftest.er1 >conftest.err
9418 rm -f conftest.er1
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } >/dev/null && {
9422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9423 test ! -s conftest.err
9424 }; then
9425 ac_header_preproc=yes
9426 else
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9430 ac_header_preproc=no
9433 rm -f conftest.err conftest.$ac_ext
9434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9435 echo "${ECHO_T}$ac_header_preproc" >&6; }
9437 # So? What about this header?
9438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9439 yes:no: )
9440 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9441 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9442 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9443 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9444 ac_header_preproc=yes
9446 no:yes:* )
9447 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9448 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9454 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9456 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9458 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9461 esac
9462 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9463 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9464 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9469 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9470 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9473 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9474 HAVE_CARBON=yes
9479 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9480 if test "${with_carbon+set}" != set \
9481 && test "${carbon_appdir_x+set}" != set; then
9482 for var in with_x with_x_toolkit with_gtk with_xim \
9483 with_xpm with_jpeg with_tiff with_gif with_png; do
9484 if eval test \"\${$var+set}\" = set; then
9485 HAVE_CARBON=no
9486 break
9488 done
9491 if test "${HAVE_CARBON}" = yes; then
9492 window_system=mac
9495 case "${window_system}" in
9496 x11 )
9497 HAVE_X_WINDOWS=yes
9498 HAVE_X11=yes
9499 case "${with_x_toolkit}" in
9500 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9501 motif ) USE_X_TOOLKIT=MOTIF ;;
9502 gtk ) with_gtk=yes
9503 USE_X_TOOLKIT=none ;;
9504 no ) USE_X_TOOLKIT=none ;;
9505 * ) USE_X_TOOLKIT=maybe ;;
9506 esac
9508 mac | none )
9509 HAVE_X_WINDOWS=no
9510 HAVE_X11=no
9511 USE_X_TOOLKIT=none
9513 esac
9515 ### If we're using X11, we should use the X menu package.
9516 HAVE_MENUS=no
9517 case ${HAVE_X11} in
9518 yes ) HAVE_MENUS=yes ;;
9519 esac
9521 if test "${opsys}" = "hpux9"; then
9522 case "${x_libraries}" in
9523 *X11R4* )
9524 opsysfile="s/hpux9-x11r4.h"
9526 esac
9529 if test "${opsys}" = "hpux9shr"; then
9530 case "${x_libraries}" in
9531 *X11R4* )
9532 opsysfile="s/hpux9shxr4.h"
9534 esac
9537 ### Compute the unexec source name from the object name.
9538 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9540 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9541 # Assume not, until told otherwise.
9542 GNU_MALLOC=yes
9543 doug_lea_malloc=yes
9544 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9545 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9546 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h. */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9557 #define malloc_get_state innocuous_malloc_get_state
9559 /* System header to define __stub macros and hopefully few prototypes,
9560 which can conflict with char malloc_get_state (); below.
9561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9562 <limits.h> exists even on freestanding compilers. */
9564 #ifdef __STDC__
9565 # include <limits.h>
9566 #else
9567 # include <assert.h>
9568 #endif
9570 #undef malloc_get_state
9572 /* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9575 #ifdef __cplusplus
9576 extern "C"
9577 #endif
9578 char malloc_get_state ();
9579 /* The GNU C library defines this for functions which it implements
9580 to always fail with ENOSYS. Some functions are actually named
9581 something starting with __ and the normal name is an alias. */
9582 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9583 choke me
9584 #endif
9587 main ()
9589 return malloc_get_state ();
9591 return 0;
9593 _ACEOF
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (ac_try="$ac_link"
9596 case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599 esac
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_link") 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest$ac_exeext &&
9611 $as_test_x conftest$ac_exeext; then
9612 ac_cv_func_malloc_get_state=yes
9613 else
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_cv_func_malloc_get_state=no
9620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621 conftest$ac_exeext conftest.$ac_ext
9623 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9624 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9625 if test $ac_cv_func_malloc_get_state = yes; then
9627 else
9628 doug_lea_malloc=no
9631 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9632 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9633 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h. */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9644 #define malloc_set_state innocuous_malloc_set_state
9646 /* System header to define __stub macros and hopefully few prototypes,
9647 which can conflict with char malloc_set_state (); below.
9648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9649 <limits.h> exists even on freestanding compilers. */
9651 #ifdef __STDC__
9652 # include <limits.h>
9653 #else
9654 # include <assert.h>
9655 #endif
9657 #undef malloc_set_state
9659 /* Override any GCC internal prototype to avoid an error.
9660 Use char because int might match the return type of a GCC
9661 builtin and then its argument prototype would still apply. */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 char malloc_set_state ();
9666 /* The GNU C library defines this for functions which it implements
9667 to always fail with ENOSYS. Some functions are actually named
9668 something starting with __ and the normal name is an alias. */
9669 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9670 choke me
9671 #endif
9674 main ()
9676 return malloc_set_state ();
9678 return 0;
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9683 case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9699 ac_cv_func_malloc_set_state=yes
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_cv_func_malloc_set_state=no
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708 conftest$ac_exeext conftest.$ac_ext
9710 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9711 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9712 if test $ac_cv_func_malloc_set_state = yes; then
9714 else
9715 doug_lea_malloc=no
9718 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9719 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9720 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 extern void (* __after_morecore_hook)();
9731 main ()
9733 __after_morecore_hook = 0
9735 return 0;
9737 _ACEOF
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (ac_try="$ac_link"
9740 case "(($ac_try" in
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9743 esac
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_link") 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && {
9752 test -z "$ac_c_werror_flag" ||
9753 test ! -s conftest.err
9754 } && test -s conftest$ac_exeext &&
9755 $as_test_x conftest$ac_exeext; then
9756 emacs_cv_var___after_morecore_hook=yes
9757 else
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 emacs_cv_var___after_morecore_hook=no
9764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765 conftest$ac_exeext conftest.$ac_ext
9767 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9768 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9769 if test $emacs_cv_var___after_morecore_hook = no; then
9770 doug_lea_malloc=no
9772 if test "${system_malloc}" = "yes"; then
9773 GNU_MALLOC=no
9774 GNU_MALLOC_reason="
9775 (The GNU allocators don't work with this system configuration.)"
9777 if test "$doug_lea_malloc" = "yes" ; then
9778 if test "$GNU_MALLOC" = yes ; then
9779 GNU_MALLOC_reason="
9780 (Using Doug Lea's new malloc from the GNU C Library.)"
9783 cat >>confdefs.h <<\_ACEOF
9784 #define DOUG_LEA_MALLOC 1
9785 _ACEOF
9789 if test x"${REL_ALLOC}" = x; then
9790 REL_ALLOC=${GNU_MALLOC}
9796 for ac_header in stdlib.h unistd.h
9798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 ac_res=`eval echo '${'$as_ac_Header'}'`
9806 { echo "$as_me:$LINENO: result: $ac_res" >&5
9807 echo "${ECHO_T}$ac_res" >&6; }
9808 else
9809 # Is the header compilable?
9810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9812 cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h. */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 $ac_includes_default
9819 #include <$ac_header>
9820 _ACEOF
9821 rm -f conftest.$ac_objext
9822 if { (ac_try="$ac_compile"
9823 case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_compile") 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } && {
9835 test -z "$ac_c_werror_flag" ||
9836 test ! -s conftest.err
9837 } && test -s conftest.$ac_objext; then
9838 ac_header_compiler=yes
9839 else
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_header_compiler=no
9846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9848 echo "${ECHO_T}$ac_header_compiler" >&6; }
9850 # Is the header present?
9851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h. */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 #include <$ac_header>
9860 _ACEOF
9861 if { (ac_try="$ac_cpp conftest.$ac_ext"
9862 case "(($ac_try" in
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9868 ac_status=$?
9869 grep -v '^ *+' conftest.er1 >conftest.err
9870 rm -f conftest.er1
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } >/dev/null && {
9874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9875 test ! -s conftest.err
9876 }; then
9877 ac_header_preproc=yes
9878 else
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_header_preproc=no
9885 rm -f conftest.err conftest.$ac_ext
9886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9887 echo "${ECHO_T}$ac_header_preproc" >&6; }
9889 # So? What about this header?
9890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9891 yes:no: )
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9896 ac_header_preproc=yes
9898 no:yes:* )
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9913 esac
9914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919 eval "$as_ac_Header=\$ac_header_preproc"
9921 ac_res=`eval echo '${'$as_ac_Header'}'`
9922 { echo "$as_me:$LINENO: result: $ac_res" >&5
9923 echo "${ECHO_T}$ac_res" >&6; }
9926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9927 cat >>confdefs.h <<_ACEOF
9928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9929 _ACEOF
9933 done
9936 for ac_func in getpagesize
9938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944 cat >conftest.$ac_ext <<_ACEOF
9945 /* confdefs.h. */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9952 #define $ac_func innocuous_$ac_func
9954 /* System header to define __stub macros and hopefully few prototypes,
9955 which can conflict with char $ac_func (); below.
9956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9957 <limits.h> exists even on freestanding compilers. */
9959 #ifdef __STDC__
9960 # include <limits.h>
9961 #else
9962 # include <assert.h>
9963 #endif
9965 #undef $ac_func
9967 /* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9970 #ifdef __cplusplus
9971 extern "C"
9972 #endif
9973 char $ac_func ();
9974 /* The GNU C library defines this for functions which it implements
9975 to always fail with ENOSYS. Some functions are actually named
9976 something starting with __ and the normal name is an alias. */
9977 #if defined __stub_$ac_func || defined __stub___$ac_func
9978 choke me
9979 #endif
9982 main ()
9984 return $ac_func ();
9986 return 0;
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (ac_try="$ac_link"
9991 case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994 esac
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_link") 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } && {
10003 test -z "$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 } && test -s conftest$ac_exeext &&
10006 $as_test_x conftest$ac_exeext; then
10007 eval "$as_ac_var=yes"
10008 else
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 eval "$as_ac_var=no"
10015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016 conftest$ac_exeext conftest.$ac_ext
10018 ac_res=`eval echo '${'$as_ac_var'}'`
10019 { echo "$as_me:$LINENO: result: $ac_res" >&5
10020 echo "${ECHO_T}$ac_res" >&6; }
10021 if test `eval echo '${'$as_ac_var'}'` = yes; then
10022 cat >>confdefs.h <<_ACEOF
10023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10024 _ACEOF
10027 done
10029 { echo "$as_me:$LINENO: checking for working mmap" >&5
10030 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10031 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034 if test "$cross_compiling" = yes; then
10035 ac_cv_func_mmap_fixed_mapped=no
10036 else
10037 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h. */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10043 $ac_includes_default
10044 /* malloc might have been renamed as rpl_malloc. */
10045 #undef malloc
10047 /* Thanks to Mike Haertel and Jim Avera for this test.
10048 Here is a matrix of mmap possibilities:
10049 mmap private not fixed
10050 mmap private fixed at somewhere currently unmapped
10051 mmap private fixed at somewhere already mapped
10052 mmap shared not fixed
10053 mmap shared fixed at somewhere currently unmapped
10054 mmap shared fixed at somewhere already mapped
10055 For private mappings, we should verify that changes cannot be read()
10056 back from the file, nor mmap's back from the file at a different
10057 address. (There have been systems where private was not correctly
10058 implemented like the infamous i386 svr4.0, and systems where the
10059 VM page cache was not coherent with the file system buffer cache
10060 like early versions of FreeBSD and possibly contemporary NetBSD.)
10061 For shared mappings, we should conversely verify that changes get
10062 propagated back to all the places they're supposed to be.
10064 Grep wants private fixed already mapped.
10065 The main things grep needs to know about mmap are:
10066 * does it exist and is it safe to write into the mmap'd area
10067 * how to use it (BSD variants) */
10069 #include <fcntl.h>
10070 #include <sys/mman.h>
10072 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10073 char *malloc ();
10074 #endif
10076 /* This mess was copied from the GNU getpagesize.h. */
10077 #ifndef HAVE_GETPAGESIZE
10078 /* Assume that all systems that can run configure have sys/param.h. */
10079 # ifndef HAVE_SYS_PARAM_H
10080 # define HAVE_SYS_PARAM_H 1
10081 # endif
10083 # ifdef _SC_PAGESIZE
10084 # define getpagesize() sysconf(_SC_PAGESIZE)
10085 # else /* no _SC_PAGESIZE */
10086 # ifdef HAVE_SYS_PARAM_H
10087 # include <sys/param.h>
10088 # ifdef EXEC_PAGESIZE
10089 # define getpagesize() EXEC_PAGESIZE
10090 # else /* no EXEC_PAGESIZE */
10091 # ifdef NBPG
10092 # define getpagesize() NBPG * CLSIZE
10093 # ifndef CLSIZE
10094 # define CLSIZE 1
10095 # endif /* no CLSIZE */
10096 # else /* no NBPG */
10097 # ifdef NBPC
10098 # define getpagesize() NBPC
10099 # else /* no NBPC */
10100 # ifdef PAGESIZE
10101 # define getpagesize() PAGESIZE
10102 # endif /* PAGESIZE */
10103 # endif /* no NBPC */
10104 # endif /* no NBPG */
10105 # endif /* no EXEC_PAGESIZE */
10106 # else /* no HAVE_SYS_PARAM_H */
10107 # define getpagesize() 8192 /* punt totally */
10108 # endif /* no HAVE_SYS_PARAM_H */
10109 # endif /* no _SC_PAGESIZE */
10111 #endif /* no HAVE_GETPAGESIZE */
10114 main ()
10116 char *data, *data2, *data3;
10117 int i, pagesize;
10118 int fd;
10120 pagesize = getpagesize ();
10122 /* First, make a file with some known garbage in it. */
10123 data = (char *) malloc (pagesize);
10124 if (!data)
10125 return 1;
10126 for (i = 0; i < pagesize; ++i)
10127 *(data + i) = rand ();
10128 umask (0);
10129 fd = creat ("conftest.mmap", 0600);
10130 if (fd < 0)
10131 return 1;
10132 if (write (fd, data, pagesize) != pagesize)
10133 return 1;
10134 close (fd);
10136 /* Next, try to mmap the file at a fixed address which already has
10137 something else allocated at it. If we can, also make sure that
10138 we see the same garbage. */
10139 fd = open ("conftest.mmap", O_RDWR);
10140 if (fd < 0)
10141 return 1;
10142 data2 = (char *) malloc (2 * pagesize);
10143 if (!data2)
10144 return 1;
10145 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10146 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10147 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10148 return 1;
10149 for (i = 0; i < pagesize; ++i)
10150 if (*(data + i) != *(data2 + i))
10151 return 1;
10153 /* Finally, make sure that changes to the mapped area do not
10154 percolate back to the file as seen by read(). (This is a bug on
10155 some variants of i386 svr4.0.) */
10156 for (i = 0; i < pagesize; ++i)
10157 *(data2 + i) = *(data2 + i) + 1;
10158 data3 = (char *) malloc (pagesize);
10159 if (!data3)
10160 return 1;
10161 if (read (fd, data3, pagesize) != pagesize)
10162 return 1;
10163 for (i = 0; i < pagesize; ++i)
10164 if (*(data + i) != *(data3 + i))
10165 return 1;
10166 close (fd);
10167 return 0;
10169 _ACEOF
10170 rm -f conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_link") 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10181 { (case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_try") 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10190 ac_cv_func_mmap_fixed_mapped=yes
10191 else
10192 echo "$as_me: program exited with status $ac_status" >&5
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ( exit $ac_status )
10197 ac_cv_func_mmap_fixed_mapped=no
10199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10204 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10205 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10206 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_MMAP 1
10210 _ACEOF
10213 rm -f conftest.mmap
10215 if test $use_mmap_for_buffers = yes; then
10216 REL_ALLOC=no
10219 LIBS="$libsrc_libs $LIBS"
10222 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10223 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10224 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227 ac_check_lib_save_LIBS=$LIBS
10228 LIBS="-ldnet $LIBS"
10229 cat >conftest.$ac_ext <<_ACEOF
10230 /* confdefs.h. */
10231 _ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h. */
10236 /* Override any GCC internal prototype to avoid an error.
10237 Use char because int might match the return type of a GCC
10238 builtin and then its argument prototype would still apply. */
10239 #ifdef __cplusplus
10240 extern "C"
10241 #endif
10242 char dnet_ntoa ();
10244 main ()
10246 return dnet_ntoa ();
10248 return 0;
10250 _ACEOF
10251 rm -f conftest.$ac_objext conftest$ac_exeext
10252 if { (ac_try="$ac_link"
10253 case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10256 esac
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_link") 2>conftest.er1
10259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } && {
10265 test -z "$ac_c_werror_flag" ||
10266 test ! -s conftest.err
10267 } && test -s conftest$ac_exeext &&
10268 $as_test_x conftest$ac_exeext; then
10269 ac_cv_lib_dnet_dnet_ntoa=yes
10270 else
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_cv_lib_dnet_dnet_ntoa=no
10277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10278 conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10281 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10282 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10283 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10284 cat >>confdefs.h <<_ACEOF
10285 #define HAVE_LIBDNET 1
10286 _ACEOF
10288 LIBS="-ldnet $LIBS"
10293 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10294 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10295 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298 ac_check_lib_save_LIBS=$LIBS
10299 LIBS="-lXbsd $LIBS"
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10309 main ()
10311 return main ();
10313 return 0;
10315 _ACEOF
10316 rm -f conftest.$ac_objext conftest$ac_exeext
10317 if { (ac_try="$ac_link"
10318 case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10321 esac
10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323 (eval "$ac_link") 2>conftest.er1
10324 ac_status=$?
10325 grep -v '^ *+' conftest.er1 >conftest.err
10326 rm -f conftest.er1
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } && {
10330 test -z "$ac_c_werror_flag" ||
10331 test ! -s conftest.err
10332 } && test -s conftest$ac_exeext &&
10333 $as_test_x conftest$ac_exeext; then
10334 ac_cv_lib_Xbsd_main=yes
10335 else
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_lib_Xbsd_main=no
10342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10343 conftest$ac_exeext conftest.$ac_ext
10344 LIBS=$ac_check_lib_save_LIBS
10346 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10347 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10348 if test $ac_cv_lib_Xbsd_main = yes; then
10349 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10354 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10355 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10356 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lpthreads $LIBS"
10361 cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h. */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10368 /* Override any GCC internal prototype to avoid an error.
10369 Use char because int might match the return type of a GCC
10370 builtin and then its argument prototype would still apply. */
10371 #ifdef __cplusplus
10372 extern "C"
10373 #endif
10374 char cma_open ();
10376 main ()
10378 return cma_open ();
10380 return 0;
10382 _ACEOF
10383 rm -f conftest.$ac_objext conftest$ac_exeext
10384 if { (ac_try="$ac_link"
10385 case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10388 esac
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390 (eval "$ac_link") 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && {
10397 test -z "$ac_c_werror_flag" ||
10398 test ! -s conftest.err
10399 } && test -s conftest$ac_exeext &&
10400 $as_test_x conftest$ac_exeext; then
10401 ac_cv_lib_pthreads_cma_open=yes
10402 else
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 ac_cv_lib_pthreads_cma_open=no
10409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10410 conftest$ac_exeext conftest.$ac_ext
10411 LIBS=$ac_check_lib_save_LIBS
10413 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10414 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10415 if test $ac_cv_lib_pthreads_cma_open = yes; then
10416 cat >>confdefs.h <<_ACEOF
10417 #define HAVE_LIBPTHREADS 1
10418 _ACEOF
10420 LIBS="-lpthreads $LIBS"
10425 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10426 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10427 if test -d /usr/X386/include; then
10428 HAVE_XFREE386=yes
10429 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10430 else
10431 HAVE_XFREE386=no
10433 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10434 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10437 case ${host_os} in
10438 aix*)
10439 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10440 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10441 if test "${gdb_cv_bigtoc+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10445 case $GCC in
10446 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10447 *) gdb_cv_bigtoc=-bbigtoc ;;
10448 esac
10450 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10451 cat >conftest.$ac_ext <<_ACEOF
10452 /* confdefs.h. */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10459 main ()
10461 int i;
10463 return 0;
10465 _ACEOF
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (ac_try="$ac_link"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_link") 2>conftest.er1
10474 ac_status=$?
10475 grep -v '^ *+' conftest.er1 >conftest.err
10476 rm -f conftest.er1
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && {
10480 test -z "$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 } && test -s conftest$ac_exeext &&
10483 $as_test_x conftest$ac_exeext; then
10485 else
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 gdb_cv_bigtoc=
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493 conftest$ac_exeext conftest.$ac_ext
10496 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10497 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10499 esac
10501 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10502 # used for the tests that follow. We set them back to REAL_CFLAGS and
10503 # REAL_CPPFLAGS later on.
10505 REAL_CPPFLAGS="$CPPFLAGS"
10507 if test "${HAVE_X11}" = "yes"; then
10508 DEFS="$C_SWITCH_X_SITE $DEFS"
10509 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10510 LIBS="$LIBX $LIBS"
10511 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10512 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10514 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10515 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10516 # but it's more convenient here to set LD_RUN_PATH
10517 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10518 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10519 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10520 export LD_RUN_PATH
10523 if test "${opsys}" = "gnu-linux"; then
10524 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10525 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10534 main ()
10536 XOpenDisplay ("foo");
10538 return 0;
10540 _ACEOF
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_link") 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } && {
10555 test -z "$ac_c_werror_flag" ||
10556 test ! -s conftest.err
10557 } && test -s conftest$ac_exeext &&
10558 $as_test_x conftest$ac_exeext; then
10559 xlinux_first_failure=no
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 xlinux_first_failure=yes
10567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10568 conftest$ac_exeext conftest.$ac_ext
10569 if test "${xlinux_first_failure}" = "yes"; then
10570 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10571 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10572 OLD_CPPFLAGS="$CPPFLAGS"
10573 OLD_LIBS="$LIBS"
10574 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10575 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10576 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10577 LIBS="$LIBS -b i486-linuxaout"
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h. */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10586 main ()
10588 XOpenDisplay ("foo");
10590 return 0;
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (ac_try="$ac_link"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10598 esac
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext &&
10610 $as_test_x conftest$ac_exeext; then
10611 xlinux_second_failure=no
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 xlinux_second_failure=yes
10619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10620 conftest$ac_exeext conftest.$ac_ext
10621 if test "${xlinux_second_failure}" = "yes"; then
10622 # If we get the same failure with -b, there is no use adding -b.
10623 # So take it out. This plays safe.
10624 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10625 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10626 CPPFLAGS="$OLD_CPPFLAGS"
10627 LIBS="$OLD_LIBS"
10628 { echo "$as_me:$LINENO: result: no" >&5
10629 echo "${ECHO_T}no" >&6; }
10630 else
10631 { echo "$as_me:$LINENO: result: yes" >&5
10632 echo "${ECHO_T}yes" >&6; }
10634 else
10635 { echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6; }
10640 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10641 # header files included from there.
10642 { echo "$as_me:$LINENO: checking for Xkb" >&5
10643 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #include <X11/Xlib.h>
10651 #include <X11/XKBlib.h>
10653 main ()
10655 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10657 return 0;
10659 _ACEOF
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (ac_try="$ac_link"
10662 case "(($ac_try" in
10663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664 *) ac_try_echo=$ac_try;;
10665 esac
10666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667 (eval "$ac_link") 2>conftest.er1
10668 ac_status=$?
10669 grep -v '^ *+' conftest.er1 >conftest.err
10670 rm -f conftest.er1
10671 cat conftest.err >&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && {
10674 test -z "$ac_c_werror_flag" ||
10675 test ! -s conftest.err
10676 } && test -s conftest$ac_exeext &&
10677 $as_test_x conftest$ac_exeext; then
10678 emacs_xkb=yes
10679 else
10680 echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10683 emacs_xkb=no
10686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10687 conftest$ac_exeext conftest.$ac_ext
10688 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10689 echo "${ECHO_T}$emacs_xkb" >&6; }
10690 if test $emacs_xkb = yes; then
10692 cat >>confdefs.h <<\_ACEOF
10693 #define HAVE_XKBGETKEYBOARD 1
10694 _ACEOF
10702 for ac_func in XrmSetDatabase XScreenResourceString \
10703 XScreenNumberOfScreen XSetWMProtocols
10705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711 cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h. */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10719 #define $ac_func innocuous_$ac_func
10721 /* System header to define __stub macros and hopefully few prototypes,
10722 which can conflict with char $ac_func (); below.
10723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10724 <limits.h> exists even on freestanding compilers. */
10726 #ifdef __STDC__
10727 # include <limits.h>
10728 #else
10729 # include <assert.h>
10730 #endif
10732 #undef $ac_func
10734 /* Override any GCC internal prototype to avoid an error.
10735 Use char because int might match the return type of a GCC
10736 builtin and then its argument prototype would still apply. */
10737 #ifdef __cplusplus
10738 extern "C"
10739 #endif
10740 char $ac_func ();
10741 /* The GNU C library defines this for functions which it implements
10742 to always fail with ENOSYS. Some functions are actually named
10743 something starting with __ and the normal name is an alias. */
10744 #if defined __stub_$ac_func || defined __stub___$ac_func
10745 choke me
10746 #endif
10749 main ()
10751 return $ac_func ();
10753 return 0;
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (ac_try="$ac_link"
10758 case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_link") 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest$ac_exeext &&
10773 $as_test_x conftest$ac_exeext; then
10774 eval "$as_ac_var=yes"
10775 else
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 eval "$as_ac_var=no"
10782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10783 conftest$ac_exeext conftest.$ac_ext
10785 ac_res=`eval echo '${'$as_ac_var'}'`
10786 { echo "$as_me:$LINENO: result: $ac_res" >&5
10787 echo "${ECHO_T}$ac_res" >&6; }
10788 if test `eval echo '${'$as_ac_var'}'` = yes; then
10789 cat >>confdefs.h <<_ACEOF
10790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10791 _ACEOF
10794 done
10798 if test "${window_system}" = "x11"; then
10799 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10800 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10801 if test "${emacs_cv_x11_version_6+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 #include <X11/Xlib.h>
10812 main ()
10814 #if XlibSpecificationRelease < 6
10815 fail;
10816 #endif
10819 return 0;
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 emacs_cv_x11_version_6=yes
10841 else
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10845 emacs_cv_x11_version_6=no
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10852 if test $emacs_cv_x11_version_6 = yes; then
10853 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10854 echo "${ECHO_T}6 or newer" >&6; }
10856 cat >>confdefs.h <<\_ACEOF
10857 #define HAVE_X11R6 1
10858 _ACEOF
10860 else
10861 { echo "$as_me:$LINENO: result: before 6" >&5
10862 echo "${ECHO_T}before 6" >&6; }
10866 if test "${window_system}" = "x11"; then
10867 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10868 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10869 if test "${emacs_cv_x11_version_5+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872 cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 #include <X11/Xlib.h>
10880 main ()
10882 #if XlibSpecificationRelease < 5
10883 fail;
10884 #endif
10887 return 0;
10889 _ACEOF
10890 rm -f conftest.$ac_objext conftest$ac_exeext
10891 if { (ac_try="$ac_link"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext &&
10907 $as_test_x conftest$ac_exeext; then
10908 emacs_cv_x11_version_5=yes
10909 else
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 emacs_cv_x11_version_5=no
10916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10920 if test $emacs_cv_x11_version_5 = yes; then
10921 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10922 echo "${ECHO_T}5 or newer" >&6; }
10923 HAVE_X11R5=yes
10925 cat >>confdefs.h <<\_ACEOF
10926 #define HAVE_X11R5 1
10927 _ACEOF
10929 else
10930 HAVE_X11R5=no
10931 { echo "$as_me:$LINENO: result: before 5" >&5
10932 echo "${ECHO_T}before 5" >&6; }
10936 HAVE_GTK=no
10937 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10938 USE_X_TOOLKIT=none
10940 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10941 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10942 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10943 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10944 { (exit 1); exit 1; }; };
10946 GLIB_REQUIRED=2.4
10947 GTK_REQUIRED=2.4
10948 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10950 if test "X${with_pkg_config_prog}" != X; then
10951 PKG_CONFIG="${with_pkg_config_prog}"
10954 succeeded=no
10956 if test -z "$PKG_CONFIG"; then
10957 # Extract the first word of "pkg-config", so it can be a program name with args.
10958 set dummy pkg-config; ac_word=$2
10959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10961 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964 case $PKG_CONFIG in
10965 [\\/]* | ?:[\\/]*)
10966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $PATH
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10976 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10980 done
10981 done
10982 IFS=$as_save_IFS
10984 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10986 esac
10988 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10989 if test -n "$PKG_CONFIG"; then
10990 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10991 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10992 else
10993 { echo "$as_me:$LINENO: result: no" >&5
10994 echo "${ECHO_T}no" >&6; }
11000 if test "$PKG_CONFIG" = "no" ; then
11001 { { echo "$as_me:$LINENO: error:
11002 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
11003 echo "$as_me: error:
11004 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
11005 { (exit 1); exit 1; }; }
11006 else
11007 PKG_CONFIG_MIN_VERSION=0.9.0
11008 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11009 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11010 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11012 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11013 { echo "$as_me:$LINENO: result: yes" >&5
11014 echo "${ECHO_T}yes" >&6; }
11015 succeeded=yes
11017 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11018 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11019 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11020 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11021 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11023 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11024 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11025 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11026 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11027 echo "${ECHO_T}$GTK_LIBS" >&6; }
11028 else
11029 { echo "$as_me:$LINENO: result: no" >&5
11030 echo "${ECHO_T}no" >&6; }
11031 GTK_CFLAGS=""
11032 GTK_LIBS=""
11033 ## If we have a custom action on failure, don't print errors, but
11034 ## do set a variable so people can do so.
11035 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11036 echo $GTK_PKG_ERRORS
11041 else
11042 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11043 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11047 if test $succeeded = yes; then
11049 else
11050 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11051 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11052 { (exit 1); exit 1; }; }
11057 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11058 CFLAGS="$CFLAGS $GTK_CFLAGS"
11059 LIBS="$GTK_LIBS $LIBS"
11060 GTK_COMPILES=no
11062 for ac_func in gtk_main
11064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11078 #define $ac_func innocuous_$ac_func
11080 /* System header to define __stub macros and hopefully few prototypes,
11081 which can conflict with char $ac_func (); below.
11082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11083 <limits.h> exists even on freestanding compilers. */
11085 #ifdef __STDC__
11086 # include <limits.h>
11087 #else
11088 # include <assert.h>
11089 #endif
11091 #undef $ac_func
11093 /* Override any GCC internal prototype to avoid an error.
11094 Use char because int might match the return type of a GCC
11095 builtin and then its argument prototype would still apply. */
11096 #ifdef __cplusplus
11097 extern "C"
11098 #endif
11099 char $ac_func ();
11100 /* The GNU C library defines this for functions which it implements
11101 to always fail with ENOSYS. Some functions are actually named
11102 something starting with __ and the normal name is an alias. */
11103 #if defined __stub_$ac_func || defined __stub___$ac_func
11104 choke me
11105 #endif
11108 main ()
11110 return $ac_func ();
11112 return 0;
11114 _ACEOF
11115 rm -f conftest.$ac_objext conftest$ac_exeext
11116 if { (ac_try="$ac_link"
11117 case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11120 esac
11121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122 (eval "$ac_link") 2>conftest.er1
11123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } && {
11129 test -z "$ac_c_werror_flag" ||
11130 test ! -s conftest.err
11131 } && test -s conftest$ac_exeext &&
11132 $as_test_x conftest$ac_exeext; then
11133 eval "$as_ac_var=yes"
11134 else
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 eval "$as_ac_var=no"
11141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11142 conftest$ac_exeext conftest.$ac_ext
11144 ac_res=`eval echo '${'$as_ac_var'}'`
11145 { echo "$as_me:$LINENO: result: $ac_res" >&5
11146 echo "${ECHO_T}$ac_res" >&6; }
11147 if test `eval echo '${'$as_ac_var'}'` = yes; then
11148 cat >>confdefs.h <<_ACEOF
11149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11150 _ACEOF
11151 GTK_COMPILES=yes
11153 done
11155 if test "${GTK_COMPILES}" != "yes"; then
11156 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11157 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11158 { (exit 1); exit 1; }; };
11161 HAVE_GTK=yes
11163 cat >>confdefs.h <<\_ACEOF
11164 #define HAVE_GTK 1
11165 _ACEOF
11167 USE_X_TOOLKIT=none
11169 if test "$with_toolkit_scroll_bars" != no; then
11170 with_toolkit_scroll_bars=yes
11173 HAVE_GTK_MULTIDISPLAY=no
11175 for ac_func in gdk_display_open
11177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11191 #define $ac_func innocuous_$ac_func
11193 /* System header to define __stub macros and hopefully few prototypes,
11194 which can conflict with char $ac_func (); below.
11195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11196 <limits.h> exists even on freestanding compilers. */
11198 #ifdef __STDC__
11199 # include <limits.h>
11200 #else
11201 # include <assert.h>
11202 #endif
11204 #undef $ac_func
11206 /* Override any GCC internal prototype to avoid an error.
11207 Use char because int might match the return type of a GCC
11208 builtin and then its argument prototype would still apply. */
11209 #ifdef __cplusplus
11210 extern "C"
11211 #endif
11212 char $ac_func ();
11213 /* The GNU C library defines this for functions which it implements
11214 to always fail with ENOSYS. Some functions are actually named
11215 something starting with __ and the normal name is an alias. */
11216 #if defined __stub_$ac_func || defined __stub___$ac_func
11217 choke me
11218 #endif
11221 main ()
11223 return $ac_func ();
11225 return 0;
11227 _ACEOF
11228 rm -f conftest.$ac_objext conftest$ac_exeext
11229 if { (ac_try="$ac_link"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_link") 2>conftest.er1
11236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } && {
11242 test -z "$ac_c_werror_flag" ||
11243 test ! -s conftest.err
11244 } && test -s conftest$ac_exeext &&
11245 $as_test_x conftest$ac_exeext; then
11246 eval "$as_ac_var=yes"
11247 else
11248 echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11251 eval "$as_ac_var=no"
11254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11255 conftest$ac_exeext conftest.$ac_ext
11257 ac_res=`eval echo '${'$as_ac_var'}'`
11258 { echo "$as_me:$LINENO: result: $ac_res" >&5
11259 echo "${ECHO_T}$ac_res" >&6; }
11260 if test `eval echo '${'$as_ac_var'}'` = yes; then
11261 cat >>confdefs.h <<_ACEOF
11262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11263 _ACEOF
11264 HAVE_GTK_MULTIDISPLAY=yes
11266 done
11268 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11270 cat >>confdefs.h <<\_ACEOF
11271 #define HAVE_GTK_MULTIDISPLAY 1
11272 _ACEOF
11275 HAVE_GTK_FILE_SELECTION=no
11277 for ac_func in gtk_file_selection_new
11279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11293 #define $ac_func innocuous_$ac_func
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func (); below.
11297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298 <limits.h> exists even on freestanding compilers. */
11300 #ifdef __STDC__
11301 # include <limits.h>
11302 #else
11303 # include <assert.h>
11304 #endif
11306 #undef $ac_func
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char $ac_func ();
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined __stub_$ac_func || defined __stub___$ac_func
11319 choke me
11320 #endif
11323 main ()
11325 return $ac_func ();
11327 return 0;
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest$ac_exeext &&
11347 $as_test_x conftest$ac_exeext; then
11348 eval "$as_ac_var=yes"
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 eval "$as_ac_var=no"
11356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11357 conftest$ac_exeext conftest.$ac_ext
11359 ac_res=`eval echo '${'$as_ac_var'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11362 if test `eval echo '${'$as_ac_var'}'` = yes; then
11363 cat >>confdefs.h <<_ACEOF
11364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11365 _ACEOF
11366 HAVE_GTK_FILE_SELECTION=yes
11368 done
11371 HAVE_GTK_FILE_CHOOSER=no
11373 for ac_func in gtk_file_chooser_dialog_new
11375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h. */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11389 #define $ac_func innocuous_$ac_func
11391 /* System header to define __stub macros and hopefully few prototypes,
11392 which can conflict with char $ac_func (); below.
11393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11394 <limits.h> exists even on freestanding compilers. */
11396 #ifdef __STDC__
11397 # include <limits.h>
11398 #else
11399 # include <assert.h>
11400 #endif
11402 #undef $ac_func
11404 /* Override any GCC internal prototype to avoid an error.
11405 Use char because int might match the return type of a GCC
11406 builtin and then its argument prototype would still apply. */
11407 #ifdef __cplusplus
11408 extern "C"
11409 #endif
11410 char $ac_func ();
11411 /* The GNU C library defines this for functions which it implements
11412 to always fail with ENOSYS. Some functions are actually named
11413 something starting with __ and the normal name is an alias. */
11414 #if defined __stub_$ac_func || defined __stub___$ac_func
11415 choke me
11416 #endif
11419 main ()
11421 return $ac_func ();
11423 return 0;
11425 _ACEOF
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (ac_try="$ac_link"
11428 case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11431 esac
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_link") 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } && {
11440 test -z "$ac_c_werror_flag" ||
11441 test ! -s conftest.err
11442 } && test -s conftest$ac_exeext &&
11443 $as_test_x conftest$ac_exeext; then
11444 eval "$as_ac_var=yes"
11445 else
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 eval "$as_ac_var=no"
11452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11453 conftest$ac_exeext conftest.$ac_ext
11455 ac_res=`eval echo '${'$as_ac_var'}'`
11456 { echo "$as_me:$LINENO: result: $ac_res" >&5
11457 echo "${ECHO_T}$ac_res" >&6; }
11458 if test `eval echo '${'$as_ac_var'}'` = yes; then
11459 cat >>confdefs.h <<_ACEOF
11460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11461 _ACEOF
11462 HAVE_GTK_FILE_CHOOSER=yes
11464 done
11467 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11468 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11470 cat >>confdefs.h <<\_ACEOF
11471 #define HAVE_GTK_FILE_BOTH 1
11472 _ACEOF
11476 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11477 HAVE_GTK_AND_PTHREAD=no
11479 for ac_header in pthread.h
11481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 ac_res=`eval echo '${'$as_ac_Header'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11491 else
11492 # Is the header compilable?
11493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h. */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 $ac_includes_default
11502 #include <$ac_header>
11503 _ACEOF
11504 rm -f conftest.$ac_objext
11505 if { (ac_try="$ac_compile"
11506 case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } && {
11518 test -z "$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 } && test -s conftest.$ac_objext; then
11521 ac_header_compiler=yes
11522 else
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 ac_header_compiler=no
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h. */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 #include <$ac_header>
11543 _ACEOF
11544 if { (ac_try="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } >/dev/null && {
11557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11558 test ! -s conftest.err
11559 }; then
11560 ac_header_preproc=yes
11561 else
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 ac_header_preproc=no
11568 rm -f conftest.err conftest.$ac_ext
11569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11570 echo "${ECHO_T}$ac_header_preproc" >&6; }
11572 # So? What about this header?
11573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11574 yes:no: )
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11579 ac_header_preproc=yes
11581 no:yes:* )
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11596 esac
11597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 eval "$as_ac_Header=\$ac_header_preproc"
11604 ac_res=`eval echo '${'$as_ac_Header'}'`
11605 { echo "$as_me:$LINENO: result: $ac_res" >&5
11606 echo "${ECHO_T}$ac_res" >&6; }
11609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11610 cat >>confdefs.h <<_ACEOF
11611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11612 _ACEOF
11616 done
11618 if test "$ac_cv_header_pthread_h"; then
11619 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11620 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11621 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624 ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lpthread $LIBS"
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char pthread_self ();
11641 main ()
11643 return pthread_self ();
11645 return 0;
11647 _ACEOF
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (ac_try="$ac_link"
11650 case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11653 esac
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_link") 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } && {
11662 test -z "$ac_c_werror_flag" ||
11663 test ! -s conftest.err
11664 } && test -s conftest$ac_exeext &&
11665 $as_test_x conftest$ac_exeext; then
11666 ac_cv_lib_pthread_pthread_self=yes
11667 else
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 ac_cv_lib_pthread_pthread_self=no
11674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11678 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11679 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11680 if test $ac_cv_lib_pthread_pthread_self = yes; then
11681 HAVE_GTK_AND_PTHREAD=yes
11685 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11686 GTK_LIBS="$GTK_LIBS -lpthread"
11688 cat >>confdefs.h <<\_ACEOF
11689 #define HAVE_GTK_AND_PTHREAD 1
11690 _ACEOF
11696 ### Link with -lXft if available to work around a bug.
11697 HAVE_XFT=maybe
11698 if test "${HAVE_GTK}" = "yes"; then
11699 if test "X${with_pkg_config_prog}" != X; then
11700 PKG_CONFIG="${with_pkg_config_prog}"
11704 succeeded=no
11706 if test -z "$PKG_CONFIG"; then
11707 # Extract the first word of "pkg-config", so it can be a program name with args.
11708 set dummy pkg-config; ac_word=$2
11709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11711 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714 case $PKG_CONFIG in
11715 [\\/]* | ?:[\\/]*)
11716 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 break 2
11730 done
11731 done
11732 IFS=$as_save_IFS
11734 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11736 esac
11738 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11739 if test -n "$PKG_CONFIG"; then
11740 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11741 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11742 else
11743 { echo "$as_me:$LINENO: result: no" >&5
11744 echo "${ECHO_T}no" >&6; }
11750 if test "$PKG_CONFIG" = "no" ; then
11751 HAVE_XFT=no
11752 else
11753 PKG_CONFIG_MIN_VERSION=0.9.0
11754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11755 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11756 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11758 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11759 { echo "$as_me:$LINENO: result: yes" >&5
11760 echo "${ECHO_T}yes" >&6; }
11761 succeeded=yes
11763 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11764 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11765 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11766 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11767 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11769 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11770 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11771 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11772 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11773 echo "${ECHO_T}$XFT_LIBS" >&6; }
11774 else
11775 { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11777 XFT_CFLAGS=""
11778 XFT_LIBS=""
11779 ## If we have a custom action on failure, don't print errors, but
11780 ## do set a variable so people can do so.
11781 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11787 else
11788 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11789 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11793 if test $succeeded = yes; then
11795 else
11796 HAVE_XFT=no
11799 if test "$HAVE_XFT" != no; then
11800 OLD_CFLAGS="$CPPFLAGS"
11801 OLD_CPPFLAGS="$CFLAGS"
11802 OLD_LIBS="$LIBS"
11803 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11804 CFLAGS="$CFLAGS $XFT_CFLAGS"
11805 LIBS="$XFT_LIBS $LIBS"
11806 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11807 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11808 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11809 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11813 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11814 else
11815 # Is the header compilable?
11816 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11817 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11818 cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h. */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 $ac_includes_default
11825 #include <X11/Xft/Xft.h>
11826 _ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (ac_try="$ac_compile"
11829 case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_header_compiler=yes
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_header_compiler=no
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11854 echo "${ECHO_T}$ac_header_compiler" >&6; }
11856 # Is the header present?
11857 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11858 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 #include <X11/Xft/Xft.h>
11866 _ACEOF
11867 if { (ac_try="$ac_cpp conftest.$ac_ext"
11868 case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } >/dev/null && {
11880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11881 test ! -s conftest.err
11882 }; then
11883 ac_header_preproc=yes
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 ac_header_preproc=no
11891 rm -f conftest.err conftest.$ac_ext
11892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11893 echo "${ECHO_T}$ac_header_preproc" >&6; }
11895 # So? What about this header?
11896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11897 yes:no: )
11898 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11899 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11901 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11902 ac_header_preproc=yes
11904 no:yes:* )
11905 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11906 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11908 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11910 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11912 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11914 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11916 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11919 esac
11920 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11921 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11922 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11927 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11928 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11931 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11932 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11933 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11934 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11936 else
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lXft $XFT_LIBS $LIBS"
11939 cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h. */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11946 /* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 char XftFontOpen ();
11954 main ()
11956 return XftFontOpen ();
11958 return 0;
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (ac_try="$ac_link"
11963 case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_link") 2>conftest.er1
11969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } && {
11975 test -z "$ac_c_werror_flag" ||
11976 test ! -s conftest.err
11977 } && test -s conftest$ac_exeext &&
11978 $as_test_x conftest$ac_exeext; then
11979 ac_cv_lib_Xft_XftFontOpen=yes
11980 else
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_cv_lib_Xft_XftFontOpen=no
11987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11988 conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11991 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11992 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11993 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11994 HAVE_XFT=yes
12001 if test "${HAVE_XFT}" = "yes"; then
12003 cat >>confdefs.h <<\_ACEOF
12004 #define HAVE_XFT 1
12005 _ACEOF
12008 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12009 else
12010 CFLAGS="$OLD_CPPFLAGS"
12011 CFLAGS="$OLD_CFLAGS"
12012 LIBS="$OLD_LIBS"
12017 if test x"${USE_X_TOOLKIT}" = xmaybe; then
12018 if test x"${HAVE_X11R5}" = xyes; then
12019 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12020 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12021 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12031 #include <X11/Intrinsic.h>
12032 #include <X11/Xaw/Simple.h>
12034 main ()
12038 return 0;
12040 _ACEOF
12041 rm -f conftest.$ac_objext conftest$ac_exeext
12042 if { (ac_try="$ac_link"
12043 case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046 esac
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_link") 2>conftest.er1
12049 ac_status=$?
12050 grep -v '^ *+' conftest.er1 >conftest.err
12051 rm -f conftest.er1
12052 cat conftest.err >&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && {
12055 test -z "$ac_c_werror_flag" ||
12056 test ! -s conftest.err
12057 } && test -s conftest$ac_exeext &&
12058 $as_test_x conftest$ac_exeext; then
12059 emacs_cv_x11_version_5_with_xaw=yes
12060 else
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 emacs_cv_x11_version_5_with_xaw=no
12067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12068 conftest$ac_exeext conftest.$ac_ext
12071 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12072 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12073 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12074 USE_X_TOOLKIT=LUCID
12075 else
12076 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12077 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12078 USE_X_TOOLKIT=none
12080 else
12081 USE_X_TOOLKIT=none
12085 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12087 if test "${USE_X_TOOLKIT}" != "none"; then
12088 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12089 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12090 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 #include <X11/Intrinsic.h>
12101 main ()
12103 #if XtSpecificationRelease < 6
12104 fail;
12105 #endif
12108 return 0;
12110 _ACEOF
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_link") 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } && {
12125 test -z "$ac_c_werror_flag" ||
12126 test ! -s conftest.err
12127 } && test -s conftest$ac_exeext &&
12128 $as_test_x conftest$ac_exeext; then
12129 emacs_cv_x11_toolkit_version_6=yes
12130 else
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12134 emacs_cv_x11_toolkit_version_6=no
12137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12138 conftest$ac_exeext conftest.$ac_ext
12141 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12142 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12143 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12144 echo "${ECHO_T}6 or newer" >&6; }
12146 cat >>confdefs.h <<\_ACEOF
12147 #define HAVE_X11XTR6 1
12148 _ACEOF
12150 else
12151 { echo "$as_me:$LINENO: result: before 6" >&5
12152 echo "${ECHO_T}before 6" >&6; }
12155 OLDLIBS="$LIBS"
12156 if test x$HAVE_X11XTR6 = xyes; then
12157 LIBS="-lXt -lSM -lICE $LIBS"
12158 else
12159 LIBS="-lXt $LIBS"
12162 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12163 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12164 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167 ac_check_lib_save_LIBS=$LIBS
12168 LIBS="-lXmu $LIBS"
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12176 /* Override any GCC internal prototype to avoid an error.
12177 Use char because int might match the return type of a GCC
12178 builtin and then its argument prototype would still apply. */
12179 #ifdef __cplusplus
12180 extern "C"
12181 #endif
12182 char XmuConvertStandardSelection ();
12184 main ()
12186 return XmuConvertStandardSelection ();
12188 return 0;
12190 _ACEOF
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (ac_try="$ac_link"
12193 case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12196 esac
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_link") 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && {
12205 test -z "$ac_c_werror_flag" ||
12206 test ! -s conftest.err
12207 } && test -s conftest$ac_exeext &&
12208 $as_test_x conftest$ac_exeext; then
12209 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12210 else
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12218 conftest$ac_exeext conftest.$ac_ext
12219 LIBS=$ac_check_lib_save_LIBS
12221 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12222 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12223 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12224 cat >>confdefs.h <<_ACEOF
12225 #define HAVE_LIBXMU 1
12226 _ACEOF
12228 LIBS="-lXmu $LIBS"
12232 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12235 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12236 if test "${HAVE_X11}" = "yes"; then
12237 if test "${USE_X_TOOLKIT}" != "none"; then
12239 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12240 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12241 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-lXext $LIBS"
12246 cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h. */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12253 /* Override any GCC internal prototype to avoid an error.
12254 Use char because int might match the return type of a GCC
12255 builtin and then its argument prototype would still apply. */
12256 #ifdef __cplusplus
12257 extern "C"
12258 #endif
12259 char XShapeQueryExtension ();
12261 main ()
12263 return XShapeQueryExtension ();
12265 return 0;
12267 _ACEOF
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (ac_try="$ac_link"
12270 case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12273 esac
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_link") 2>conftest.er1
12276 ac_status=$?
12277 grep -v '^ *+' conftest.er1 >conftest.err
12278 rm -f conftest.er1
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && {
12282 test -z "$ac_c_werror_flag" ||
12283 test ! -s conftest.err
12284 } && test -s conftest$ac_exeext &&
12285 $as_test_x conftest$ac_exeext; then
12286 ac_cv_lib_Xext_XShapeQueryExtension=yes
12287 else
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12291 ac_cv_lib_Xext_XShapeQueryExtension=no
12294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12295 conftest$ac_exeext conftest.$ac_ext
12296 LIBS=$ac_check_lib_save_LIBS
12298 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12299 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12300 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12301 cat >>confdefs.h <<_ACEOF
12302 #define HAVE_LIBXEXT 1
12303 _ACEOF
12305 LIBS="-lXext $LIBS"
12312 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12313 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12314 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12315 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318 cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h. */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 #include <Xm/Xm.h>
12326 main ()
12328 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12329 int x = 5;
12330 #else
12331 Motif version prior to 2.1.
12332 #endif
12334 return 0;
12336 _ACEOF
12337 rm -f conftest.$ac_objext
12338 if { (ac_try="$ac_compile"
12339 case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12342 esac
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_compile") 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } && {
12351 test -z "$ac_c_werror_flag" ||
12352 test ! -s conftest.err
12353 } && test -s conftest.$ac_objext; then
12354 emacs_cv_motif_version_2_1=yes
12355 else
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 emacs_cv_motif_version_2_1=no
12362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12365 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12366 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12367 if test $emacs_cv_motif_version_2_1 = yes; then
12368 HAVE_LIBXP=no
12370 cat >>confdefs.h <<\_ACEOF
12371 #define HAVE_MOTIF_2_1 1
12372 _ACEOF
12374 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12375 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12376 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379 ac_check_lib_save_LIBS=$LIBS
12380 LIBS="-lXp $LIBS"
12381 cat >conftest.$ac_ext <<_ACEOF
12382 /* confdefs.h. */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12388 /* Override any GCC internal prototype to avoid an error.
12389 Use char because int might match the return type of a GCC
12390 builtin and then its argument prototype would still apply. */
12391 #ifdef __cplusplus
12392 extern "C"
12393 #endif
12394 char XpCreateContext ();
12396 main ()
12398 return XpCreateContext ();
12400 return 0;
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (ac_try="$ac_link"
12405 case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_link") 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } && {
12417 test -z "$ac_c_werror_flag" ||
12418 test ! -s conftest.err
12419 } && test -s conftest$ac_exeext &&
12420 $as_test_x conftest$ac_exeext; then
12421 ac_cv_lib_Xp_XpCreateContext=yes
12422 else
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12426 ac_cv_lib_Xp_XpCreateContext=no
12429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12430 conftest$ac_exeext conftest.$ac_ext
12431 LIBS=$ac_check_lib_save_LIBS
12433 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12434 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12435 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12436 HAVE_LIBXP=yes
12439 if test ${HAVE_LIBXP} = yes; then
12441 cat >>confdefs.h <<\_ACEOF
12442 #define HAVE_LIBXP 1
12443 _ACEOF
12446 else
12447 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12448 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12449 if test "${emacs_cv_lesstif+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452 # We put this in CFLAGS temporarily to precede other -I options
12453 # that might be in CFLAGS temporarily.
12454 # We put this in CPPFLAGS where it precedes the other -I options.
12455 OLD_CPPFLAGS=$CPPFLAGS
12456 OLD_CFLAGS=$CFLAGS
12457 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12458 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12459 cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h. */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12467 main ()
12469 int x = 5;
12471 return 0;
12473 _ACEOF
12474 rm -f conftest.$ac_objext
12475 if { (ac_try="$ac_compile"
12476 case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12479 esac
12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481 (eval "$ac_compile") 2>conftest.er1
12482 ac_status=$?
12483 grep -v '^ *+' conftest.er1 >conftest.err
12484 rm -f conftest.er1
12485 cat conftest.err >&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } && {
12488 test -z "$ac_c_werror_flag" ||
12489 test ! -s conftest.err
12490 } && test -s conftest.$ac_objext; then
12491 emacs_cv_lesstif=yes
12492 else
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 emacs_cv_lesstif=no
12499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12501 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12502 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12503 if test $emacs_cv_lesstif = yes; then
12504 # Make sure this -I option remains in CPPFLAGS after it is set
12505 # back to REAL_CPPFLAGS.
12506 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12507 # have those other -I options anyway. Ultimately, having this
12508 # directory ultimately in CPPFLAGS will be enough.
12509 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12510 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12511 else
12512 CFLAGS=$OLD_CFLAGS
12513 CPPFLAGS=$OLD_CPPFLAGS
12518 ### Is -lXaw3d available?
12519 HAVE_XAW3D=no
12520 if test "${HAVE_X11}" = "yes"; then
12521 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12522 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12523 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12524 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 else
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 #include <X11/Xaw3d/Scrollbar.h>
12534 _ACEOF
12535 if { (ac_try="$ac_cpp conftest.$ac_ext"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } >/dev/null && {
12548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 }; then
12551 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12552 else
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12559 rm -f conftest.err conftest.$ac_ext
12561 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12562 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12563 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12564 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12565 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12566 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569 ac_check_lib_save_LIBS=$LIBS
12570 LIBS="-lXaw3d $LIBS"
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h. */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12578 /* Override any GCC internal prototype to avoid an error.
12579 Use char because int might match the return type of a GCC
12580 builtin and then its argument prototype would still apply. */
12581 #ifdef __cplusplus
12582 extern "C"
12583 #endif
12584 char XawScrollbarSetThumb ();
12586 main ()
12588 return XawScrollbarSetThumb ();
12590 return 0;
12592 _ACEOF
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (ac_try="$ac_link"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598 esac
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_link") 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } && {
12607 test -z "$ac_c_werror_flag" ||
12608 test ! -s conftest.err
12609 } && test -s conftest$ac_exeext &&
12610 $as_test_x conftest$ac_exeext; then
12611 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12612 else
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12616 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12620 conftest$ac_exeext conftest.$ac_ext
12621 LIBS=$ac_check_lib_save_LIBS
12623 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12624 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12625 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12626 HAVE_XAW3D=yes
12632 if test "${HAVE_XAW3D}" = "yes"; then
12634 cat >>confdefs.h <<\_ACEOF
12635 #define HAVE_XAW3D 1
12636 _ACEOF
12644 USE_TOOLKIT_SCROLL_BARS=no
12645 if test "${with_toolkit_scroll_bars}" != "no"; then
12646 if test "${USE_X_TOOLKIT}" != "none"; then
12647 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12648 cat >>confdefs.h <<\_ACEOF
12649 #define USE_TOOLKIT_SCROLL_BARS 1
12650 _ACEOF
12652 HAVE_XAW3D=no
12653 USE_TOOLKIT_SCROLL_BARS=yes
12654 elif test "${HAVE_XAW3D}" = "yes"; then
12655 cat >>confdefs.h <<\_ACEOF
12656 #define USE_TOOLKIT_SCROLL_BARS 1
12657 _ACEOF
12659 USE_TOOLKIT_SCROLL_BARS=yes
12661 elif test "${HAVE_GTK}" = "yes"; then
12662 cat >>confdefs.h <<\_ACEOF
12663 #define USE_TOOLKIT_SCROLL_BARS 1
12664 _ACEOF
12666 USE_TOOLKIT_SCROLL_BARS=yes
12667 elif test "${HAVE_CARBON}" = "yes"; then
12668 cat >>confdefs.h <<\_ACEOF
12669 #define USE_TOOLKIT_SCROLL_BARS 1
12670 _ACEOF
12672 USE_TOOLKIT_SCROLL_BARS=yes
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h. */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12683 #include <X11/Xlib.h>
12684 #include <X11/Xresource.h>
12686 main ()
12688 XIMProc callback;
12690 return 0;
12692 _ACEOF
12693 rm -f conftest.$ac_objext
12694 if { (ac_try="$ac_compile"
12695 case "(($ac_try" in
12696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12698 esac
12699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12700 (eval "$ac_compile") 2>conftest.er1
12701 ac_status=$?
12702 grep -v '^ *+' conftest.er1 >conftest.err
12703 rm -f conftest.er1
12704 cat conftest.err >&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } && {
12707 test -z "$ac_c_werror_flag" ||
12708 test ! -s conftest.err
12709 } && test -s conftest.$ac_objext; then
12710 HAVE_XIM=yes
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_XIM 1
12714 _ACEOF
12716 else
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12720 HAVE_XIM=no
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 if test "${with_xim}" != "no"; then
12728 cat >>confdefs.h <<\_ACEOF
12729 #define USE_XIM 1
12730 _ACEOF
12735 if test "${HAVE_XIM}" != "no"; then
12736 late_CFLAGS=$CFLAGS
12737 if test "$GCC" = yes; then
12738 CFLAGS="$CFLAGS --pedantic-errors"
12740 cat >conftest.$ac_ext <<_ACEOF
12741 /* confdefs.h. */
12742 _ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12747 #include <X11/Xlib.h>
12748 #include <X11/Xresource.h>
12750 main ()
12752 Display *display;
12753 XrmDatabase db;
12754 char *res_name;
12755 char *res_class;
12756 XIMProc callback;
12757 XPointer *client_data;
12758 #ifndef __GNUC__
12759 /* If we're not using GCC, it's probably not XFree86, and this is
12760 probably right, but we can't use something like --pedantic-errors. */
12761 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12762 char*, XIMProc, XPointer*);
12763 #endif
12764 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12765 client_data);
12767 return 0;
12769 _ACEOF
12770 rm -f conftest.$ac_objext
12771 if { (ac_try="$ac_compile"
12772 case "(($ac_try" in
12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774 *) ac_try_echo=$ac_try;;
12775 esac
12776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777 (eval "$ac_compile") 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } && {
12784 test -z "$ac_c_werror_flag" ||
12785 test ! -s conftest.err
12786 } && test -s conftest.$ac_objext; then
12787 emacs_cv_arg6_star=yes
12788 else
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12797 if test "$emacs_cv_arg6_star" = yes; then
12798 cat >>confdefs.h <<\_ACEOF
12799 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12800 _ACEOF
12802 else
12803 cat >>confdefs.h <<\_ACEOF
12804 #define XRegisterIMInstantiateCallback_arg6 XPointer
12805 _ACEOF
12808 CFLAGS=$late_CFLAGS
12811 ### Use -lXpm if available, unless `--with-xpm=no'.
12812 HAVE_XPM=no
12813 if test "${HAVE_X11}" = "yes"; then
12814 if test "${with_xpm}" != "no"; then
12815 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12816 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12817 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12818 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12822 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12823 else
12824 # Is the header compilable?
12825 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12826 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12827 cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h. */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12833 $ac_includes_default
12834 #include <X11/xpm.h>
12835 _ACEOF
12836 rm -f conftest.$ac_objext
12837 if { (ac_try="$ac_compile"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841 esac
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_compile") 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } && {
12850 test -z "$ac_c_werror_flag" ||
12851 test ! -s conftest.err
12852 } && test -s conftest.$ac_objext; then
12853 ac_header_compiler=yes
12854 else
12855 echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12858 ac_header_compiler=no
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12863 echo "${ECHO_T}$ac_header_compiler" >&6; }
12865 # Is the header present?
12866 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12867 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12874 #include <X11/xpm.h>
12875 _ACEOF
12876 if { (ac_try="$ac_cpp conftest.$ac_ext"
12877 case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12880 esac
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12883 ac_status=$?
12884 grep -v '^ *+' conftest.er1 >conftest.err
12885 rm -f conftest.er1
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } >/dev/null && {
12889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12890 test ! -s conftest.err
12891 }; then
12892 ac_header_preproc=yes
12893 else
12894 echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12897 ac_header_preproc=no
12900 rm -f conftest.err conftest.$ac_ext
12901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12902 echo "${ECHO_T}$ac_header_preproc" >&6; }
12904 # So? What about this header?
12905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12906 yes:no: )
12907 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12908 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12909 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12910 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12911 ac_header_preproc=yes
12913 no:yes:* )
12914 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12915 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12916 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12917 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12918 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12919 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12920 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12921 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12923 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12925 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12928 esac
12929 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12930 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12931 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933 else
12934 ac_cv_header_X11_xpm_h=$ac_header_preproc
12936 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12937 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12940 if test $ac_cv_header_X11_xpm_h = yes; then
12941 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12942 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12943 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 else
12946 ac_check_lib_save_LIBS=$LIBS
12947 LIBS="-lXpm -lX11 $LIBS"
12948 cat >conftest.$ac_ext <<_ACEOF
12949 /* confdefs.h. */
12950 _ACEOF
12951 cat confdefs.h >>conftest.$ac_ext
12952 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h. */
12955 /* Override any GCC internal prototype to avoid an error.
12956 Use char because int might match the return type of a GCC
12957 builtin and then its argument prototype would still apply. */
12958 #ifdef __cplusplus
12959 extern "C"
12960 #endif
12961 char XpmReadFileToPixmap ();
12963 main ()
12965 return XpmReadFileToPixmap ();
12967 return 0;
12969 _ACEOF
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (ac_try="$ac_link"
12972 case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975 esac
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_link") 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } && {
12984 test -z "$ac_c_werror_flag" ||
12985 test ! -s conftest.err
12986 } && test -s conftest$ac_exeext &&
12987 $as_test_x conftest$ac_exeext; then
12988 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12989 else
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12993 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12997 conftest$ac_exeext conftest.$ac_ext
12998 LIBS=$ac_check_lib_save_LIBS
13000 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13001 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13002 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13003 HAVE_XPM=yes
13009 if test "${HAVE_XPM}" = "yes"; then
13010 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13011 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h. */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 #include "X11/xpm.h"
13019 #ifndef XpmReturnAllocPixels
13020 no_return_alloc_pixels
13021 #endif
13023 _ACEOF
13024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13025 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13026 HAVE_XPM=no
13027 else
13028 HAVE_XPM=yes
13030 rm -f conftest*
13033 if test "${HAVE_XPM}" = "yes"; then
13034 { echo "$as_me:$LINENO: result: yes" >&5
13035 echo "${ECHO_T}yes" >&6; }
13036 else
13037 { echo "$as_me:$LINENO: result: no" >&5
13038 echo "${ECHO_T}no" >&6; }
13043 if test "${HAVE_XPM}" = "yes"; then
13045 cat >>confdefs.h <<\_ACEOF
13046 #define HAVE_XPM 1
13047 _ACEOF
13052 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13053 HAVE_JPEG=no
13054 if test "${HAVE_X11}" = "yes"; then
13055 if test "${with_jpeg}" != "no"; then
13056 if test "${ac_cv_header_jerror_h+set}" = set; then
13057 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13058 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13059 if test "${ac_cv_header_jerror_h+set}" = set; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13063 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13064 else
13065 # Is the header compilable?
13066 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13067 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13068 cat >conftest.$ac_ext <<_ACEOF
13069 /* confdefs.h. */
13070 _ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13074 $ac_includes_default
13075 #include <jerror.h>
13076 _ACEOF
13077 rm -f conftest.$ac_objext
13078 if { (ac_try="$ac_compile"
13079 case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082 esac
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_compile") 2>conftest.er1
13085 ac_status=$?
13086 grep -v '^ *+' conftest.er1 >conftest.err
13087 rm -f conftest.er1
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } && {
13091 test -z "$ac_c_werror_flag" ||
13092 test ! -s conftest.err
13093 } && test -s conftest.$ac_objext; then
13094 ac_header_compiler=yes
13095 else
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13099 ac_header_compiler=no
13102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13104 echo "${ECHO_T}$ac_header_compiler" >&6; }
13106 # Is the header present?
13107 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13108 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h. */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 #include <jerror.h>
13116 _ACEOF
13117 if { (ac_try="$ac_cpp conftest.$ac_ext"
13118 case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13121 esac
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } >/dev/null && {
13130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13131 test ! -s conftest.err
13132 }; then
13133 ac_header_preproc=yes
13134 else
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 ac_header_preproc=no
13141 rm -f conftest.err conftest.$ac_ext
13142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13143 echo "${ECHO_T}$ac_header_preproc" >&6; }
13145 # So? What about this header?
13146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13147 yes:no: )
13148 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13149 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13151 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13152 ac_header_preproc=yes
13154 no:yes:* )
13155 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13156 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13157 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13158 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13159 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13160 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13161 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13162 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13164 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13166 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13169 esac
13170 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13171 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13172 if test "${ac_cv_header_jerror_h+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175 ac_cv_header_jerror_h=$ac_header_preproc
13177 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13178 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13181 if test $ac_cv_header_jerror_h = yes; then
13182 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13183 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13184 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187 ac_check_lib_save_LIBS=$LIBS
13188 LIBS="-ljpeg $LIBS"
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13199 #ifdef __cplusplus
13200 extern "C"
13201 #endif
13202 char jpeg_destroy_compress ();
13204 main ()
13206 return jpeg_destroy_compress ();
13208 return 0;
13210 _ACEOF
13211 rm -f conftest.$ac_objext conftest$ac_exeext
13212 if { (ac_try="$ac_link"
13213 case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216 esac
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_link") 2>conftest.er1
13219 ac_status=$?
13220 grep -v '^ *+' conftest.er1 >conftest.err
13221 rm -f conftest.er1
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } && {
13225 test -z "$ac_c_werror_flag" ||
13226 test ! -s conftest.err
13227 } && test -s conftest$ac_exeext &&
13228 $as_test_x conftest$ac_exeext; then
13229 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13230 else
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13234 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13238 conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13241 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13242 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13243 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13244 HAVE_JPEG=yes
13253 if test "${HAVE_JPEG}" = "yes"; then
13254 cat >>confdefs.h <<\_ACEOF
13255 #define HAVE_JPEG 1
13256 _ACEOF
13258 cat >conftest.$ac_ext <<_ACEOF
13259 /* confdefs.h. */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h. */
13264 #include <jpeglib.h>
13265 version=JPEG_LIB_VERSION
13267 _ACEOF
13268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13269 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_JPEG 1
13272 _ACEOF
13274 else
13275 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13276 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13277 HAVE_JPEG=no
13279 rm -f conftest*
13284 ### Use -lpng if available, unless `--with-png=no'.
13285 HAVE_PNG=no
13286 if test "${HAVE_X11}" = "yes"; then
13287 if test "${with_png}" != "no"; then
13288 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13289 # in /usr/include/libpng.
13292 for ac_header in png.h libpng/png.h
13294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 ac_res=`eval echo '${'$as_ac_Header'}'`
13302 { echo "$as_me:$LINENO: result: $ac_res" >&5
13303 echo "${ECHO_T}$ac_res" >&6; }
13304 else
13305 # Is the header compilable?
13306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13308 cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h. */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 $ac_includes_default
13315 #include <$ac_header>
13316 _ACEOF
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_compile") 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } && {
13331 test -z "$ac_c_werror_flag" ||
13332 test ! -s conftest.err
13333 } && test -s conftest.$ac_objext; then
13334 ac_header_compiler=yes
13335 else
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13339 ac_header_compiler=no
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13344 echo "${ECHO_T}$ac_header_compiler" >&6; }
13346 # Is the header present?
13347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13349 cat >conftest.$ac_ext <<_ACEOF
13350 /* confdefs.h. */
13351 _ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 #include <$ac_header>
13356 _ACEOF
13357 if { (ac_try="$ac_cpp conftest.$ac_ext"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } >/dev/null && {
13370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13371 test ! -s conftest.err
13372 }; then
13373 ac_header_preproc=yes
13374 else
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ac_header_preproc=no
13381 rm -f conftest.err conftest.$ac_ext
13382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13383 echo "${ECHO_T}$ac_header_preproc" >&6; }
13385 # So? What about this header?
13386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13387 yes:no: )
13388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13392 ac_header_preproc=yes
13394 no:yes:* )
13395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13409 esac
13410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415 eval "$as_ac_Header=\$ac_header_preproc"
13417 ac_res=`eval echo '${'$as_ac_Header'}'`
13418 { echo "$as_me:$LINENO: result: $ac_res" >&5
13419 echo "${ECHO_T}$ac_res" >&6; }
13422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13423 cat >>confdefs.h <<_ACEOF
13424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13425 _ACEOF
13429 done
13431 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13432 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13433 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13434 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 else
13437 ac_check_lib_save_LIBS=$LIBS
13438 LIBS="-lpng -lz -lm $LIBS"
13439 cat >conftest.$ac_ext <<_ACEOF
13440 /* confdefs.h. */
13441 _ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13446 /* Override any GCC internal prototype to avoid an error.
13447 Use char because int might match the return type of a GCC
13448 builtin and then its argument prototype would still apply. */
13449 #ifdef __cplusplus
13450 extern "C"
13451 #endif
13452 char png_get_channels ();
13454 main ()
13456 return png_get_channels ();
13458 return 0;
13460 _ACEOF
13461 rm -f conftest.$ac_objext conftest$ac_exeext
13462 if { (ac_try="$ac_link"
13463 case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13466 esac
13467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_link") 2>conftest.er1
13469 ac_status=$?
13470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } && {
13475 test -z "$ac_c_werror_flag" ||
13476 test ! -s conftest.err
13477 } && test -s conftest$ac_exeext &&
13478 $as_test_x conftest$ac_exeext; then
13479 ac_cv_lib_png_png_get_channels=yes
13480 else
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13484 ac_cv_lib_png_png_get_channels=no
13487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13488 conftest$ac_exeext conftest.$ac_ext
13489 LIBS=$ac_check_lib_save_LIBS
13491 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13492 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13493 if test $ac_cv_lib_png_png_get_channels = yes; then
13494 HAVE_PNG=yes
13500 if test "${HAVE_PNG}" = "yes"; then
13502 cat >>confdefs.h <<\_ACEOF
13503 #define HAVE_PNG 1
13504 _ACEOF
13509 ### Use -ltiff if available, unless `--with-tiff=no'.
13510 HAVE_TIFF=no
13511 if test "${HAVE_X11}" = "yes"; then
13512 if test "${with_tiff}" != "no"; then
13513 if test "${ac_cv_header_tiffio_h+set}" = set; then
13514 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13515 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13516 if test "${ac_cv_header_tiffio_h+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13519 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13520 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13521 else
13522 # Is the header compilable?
13523 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13524 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13525 cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h. */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13531 $ac_includes_default
13532 #include <tiffio.h>
13533 _ACEOF
13534 rm -f conftest.$ac_objext
13535 if { (ac_try="$ac_compile"
13536 case "(($ac_try" in
13537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13538 *) ac_try_echo=$ac_try;;
13539 esac
13540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13541 (eval "$ac_compile") 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } && {
13548 test -z "$ac_c_werror_flag" ||
13549 test ! -s conftest.err
13550 } && test -s conftest.$ac_objext; then
13551 ac_header_compiler=yes
13552 else
13553 echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13556 ac_header_compiler=no
13559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13561 echo "${ECHO_T}$ac_header_compiler" >&6; }
13563 # Is the header present?
13564 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13565 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13566 cat >conftest.$ac_ext <<_ACEOF
13567 /* confdefs.h. */
13568 _ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13572 #include <tiffio.h>
13573 _ACEOF
13574 if { (ac_try="$ac_cpp conftest.$ac_ext"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } >/dev/null && {
13587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13588 test ! -s conftest.err
13589 }; then
13590 ac_header_preproc=yes
13591 else
13592 echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13595 ac_header_preproc=no
13598 rm -f conftest.err conftest.$ac_ext
13599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13600 echo "${ECHO_T}$ac_header_preproc" >&6; }
13602 # So? What about this header?
13603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13604 yes:no: )
13605 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13606 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13607 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13608 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13609 ac_header_preproc=yes
13611 no:yes:* )
13612 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13613 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13614 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13615 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13617 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13618 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13619 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13621 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13623 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13626 esac
13627 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13628 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13629 if test "${ac_cv_header_tiffio_h+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 else
13632 ac_cv_header_tiffio_h=$ac_header_preproc
13634 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13635 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13638 if test $ac_cv_header_tiffio_h = yes; then
13639 tifflibs="-lz -lm"
13640 # At least one tiff package requires the jpeg library.
13641 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13642 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13643 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13644 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 else
13647 ac_check_lib_save_LIBS=$LIBS
13648 LIBS="-ltiff $tifflibs $LIBS"
13649 cat >conftest.$ac_ext <<_ACEOF
13650 /* confdefs.h. */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13656 /* Override any GCC internal prototype to avoid an error.
13657 Use char because int might match the return type of a GCC
13658 builtin and then its argument prototype would still apply. */
13659 #ifdef __cplusplus
13660 extern "C"
13661 #endif
13662 char TIFFGetVersion ();
13664 main ()
13666 return TIFFGetVersion ();
13668 return 0;
13670 _ACEOF
13671 rm -f conftest.$ac_objext conftest$ac_exeext
13672 if { (ac_try="$ac_link"
13673 case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13676 esac
13677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13678 (eval "$ac_link") 2>conftest.er1
13679 ac_status=$?
13680 grep -v '^ *+' conftest.er1 >conftest.err
13681 rm -f conftest.er1
13682 cat conftest.err >&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && {
13685 test -z "$ac_c_werror_flag" ||
13686 test ! -s conftest.err
13687 } && test -s conftest$ac_exeext &&
13688 $as_test_x conftest$ac_exeext; then
13689 ac_cv_lib_tiff_TIFFGetVersion=yes
13690 else
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13694 ac_cv_lib_tiff_TIFFGetVersion=no
13697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13698 conftest$ac_exeext conftest.$ac_ext
13699 LIBS=$ac_check_lib_save_LIBS
13701 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13702 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13703 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13704 HAVE_TIFF=yes
13712 if test "${HAVE_TIFF}" = "yes"; then
13714 cat >>confdefs.h <<\_ACEOF
13715 #define HAVE_TIFF 1
13716 _ACEOF
13721 ### Use -lgif if available, unless `--with-gif=no'.
13722 HAVE_GIF=no
13723 if test "${HAVE_X11}" = "yes"; then
13724 if test "${with_gif}" != "no"; then
13725 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13726 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13727 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13728 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13732 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13733 else
13734 # Is the header compilable?
13735 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13736 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13737 cat >conftest.$ac_ext <<_ACEOF
13738 /* confdefs.h. */
13739 _ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h. */
13743 $ac_includes_default
13744 #include <gif_lib.h>
13745 _ACEOF
13746 rm -f conftest.$ac_objext
13747 if { (ac_try="$ac_compile"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13751 esac
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_compile") 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } && {
13760 test -z "$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13762 } && test -s conftest.$ac_objext; then
13763 ac_header_compiler=yes
13764 else
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13768 ac_header_compiler=no
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13773 echo "${ECHO_T}$ac_header_compiler" >&6; }
13775 # Is the header present?
13776 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13777 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 #include <gif_lib.h>
13785 _ACEOF
13786 if { (ac_try="$ac_cpp conftest.$ac_ext"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13793 ac_status=$?
13794 grep -v '^ *+' conftest.er1 >conftest.err
13795 rm -f conftest.er1
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } >/dev/null && {
13799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13801 }; then
13802 ac_header_preproc=yes
13803 else
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13807 ac_header_preproc=no
13810 rm -f conftest.err conftest.$ac_ext
13811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13812 echo "${ECHO_T}$ac_header_preproc" >&6; }
13814 # So? What about this header?
13815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13816 yes:no: )
13817 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13818 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13820 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13821 ac_header_preproc=yes
13823 no:yes:* )
13824 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13825 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13826 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13827 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13829 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13830 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13831 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13832 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13833 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13835 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13838 esac
13839 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13840 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13841 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 else
13844 ac_cv_header_gif_lib_h=$ac_header_preproc
13846 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13847 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13850 if test $ac_cv_header_gif_lib_h = yes; then
13851 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13852 # Earlier versions can crash Emacs.
13853 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13854 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13855 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858 ac_check_lib_save_LIBS=$LIBS
13859 LIBS="-lungif $LIBS"
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h. */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13867 /* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13870 #ifdef __cplusplus
13871 extern "C"
13872 #endif
13873 char EGifPutExtensionLast ();
13875 main ()
13877 return EGifPutExtensionLast ();
13879 return 0;
13881 _ACEOF
13882 rm -f conftest.$ac_objext conftest$ac_exeext
13883 if { (ac_try="$ac_link"
13884 case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13887 esac
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_link") 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest$ac_exeext &&
13899 $as_test_x conftest$ac_exeext; then
13900 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13901 else
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 ac_cv_lib_ungif_EGifPutExtensionLast=no
13908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13909 conftest$ac_exeext conftest.$ac_ext
13910 LIBS=$ac_check_lib_save_LIBS
13912 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13913 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13914 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13915 HAVE_GIF=yes
13923 if test "${HAVE_GIF}" = "yes"; then
13925 cat >>confdefs.h <<\_ACEOF
13926 #define HAVE_GIF 1
13927 _ACEOF
13932 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13933 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13934 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13935 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13939 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13940 else
13941 # Is the header compilable?
13942 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13943 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h. */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 $ac_includes_default
13951 #include <malloc/malloc.h>
13952 _ACEOF
13953 rm -f conftest.$ac_objext
13954 if { (ac_try="$ac_compile"
13955 case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13958 esac
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_compile") 2>conftest.er1
13961 ac_status=$?
13962 grep -v '^ *+' conftest.er1 >conftest.err
13963 rm -f conftest.er1
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } && {
13967 test -z "$ac_c_werror_flag" ||
13968 test ! -s conftest.err
13969 } && test -s conftest.$ac_objext; then
13970 ac_header_compiler=yes
13971 else
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13975 ac_header_compiler=no
13978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13980 echo "${ECHO_T}$ac_header_compiler" >&6; }
13982 # Is the header present?
13983 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13984 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13985 cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h. */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 #include <malloc/malloc.h>
13992 _ACEOF
13993 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
14006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14007 test ! -s conftest.err
14008 }; then
14009 ac_header_preproc=yes
14010 else
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 ac_header_preproc=no
14017 rm -f conftest.err conftest.$ac_ext
14018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14019 echo "${ECHO_T}$ac_header_preproc" >&6; }
14021 # So? What about this header?
14022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14023 yes:no: )
14024 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14025 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14027 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14028 ac_header_preproc=yes
14030 no:yes:* )
14031 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14032 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14034 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14036 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14038 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14040 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14042 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14045 esac
14046 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14047 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14048 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14053 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14054 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14057 if test $ac_cv_header_malloc_malloc_h = yes; then
14059 cat >>confdefs.h <<\_ACEOF
14060 #define HAVE_MALLOC_MALLOC_H 1
14061 _ACEOF
14067 ### Use Mac OS X Carbon API to implement GUI.
14068 if test "${HAVE_CARBON}" = "yes"; then
14070 cat >>confdefs.h <<\_ACEOF
14071 #define HAVE_CARBON 1
14072 _ACEOF
14074 ## Specify the install directory
14075 carbon_appdir=
14076 if test "${carbon_appdir_x}" != ""; then
14077 case ${carbon_appdir_x} in
14078 y | ye | yes) carbon_appdir=/Applications ;;
14079 * ) carbon_appdir=${carbon_appdir_x} ;;
14080 esac
14082 # We also have mouse menus.
14083 HAVE_MENUS=yes
14086 ### Use session management (-lSM -lICE) if available
14087 HAVE_X_SM=no
14088 if test "${HAVE_X11}" = "yes"; then
14089 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14090 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14091 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14092 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14096 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14097 else
14098 # Is the header compilable?
14099 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14100 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14101 cat >conftest.$ac_ext <<_ACEOF
14102 /* confdefs.h. */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 $ac_includes_default
14108 #include <X11/SM/SMlib.h>
14109 _ACEOF
14110 rm -f conftest.$ac_objext
14111 if { (ac_try="$ac_compile"
14112 case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14115 esac
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_compile") 2>conftest.er1
14118 ac_status=$?
14119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } && {
14124 test -z "$ac_c_werror_flag" ||
14125 test ! -s conftest.err
14126 } && test -s conftest.$ac_objext; then
14127 ac_header_compiler=yes
14128 else
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14132 ac_header_compiler=no
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14137 echo "${ECHO_T}$ac_header_compiler" >&6; }
14139 # Is the header present?
14140 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14141 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14142 cat >conftest.$ac_ext <<_ACEOF
14143 /* confdefs.h. */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 #include <X11/SM/SMlib.h>
14149 _ACEOF
14150 if { (ac_try="$ac_cpp conftest.$ac_ext"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154 esac
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14157 ac_status=$?
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } >/dev/null && {
14163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14164 test ! -s conftest.err
14165 }; then
14166 ac_header_preproc=yes
14167 else
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14171 ac_header_preproc=no
14174 rm -f conftest.err conftest.$ac_ext
14175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14176 echo "${ECHO_T}$ac_header_preproc" >&6; }
14178 # So? What about this header?
14179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14180 yes:no: )
14181 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14182 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14184 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14185 ac_header_preproc=yes
14187 no:yes:* )
14188 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14189 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14191 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14193 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14195 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14196 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14197 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14199 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14202 esac
14203 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14204 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14205 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14210 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14211 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14214 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14215 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14216 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14217 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220 ac_check_lib_save_LIBS=$LIBS
14221 LIBS="-lSM -lICE $LIBS"
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 /* Override any GCC internal prototype to avoid an error.
14230 Use char because int might match the return type of a GCC
14231 builtin and then its argument prototype would still apply. */
14232 #ifdef __cplusplus
14233 extern "C"
14234 #endif
14235 char SmcOpenConnection ();
14237 main ()
14239 return SmcOpenConnection ();
14241 return 0;
14243 _ACEOF
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (ac_try="$ac_link"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_link") 2>conftest.er1
14252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest$ac_exeext &&
14261 $as_test_x conftest$ac_exeext; then
14262 ac_cv_lib_SM_SmcOpenConnection=yes
14263 else
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_cv_lib_SM_SmcOpenConnection=no
14270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LIBS=$ac_check_lib_save_LIBS
14274 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14275 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14276 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14277 HAVE_X_SM=yes
14284 if test "${HAVE_X_SM}" = "yes"; then
14286 cat >>confdefs.h <<\_ACEOF
14287 #define HAVE_X_SM 1
14288 _ACEOF
14290 case "$LIBS" in
14291 *-lSM*) ;;
14292 *) LIBS="-lSM -lICE $LIBS" ;;
14293 esac
14297 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14298 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14299 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14300 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303 cat >conftest.$ac_ext <<_ACEOF
14304 /* confdefs.h. */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 #include <netdb.h>
14311 main ()
14313 return h_errno;
14315 return 0;
14317 _ACEOF
14318 rm -f conftest.$ac_objext conftest$ac_exeext
14319 if { (ac_try="$ac_link"
14320 case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14323 esac
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_link") 2>conftest.er1
14326 ac_status=$?
14327 grep -v '^ *+' conftest.er1 >conftest.err
14328 rm -f conftest.er1
14329 cat conftest.err >&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } && {
14332 test -z "$ac_c_werror_flag" ||
14333 test ! -s conftest.err
14334 } && test -s conftest$ac_exeext &&
14335 $as_test_x conftest$ac_exeext; then
14336 emacs_cv_netdb_declares_h_errno=yes
14337 else
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 emacs_cv_netdb_declares_h_errno=no
14344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14345 conftest$ac_exeext conftest.$ac_ext
14347 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14348 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14349 if test $emacs_cv_netdb_declares_h_errno = yes; then
14351 cat >>confdefs.h <<\_ACEOF
14352 #define HAVE_H_ERRNO 1
14353 _ACEOF
14357 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14358 # for constant arguments. Useless!
14359 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14360 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14361 if test "${ac_cv_working_alloca_h+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364 cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h. */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 #include <alloca.h>
14372 main ()
14374 char *p = (char *) alloca (2 * sizeof (int));
14375 if (p) return 0;
14377 return 0;
14379 _ACEOF
14380 rm -f conftest.$ac_objext conftest$ac_exeext
14381 if { (ac_try="$ac_link"
14382 case "(($ac_try" in
14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384 *) ac_try_echo=$ac_try;;
14385 esac
14386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14387 (eval "$ac_link") 2>conftest.er1
14388 ac_status=$?
14389 grep -v '^ *+' conftest.er1 >conftest.err
14390 rm -f conftest.er1
14391 cat conftest.err >&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } && {
14394 test -z "$ac_c_werror_flag" ||
14395 test ! -s conftest.err
14396 } && test -s conftest$ac_exeext &&
14397 $as_test_x conftest$ac_exeext; then
14398 ac_cv_working_alloca_h=yes
14399 else
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ac_cv_working_alloca_h=no
14406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14407 conftest$ac_exeext conftest.$ac_ext
14409 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14410 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14411 if test $ac_cv_working_alloca_h = yes; then
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_ALLOCA_H 1
14415 _ACEOF
14419 { echo "$as_me:$LINENO: checking for alloca" >&5
14420 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14421 if test "${ac_cv_func_alloca_works+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424 cat >conftest.$ac_ext <<_ACEOF
14425 /* confdefs.h. */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 #ifdef __GNUC__
14431 # define alloca __builtin_alloca
14432 #else
14433 # ifdef _MSC_VER
14434 # include <malloc.h>
14435 # define alloca _alloca
14436 # else
14437 # ifdef HAVE_ALLOCA_H
14438 # include <alloca.h>
14439 # else
14440 # ifdef _AIX
14441 #pragma alloca
14442 # else
14443 # ifndef alloca /* predefined by HP cc +Olibcalls */
14444 char *alloca ();
14445 # endif
14446 # endif
14447 # endif
14448 # endif
14449 #endif
14452 main ()
14454 char *p = (char *) alloca (1);
14455 if (p) return 0;
14457 return 0;
14459 _ACEOF
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (ac_try="$ac_link"
14462 case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_link") 2>conftest.er1
14468 ac_status=$?
14469 grep -v '^ *+' conftest.er1 >conftest.err
14470 rm -f conftest.er1
14471 cat conftest.err >&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } && {
14474 test -z "$ac_c_werror_flag" ||
14475 test ! -s conftest.err
14476 } && test -s conftest$ac_exeext &&
14477 $as_test_x conftest$ac_exeext; then
14478 ac_cv_func_alloca_works=yes
14479 else
14480 echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14483 ac_cv_func_alloca_works=no
14486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14487 conftest$ac_exeext conftest.$ac_ext
14489 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14490 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14492 if test $ac_cv_func_alloca_works = yes; then
14494 cat >>confdefs.h <<\_ACEOF
14495 #define HAVE_ALLOCA 1
14496 _ACEOF
14498 else
14499 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14500 # that cause trouble. Some versions do not even contain alloca or
14501 # contain a buggy version. If you still want to use their alloca,
14502 # use ar to extract alloca.o from them instead of compiling alloca.c.
14504 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14506 cat >>confdefs.h <<\_ACEOF
14507 #define C_ALLOCA 1
14508 _ACEOF
14511 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14512 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14513 if test "${ac_cv_os_cray+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516 cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h. */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 #if defined CRAY && ! defined CRAY2
14523 webecray
14524 #else
14525 wenotbecray
14526 #endif
14528 _ACEOF
14529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14530 $EGREP "webecray" >/dev/null 2>&1; then
14531 ac_cv_os_cray=yes
14532 else
14533 ac_cv_os_cray=no
14535 rm -f conftest*
14538 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14539 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14540 if test $ac_cv_os_cray = yes; then
14541 for ac_func in _getb67 GETB67 getb67; do
14542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548 cat >conftest.$ac_ext <<_ACEOF
14549 /* confdefs.h. */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14556 #define $ac_func innocuous_$ac_func
14558 /* System header to define __stub macros and hopefully few prototypes,
14559 which can conflict with char $ac_func (); below.
14560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14561 <limits.h> exists even on freestanding compilers. */
14563 #ifdef __STDC__
14564 # include <limits.h>
14565 #else
14566 # include <assert.h>
14567 #endif
14569 #undef $ac_func
14571 /* Override any GCC internal prototype to avoid an error.
14572 Use char because int might match the return type of a GCC
14573 builtin and then its argument prototype would still apply. */
14574 #ifdef __cplusplus
14575 extern "C"
14576 #endif
14577 char $ac_func ();
14578 /* The GNU C library defines this for functions which it implements
14579 to always fail with ENOSYS. Some functions are actually named
14580 something starting with __ and the normal name is an alias. */
14581 #if defined __stub_$ac_func || defined __stub___$ac_func
14582 choke me
14583 #endif
14586 main ()
14588 return $ac_func ();
14590 return 0;
14592 _ACEOF
14593 rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (ac_try="$ac_link"
14595 case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14598 esac
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_link") 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } && {
14607 test -z "$ac_c_werror_flag" ||
14608 test ! -s conftest.err
14609 } && test -s conftest$ac_exeext &&
14610 $as_test_x conftest$ac_exeext; then
14611 eval "$as_ac_var=yes"
14612 else
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 eval "$as_ac_var=no"
14619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14620 conftest$ac_exeext conftest.$ac_ext
14622 ac_res=`eval echo '${'$as_ac_var'}'`
14623 { echo "$as_me:$LINENO: result: $ac_res" >&5
14624 echo "${ECHO_T}$ac_res" >&6; }
14625 if test `eval echo '${'$as_ac_var'}'` = yes; then
14627 cat >>confdefs.h <<_ACEOF
14628 #define CRAY_STACKSEG_END $ac_func
14629 _ACEOF
14631 break
14634 done
14637 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14638 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14639 if test "${ac_cv_c_stack_direction+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642 if test "$cross_compiling" = yes; then
14643 ac_cv_c_stack_direction=0
14644 else
14645 cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h. */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 $ac_includes_default
14653 find_stack_direction ()
14655 static char *addr = 0;
14656 auto char dummy;
14657 if (addr == 0)
14659 addr = &dummy;
14660 return find_stack_direction ();
14662 else
14663 return (&dummy > addr) ? 1 : -1;
14667 main ()
14669 return find_stack_direction () < 0;
14671 _ACEOF
14672 rm -f conftest$ac_exeext
14673 if { (ac_try="$ac_link"
14674 case "(($ac_try" in
14675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676 *) ac_try_echo=$ac_try;;
14677 esac
14678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679 (eval "$ac_link") 2>&5
14680 ac_status=$?
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14683 { (case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_try") 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; }; then
14692 ac_cv_c_stack_direction=1
14693 else
14694 echo "$as_me: program exited with status $ac_status" >&5
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 ( exit $ac_status )
14699 ac_cv_c_stack_direction=-1
14701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14706 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14707 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14709 cat >>confdefs.h <<_ACEOF
14710 #define STACK_DIRECTION $ac_cv_c_stack_direction
14711 _ACEOF
14717 # fmod, logb, and frexp are found in -lm on most systems.
14718 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14720 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14721 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14722 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 else
14725 ac_check_lib_save_LIBS=$LIBS
14726 LIBS="-lm $LIBS"
14727 cat >conftest.$ac_ext <<_ACEOF
14728 /* confdefs.h. */
14729 _ACEOF
14730 cat confdefs.h >>conftest.$ac_ext
14731 cat >>conftest.$ac_ext <<_ACEOF
14732 /* end confdefs.h. */
14734 /* Override any GCC internal prototype to avoid an error.
14735 Use char because int might match the return type of a GCC
14736 builtin and then its argument prototype would still apply. */
14737 #ifdef __cplusplus
14738 extern "C"
14739 #endif
14740 char sqrt ();
14742 main ()
14744 return sqrt ();
14746 return 0;
14748 _ACEOF
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (ac_try="$ac_link"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest$ac_exeext &&
14766 $as_test_x conftest$ac_exeext; then
14767 ac_cv_lib_m_sqrt=yes
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_cv_lib_m_sqrt=no
14775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14776 conftest$ac_exeext conftest.$ac_ext
14777 LIBS=$ac_check_lib_save_LIBS
14779 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14780 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14781 if test $ac_cv_lib_m_sqrt = yes; then
14782 cat >>confdefs.h <<_ACEOF
14783 #define HAVE_LIBM 1
14784 _ACEOF
14786 LIBS="-lm $LIBS"
14791 # Check for mail-locking functions in a "mail" library. Probably this should
14792 # have the same check as for liblockfile below.
14794 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14795 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14796 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799 ac_check_lib_save_LIBS=$LIBS
14800 LIBS="-lmail $LIBS"
14801 cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h. */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14808 /* Override any GCC internal prototype to avoid an error.
14809 Use char because int might match the return type of a GCC
14810 builtin and then its argument prototype would still apply. */
14811 #ifdef __cplusplus
14812 extern "C"
14813 #endif
14814 char maillock ();
14816 main ()
14818 return maillock ();
14820 return 0;
14822 _ACEOF
14823 rm -f conftest.$ac_objext conftest$ac_exeext
14824 if { (ac_try="$ac_link"
14825 case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_link") 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } && {
14837 test -z "$ac_c_werror_flag" ||
14838 test ! -s conftest.err
14839 } && test -s conftest$ac_exeext &&
14840 $as_test_x conftest$ac_exeext; then
14841 ac_cv_lib_mail_maillock=yes
14842 else
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_cv_lib_mail_maillock=no
14849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14850 conftest$ac_exeext conftest.$ac_ext
14851 LIBS=$ac_check_lib_save_LIBS
14853 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14854 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14855 if test $ac_cv_lib_mail_maillock = yes; then
14856 cat >>confdefs.h <<_ACEOF
14857 #define HAVE_LIBMAIL 1
14858 _ACEOF
14860 LIBS="-lmail $LIBS"
14865 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14866 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14867 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14868 echo $ECHO_N "(cached) $ECHO_C" >&6
14869 else
14870 ac_check_lib_save_LIBS=$LIBS
14871 LIBS="-llockfile $LIBS"
14872 cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h. */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14879 /* Override any GCC internal prototype to avoid an error.
14880 Use char because int might match the return type of a GCC
14881 builtin and then its argument prototype would still apply. */
14882 #ifdef __cplusplus
14883 extern "C"
14884 #endif
14885 char maillock ();
14887 main ()
14889 return maillock ();
14891 return 0;
14893 _ACEOF
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (ac_try="$ac_link"
14896 case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14899 esac
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901 (eval "$ac_link") 2>conftest.er1
14902 ac_status=$?
14903 grep -v '^ *+' conftest.er1 >conftest.err
14904 rm -f conftest.er1
14905 cat conftest.err >&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } && {
14908 test -z "$ac_c_werror_flag" ||
14909 test ! -s conftest.err
14910 } && test -s conftest$ac_exeext &&
14911 $as_test_x conftest$ac_exeext; then
14912 ac_cv_lib_lockfile_maillock=yes
14913 else
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14917 ac_cv_lib_lockfile_maillock=no
14920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14921 conftest$ac_exeext conftest.$ac_ext
14922 LIBS=$ac_check_lib_save_LIBS
14924 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14925 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14926 if test $ac_cv_lib_lockfile_maillock = yes; then
14927 cat >>confdefs.h <<_ACEOF
14928 #define HAVE_LIBLOCKFILE 1
14929 _ACEOF
14931 LIBS="-llockfile $LIBS"
14935 # If we have the shared liblockfile, assume we must use it for mail
14936 # locking (e.g. Debian). If we couldn't link against liblockfile
14937 # (no liblockfile.a installed), ensure that we don't need to.
14938 if test "$ac_cv_lib_lockfile_maillock" = no; then
14939 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14940 set dummy liblockfile.so; ac_word=$2
14941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14943 if test "${ac_cv_prog_liblockfile+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 else
14946 if test -n "$liblockfile"; then
14947 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14948 else
14949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14950 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14951 for as_dir in $as_dummy
14953 IFS=$as_save_IFS
14954 test -z "$as_dir" && as_dir=.
14955 for ac_exec_ext in '' $ac_executable_extensions; do
14956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14957 ac_cv_prog_liblockfile="yes"
14958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14959 break 2
14961 done
14962 done
14963 IFS=$as_save_IFS
14965 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14968 liblockfile=$ac_cv_prog_liblockfile
14969 if test -n "$liblockfile"; then
14970 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14971 echo "${ECHO_T}$liblockfile" >&6; }
14972 else
14973 { echo "$as_me:$LINENO: result: no" >&5
14974 echo "${ECHO_T}no" >&6; }
14978 if test $ac_cv_prog_liblockfile = yes; then
14979 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14980 This probably means that movemail could lose mail.
14981 There may be a \`development' package to install containing liblockfile." >&5
14982 echo "$as_me: error: Shared liblockfile found but can't link against it.
14983 This probably means that movemail could lose mail.
14984 There may be a \`development' package to install containing liblockfile." >&2;}
14985 { (exit 1); exit 1; }; }
14986 else :
14990 for ac_func in touchlock
14992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998 cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h. */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15006 #define $ac_func innocuous_$ac_func
15008 /* System header to define __stub macros and hopefully few prototypes,
15009 which can conflict with char $ac_func (); below.
15010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15011 <limits.h> exists even on freestanding compilers. */
15013 #ifdef __STDC__
15014 # include <limits.h>
15015 #else
15016 # include <assert.h>
15017 #endif
15019 #undef $ac_func
15021 /* Override any GCC internal prototype to avoid an error.
15022 Use char because int might match the return type of a GCC
15023 builtin and then its argument prototype would still apply. */
15024 #ifdef __cplusplus
15025 extern "C"
15026 #endif
15027 char $ac_func ();
15028 /* The GNU C library defines this for functions which it implements
15029 to always fail with ENOSYS. Some functions are actually named
15030 something starting with __ and the normal name is an alias. */
15031 #if defined __stub_$ac_func || defined __stub___$ac_func
15032 choke me
15033 #endif
15036 main ()
15038 return $ac_func ();
15040 return 0;
15042 _ACEOF
15043 rm -f conftest.$ac_objext conftest$ac_exeext
15044 if { (ac_try="$ac_link"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048 esac
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_link") 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } && {
15057 test -z "$ac_c_werror_flag" ||
15058 test ! -s conftest.err
15059 } && test -s conftest$ac_exeext &&
15060 $as_test_x conftest$ac_exeext; then
15061 eval "$as_ac_var=yes"
15062 else
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 eval "$as_ac_var=no"
15069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15070 conftest$ac_exeext conftest.$ac_ext
15072 ac_res=`eval echo '${'$as_ac_var'}'`
15073 { echo "$as_me:$LINENO: result: $ac_res" >&5
15074 echo "${ECHO_T}$ac_res" >&6; }
15075 if test `eval echo '${'$as_ac_var'}'` = yes; then
15076 cat >>confdefs.h <<_ACEOF
15077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15078 _ACEOF
15081 done
15084 for ac_header in maillock.h
15086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15091 echo $ECHO_N "(cached) $ECHO_C" >&6
15093 ac_res=`eval echo '${'$as_ac_Header'}'`
15094 { echo "$as_me:$LINENO: result: $ac_res" >&5
15095 echo "${ECHO_T}$ac_res" >&6; }
15096 else
15097 # Is the header compilable?
15098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h. */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 $ac_includes_default
15107 #include <$ac_header>
15108 _ACEOF
15109 rm -f conftest.$ac_objext
15110 if { (ac_try="$ac_compile"
15111 case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15114 esac
15115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_compile") 2>conftest.er1
15117 ac_status=$?
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } && {
15123 test -z "$ac_c_werror_flag" ||
15124 test ! -s conftest.err
15125 } && test -s conftest.$ac_objext; then
15126 ac_header_compiler=yes
15127 else
15128 echo "$as_me: failed program was:" >&5
15129 sed 's/^/| /' conftest.$ac_ext >&5
15131 ac_header_compiler=no
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15136 echo "${ECHO_T}$ac_header_compiler" >&6; }
15138 # Is the header present?
15139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h. */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15147 #include <$ac_header>
15148 _ACEOF
15149 if { (ac_try="$ac_cpp conftest.$ac_ext"
15150 case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15153 esac
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15156 ac_status=$?
15157 grep -v '^ *+' conftest.er1 >conftest.err
15158 rm -f conftest.er1
15159 cat conftest.err >&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } >/dev/null && {
15162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15163 test ! -s conftest.err
15164 }; then
15165 ac_header_preproc=yes
15166 else
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_header_preproc=no
15173 rm -f conftest.err conftest.$ac_ext
15174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15175 echo "${ECHO_T}$ac_header_preproc" >&6; }
15177 # So? What about this header?
15178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15179 yes:no: )
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15184 ac_header_preproc=yes
15186 no:yes:* )
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15201 esac
15202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207 eval "$as_ac_Header=\$ac_header_preproc"
15209 ac_res=`eval echo '${'$as_ac_Header'}'`
15210 { echo "$as_me:$LINENO: result: $ac_res" >&5
15211 echo "${ECHO_T}$ac_res" >&6; }
15214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15215 cat >>confdefs.h <<_ACEOF
15216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15217 _ACEOF
15221 done
15293 for ac_func in gethostname getdomainname dup2 \
15294 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15295 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15296 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15297 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15298 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15299 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15300 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15301 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 else
15309 cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h. */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15317 #define $ac_func innocuous_$ac_func
15319 /* System header to define __stub macros and hopefully few prototypes,
15320 which can conflict with char $ac_func (); below.
15321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15322 <limits.h> exists even on freestanding compilers. */
15324 #ifdef __STDC__
15325 # include <limits.h>
15326 #else
15327 # include <assert.h>
15328 #endif
15330 #undef $ac_func
15332 /* Override any GCC internal prototype to avoid an error.
15333 Use char because int might match the return type of a GCC
15334 builtin and then its argument prototype would still apply. */
15335 #ifdef __cplusplus
15336 extern "C"
15337 #endif
15338 char $ac_func ();
15339 /* The GNU C library defines this for functions which it implements
15340 to always fail with ENOSYS. Some functions are actually named
15341 something starting with __ and the normal name is an alias. */
15342 #if defined __stub_$ac_func || defined __stub___$ac_func
15343 choke me
15344 #endif
15347 main ()
15349 return $ac_func ();
15351 return 0;
15353 _ACEOF
15354 rm -f conftest.$ac_objext conftest$ac_exeext
15355 if { (ac_try="$ac_link"
15356 case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15359 esac
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361 (eval "$ac_link") 2>conftest.er1
15362 ac_status=$?
15363 grep -v '^ *+' conftest.er1 >conftest.err
15364 rm -f conftest.er1
15365 cat conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } && {
15368 test -z "$ac_c_werror_flag" ||
15369 test ! -s conftest.err
15370 } && test -s conftest$ac_exeext &&
15371 $as_test_x conftest$ac_exeext; then
15372 eval "$as_ac_var=yes"
15373 else
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 eval "$as_ac_var=no"
15380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15381 conftest$ac_exeext conftest.$ac_ext
15383 ac_res=`eval echo '${'$as_ac_var'}'`
15384 { echo "$as_me:$LINENO: result: $ac_res" >&5
15385 echo "${ECHO_T}$ac_res" >&6; }
15386 if test `eval echo '${'$as_ac_var'}'` = yes; then
15387 cat >>confdefs.h <<_ACEOF
15388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15389 _ACEOF
15392 done
15396 for ac_header in sys/un.h
15398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15405 ac_res=`eval echo '${'$as_ac_Header'}'`
15406 { echo "$as_me:$LINENO: result: $ac_res" >&5
15407 echo "${ECHO_T}$ac_res" >&6; }
15408 else
15409 # Is the header compilable?
15410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h. */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 $ac_includes_default
15419 #include <$ac_header>
15420 _ACEOF
15421 rm -f conftest.$ac_objext
15422 if { (ac_try="$ac_compile"
15423 case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15426 esac
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_compile") 2>conftest.er1
15429 ac_status=$?
15430 grep -v '^ *+' conftest.er1 >conftest.err
15431 rm -f conftest.er1
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } && {
15435 test -z "$ac_c_werror_flag" ||
15436 test ! -s conftest.err
15437 } && test -s conftest.$ac_objext; then
15438 ac_header_compiler=yes
15439 else
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15443 ac_header_compiler=no
15446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15448 echo "${ECHO_T}$ac_header_compiler" >&6; }
15450 # Is the header present?
15451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h. */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 #include <$ac_header>
15460 _ACEOF
15461 if { (ac_try="$ac_cpp conftest.$ac_ext"
15462 case "(($ac_try" in
15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464 *) ac_try_echo=$ac_try;;
15465 esac
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } >/dev/null && {
15474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15475 test ! -s conftest.err
15476 }; then
15477 ac_header_preproc=yes
15478 else
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_header_preproc=no
15485 rm -f conftest.err conftest.$ac_ext
15486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15487 echo "${ECHO_T}$ac_header_preproc" >&6; }
15489 # So? What about this header?
15490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15491 yes:no: )
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15496 ac_header_preproc=yes
15498 no:yes:* )
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15513 esac
15514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 else
15519 eval "$as_ac_Header=\$ac_header_preproc"
15521 ac_res=`eval echo '${'$as_ac_Header'}'`
15522 { echo "$as_me:$LINENO: result: $ac_res" >&5
15523 echo "${ECHO_T}$ac_res" >&6; }
15526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15529 _ACEOF
15533 done
15540 for ac_header in $ac_header_list
15542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 ac_res=`eval echo '${'$as_ac_Header'}'`
15550 { echo "$as_me:$LINENO: result: $ac_res" >&5
15551 echo "${ECHO_T}$ac_res" >&6; }
15552 else
15553 # Is the header compilable?
15554 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15556 cat >conftest.$ac_ext <<_ACEOF
15557 /* confdefs.h. */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15562 $ac_includes_default
15563 #include <$ac_header>
15564 _ACEOF
15565 rm -f conftest.$ac_objext
15566 if { (ac_try="$ac_compile"
15567 case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15570 esac
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_compile") 2>conftest.er1
15573 ac_status=$?
15574 grep -v '^ *+' conftest.er1 >conftest.err
15575 rm -f conftest.er1
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } && {
15579 test -z "$ac_c_werror_flag" ||
15580 test ! -s conftest.err
15581 } && test -s conftest.$ac_objext; then
15582 ac_header_compiler=yes
15583 else
15584 echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15587 ac_header_compiler=no
15590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15592 echo "${ECHO_T}$ac_header_compiler" >&6; }
15594 # Is the header present?
15595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15597 cat >conftest.$ac_ext <<_ACEOF
15598 /* confdefs.h. */
15599 _ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15603 #include <$ac_header>
15604 _ACEOF
15605 if { (ac_try="$ac_cpp conftest.$ac_ext"
15606 case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15609 esac
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15612 ac_status=$?
15613 grep -v '^ *+' conftest.er1 >conftest.err
15614 rm -f conftest.er1
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } >/dev/null && {
15618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15619 test ! -s conftest.err
15620 }; then
15621 ac_header_preproc=yes
15622 else
15623 echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 ac_header_preproc=no
15629 rm -f conftest.err conftest.$ac_ext
15630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15631 echo "${ECHO_T}$ac_header_preproc" >&6; }
15633 # So? What about this header?
15634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15635 yes:no: )
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15640 ac_header_preproc=yes
15642 no:yes:* )
15643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15657 esac
15658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663 eval "$as_ac_Header=\$ac_header_preproc"
15665 ac_res=`eval echo '${'$as_ac_Header'}'`
15666 { echo "$as_me:$LINENO: result: $ac_res" >&5
15667 echo "${ECHO_T}$ac_res" >&6; }
15670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15671 cat >>confdefs.h <<_ACEOF
15672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15673 _ACEOF
15677 done
15687 for ac_func in $ac_func_list
15689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 else
15695 cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h. */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15703 #define $ac_func innocuous_$ac_func
15705 /* System header to define __stub macros and hopefully few prototypes,
15706 which can conflict with char $ac_func (); below.
15707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15708 <limits.h> exists even on freestanding compilers. */
15710 #ifdef __STDC__
15711 # include <limits.h>
15712 #else
15713 # include <assert.h>
15714 #endif
15716 #undef $ac_func
15718 /* Override any GCC internal prototype to avoid an error.
15719 Use char because int might match the return type of a GCC
15720 builtin and then its argument prototype would still apply. */
15721 #ifdef __cplusplus
15722 extern "C"
15723 #endif
15724 char $ac_func ();
15725 /* The GNU C library defines this for functions which it implements
15726 to always fail with ENOSYS. Some functions are actually named
15727 something starting with __ and the normal name is an alias. */
15728 #if defined __stub_$ac_func || defined __stub___$ac_func
15729 choke me
15730 #endif
15733 main ()
15735 return $ac_func ();
15737 return 0;
15739 _ACEOF
15740 rm -f conftest.$ac_objext conftest$ac_exeext
15741 if { (ac_try="$ac_link"
15742 case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15745 esac
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_link") 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } && {
15754 test -z "$ac_c_werror_flag" ||
15755 test ! -s conftest.err
15756 } && test -s conftest$ac_exeext &&
15757 $as_test_x conftest$ac_exeext; then
15758 eval "$as_ac_var=yes"
15759 else
15760 echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.$ac_ext >&5
15763 eval "$as_ac_var=no"
15766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15767 conftest$ac_exeext conftest.$ac_ext
15769 ac_res=`eval echo '${'$as_ac_var'}'`
15770 { echo "$as_me:$LINENO: result: $ac_res" >&5
15771 echo "${ECHO_T}$ac_res" >&6; }
15772 if test `eval echo '${'$as_ac_var'}'` = yes; then
15773 cat >>confdefs.h <<_ACEOF
15774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15775 _ACEOF
15778 done
15796 { echo "$as_me:$LINENO: checking for working mktime" >&5
15797 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15798 if test "${ac_cv_func_working_mktime+set}" = set; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 else
15801 if test "$cross_compiling" = yes; then
15802 ac_cv_func_working_mktime=no
15803 else
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h. */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 /* Test program from Paul Eggert and Tony Leneis. */
15811 #ifdef TIME_WITH_SYS_TIME
15812 # include <sys/time.h>
15813 # include <time.h>
15814 #else
15815 # ifdef HAVE_SYS_TIME_H
15816 # include <sys/time.h>
15817 # else
15818 # include <time.h>
15819 # endif
15820 #endif
15822 #include <stdlib.h>
15824 #ifdef HAVE_UNISTD_H
15825 # include <unistd.h>
15826 #endif
15828 #ifndef HAVE_ALARM
15829 # define alarm(X) /* empty */
15830 #endif
15832 /* Work around redefinition to rpl_putenv by other config tests. */
15833 #undef putenv
15835 static time_t time_t_max;
15836 static time_t time_t_min;
15838 /* Values we'll use to set the TZ environment variable. */
15839 static char *tz_strings[] = {
15840 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15841 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15843 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15845 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15846 Based on a problem report from Andreas Jaeger. */
15847 static int
15848 spring_forward_gap ()
15850 /* glibc (up to about 1998-10-07) failed this test. */
15851 struct tm tm;
15853 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15854 instead of "TZ=America/Vancouver" in order to detect the bug even
15855 on systems that don't support the Olson extension, or don't have the
15856 full zoneinfo tables installed. */
15857 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15859 tm.tm_year = 98;
15860 tm.tm_mon = 3;
15861 tm.tm_mday = 5;
15862 tm.tm_hour = 2;
15863 tm.tm_min = 0;
15864 tm.tm_sec = 0;
15865 tm.tm_isdst = -1;
15866 return mktime (&tm) != (time_t) -1;
15869 static int
15870 mktime_test1 (now)
15871 time_t now;
15873 struct tm *lt;
15874 return ! (lt = localtime (&now)) || mktime (lt) == now;
15877 static int
15878 mktime_test (now)
15879 time_t now;
15881 return (mktime_test1 (now)
15882 && mktime_test1 ((time_t) (time_t_max - now))
15883 && mktime_test1 ((time_t) (time_t_min + now)));
15886 static int
15887 irix_6_4_bug ()
15889 /* Based on code from Ariel Faigon. */
15890 struct tm tm;
15891 tm.tm_year = 96;
15892 tm.tm_mon = 3;
15893 tm.tm_mday = 0;
15894 tm.tm_hour = 0;
15895 tm.tm_min = 0;
15896 tm.tm_sec = 0;
15897 tm.tm_isdst = -1;
15898 mktime (&tm);
15899 return tm.tm_mon == 2 && tm.tm_mday == 31;
15902 static int
15903 bigtime_test (j)
15904 int j;
15906 struct tm tm;
15907 time_t now;
15908 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15909 now = mktime (&tm);
15910 if (now != (time_t) -1)
15912 struct tm *lt = localtime (&now);
15913 if (! (lt
15914 && lt->tm_year == tm.tm_year
15915 && lt->tm_mon == tm.tm_mon
15916 && lt->tm_mday == tm.tm_mday
15917 && lt->tm_hour == tm.tm_hour
15918 && lt->tm_min == tm.tm_min
15919 && lt->tm_sec == tm.tm_sec
15920 && lt->tm_yday == tm.tm_yday
15921 && lt->tm_wday == tm.tm_wday
15922 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15923 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15924 return 0;
15926 return 1;
15929 static int
15930 year_2050_test ()
15932 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15933 ignoring leap seconds. */
15934 unsigned long int answer = 2527315200UL;
15936 struct tm tm;
15937 time_t t;
15938 tm.tm_year = 2050 - 1900;
15939 tm.tm_mon = 2 - 1;
15940 tm.tm_mday = 1;
15941 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15942 tm.tm_isdst = -1;
15944 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15945 instead of "TZ=America/Vancouver" in order to detect the bug even
15946 on systems that don't support the Olson extension, or don't have the
15947 full zoneinfo tables installed. */
15948 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15950 t = mktime (&tm);
15952 /* Check that the result is either a failure, or close enough
15953 to the correct answer that we can assume the discrepancy is
15954 due to leap seconds. */
15955 return (t == (time_t) -1
15956 || (0 < t && answer - 120 <= t && t <= answer + 120));
15960 main ()
15962 time_t t, delta;
15963 int i, j;
15965 /* This test makes some buggy mktime implementations loop.
15966 Give up after 60 seconds; a mktime slower than that
15967 isn't worth using anyway. */
15968 alarm (60);
15970 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15971 continue;
15972 time_t_max--;
15973 if ((time_t) -1 < 0)
15974 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15975 continue;
15976 delta = time_t_max / 997; /* a suitable prime number */
15977 for (i = 0; i < N_STRINGS; i++)
15979 if (tz_strings[i])
15980 putenv (tz_strings[i]);
15982 for (t = 0; t <= time_t_max - delta; t += delta)
15983 if (! mktime_test (t))
15984 return 1;
15985 if (! (mktime_test ((time_t) 1)
15986 && mktime_test ((time_t) (60 * 60))
15987 && mktime_test ((time_t) (60 * 60 * 24))))
15988 return 1;
15990 for (j = 1; 0 < j; j *= 2)
15991 if (! bigtime_test (j))
15992 return 1;
15993 if (! bigtime_test (j - 1))
15994 return 1;
15996 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15998 _ACEOF
15999 rm -f conftest$ac_exeext
16000 if { (ac_try="$ac_link"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16004 esac
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_link") 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16010 { (case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16013 esac
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015 (eval "$ac_try") 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019 ac_cv_func_working_mktime=yes
16020 else
16021 echo "$as_me: program exited with status $ac_status" >&5
16022 echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16025 ( exit $ac_status )
16026 ac_cv_func_working_mktime=no
16028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16033 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16034 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16035 if test $ac_cv_func_working_mktime = no; then
16036 case " $LIBOBJS " in
16037 *" mktime.$ac_objext "* ) ;;
16038 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16040 esac
16044 if test "$ac_cv_func_working_mktime" = no; then
16046 cat >>confdefs.h <<\_ACEOF
16047 #define BROKEN_MKTIME 1
16048 _ACEOF
16052 ac_have_func=no # yes means we've found a way to get the load average.
16054 # Make sure getloadavg.c is where it belongs, at configure-time.
16055 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16056 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16057 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16058 { (exit 1); exit 1; }; }
16060 ac_save_LIBS=$LIBS
16062 # Check for getloadavg, but be sure not to touch the cache variable.
16063 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16064 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16065 if test "${ac_cv_func_getloadavg+set}" = set; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 else
16068 cat >conftest.$ac_ext <<_ACEOF
16069 /* confdefs.h. */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16074 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16076 #define getloadavg innocuous_getloadavg
16078 /* System header to define __stub macros and hopefully few prototypes,
16079 which can conflict with char getloadavg (); below.
16080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16081 <limits.h> exists even on freestanding compilers. */
16083 #ifdef __STDC__
16084 # include <limits.h>
16085 #else
16086 # include <assert.h>
16087 #endif
16089 #undef getloadavg
16091 /* Override any GCC internal prototype to avoid an error.
16092 Use char because int might match the return type of a GCC
16093 builtin and then its argument prototype would still apply. */
16094 #ifdef __cplusplus
16095 extern "C"
16096 #endif
16097 char getloadavg ();
16098 /* The GNU C library defines this for functions which it implements
16099 to always fail with ENOSYS. Some functions are actually named
16100 something starting with __ and the normal name is an alias. */
16101 #if defined __stub_getloadavg || defined __stub___getloadavg
16102 choke me
16103 #endif
16106 main ()
16108 return getloadavg ();
16110 return 0;
16112 _ACEOF
16113 rm -f conftest.$ac_objext conftest$ac_exeext
16114 if { (ac_try="$ac_link"
16115 case "(($ac_try" in
16116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117 *) ac_try_echo=$ac_try;;
16118 esac
16119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16120 (eval "$ac_link") 2>conftest.er1
16121 ac_status=$?
16122 grep -v '^ *+' conftest.er1 >conftest.err
16123 rm -f conftest.er1
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } && {
16127 test -z "$ac_c_werror_flag" ||
16128 test ! -s conftest.err
16129 } && test -s conftest$ac_exeext &&
16130 $as_test_x conftest$ac_exeext; then
16131 ac_cv_func_getloadavg=yes
16132 else
16133 echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16136 ac_cv_func_getloadavg=no
16139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16140 conftest$ac_exeext conftest.$ac_ext
16142 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16143 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16144 if test $ac_cv_func_getloadavg = yes; then
16145 exit 0
16146 else
16147 exit 1
16149 ) && ac_have_func=yes
16151 # On HPUX9, an unprivileged user can get load averages through this function.
16153 for ac_func in pstat_getdynamic
16155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 else
16161 cat >conftest.$ac_ext <<_ACEOF
16162 /* confdefs.h. */
16163 _ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h. */
16167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16169 #define $ac_func innocuous_$ac_func
16171 /* System header to define __stub macros and hopefully few prototypes,
16172 which can conflict with char $ac_func (); below.
16173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16174 <limits.h> exists even on freestanding compilers. */
16176 #ifdef __STDC__
16177 # include <limits.h>
16178 #else
16179 # include <assert.h>
16180 #endif
16182 #undef $ac_func
16184 /* Override any GCC internal prototype to avoid an error.
16185 Use char because int might match the return type of a GCC
16186 builtin and then its argument prototype would still apply. */
16187 #ifdef __cplusplus
16188 extern "C"
16189 #endif
16190 char $ac_func ();
16191 /* The GNU C library defines this for functions which it implements
16192 to always fail with ENOSYS. Some functions are actually named
16193 something starting with __ and the normal name is an alias. */
16194 #if defined __stub_$ac_func || defined __stub___$ac_func
16195 choke me
16196 #endif
16199 main ()
16201 return $ac_func ();
16203 return 0;
16205 _ACEOF
16206 rm -f conftest.$ac_objext conftest$ac_exeext
16207 if { (ac_try="$ac_link"
16208 case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16211 esac
16212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213 (eval "$ac_link") 2>conftest.er1
16214 ac_status=$?
16215 grep -v '^ *+' conftest.er1 >conftest.err
16216 rm -f conftest.er1
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } && {
16220 test -z "$ac_c_werror_flag" ||
16221 test ! -s conftest.err
16222 } && test -s conftest$ac_exeext &&
16223 $as_test_x conftest$ac_exeext; then
16224 eval "$as_ac_var=yes"
16225 else
16226 echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16229 eval "$as_ac_var=no"
16232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16233 conftest$ac_exeext conftest.$ac_ext
16235 ac_res=`eval echo '${'$as_ac_var'}'`
16236 { echo "$as_me:$LINENO: result: $ac_res" >&5
16237 echo "${ECHO_T}$ac_res" >&6; }
16238 if test `eval echo '${'$as_ac_var'}'` = yes; then
16239 cat >>confdefs.h <<_ACEOF
16240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16241 _ACEOF
16244 done
16247 # Solaris has libkstat which does not require root.
16249 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16250 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16251 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 else
16254 ac_check_lib_save_LIBS=$LIBS
16255 LIBS="-lkstat $LIBS"
16256 cat >conftest.$ac_ext <<_ACEOF
16257 /* confdefs.h. */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16263 /* Override any GCC internal prototype to avoid an error.
16264 Use char because int might match the return type of a GCC
16265 builtin and then its argument prototype would still apply. */
16266 #ifdef __cplusplus
16267 extern "C"
16268 #endif
16269 char kstat_open ();
16271 main ()
16273 return kstat_open ();
16275 return 0;
16277 _ACEOF
16278 rm -f conftest.$ac_objext conftest$ac_exeext
16279 if { (ac_try="$ac_link"
16280 case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16283 esac
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_link") 2>conftest.er1
16286 ac_status=$?
16287 grep -v '^ *+' conftest.er1 >conftest.err
16288 rm -f conftest.er1
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } && {
16292 test -z "$ac_c_werror_flag" ||
16293 test ! -s conftest.err
16294 } && test -s conftest$ac_exeext &&
16295 $as_test_x conftest$ac_exeext; then
16296 ac_cv_lib_kstat_kstat_open=yes
16297 else
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16301 ac_cv_lib_kstat_kstat_open=no
16304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16305 conftest$ac_exeext conftest.$ac_ext
16306 LIBS=$ac_check_lib_save_LIBS
16308 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16309 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16310 if test $ac_cv_lib_kstat_kstat_open = yes; then
16311 cat >>confdefs.h <<_ACEOF
16312 #define HAVE_LIBKSTAT 1
16313 _ACEOF
16315 LIBS="-lkstat $LIBS"
16319 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16321 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16322 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16323 # to get the right answer into the cache.
16324 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16325 if test $ac_have_func = no; then
16326 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16327 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16328 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 else
16331 ac_check_lib_save_LIBS=$LIBS
16332 LIBS="-lelf $LIBS"
16333 cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h. */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h. */
16340 /* Override any GCC internal prototype to avoid an error.
16341 Use char because int might match the return type of a GCC
16342 builtin and then its argument prototype would still apply. */
16343 #ifdef __cplusplus
16344 extern "C"
16345 #endif
16346 char elf_begin ();
16348 main ()
16350 return elf_begin ();
16352 return 0;
16354 _ACEOF
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (ac_try="$ac_link"
16357 case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_link") 2>conftest.er1
16363 ac_status=$?
16364 grep -v '^ *+' conftest.er1 >conftest.err
16365 rm -f conftest.er1
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest$ac_exeext &&
16372 $as_test_x conftest$ac_exeext; then
16373 ac_cv_lib_elf_elf_begin=yes
16374 else
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 ac_cv_lib_elf_elf_begin=no
16381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16382 conftest$ac_exeext conftest.$ac_ext
16383 LIBS=$ac_check_lib_save_LIBS
16385 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16386 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16387 if test $ac_cv_lib_elf_elf_begin = yes; then
16388 LIBS="-lelf $LIBS"
16392 if test $ac_have_func = no; then
16393 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16394 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16395 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 else
16398 ac_check_lib_save_LIBS=$LIBS
16399 LIBS="-lkvm $LIBS"
16400 cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h. */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16407 /* Override any GCC internal prototype to avoid an error.
16408 Use char because int might match the return type of a GCC
16409 builtin and then its argument prototype would still apply. */
16410 #ifdef __cplusplus
16411 extern "C"
16412 #endif
16413 char kvm_open ();
16415 main ()
16417 return kvm_open ();
16419 return 0;
16421 _ACEOF
16422 rm -f conftest.$ac_objext conftest$ac_exeext
16423 if { (ac_try="$ac_link"
16424 case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_link") 2>conftest.er1
16430 ac_status=$?
16431 grep -v '^ *+' conftest.er1 >conftest.err
16432 rm -f conftest.er1
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } && {
16436 test -z "$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16438 } && test -s conftest$ac_exeext &&
16439 $as_test_x conftest$ac_exeext; then
16440 ac_cv_lib_kvm_kvm_open=yes
16441 else
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16445 ac_cv_lib_kvm_kvm_open=no
16448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16449 conftest$ac_exeext conftest.$ac_ext
16450 LIBS=$ac_check_lib_save_LIBS
16452 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16453 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16454 if test $ac_cv_lib_kvm_kvm_open = yes; then
16455 LIBS="-lkvm $LIBS"
16458 # Check for the 4.4BSD definition of getloadavg.
16459 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16460 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16461 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 else
16464 ac_check_lib_save_LIBS=$LIBS
16465 LIBS="-lutil $LIBS"
16466 cat >conftest.$ac_ext <<_ACEOF
16467 /* confdefs.h. */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16473 /* Override any GCC internal prototype to avoid an error.
16474 Use char because int might match the return type of a GCC
16475 builtin and then its argument prototype would still apply. */
16476 #ifdef __cplusplus
16477 extern "C"
16478 #endif
16479 char getloadavg ();
16481 main ()
16483 return getloadavg ();
16485 return 0;
16487 _ACEOF
16488 rm -f conftest.$ac_objext conftest$ac_exeext
16489 if { (ac_try="$ac_link"
16490 case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16493 esac
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_link") 2>conftest.er1
16496 ac_status=$?
16497 grep -v '^ *+' conftest.er1 >conftest.err
16498 rm -f conftest.er1
16499 cat conftest.err >&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } && {
16502 test -z "$ac_c_werror_flag" ||
16503 test ! -s conftest.err
16504 } && test -s conftest$ac_exeext &&
16505 $as_test_x conftest$ac_exeext; then
16506 ac_cv_lib_util_getloadavg=yes
16507 else
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16511 ac_cv_lib_util_getloadavg=no
16514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16515 conftest$ac_exeext conftest.$ac_ext
16516 LIBS=$ac_check_lib_save_LIBS
16518 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16519 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16520 if test $ac_cv_lib_util_getloadavg = yes; then
16521 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16526 if test $ac_have_func = no; then
16527 # There is a commonly available library for RS/6000 AIX.
16528 # Since it is not a standard part of AIX, it might be installed locally.
16529 ac_getloadavg_LIBS=$LIBS
16530 LIBS="-L/usr/local/lib $LIBS"
16531 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16532 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16533 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16535 else
16536 ac_check_lib_save_LIBS=$LIBS
16537 LIBS="-lgetloadavg $LIBS"
16538 cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h. */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16545 /* Override any GCC internal prototype to avoid an error.
16546 Use char because int might match the return type of a GCC
16547 builtin and then its argument prototype would still apply. */
16548 #ifdef __cplusplus
16549 extern "C"
16550 #endif
16551 char getloadavg ();
16553 main ()
16555 return getloadavg ();
16557 return 0;
16559 _ACEOF
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_link") 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && {
16574 test -z "$ac_c_werror_flag" ||
16575 test ! -s conftest.err
16576 } && test -s conftest$ac_exeext &&
16577 $as_test_x conftest$ac_exeext; then
16578 ac_cv_lib_getloadavg_getloadavg=yes
16579 else
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ac_cv_lib_getloadavg_getloadavg=no
16586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16587 conftest$ac_exeext conftest.$ac_ext
16588 LIBS=$ac_check_lib_save_LIBS
16590 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16591 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16592 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16593 LIBS="-lgetloadavg $LIBS"
16594 else
16595 LIBS=$ac_getloadavg_LIBS
16600 # Make sure it is really in the library, if we think we found it,
16601 # otherwise set up the replacement function.
16603 for ac_func in getloadavg
16605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611 cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h. */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16619 #define $ac_func innocuous_$ac_func
16621 /* System header to define __stub macros and hopefully few prototypes,
16622 which can conflict with char $ac_func (); below.
16623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16624 <limits.h> exists even on freestanding compilers. */
16626 #ifdef __STDC__
16627 # include <limits.h>
16628 #else
16629 # include <assert.h>
16630 #endif
16632 #undef $ac_func
16634 /* Override any GCC internal prototype to avoid an error.
16635 Use char because int might match the return type of a GCC
16636 builtin and then its argument prototype would still apply. */
16637 #ifdef __cplusplus
16638 extern "C"
16639 #endif
16640 char $ac_func ();
16641 /* The GNU C library defines this for functions which it implements
16642 to always fail with ENOSYS. Some functions are actually named
16643 something starting with __ and the normal name is an alias. */
16644 #if defined __stub_$ac_func || defined __stub___$ac_func
16645 choke me
16646 #endif
16649 main ()
16651 return $ac_func ();
16653 return 0;
16655 _ACEOF
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (ac_try="$ac_link"
16658 case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661 esac
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_link") 2>conftest.er1
16664 ac_status=$?
16665 grep -v '^ *+' conftest.er1 >conftest.err
16666 rm -f conftest.er1
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } && {
16670 test -z "$ac_c_werror_flag" ||
16671 test ! -s conftest.err
16672 } && test -s conftest$ac_exeext &&
16673 $as_test_x conftest$ac_exeext; then
16674 eval "$as_ac_var=yes"
16675 else
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 eval "$as_ac_var=no"
16682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16683 conftest$ac_exeext conftest.$ac_ext
16685 ac_res=`eval echo '${'$as_ac_var'}'`
16686 { echo "$as_me:$LINENO: result: $ac_res" >&5
16687 echo "${ECHO_T}$ac_res" >&6; }
16688 if test `eval echo '${'$as_ac_var'}'` = yes; then
16689 cat >>confdefs.h <<_ACEOF
16690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16691 _ACEOF
16693 else
16694 case " $LIBOBJS " in
16695 *" getloadavg.$ac_objext "* ) ;;
16696 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16698 esac
16701 cat >>confdefs.h <<\_ACEOF
16702 #define C_GETLOADAVG 1
16703 _ACEOF
16705 # Figure out what our getloadavg.c needs.
16706 ac_have_func=no
16707 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16708 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16709 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16710 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16714 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16715 else
16716 # Is the header compilable?
16717 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16718 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16719 cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h. */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16725 $ac_includes_default
16726 #include <sys/dg_sys_info.h>
16727 _ACEOF
16728 rm -f conftest.$ac_objext
16729 if { (ac_try="$ac_compile"
16730 case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733 esac
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_compile") 2>conftest.er1
16736 ac_status=$?
16737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest.$ac_objext; then
16745 ac_header_compiler=yes
16746 else
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16750 ac_header_compiler=no
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16755 echo "${ECHO_T}$ac_header_compiler" >&6; }
16757 # Is the header present?
16758 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16759 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h. */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 #include <sys/dg_sys_info.h>
16767 _ACEOF
16768 if { (ac_try="$ac_cpp conftest.$ac_ext"
16769 case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16772 esac
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16775 ac_status=$?
16776 grep -v '^ *+' conftest.er1 >conftest.err
16777 rm -f conftest.er1
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } >/dev/null && {
16781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16782 test ! -s conftest.err
16783 }; then
16784 ac_header_preproc=yes
16785 else
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_header_preproc=no
16792 rm -f conftest.err conftest.$ac_ext
16793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16794 echo "${ECHO_T}$ac_header_preproc" >&6; }
16796 # So? What about this header?
16797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16798 yes:no: )
16799 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16800 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16802 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16803 ac_header_preproc=yes
16805 no:yes:* )
16806 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16807 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16809 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16810 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16811 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16813 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16815 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16817 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16820 esac
16821 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16822 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16823 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16828 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16829 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16832 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16833 ac_have_func=yes
16835 cat >>confdefs.h <<\_ACEOF
16836 #define DGUX 1
16837 _ACEOF
16840 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16841 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16842 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845 ac_check_lib_save_LIBS=$LIBS
16846 LIBS="-ldgc $LIBS"
16847 cat >conftest.$ac_ext <<_ACEOF
16848 /* confdefs.h. */
16849 _ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16854 /* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16857 #ifdef __cplusplus
16858 extern "C"
16859 #endif
16860 char dg_sys_info ();
16862 main ()
16864 return dg_sys_info ();
16866 return 0;
16868 _ACEOF
16869 rm -f conftest.$ac_objext conftest$ac_exeext
16870 if { (ac_try="$ac_link"
16871 case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16874 esac
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_link") 2>conftest.er1
16877 ac_status=$?
16878 grep -v '^ *+' conftest.er1 >conftest.err
16879 rm -f conftest.er1
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } && {
16883 test -z "$ac_c_werror_flag" ||
16884 test ! -s conftest.err
16885 } && test -s conftest$ac_exeext &&
16886 $as_test_x conftest$ac_exeext; then
16887 ac_cv_lib_dgc_dg_sys_info=yes
16888 else
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16892 ac_cv_lib_dgc_dg_sys_info=no
16895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16896 conftest$ac_exeext conftest.$ac_ext
16897 LIBS=$ac_check_lib_save_LIBS
16899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16900 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16901 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16902 cat >>confdefs.h <<_ACEOF
16903 #define HAVE_LIBDGC 1
16904 _ACEOF
16906 LIBS="-ldgc $LIBS"
16914 if test "${ac_cv_header_locale_h+set}" = set; then
16915 { echo "$as_me:$LINENO: checking for locale.h" >&5
16916 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16917 if test "${ac_cv_header_locale_h+set}" = set; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16920 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16921 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16922 else
16923 # Is the header compilable?
16924 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16925 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16926 cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h. */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 $ac_includes_default
16933 #include <locale.h>
16934 _ACEOF
16935 rm -f conftest.$ac_objext
16936 if { (ac_try="$ac_compile"
16937 case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_compile") 2>conftest.er1
16943 ac_status=$?
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } && {
16949 test -z "$ac_c_werror_flag" ||
16950 test ! -s conftest.err
16951 } && test -s conftest.$ac_objext; then
16952 ac_header_compiler=yes
16953 else
16954 echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16957 ac_header_compiler=no
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16962 echo "${ECHO_T}$ac_header_compiler" >&6; }
16964 # Is the header present?
16965 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16966 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16967 cat >conftest.$ac_ext <<_ACEOF
16968 /* confdefs.h. */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16973 #include <locale.h>
16974 _ACEOF
16975 if { (ac_try="$ac_cpp conftest.$ac_ext"
16976 case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16982 ac_status=$?
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } >/dev/null && {
16988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16989 test ! -s conftest.err
16990 }; then
16991 ac_header_preproc=yes
16992 else
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16996 ac_header_preproc=no
16999 rm -f conftest.err conftest.$ac_ext
17000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17001 echo "${ECHO_T}$ac_header_preproc" >&6; }
17003 # So? What about this header?
17004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17005 yes:no: )
17006 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17007 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17008 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17009 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17010 ac_header_preproc=yes
17012 no:yes:* )
17013 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17014 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17015 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17016 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17017 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17018 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17019 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17020 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17021 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17022 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17024 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17027 esac
17028 { echo "$as_me:$LINENO: checking for locale.h" >&5
17029 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17030 if test "${ac_cv_header_locale_h+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033 ac_cv_header_locale_h=$ac_header_preproc
17035 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17036 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17042 for ac_func in setlocale
17044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17049 else
17050 cat >conftest.$ac_ext <<_ACEOF
17051 /* confdefs.h. */
17052 _ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17058 #define $ac_func innocuous_$ac_func
17060 /* System header to define __stub macros and hopefully few prototypes,
17061 which can conflict with char $ac_func (); below.
17062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17063 <limits.h> exists even on freestanding compilers. */
17065 #ifdef __STDC__
17066 # include <limits.h>
17067 #else
17068 # include <assert.h>
17069 #endif
17071 #undef $ac_func
17073 /* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17076 #ifdef __cplusplus
17077 extern "C"
17078 #endif
17079 char $ac_func ();
17080 /* The GNU C library defines this for functions which it implements
17081 to always fail with ENOSYS. Some functions are actually named
17082 something starting with __ and the normal name is an alias. */
17083 #if defined __stub_$ac_func || defined __stub___$ac_func
17084 choke me
17085 #endif
17088 main ()
17090 return $ac_func ();
17092 return 0;
17094 _ACEOF
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (ac_try="$ac_link"
17097 case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_link") 2>conftest.er1
17103 ac_status=$?
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } && {
17109 test -z "$ac_c_werror_flag" ||
17110 test ! -s conftest.err
17111 } && test -s conftest$ac_exeext &&
17112 $as_test_x conftest$ac_exeext; then
17113 eval "$as_ac_var=yes"
17114 else
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 eval "$as_ac_var=no"
17121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17122 conftest$ac_exeext conftest.$ac_ext
17124 ac_res=`eval echo '${'$as_ac_var'}'`
17125 { echo "$as_me:$LINENO: result: $ac_res" >&5
17126 echo "${ECHO_T}$ac_res" >&6; }
17127 if test `eval echo '${'$as_ac_var'}'` = yes; then
17128 cat >>confdefs.h <<_ACEOF
17129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17130 _ACEOF
17133 done
17136 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17137 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17138 # Irix 4.0.5F has the header but not the library.
17139 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17140 ac_have_func=yes
17142 cat >>confdefs.h <<\_ACEOF
17143 #define SVR4 1
17144 _ACEOF
17148 if test $ac_have_func = no; then
17149 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17150 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17151 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17152 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17156 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17157 else
17158 # Is the header compilable?
17159 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17160 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17161 cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h. */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 $ac_includes_default
17168 #include <inq_stats/cpustats.h>
17169 _ACEOF
17170 rm -f conftest.$ac_objext
17171 if { (ac_try="$ac_compile"
17172 case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_compile") 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest.$ac_objext; then
17187 ac_header_compiler=yes
17188 else
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17192 ac_header_compiler=no
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17197 echo "${ECHO_T}$ac_header_compiler" >&6; }
17199 # Is the header present?
17200 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17201 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h. */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #include <inq_stats/cpustats.h>
17209 _ACEOF
17210 if { (ac_try="$ac_cpp conftest.$ac_ext"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17217 ac_status=$?
17218 grep -v '^ *+' conftest.er1 >conftest.err
17219 rm -f conftest.er1
17220 cat conftest.err >&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } >/dev/null && {
17223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17224 test ! -s conftest.err
17225 }; then
17226 ac_header_preproc=yes
17227 else
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ac_header_preproc=no
17234 rm -f conftest.err conftest.$ac_ext
17235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17236 echo "${ECHO_T}$ac_header_preproc" >&6; }
17238 # So? What about this header?
17239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17240 yes:no: )
17241 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17242 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17243 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17244 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17245 ac_header_preproc=yes
17247 no:yes:* )
17248 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17249 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17250 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17251 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17253 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17255 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17256 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17257 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17259 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17262 esac
17263 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17264 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17265 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17270 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17271 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17274 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17275 ac_have_func=yes
17277 cat >>confdefs.h <<\_ACEOF
17278 #define UMAX 1
17279 _ACEOF
17282 cat >>confdefs.h <<\_ACEOF
17283 #define UMAX4_3 1
17284 _ACEOF
17291 if test $ac_have_func = no; then
17292 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17293 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17294 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17295 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17298 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17299 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17300 else
17301 # Is the header compilable?
17302 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17303 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17304 cat >conftest.$ac_ext <<_ACEOF
17305 /* confdefs.h. */
17306 _ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17310 $ac_includes_default
17311 #include <sys/cpustats.h>
17312 _ACEOF
17313 rm -f conftest.$ac_objext
17314 if { (ac_try="$ac_compile"
17315 case "(($ac_try" in
17316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317 *) ac_try_echo=$ac_try;;
17318 esac
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320 (eval "$ac_compile") 2>conftest.er1
17321 ac_status=$?
17322 grep -v '^ *+' conftest.er1 >conftest.err
17323 rm -f conftest.er1
17324 cat conftest.err >&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } && {
17327 test -z "$ac_c_werror_flag" ||
17328 test ! -s conftest.err
17329 } && test -s conftest.$ac_objext; then
17330 ac_header_compiler=yes
17331 else
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_header_compiler=no
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17340 echo "${ECHO_T}$ac_header_compiler" >&6; }
17342 # Is the header present?
17343 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17344 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17345 cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h. */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 #include <sys/cpustats.h>
17352 _ACEOF
17353 if { (ac_try="$ac_cpp conftest.$ac_ext"
17354 case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } >/dev/null && {
17366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17367 test ! -s conftest.err
17368 }; then
17369 ac_header_preproc=yes
17370 else
17371 echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17374 ac_header_preproc=no
17377 rm -f conftest.err conftest.$ac_ext
17378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17379 echo "${ECHO_T}$ac_header_preproc" >&6; }
17381 # So? What about this header?
17382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17383 yes:no: )
17384 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17385 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17386 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17387 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17388 ac_header_preproc=yes
17390 no:yes:* )
17391 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17392 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17393 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17394 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17395 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17396 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17397 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17398 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17399 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17400 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17401 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17402 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17405 esac
17406 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17407 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17408 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17413 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17414 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17417 if test $ac_cv_header_sys_cpustats_h = yes; then
17418 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17419 #define UMAX 1
17420 _ACEOF
17427 if test $ac_have_func = no; then
17429 for ac_header in mach/mach.h
17431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 ac_res=`eval echo '${'$as_ac_Header'}'`
17439 { echo "$as_me:$LINENO: result: $ac_res" >&5
17440 echo "${ECHO_T}$ac_res" >&6; }
17441 else
17442 # Is the header compilable?
17443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17445 cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h. */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17451 $ac_includes_default
17452 #include <$ac_header>
17453 _ACEOF
17454 rm -f conftest.$ac_objext
17455 if { (ac_try="$ac_compile"
17456 case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_compile") 2>conftest.er1
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } && {
17468 test -z "$ac_c_werror_flag" ||
17469 test ! -s conftest.err
17470 } && test -s conftest.$ac_objext; then
17471 ac_header_compiler=yes
17472 else
17473 echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17476 ac_header_compiler=no
17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17481 echo "${ECHO_T}$ac_header_compiler" >&6; }
17483 # Is the header present?
17484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17486 cat >conftest.$ac_ext <<_ACEOF
17487 /* confdefs.h. */
17488 _ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h. */
17492 #include <$ac_header>
17493 _ACEOF
17494 if { (ac_try="$ac_cpp conftest.$ac_ext"
17495 case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17501 ac_status=$?
17502 grep -v '^ *+' conftest.er1 >conftest.err
17503 rm -f conftest.er1
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } >/dev/null && {
17507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 }; then
17510 ac_header_preproc=yes
17511 else
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_header_preproc=no
17518 rm -f conftest.err conftest.$ac_ext
17519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17520 echo "${ECHO_T}$ac_header_preproc" >&6; }
17522 # So? What about this header?
17523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17524 yes:no: )
17525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17529 ac_header_preproc=yes
17531 no:yes:* )
17532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17546 esac
17547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
17551 else
17552 eval "$as_ac_Header=\$ac_header_preproc"
17554 ac_res=`eval echo '${'$as_ac_Header'}'`
17555 { echo "$as_me:$LINENO: result: $ac_res" >&5
17556 echo "${ECHO_T}$ac_res" >&6; }
17559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17560 cat >>confdefs.h <<_ACEOF
17561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17562 _ACEOF
17566 done
17571 for ac_header in nlist.h
17573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 ac_res=`eval echo '${'$as_ac_Header'}'`
17581 { echo "$as_me:$LINENO: result: $ac_res" >&5
17582 echo "${ECHO_T}$ac_res" >&6; }
17583 else
17584 # Is the header compilable?
17585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17587 cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h. */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 $ac_includes_default
17594 #include <$ac_header>
17595 _ACEOF
17596 rm -f conftest.$ac_objext
17597 if { (ac_try="$ac_compile"
17598 case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_compile") 2>conftest.er1
17604 ac_status=$?
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } && {
17610 test -z "$ac_c_werror_flag" ||
17611 test ! -s conftest.err
17612 } && test -s conftest.$ac_objext; then
17613 ac_header_compiler=yes
17614 else
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 ac_header_compiler=no
17621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17623 echo "${ECHO_T}$ac_header_compiler" >&6; }
17625 # Is the header present?
17626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17628 cat >conftest.$ac_ext <<_ACEOF
17629 /* confdefs.h. */
17630 _ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h. */
17634 #include <$ac_header>
17635 _ACEOF
17636 if { (ac_try="$ac_cpp conftest.$ac_ext"
17637 case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17640 esac
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17643 ac_status=$?
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } >/dev/null && {
17649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17650 test ! -s conftest.err
17651 }; then
17652 ac_header_preproc=yes
17653 else
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 ac_header_preproc=no
17660 rm -f conftest.err conftest.$ac_ext
17661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17662 echo "${ECHO_T}$ac_header_preproc" >&6; }
17664 # So? What about this header?
17665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17666 yes:no: )
17667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17671 ac_header_preproc=yes
17673 no:yes:* )
17674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17688 esac
17689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 else
17694 eval "$as_ac_Header=\$ac_header_preproc"
17696 ac_res=`eval echo '${'$as_ac_Header'}'`
17697 { echo "$as_me:$LINENO: result: $ac_res" >&5
17698 echo "${ECHO_T}$ac_res" >&6; }
17701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17702 cat >>confdefs.h <<_ACEOF
17703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17704 _ACEOF
17705 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17706 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17707 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710 cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h. */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17716 #include <nlist.h>
17719 main ()
17721 static struct nlist ac_aggr;
17722 if (ac_aggr.n_un.n_name)
17723 return 0;
17725 return 0;
17727 _ACEOF
17728 rm -f conftest.$ac_objext
17729 if { (ac_try="$ac_compile"
17730 case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17733 esac
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_compile") 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } && {
17742 test -z "$ac_c_werror_flag" ||
17743 test ! -s conftest.err
17744 } && test -s conftest.$ac_objext; then
17745 ac_cv_member_struct_nlist_n_un_n_name=yes
17746 else
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 cat >conftest.$ac_ext <<_ACEOF
17751 /* confdefs.h. */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 #include <nlist.h>
17759 main ()
17761 static struct nlist ac_aggr;
17762 if (sizeof ac_aggr.n_un.n_name)
17763 return 0;
17765 return 0;
17767 _ACEOF
17768 rm -f conftest.$ac_objext
17769 if { (ac_try="$ac_compile"
17770 case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_compile") 2>conftest.er1
17776 ac_status=$?
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } && {
17782 test -z "$ac_c_werror_flag" ||
17783 test ! -s conftest.err
17784 } && test -s conftest.$ac_objext; then
17785 ac_cv_member_struct_nlist_n_un_n_name=yes
17786 else
17787 echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17790 ac_cv_member_struct_nlist_n_un_n_name=no
17793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17798 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17799 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17800 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17802 cat >>confdefs.h <<_ACEOF
17803 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17804 _ACEOF
17807 cat >>confdefs.h <<\_ACEOF
17808 #define NLIST_NAME_UNION 1
17809 _ACEOF
17816 done
17819 done
17822 # Some definitions of getloadavg require that the program be installed setgid.
17823 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17824 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17825 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 else
17828 cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h. */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17835 #ifdef LDAV_PRIVILEGED
17836 Yowza Am I SETGID yet
17837 #endif
17838 _ACEOF
17839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17840 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17841 ac_cv_func_getloadavg_setgid=yes
17842 else
17843 ac_cv_func_getloadavg_setgid=no
17845 rm -f conftest*
17848 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17849 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17850 if test $ac_cv_func_getloadavg_setgid = yes; then
17851 NEED_SETGID=true
17853 cat >>confdefs.h <<\_ACEOF
17854 #define GETLOADAVG_PRIVILEGED 1
17855 _ACEOF
17857 else
17858 NEED_SETGID=false
17861 if test $ac_cv_func_getloadavg_setgid = yes; then
17862 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17863 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17864 if test "${ac_cv_group_kmem+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17868 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17869 # If we got an error (system does not support symlinks), try without -L.
17870 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17871 ac_cv_group_kmem=`echo $ac_ls_output \
17872 | sed -ne 's/[ ][ ]*/ /g;
17873 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17874 / /s/.* //;p;'`
17877 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17878 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17879 KMEM_GROUP=$ac_cv_group_kmem
17881 if test "x$ac_save_LIBS" = x; then
17882 GETLOADAVG_LIBS=$LIBS
17883 else
17884 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17886 LIBS=$ac_save_LIBS
17890 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17891 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17892 if test "${ac_cv_sys_largefile_source+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 else
17895 while :; do
17896 cat >conftest.$ac_ext <<_ACEOF
17897 /* confdefs.h. */
17898 _ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h. */
17902 #include <stdio.h>
17904 main ()
17906 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17908 return 0;
17910 _ACEOF
17911 rm -f conftest.$ac_objext conftest$ac_exeext
17912 if { (ac_try="$ac_link"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916 esac
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_link") 2>conftest.er1
17919 ac_status=$?
17920 grep -v '^ *+' conftest.er1 >conftest.err
17921 rm -f conftest.er1
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } && {
17925 test -z "$ac_c_werror_flag" ||
17926 test ! -s conftest.err
17927 } && test -s conftest$ac_exeext &&
17928 $as_test_x conftest$ac_exeext; then
17929 ac_cv_sys_largefile_source=no; break
17930 else
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17938 conftest$ac_exeext conftest.$ac_ext
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h. */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17945 #define _LARGEFILE_SOURCE 1
17946 #include <stdio.h>
17948 main ()
17950 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17952 return 0;
17954 _ACEOF
17955 rm -f conftest.$ac_objext conftest$ac_exeext
17956 if { (ac_try="$ac_link"
17957 case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17960 esac
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_link") 2>conftest.er1
17963 ac_status=$?
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } && {
17969 test -z "$ac_c_werror_flag" ||
17970 test ! -s conftest.err
17971 } && test -s conftest$ac_exeext &&
17972 $as_test_x conftest$ac_exeext; then
17973 ac_cv_sys_largefile_source=1; break
17974 else
17975 echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17982 conftest$ac_exeext conftest.$ac_ext
17983 ac_cv_sys_largefile_source=unknown
17984 break
17985 done
17987 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17988 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17989 case $ac_cv_sys_largefile_source in #(
17990 no | unknown) ;;
17992 cat >>confdefs.h <<_ACEOF
17993 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17994 _ACEOF
17996 esac
17997 rm -f conftest*
17999 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18000 # in glibc 2.1.3, but that breaks too many other things.
18001 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18002 if test $ac_cv_sys_largefile_source != unknown; then
18004 cat >>confdefs.h <<\_ACEOF
18005 #define HAVE_FSEEKO 1
18006 _ACEOF
18011 # Configure getopt.
18012 # getopt.m4 serial 10
18014 # The getopt module assume you want GNU getopt, with getopt_long etc,
18015 # rather than vanilla POSIX getopt. This means your your code should
18016 # always include <getopt.h> for the getopt prototypes.
18028 # Prerequisites of lib/getopt*.
18033 GETOPT_H=
18035 for ac_header in getopt.h
18037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 ac_res=`eval echo '${'$as_ac_Header'}'`
18045 { echo "$as_me:$LINENO: result: $ac_res" >&5
18046 echo "${ECHO_T}$ac_res" >&6; }
18047 else
18048 # Is the header compilable?
18049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18051 cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h. */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057 $ac_includes_default
18058 #include <$ac_header>
18059 _ACEOF
18060 rm -f conftest.$ac_objext
18061 if { (ac_try="$ac_compile"
18062 case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18065 esac
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_compile") 2>conftest.er1
18068 ac_status=$?
18069 grep -v '^ *+' conftest.er1 >conftest.err
18070 rm -f conftest.er1
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } && {
18074 test -z "$ac_c_werror_flag" ||
18075 test ! -s conftest.err
18076 } && test -s conftest.$ac_objext; then
18077 ac_header_compiler=yes
18078 else
18079 echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.$ac_ext >&5
18082 ac_header_compiler=no
18085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18087 echo "${ECHO_T}$ac_header_compiler" >&6; }
18089 # Is the header present?
18090 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18092 cat >conftest.$ac_ext <<_ACEOF
18093 /* confdefs.h. */
18094 _ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h. */
18098 #include <$ac_header>
18099 _ACEOF
18100 if { (ac_try="$ac_cpp conftest.$ac_ext"
18101 case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } >/dev/null && {
18113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18114 test ! -s conftest.err
18115 }; then
18116 ac_header_preproc=yes
18117 else
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18121 ac_header_preproc=no
18124 rm -f conftest.err conftest.$ac_ext
18125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18126 echo "${ECHO_T}$ac_header_preproc" >&6; }
18128 # So? What about this header?
18129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18130 yes:no: )
18131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18135 ac_header_preproc=yes
18137 no:yes:* )
18138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18152 esac
18153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18157 else
18158 eval "$as_ac_Header=\$ac_header_preproc"
18160 ac_res=`eval echo '${'$as_ac_Header'}'`
18161 { echo "$as_me:$LINENO: result: $ac_res" >&5
18162 echo "${ECHO_T}$ac_res" >&6; }
18165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18166 cat >>confdefs.h <<_ACEOF
18167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18168 _ACEOF
18170 else
18171 GETOPT_H=getopt.h
18174 done
18176 if test -z "$GETOPT_H"; then
18178 for ac_func in getopt_long_only
18180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186 cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h. */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18194 #define $ac_func innocuous_$ac_func
18196 /* System header to define __stub macros and hopefully few prototypes,
18197 which can conflict with char $ac_func (); below.
18198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18199 <limits.h> exists even on freestanding compilers. */
18201 #ifdef __STDC__
18202 # include <limits.h>
18203 #else
18204 # include <assert.h>
18205 #endif
18207 #undef $ac_func
18209 /* Override any GCC internal prototype to avoid an error.
18210 Use char because int might match the return type of a GCC
18211 builtin and then its argument prototype would still apply. */
18212 #ifdef __cplusplus
18213 extern "C"
18214 #endif
18215 char $ac_func ();
18216 /* The GNU C library defines this for functions which it implements
18217 to always fail with ENOSYS. Some functions are actually named
18218 something starting with __ and the normal name is an alias. */
18219 #if defined __stub_$ac_func || defined __stub___$ac_func
18220 choke me
18221 #endif
18224 main ()
18226 return $ac_func ();
18228 return 0;
18230 _ACEOF
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_link") 2>conftest.er1
18239 ac_status=$?
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } && {
18245 test -z "$ac_c_werror_flag" ||
18246 test ! -s conftest.err
18247 } && test -s conftest$ac_exeext &&
18248 $as_test_x conftest$ac_exeext; then
18249 eval "$as_ac_var=yes"
18250 else
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 eval "$as_ac_var=no"
18257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18258 conftest$ac_exeext conftest.$ac_ext
18260 ac_res=`eval echo '${'$as_ac_var'}'`
18261 { echo "$as_me:$LINENO: result: $ac_res" >&5
18262 echo "${ECHO_T}$ac_res" >&6; }
18263 if test `eval echo '${'$as_ac_var'}'` = yes; then
18264 cat >>confdefs.h <<_ACEOF
18265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18266 _ACEOF
18268 else
18269 GETOPT_H=getopt.h
18271 done
18275 if test -z "$GETOPT_H"; then
18276 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18277 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18278 if test "${ac_cv_have_decl_optreset+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281 cat >conftest.$ac_ext <<_ACEOF
18282 /* confdefs.h. */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 #include <getopt.h>
18290 main ()
18292 #ifndef optreset
18293 (void) optreset;
18294 #endif
18297 return 0;
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_have_decl_optreset=yes
18318 else
18319 echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18322 ac_cv_have_decl_optreset=no
18325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18327 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18328 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18329 if test $ac_cv_have_decl_optreset = yes; then
18330 GETOPT_H=getopt.h
18335 if test -z "$GETOPT_H"; then
18336 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18337 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18338 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 else
18341 if test "$cross_compiling" = yes; then
18342 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18343 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18344 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
18346 else
18347 cat >conftest.$ac_ext <<_ACEOF
18348 /* confdefs.h. */
18349 _ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18353 #include <getopt.h>
18356 main ()
18358 #ifndef getopt_clip
18359 (void) getopt_clip;
18360 #endif
18363 return 0;
18365 _ACEOF
18366 rm -f conftest.$ac_objext
18367 if { (ac_try="$ac_compile"
18368 case "(($ac_try" in
18369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370 *) ac_try_echo=$ac_try;;
18371 esac
18372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373 (eval "$ac_compile") 2>conftest.er1
18374 ac_status=$?
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } && {
18380 test -z "$ac_c_werror_flag" ||
18381 test ! -s conftest.err
18382 } && test -s conftest.$ac_objext; then
18383 ac_cv_have_decl_getopt_clip=yes
18384 else
18385 echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18388 ac_cv_have_decl_getopt_clip=no
18391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18393 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18394 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18395 if test $ac_cv_have_decl_getopt_clip = yes; then
18396 gl_cv_func_gnu_getopt=no
18397 else
18398 gl_cv_func_gnu_getopt=yes
18401 else
18402 cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h. */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 #include <getopt.h>
18410 main ()
18413 char *myargv[3];
18414 myargv[0] = "conftest";
18415 myargv[1] = "-+";
18416 myargv[2] = 0;
18417 return getopt (2, myargv, "+a") != '?';
18420 return 0;
18422 _ACEOF
18423 rm -f conftest$ac_exeext
18424 if { (ac_try="$ac_link"
18425 case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18428 esac
18429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430 (eval "$ac_link") 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18434 { (case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437 esac
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_try") 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 gl_cv_func_gnu_getopt=yes
18444 else
18445 echo "$as_me: program exited with status $ac_status" >&5
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 ( exit $ac_status )
18450 gl_cv_func_gnu_getopt=no
18452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18457 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18458 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18459 if test "$gl_cv_func_gnu_getopt" = "no"; then
18460 GETOPT_H=getopt.h
18466 if test -n "$GETOPT_H"; then
18469 GETOPT_H=getopt.h
18471 cat >>confdefs.h <<\_ACEOF
18472 #define __GETOPT_PREFIX rpl_
18473 _ACEOF
18478 GETOPTOBJS='getopt.o getopt1.o'
18485 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18486 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18487 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 else
18490 # Use it with a single arg.
18491 cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h. */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18497 $ac_includes_default
18499 main ()
18501 getpgrp (0);
18503 return 0;
18505 _ACEOF
18506 rm -f conftest.$ac_objext
18507 if { (ac_try="$ac_compile"
18508 case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_compile") 2>conftest.er1
18514 ac_status=$?
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } && {
18520 test -z "$ac_c_werror_flag" ||
18521 test ! -s conftest.err
18522 } && test -s conftest.$ac_objext; then
18523 ac_cv_func_getpgrp_void=no
18524 else
18525 echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18528 ac_cv_func_getpgrp_void=yes
18531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18534 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18535 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18536 if test $ac_cv_func_getpgrp_void = yes; then
18538 cat >>confdefs.h <<\_ACEOF
18539 #define GETPGRP_VOID 1
18540 _ACEOF
18546 for ac_func in strftime
18548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18549 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18551 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554 cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h. */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18562 #define $ac_func innocuous_$ac_func
18564 /* System header to define __stub macros and hopefully few prototypes,
18565 which can conflict with char $ac_func (); below.
18566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18567 <limits.h> exists even on freestanding compilers. */
18569 #ifdef __STDC__
18570 # include <limits.h>
18571 #else
18572 # include <assert.h>
18573 #endif
18575 #undef $ac_func
18577 /* Override any GCC internal prototype to avoid an error.
18578 Use char because int might match the return type of a GCC
18579 builtin and then its argument prototype would still apply. */
18580 #ifdef __cplusplus
18581 extern "C"
18582 #endif
18583 char $ac_func ();
18584 /* The GNU C library defines this for functions which it implements
18585 to always fail with ENOSYS. Some functions are actually named
18586 something starting with __ and the normal name is an alias. */
18587 #if defined __stub_$ac_func || defined __stub___$ac_func
18588 choke me
18589 #endif
18592 main ()
18594 return $ac_func ();
18596 return 0;
18598 _ACEOF
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (ac_try="$ac_link"
18601 case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18604 esac
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_link") 2>conftest.er1
18607 ac_status=$?
18608 grep -v '^ *+' conftest.er1 >conftest.err
18609 rm -f conftest.er1
18610 cat conftest.err >&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } && {
18613 test -z "$ac_c_werror_flag" ||
18614 test ! -s conftest.err
18615 } && test -s conftest$ac_exeext &&
18616 $as_test_x conftest$ac_exeext; then
18617 eval "$as_ac_var=yes"
18618 else
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 eval "$as_ac_var=no"
18625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18626 conftest$ac_exeext conftest.$ac_ext
18628 ac_res=`eval echo '${'$as_ac_var'}'`
18629 { echo "$as_me:$LINENO: result: $ac_res" >&5
18630 echo "${ECHO_T}$ac_res" >&6; }
18631 if test `eval echo '${'$as_ac_var'}'` = yes; then
18632 cat >>confdefs.h <<_ACEOF
18633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18634 _ACEOF
18636 else
18637 # strftime is in -lintl on SCO UNIX.
18638 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18639 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18640 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 else
18643 ac_check_lib_save_LIBS=$LIBS
18644 LIBS="-lintl $LIBS"
18645 cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h. */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18652 /* Override any GCC internal prototype to avoid an error.
18653 Use char because int might match the return type of a GCC
18654 builtin and then its argument prototype would still apply. */
18655 #ifdef __cplusplus
18656 extern "C"
18657 #endif
18658 char strftime ();
18660 main ()
18662 return strftime ();
18664 return 0;
18666 _ACEOF
18667 rm -f conftest.$ac_objext conftest$ac_exeext
18668 if { (ac_try="$ac_link"
18669 case "(($ac_try" in
18670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671 *) ac_try_echo=$ac_try;;
18672 esac
18673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18674 (eval "$ac_link") 2>conftest.er1
18675 ac_status=$?
18676 grep -v '^ *+' conftest.er1 >conftest.err
18677 rm -f conftest.er1
18678 cat conftest.err >&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } && {
18681 test -z "$ac_c_werror_flag" ||
18682 test ! -s conftest.err
18683 } && test -s conftest$ac_exeext &&
18684 $as_test_x conftest$ac_exeext; then
18685 ac_cv_lib_intl_strftime=yes
18686 else
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18690 ac_cv_lib_intl_strftime=no
18693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18694 conftest$ac_exeext conftest.$ac_ext
18695 LIBS=$ac_check_lib_save_LIBS
18697 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18698 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18699 if test $ac_cv_lib_intl_strftime = yes; then
18700 cat >>confdefs.h <<\_ACEOF
18701 #define HAVE_STRFTIME 1
18702 _ACEOF
18704 LIBS="-lintl $LIBS"
18708 done
18711 # UNIX98 PTYs.
18713 for ac_func in grantpt
18715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720 else
18721 cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h. */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18729 #define $ac_func innocuous_$ac_func
18731 /* System header to define __stub macros and hopefully few prototypes,
18732 which can conflict with char $ac_func (); below.
18733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18734 <limits.h> exists even on freestanding compilers. */
18736 #ifdef __STDC__
18737 # include <limits.h>
18738 #else
18739 # include <assert.h>
18740 #endif
18742 #undef $ac_func
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18747 #ifdef __cplusplus
18748 extern "C"
18749 #endif
18750 char $ac_func ();
18751 /* The GNU C library defines this for functions which it implements
18752 to always fail with ENOSYS. Some functions are actually named
18753 something starting with __ and the normal name is an alias. */
18754 #if defined __stub_$ac_func || defined __stub___$ac_func
18755 choke me
18756 #endif
18759 main ()
18761 return $ac_func ();
18763 return 0;
18765 _ACEOF
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18771 esac
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_link") 2>conftest.er1
18774 ac_status=$?
18775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -f conftest.er1
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } && {
18780 test -z "$ac_c_werror_flag" ||
18781 test ! -s conftest.err
18782 } && test -s conftest$ac_exeext &&
18783 $as_test_x conftest$ac_exeext; then
18784 eval "$as_ac_var=yes"
18785 else
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18789 eval "$as_ac_var=no"
18792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18793 conftest$ac_exeext conftest.$ac_ext
18795 ac_res=`eval echo '${'$as_ac_var'}'`
18796 { echo "$as_me:$LINENO: result: $ac_res" >&5
18797 echo "${ECHO_T}$ac_res" >&6; }
18798 if test `eval echo '${'$as_ac_var'}'` = yes; then
18799 cat >>confdefs.h <<_ACEOF
18800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18801 _ACEOF
18804 done
18807 # PTY-related GNU extensions.
18809 for ac_func in getpt
18811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816 else
18817 cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h. */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18825 #define $ac_func innocuous_$ac_func
18827 /* System header to define __stub macros and hopefully few prototypes,
18828 which can conflict with char $ac_func (); below.
18829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18830 <limits.h> exists even on freestanding compilers. */
18832 #ifdef __STDC__
18833 # include <limits.h>
18834 #else
18835 # include <assert.h>
18836 #endif
18838 #undef $ac_func
18840 /* Override any GCC internal prototype to avoid an error.
18841 Use char because int might match the return type of a GCC
18842 builtin and then its argument prototype would still apply. */
18843 #ifdef __cplusplus
18844 extern "C"
18845 #endif
18846 char $ac_func ();
18847 /* The GNU C library defines this for functions which it implements
18848 to always fail with ENOSYS. Some functions are actually named
18849 something starting with __ and the normal name is an alias. */
18850 #if defined __stub_$ac_func || defined __stub___$ac_func
18851 choke me
18852 #endif
18855 main ()
18857 return $ac_func ();
18859 return 0;
18861 _ACEOF
18862 rm -f conftest.$ac_objext conftest$ac_exeext
18863 if { (ac_try="$ac_link"
18864 case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18867 esac
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_link") 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest$ac_exeext &&
18879 $as_test_x conftest$ac_exeext; then
18880 eval "$as_ac_var=yes"
18881 else
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18885 eval "$as_ac_var=no"
18888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18889 conftest$ac_exeext conftest.$ac_ext
18891 ac_res=`eval echo '${'$as_ac_var'}'`
18892 { echo "$as_me:$LINENO: result: $ac_res" >&5
18893 echo "${ECHO_T}$ac_res" >&6; }
18894 if test `eval echo '${'$as_ac_var'}'` = yes; then
18895 cat >>confdefs.h <<_ACEOF
18896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18897 _ACEOF
18900 done
18903 # Check this now, so that we will NOT find the above functions in ncurses.
18904 # That is because we have not set up to link ncurses in lib-src.
18905 # It's better to believe a function is not available
18906 # than to expect to find it in ncurses.
18908 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18909 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18910 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913 ac_check_lib_save_LIBS=$LIBS
18914 LIBS="-lncurses $LIBS"
18915 cat >conftest.$ac_ext <<_ACEOF
18916 /* confdefs.h. */
18917 _ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18922 /* Override any GCC internal prototype to avoid an error.
18923 Use char because int might match the return type of a GCC
18924 builtin and then its argument prototype would still apply. */
18925 #ifdef __cplusplus
18926 extern "C"
18927 #endif
18928 char tparm ();
18930 main ()
18932 return tparm ();
18934 return 0;
18936 _ACEOF
18937 rm -f conftest.$ac_objext conftest$ac_exeext
18938 if { (ac_try="$ac_link"
18939 case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18942 esac
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_link") 2>conftest.er1
18945 ac_status=$?
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } && {
18951 test -z "$ac_c_werror_flag" ||
18952 test ! -s conftest.err
18953 } && test -s conftest$ac_exeext &&
18954 $as_test_x conftest$ac_exeext; then
18955 ac_cv_lib_ncurses_tparm=yes
18956 else
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 ac_cv_lib_ncurses_tparm=no
18963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18964 conftest$ac_exeext conftest.$ac_ext
18965 LIBS=$ac_check_lib_save_LIBS
18967 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18968 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18969 if test $ac_cv_lib_ncurses_tparm = yes; then
18970 cat >>confdefs.h <<_ACEOF
18971 #define HAVE_LIBNCURSES 1
18972 _ACEOF
18974 LIBS="-lncurses $LIBS"
18979 # Do we need the Hesiod library to provide the support routines?
18980 if test "$with_hesiod" = yes ; then
18981 # Don't set $LIBS here -- see comments above.
18982 resolv=no
18983 { echo "$as_me:$LINENO: checking for res_send" >&5
18984 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18985 if test "${ac_cv_func_res_send+set}" = set; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18988 cat >conftest.$ac_ext <<_ACEOF
18989 /* confdefs.h. */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18996 #define res_send innocuous_res_send
18998 /* System header to define __stub macros and hopefully few prototypes,
18999 which can conflict with char res_send (); below.
19000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19001 <limits.h> exists even on freestanding compilers. */
19003 #ifdef __STDC__
19004 # include <limits.h>
19005 #else
19006 # include <assert.h>
19007 #endif
19009 #undef res_send
19011 /* Override any GCC internal prototype to avoid an error.
19012 Use char because int might match the return type of a GCC
19013 builtin and then its argument prototype would still apply. */
19014 #ifdef __cplusplus
19015 extern "C"
19016 #endif
19017 char res_send ();
19018 /* The GNU C library defines this for functions which it implements
19019 to always fail with ENOSYS. Some functions are actually named
19020 something starting with __ and the normal name is an alias. */
19021 #if defined __stub_res_send || defined __stub___res_send
19022 choke me
19023 #endif
19026 main ()
19028 return res_send ();
19030 return 0;
19032 _ACEOF
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038 esac
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } && {
19047 test -z "$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 } && test -s conftest$ac_exeext &&
19050 $as_test_x conftest$ac_exeext; then
19051 ac_cv_func_res_send=yes
19052 else
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 ac_cv_func_res_send=no
19059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19060 conftest$ac_exeext conftest.$ac_ext
19062 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19063 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19064 if test $ac_cv_func_res_send = yes; then
19066 else
19067 { echo "$as_me:$LINENO: checking for __res_send" >&5
19068 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19069 if test "${ac_cv_func___res_send+set}" = set; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072 cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h. */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19078 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19080 #define __res_send innocuous___res_send
19082 /* System header to define __stub macros and hopefully few prototypes,
19083 which can conflict with char __res_send (); below.
19084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19085 <limits.h> exists even on freestanding compilers. */
19087 #ifdef __STDC__
19088 # include <limits.h>
19089 #else
19090 # include <assert.h>
19091 #endif
19093 #undef __res_send
19095 /* Override any GCC internal prototype to avoid an error.
19096 Use char because int might match the return type of a GCC
19097 builtin and then its argument prototype would still apply. */
19098 #ifdef __cplusplus
19099 extern "C"
19100 #endif
19101 char __res_send ();
19102 /* The GNU C library defines this for functions which it implements
19103 to always fail with ENOSYS. Some functions are actually named
19104 something starting with __ and the normal name is an alias. */
19105 #if defined __stub___res_send || defined __stub_____res_send
19106 choke me
19107 #endif
19110 main ()
19112 return __res_send ();
19114 return 0;
19116 _ACEOF
19117 rm -f conftest.$ac_objext conftest$ac_exeext
19118 if { (ac_try="$ac_link"
19119 case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19122 esac
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_link") 2>conftest.er1
19125 ac_status=$?
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } && {
19131 test -z "$ac_c_werror_flag" ||
19132 test ! -s conftest.err
19133 } && test -s conftest$ac_exeext &&
19134 $as_test_x conftest$ac_exeext; then
19135 ac_cv_func___res_send=yes
19136 else
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ac_cv_func___res_send=no
19143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19144 conftest$ac_exeext conftest.$ac_ext
19146 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19147 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19148 if test $ac_cv_func___res_send = yes; then
19150 else
19151 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19152 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19153 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 else
19156 ac_check_lib_save_LIBS=$LIBS
19157 LIBS="-lresolv $LIBS"
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h. */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19165 /* Override any GCC internal prototype to avoid an error.
19166 Use char because int might match the return type of a GCC
19167 builtin and then its argument prototype would still apply. */
19168 #ifdef __cplusplus
19169 extern "C"
19170 #endif
19171 char res_send ();
19173 main ()
19175 return res_send ();
19177 return 0;
19179 _ACEOF
19180 rm -f conftest.$ac_objext conftest$ac_exeext
19181 if { (ac_try="$ac_link"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_link") 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } && {
19194 test -z "$ac_c_werror_flag" ||
19195 test ! -s conftest.err
19196 } && test -s conftest$ac_exeext &&
19197 $as_test_x conftest$ac_exeext; then
19198 ac_cv_lib_resolv_res_send=yes
19199 else
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19203 ac_cv_lib_resolv_res_send=no
19206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19207 conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19210 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19211 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19212 if test $ac_cv_lib_resolv_res_send = yes; then
19213 resolv=yes
19214 else
19215 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19216 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19217 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 else
19220 ac_check_lib_save_LIBS=$LIBS
19221 LIBS="-lresolv $LIBS"
19222 cat >conftest.$ac_ext <<_ACEOF
19223 /* confdefs.h. */
19224 _ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h. */
19229 /* Override any GCC internal prototype to avoid an error.
19230 Use char because int might match the return type of a GCC
19231 builtin and then its argument prototype would still apply. */
19232 #ifdef __cplusplus
19233 extern "C"
19234 #endif
19235 char __res_send ();
19237 main ()
19239 return __res_send ();
19241 return 0;
19243 _ACEOF
19244 rm -f conftest.$ac_objext conftest$ac_exeext
19245 if { (ac_try="$ac_link"
19246 case "(($ac_try" in
19247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248 *) ac_try_echo=$ac_try;;
19249 esac
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251 (eval "$ac_link") 2>conftest.er1
19252 ac_status=$?
19253 grep -v '^ *+' conftest.er1 >conftest.err
19254 rm -f conftest.er1
19255 cat conftest.err >&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } && {
19258 test -z "$ac_c_werror_flag" ||
19259 test ! -s conftest.err
19260 } && test -s conftest$ac_exeext &&
19261 $as_test_x conftest$ac_exeext; then
19262 ac_cv_lib_resolv___res_send=yes
19263 else
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19267 ac_cv_lib_resolv___res_send=no
19270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19271 conftest$ac_exeext conftest.$ac_ext
19272 LIBS=$ac_check_lib_save_LIBS
19274 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19275 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19276 if test $ac_cv_lib_resolv___res_send = yes; then
19277 resolv=yes
19286 if test "$resolv" = yes ; then
19287 RESOLVLIB=-lresolv
19289 cat >>confdefs.h <<\_ACEOF
19290 #define HAVE_LIBRESOLV 1
19291 _ACEOF
19293 else
19294 RESOLVLIB=
19296 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19297 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19298 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 else
19301 cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h. */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19307 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19309 #define hes_getmailhost innocuous_hes_getmailhost
19311 /* System header to define __stub macros and hopefully few prototypes,
19312 which can conflict with char hes_getmailhost (); below.
19313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19314 <limits.h> exists even on freestanding compilers. */
19316 #ifdef __STDC__
19317 # include <limits.h>
19318 #else
19319 # include <assert.h>
19320 #endif
19322 #undef hes_getmailhost
19324 /* Override any GCC internal prototype to avoid an error.
19325 Use char because int might match the return type of a GCC
19326 builtin and then its argument prototype would still apply. */
19327 #ifdef __cplusplus
19328 extern "C"
19329 #endif
19330 char hes_getmailhost ();
19331 /* The GNU C library defines this for functions which it implements
19332 to always fail with ENOSYS. Some functions are actually named
19333 something starting with __ and the normal name is an alias. */
19334 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19335 choke me
19336 #endif
19339 main ()
19341 return hes_getmailhost ();
19343 return 0;
19345 _ACEOF
19346 rm -f conftest.$ac_objext conftest$ac_exeext
19347 if { (ac_try="$ac_link"
19348 case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19351 esac
19352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_link") 2>conftest.er1
19354 ac_status=$?
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } && {
19360 test -z "$ac_c_werror_flag" ||
19361 test ! -s conftest.err
19362 } && test -s conftest$ac_exeext &&
19363 $as_test_x conftest$ac_exeext; then
19364 ac_cv_func_hes_getmailhost=yes
19365 else
19366 echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19369 ac_cv_func_hes_getmailhost=no
19372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19373 conftest$ac_exeext conftest.$ac_ext
19375 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19376 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19377 if test $ac_cv_func_hes_getmailhost = yes; then
19379 else
19380 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19381 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19382 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385 ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-lhesiod $RESOLVLIB $LIBS"
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h. */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19394 /* Override any GCC internal prototype to avoid an error.
19395 Use char because int might match the return type of a GCC
19396 builtin and then its argument prototype would still apply. */
19397 #ifdef __cplusplus
19398 extern "C"
19399 #endif
19400 char hes_getmailhost ();
19402 main ()
19404 return hes_getmailhost ();
19406 return 0;
19408 _ACEOF
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>conftest.er1
19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && {
19423 test -z "$ac_c_werror_flag" ||
19424 test ! -s conftest.err
19425 } && test -s conftest$ac_exeext &&
19426 $as_test_x conftest$ac_exeext; then
19427 ac_cv_lib_hesiod_hes_getmailhost=yes
19428 else
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_cv_lib_hesiod_hes_getmailhost=no
19435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19436 conftest$ac_exeext conftest.$ac_ext
19437 LIBS=$ac_check_lib_save_LIBS
19439 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19440 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19441 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19443 cat >>confdefs.h <<\_ACEOF
19444 #define HAVE_LIBHESIOD 1
19445 _ACEOF
19447 else
19455 # These tell us which Kerberos-related libraries to use.
19456 if test "${with_kerberos+set}" = set; then
19458 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19459 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19460 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463 ac_check_lib_save_LIBS=$LIBS
19464 LIBS="-lcom_err $LIBS"
19465 cat >conftest.$ac_ext <<_ACEOF
19466 /* confdefs.h. */
19467 _ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h. */
19472 /* Override any GCC internal prototype to avoid an error.
19473 Use char because int might match the return type of a GCC
19474 builtin and then its argument prototype would still apply. */
19475 #ifdef __cplusplus
19476 extern "C"
19477 #endif
19478 char com_err ();
19480 main ()
19482 return com_err ();
19484 return 0;
19486 _ACEOF
19487 rm -f conftest.$ac_objext conftest$ac_exeext
19488 if { (ac_try="$ac_link"
19489 case "(($ac_try" in
19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19492 esac
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_link") 2>conftest.er1
19495 ac_status=$?
19496 grep -v '^ *+' conftest.er1 >conftest.err
19497 rm -f conftest.er1
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } && {
19501 test -z "$ac_c_werror_flag" ||
19502 test ! -s conftest.err
19503 } && test -s conftest$ac_exeext &&
19504 $as_test_x conftest$ac_exeext; then
19505 ac_cv_lib_com_err_com_err=yes
19506 else
19507 echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19510 ac_cv_lib_com_err_com_err=no
19513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19514 conftest$ac_exeext conftest.$ac_ext
19515 LIBS=$ac_check_lib_save_LIBS
19517 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19518 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19519 if test $ac_cv_lib_com_err_com_err = yes; then
19520 cat >>confdefs.h <<_ACEOF
19521 #define HAVE_LIBCOM_ERR 1
19522 _ACEOF
19524 LIBS="-lcom_err $LIBS"
19529 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19530 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19531 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 else
19534 ac_check_lib_save_LIBS=$LIBS
19535 LIBS="-lk5crypto $LIBS"
19536 cat >conftest.$ac_ext <<_ACEOF
19537 /* confdefs.h. */
19538 _ACEOF
19539 cat confdefs.h >>conftest.$ac_ext
19540 cat >>conftest.$ac_ext <<_ACEOF
19541 /* end confdefs.h. */
19543 /* Override any GCC internal prototype to avoid an error.
19544 Use char because int might match the return type of a GCC
19545 builtin and then its argument prototype would still apply. */
19546 #ifdef __cplusplus
19547 extern "C"
19548 #endif
19549 char mit_des_cbc_encrypt ();
19551 main ()
19553 return mit_des_cbc_encrypt ();
19555 return 0;
19557 _ACEOF
19558 rm -f conftest.$ac_objext conftest$ac_exeext
19559 if { (ac_try="$ac_link"
19560 case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_link") 2>conftest.er1
19566 ac_status=$?
19567 grep -v '^ *+' conftest.er1 >conftest.err
19568 rm -f conftest.er1
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } && {
19572 test -z "$ac_c_werror_flag" ||
19573 test ! -s conftest.err
19574 } && test -s conftest$ac_exeext &&
19575 $as_test_x conftest$ac_exeext; then
19576 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19577 else
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19581 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19585 conftest$ac_exeext conftest.$ac_ext
19586 LIBS=$ac_check_lib_save_LIBS
19588 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19589 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19590 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19591 cat >>confdefs.h <<_ACEOF
19592 #define HAVE_LIBK5CRYPTO 1
19593 _ACEOF
19595 LIBS="-lk5crypto $LIBS"
19600 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19601 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19602 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605 ac_check_lib_save_LIBS=$LIBS
19606 LIBS="-lcrypto $LIBS"
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h. */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19614 /* Override any GCC internal prototype to avoid an error.
19615 Use char because int might match the return type of a GCC
19616 builtin and then its argument prototype would still apply. */
19617 #ifdef __cplusplus
19618 extern "C"
19619 #endif
19620 char mit_des_cbc_encrypt ();
19622 main ()
19624 return mit_des_cbc_encrypt ();
19626 return 0;
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_link") 2>conftest.er1
19637 ac_status=$?
19638 grep -v '^ *+' conftest.er1 >conftest.err
19639 rm -f conftest.er1
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } && {
19643 test -z "$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19645 } && test -s conftest$ac_exeext &&
19646 $as_test_x conftest$ac_exeext; then
19647 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19648 else
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19652 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19656 conftest$ac_exeext conftest.$ac_ext
19657 LIBS=$ac_check_lib_save_LIBS
19659 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19660 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19661 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19662 cat >>confdefs.h <<_ACEOF
19663 #define HAVE_LIBCRYPTO 1
19664 _ACEOF
19666 LIBS="-lcrypto $LIBS"
19671 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19672 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19673 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676 ac_check_lib_save_LIBS=$LIBS
19677 LIBS="-lkrb5 $LIBS"
19678 cat >conftest.$ac_ext <<_ACEOF
19679 /* confdefs.h. */
19680 _ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19685 /* Override any GCC internal prototype to avoid an error.
19686 Use char because int might match the return type of a GCC
19687 builtin and then its argument prototype would still apply. */
19688 #ifdef __cplusplus
19689 extern "C"
19690 #endif
19691 char krb5_init_context ();
19693 main ()
19695 return krb5_init_context ();
19697 return 0;
19699 _ACEOF
19700 rm -f conftest.$ac_objext conftest$ac_exeext
19701 if { (ac_try="$ac_link"
19702 case "(($ac_try" in
19703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704 *) ac_try_echo=$ac_try;;
19705 esac
19706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19707 (eval "$ac_link") 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } && {
19714 test -z "$ac_c_werror_flag" ||
19715 test ! -s conftest.err
19716 } && test -s conftest$ac_exeext &&
19717 $as_test_x conftest$ac_exeext; then
19718 ac_cv_lib_krb5_krb5_init_context=yes
19719 else
19720 echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19723 ac_cv_lib_krb5_krb5_init_context=no
19726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19727 conftest$ac_exeext conftest.$ac_ext
19728 LIBS=$ac_check_lib_save_LIBS
19730 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19731 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19732 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19733 cat >>confdefs.h <<_ACEOF
19734 #define HAVE_LIBKRB5 1
19735 _ACEOF
19737 LIBS="-lkrb5 $LIBS"
19741 if test "${with_kerberos5+set}" != set; then
19743 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19744 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19745 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19746 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 else
19748 ac_check_lib_save_LIBS=$LIBS
19749 LIBS="-ldes425 $LIBS"
19750 cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h. */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19757 /* Override any GCC internal prototype to avoid an error.
19758 Use char because int might match the return type of a GCC
19759 builtin and then its argument prototype would still apply. */
19760 #ifdef __cplusplus
19761 extern "C"
19762 #endif
19763 char des_cbc_encrypt ();
19765 main ()
19767 return des_cbc_encrypt ();
19769 return 0;
19771 _ACEOF
19772 rm -f conftest.$ac_objext conftest$ac_exeext
19773 if { (ac_try="$ac_link"
19774 case "(($ac_try" in
19775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776 *) ac_try_echo=$ac_try;;
19777 esac
19778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779 (eval "$ac_link") 2>conftest.er1
19780 ac_status=$?
19781 grep -v '^ *+' conftest.er1 >conftest.err
19782 rm -f conftest.er1
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } && {
19786 test -z "$ac_c_werror_flag" ||
19787 test ! -s conftest.err
19788 } && test -s conftest$ac_exeext &&
19789 $as_test_x conftest$ac_exeext; then
19790 ac_cv_lib_des425_des_cbc_encrypt=yes
19791 else
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_cv_lib_des425_des_cbc_encrypt=no
19798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19799 conftest$ac_exeext conftest.$ac_ext
19800 LIBS=$ac_check_lib_save_LIBS
19802 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19803 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19804 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19805 cat >>confdefs.h <<_ACEOF
19806 #define HAVE_LIBDES425 1
19807 _ACEOF
19809 LIBS="-ldes425 $LIBS"
19811 else
19813 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19814 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19815 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 else
19818 ac_check_lib_save_LIBS=$LIBS
19819 LIBS="-ldes $LIBS"
19820 cat >conftest.$ac_ext <<_ACEOF
19821 /* confdefs.h. */
19822 _ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19827 /* Override any GCC internal prototype to avoid an error.
19828 Use char because int might match the return type of a GCC
19829 builtin and then its argument prototype would still apply. */
19830 #ifdef __cplusplus
19831 extern "C"
19832 #endif
19833 char des_cbc_encrypt ();
19835 main ()
19837 return des_cbc_encrypt ();
19839 return 0;
19841 _ACEOF
19842 rm -f conftest.$ac_objext conftest$ac_exeext
19843 if { (ac_try="$ac_link"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_link") 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest$ac_exeext &&
19859 $as_test_x conftest$ac_exeext; then
19860 ac_cv_lib_des_des_cbc_encrypt=yes
19861 else
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 ac_cv_lib_des_des_cbc_encrypt=no
19868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19869 conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19872 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19873 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19874 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19875 cat >>confdefs.h <<_ACEOF
19876 #define HAVE_LIBDES 1
19877 _ACEOF
19879 LIBS="-ldes $LIBS"
19886 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19887 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19888 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19890 else
19891 ac_check_lib_save_LIBS=$LIBS
19892 LIBS="-lkrb4 $LIBS"
19893 cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h. */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19900 /* Override any GCC internal prototype to avoid an error.
19901 Use char because int might match the return type of a GCC
19902 builtin and then its argument prototype would still apply. */
19903 #ifdef __cplusplus
19904 extern "C"
19905 #endif
19906 char krb_get_cred ();
19908 main ()
19910 return krb_get_cred ();
19912 return 0;
19914 _ACEOF
19915 rm -f conftest.$ac_objext conftest$ac_exeext
19916 if { (ac_try="$ac_link"
19917 case "(($ac_try" in
19918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19919 *) ac_try_echo=$ac_try;;
19920 esac
19921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19922 (eval "$ac_link") 2>conftest.er1
19923 ac_status=$?
19924 grep -v '^ *+' conftest.er1 >conftest.err
19925 rm -f conftest.er1
19926 cat conftest.err >&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } && {
19929 test -z "$ac_c_werror_flag" ||
19930 test ! -s conftest.err
19931 } && test -s conftest$ac_exeext &&
19932 $as_test_x conftest$ac_exeext; then
19933 ac_cv_lib_krb4_krb_get_cred=yes
19934 else
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ac_cv_lib_krb4_krb_get_cred=no
19941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19942 conftest$ac_exeext conftest.$ac_ext
19943 LIBS=$ac_check_lib_save_LIBS
19945 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19946 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19947 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19948 cat >>confdefs.h <<_ACEOF
19949 #define HAVE_LIBKRB4 1
19950 _ACEOF
19952 LIBS="-lkrb4 $LIBS"
19954 else
19956 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19957 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19958 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19959 echo $ECHO_N "(cached) $ECHO_C" >&6
19960 else
19961 ac_check_lib_save_LIBS=$LIBS
19962 LIBS="-lkrb $LIBS"
19963 cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h. */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19970 /* Override any GCC internal prototype to avoid an error.
19971 Use char because int might match the return type of a GCC
19972 builtin and then its argument prototype would still apply. */
19973 #ifdef __cplusplus
19974 extern "C"
19975 #endif
19976 char krb_get_cred ();
19978 main ()
19980 return krb_get_cred ();
19982 return 0;
19984 _ACEOF
19985 rm -f conftest.$ac_objext conftest$ac_exeext
19986 if { (ac_try="$ac_link"
19987 case "(($ac_try" in
19988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989 *) ac_try_echo=$ac_try;;
19990 esac
19991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19992 (eval "$ac_link") 2>conftest.er1
19993 ac_status=$?
19994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } && {
19999 test -z "$ac_c_werror_flag" ||
20000 test ! -s conftest.err
20001 } && test -s conftest$ac_exeext &&
20002 $as_test_x conftest$ac_exeext; then
20003 ac_cv_lib_krb_krb_get_cred=yes
20004 else
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_cv_lib_krb_krb_get_cred=no
20011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20012 conftest$ac_exeext conftest.$ac_ext
20013 LIBS=$ac_check_lib_save_LIBS
20015 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20016 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20017 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20018 cat >>confdefs.h <<_ACEOF
20019 #define HAVE_LIBKRB 1
20020 _ACEOF
20022 LIBS="-lkrb $LIBS"
20030 if test "${with_kerberos5+set}" = set; then
20032 for ac_header in krb5.h
20034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20039 echo $ECHO_N "(cached) $ECHO_C" >&6
20041 ac_res=`eval echo '${'$as_ac_Header'}'`
20042 { echo "$as_me:$LINENO: result: $ac_res" >&5
20043 echo "${ECHO_T}$ac_res" >&6; }
20044 else
20045 # Is the header compilable?
20046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20048 cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h. */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 $ac_includes_default
20055 #include <$ac_header>
20056 _ACEOF
20057 rm -f conftest.$ac_objext
20058 if { (ac_try="$ac_compile"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_compile") 2>conftest.er1
20065 ac_status=$?
20066 grep -v '^ *+' conftest.er1 >conftest.err
20067 rm -f conftest.er1
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } && {
20071 test -z "$ac_c_werror_flag" ||
20072 test ! -s conftest.err
20073 } && test -s conftest.$ac_objext; then
20074 ac_header_compiler=yes
20075 else
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_header_compiler=no
20082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20084 echo "${ECHO_T}$ac_header_compiler" >&6; }
20086 # Is the header present?
20087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20089 cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h. */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 #include <$ac_header>
20096 _ACEOF
20097 if { (ac_try="$ac_cpp conftest.$ac_ext"
20098 case "(($ac_try" in
20099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100 *) ac_try_echo=$ac_try;;
20101 esac
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20104 ac_status=$?
20105 grep -v '^ *+' conftest.er1 >conftest.err
20106 rm -f conftest.er1
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } >/dev/null && {
20110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20111 test ! -s conftest.err
20112 }; then
20113 ac_header_preproc=yes
20114 else
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20118 ac_header_preproc=no
20121 rm -f conftest.err conftest.$ac_ext
20122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20123 echo "${ECHO_T}$ac_header_preproc" >&6; }
20125 # So? What about this header?
20126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20127 yes:no: )
20128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20132 ac_header_preproc=yes
20134 no:yes:* )
20135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20149 esac
20150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 else
20155 eval "$as_ac_Header=\$ac_header_preproc"
20157 ac_res=`eval echo '${'$as_ac_Header'}'`
20158 { echo "$as_me:$LINENO: result: $ac_res" >&5
20159 echo "${ECHO_T}$ac_res" >&6; }
20162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20163 cat >>confdefs.h <<_ACEOF
20164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20165 _ACEOF
20169 done
20171 else
20173 for ac_header in des.h
20175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20182 ac_res=`eval echo '${'$as_ac_Header'}'`
20183 { echo "$as_me:$LINENO: result: $ac_res" >&5
20184 echo "${ECHO_T}$ac_res" >&6; }
20185 else
20186 # Is the header compilable?
20187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20189 cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h. */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 $ac_includes_default
20196 #include <$ac_header>
20197 _ACEOF
20198 rm -f conftest.$ac_objext
20199 if { (ac_try="$ac_compile"
20200 case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_compile") 2>conftest.er1
20206 ac_status=$?
20207 grep -v '^ *+' conftest.er1 >conftest.err
20208 rm -f conftest.er1
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } && {
20212 test -z "$ac_c_werror_flag" ||
20213 test ! -s conftest.err
20214 } && test -s conftest.$ac_objext; then
20215 ac_header_compiler=yes
20216 else
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220 ac_header_compiler=no
20223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20225 echo "${ECHO_T}$ac_header_compiler" >&6; }
20227 # Is the header present?
20228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20230 cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h. */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20236 #include <$ac_header>
20237 _ACEOF
20238 if { (ac_try="$ac_cpp conftest.$ac_ext"
20239 case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20242 esac
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20245 ac_status=$?
20246 grep -v '^ *+' conftest.er1 >conftest.err
20247 rm -f conftest.er1
20248 cat conftest.err >&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); } >/dev/null && {
20251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20252 test ! -s conftest.err
20253 }; then
20254 ac_header_preproc=yes
20255 else
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 ac_header_preproc=no
20262 rm -f conftest.err conftest.$ac_ext
20263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20264 echo "${ECHO_T}$ac_header_preproc" >&6; }
20266 # So? What about this header?
20267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20268 yes:no: )
20269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20273 ac_header_preproc=yes
20275 no:yes:* )
20276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20290 esac
20291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20295 else
20296 eval "$as_ac_Header=\$ac_header_preproc"
20298 ac_res=`eval echo '${'$as_ac_Header'}'`
20299 { echo "$as_me:$LINENO: result: $ac_res" >&5
20300 echo "${ECHO_T}$ac_res" >&6; }
20303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20304 cat >>confdefs.h <<_ACEOF
20305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20306 _ACEOF
20308 else
20310 for ac_header in kerberosIV/des.h
20312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 ac_res=`eval echo '${'$as_ac_Header'}'`
20320 { echo "$as_me:$LINENO: result: $ac_res" >&5
20321 echo "${ECHO_T}$ac_res" >&6; }
20322 else
20323 # Is the header compilable?
20324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20326 cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h. */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20332 $ac_includes_default
20333 #include <$ac_header>
20334 _ACEOF
20335 rm -f conftest.$ac_objext
20336 if { (ac_try="$ac_compile"
20337 case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20340 esac
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_compile") 2>conftest.er1
20343 ac_status=$?
20344 grep -v '^ *+' conftest.er1 >conftest.err
20345 rm -f conftest.er1
20346 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } && {
20349 test -z "$ac_c_werror_flag" ||
20350 test ! -s conftest.err
20351 } && test -s conftest.$ac_objext; then
20352 ac_header_compiler=yes
20353 else
20354 echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20357 ac_header_compiler=no
20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20362 echo "${ECHO_T}$ac_header_compiler" >&6; }
20364 # Is the header present?
20365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
20374 _ACEOF
20375 if { (ac_try="$ac_cpp conftest.$ac_ext"
20376 case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20382 ac_status=$?
20383 grep -v '^ *+' conftest.er1 >conftest.err
20384 rm -f conftest.er1
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } >/dev/null && {
20388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20389 test ! -s conftest.err
20390 }; then
20391 ac_header_preproc=yes
20392 else
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ac_header_preproc=no
20399 rm -f conftest.err conftest.$ac_ext
20400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20401 echo "${ECHO_T}$ac_header_preproc" >&6; }
20403 # So? What about this header?
20404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20405 yes:no: )
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20410 ac_header_preproc=yes
20412 no:yes:* )
20413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20427 esac
20428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20431 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 else
20433 eval "$as_ac_Header=\$ac_header_preproc"
20435 ac_res=`eval echo '${'$as_ac_Header'}'`
20436 { echo "$as_me:$LINENO: result: $ac_res" >&5
20437 echo "${ECHO_T}$ac_res" >&6; }
20440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20441 cat >>confdefs.h <<_ACEOF
20442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20443 _ACEOF
20445 else
20447 for ac_header in kerberos/des.h
20449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20456 ac_res=`eval echo '${'$as_ac_Header'}'`
20457 { echo "$as_me:$LINENO: result: $ac_res" >&5
20458 echo "${ECHO_T}$ac_res" >&6; }
20459 else
20460 # Is the header compilable?
20461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20463 cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h. */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20469 $ac_includes_default
20470 #include <$ac_header>
20471 _ACEOF
20472 rm -f conftest.$ac_objext
20473 if { (ac_try="$ac_compile"
20474 case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20477 esac
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_compile") 2>conftest.er1
20480 ac_status=$?
20481 grep -v '^ *+' conftest.er1 >conftest.err
20482 rm -f conftest.er1
20483 cat conftest.err >&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } && {
20486 test -z "$ac_c_werror_flag" ||
20487 test ! -s conftest.err
20488 } && test -s conftest.$ac_objext; then
20489 ac_header_compiler=yes
20490 else
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ac_header_compiler=no
20497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20499 echo "${ECHO_T}$ac_header_compiler" >&6; }
20501 # Is the header present?
20502 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20504 cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h. */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 #include <$ac_header>
20511 _ACEOF
20512 if { (ac_try="$ac_cpp conftest.$ac_ext"
20513 case "(($ac_try" in
20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515 *) ac_try_echo=$ac_try;;
20516 esac
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20519 ac_status=$?
20520 grep -v '^ *+' conftest.er1 >conftest.err
20521 rm -f conftest.er1
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } >/dev/null && {
20525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20526 test ! -s conftest.err
20527 }; then
20528 ac_header_preproc=yes
20529 else
20530 echo "$as_me: failed program was:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20533 ac_header_preproc=no
20536 rm -f conftest.err conftest.$ac_ext
20537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20538 echo "${ECHO_T}$ac_header_preproc" >&6; }
20540 # So? What about this header?
20541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20542 yes:no: )
20543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20547 ac_header_preproc=yes
20549 no:yes:* )
20550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20564 esac
20565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570 eval "$as_ac_Header=\$ac_header_preproc"
20572 ac_res=`eval echo '${'$as_ac_Header'}'`
20573 { echo "$as_me:$LINENO: result: $ac_res" >&5
20574 echo "${ECHO_T}$ac_res" >&6; }
20577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20578 cat >>confdefs.h <<_ACEOF
20579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20580 _ACEOF
20584 done
20588 done
20592 done
20595 for ac_header in krb.h
20597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20604 ac_res=`eval echo '${'$as_ac_Header'}'`
20605 { echo "$as_me:$LINENO: result: $ac_res" >&5
20606 echo "${ECHO_T}$ac_res" >&6; }
20607 else
20608 # Is the header compilable?
20609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20611 cat >conftest.$ac_ext <<_ACEOF
20612 /* confdefs.h. */
20613 _ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h. */
20617 $ac_includes_default
20618 #include <$ac_header>
20619 _ACEOF
20620 rm -f conftest.$ac_objext
20621 if { (ac_try="$ac_compile"
20622 case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_compile") 2>conftest.er1
20628 ac_status=$?
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } && {
20634 test -z "$ac_c_werror_flag" ||
20635 test ! -s conftest.err
20636 } && test -s conftest.$ac_objext; then
20637 ac_header_compiler=yes
20638 else
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20642 ac_header_compiler=no
20645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20647 echo "${ECHO_T}$ac_header_compiler" >&6; }
20649 # Is the header present?
20650 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
20659 _ACEOF
20660 if { (ac_try="$ac_cpp conftest.$ac_ext"
20661 case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20667 ac_status=$?
20668 grep -v '^ *+' conftest.er1 >conftest.err
20669 rm -f conftest.er1
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } >/dev/null && {
20673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20674 test ! -s conftest.err
20675 }; then
20676 ac_header_preproc=yes
20677 else
20678 echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20681 ac_header_preproc=no
20684 rm -f conftest.err conftest.$ac_ext
20685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20686 echo "${ECHO_T}$ac_header_preproc" >&6; }
20688 # So? What about this header?
20689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20690 yes:no: )
20691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20695 ac_header_preproc=yes
20697 no:yes:* )
20698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20712 esac
20713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718 eval "$as_ac_Header=\$ac_header_preproc"
20720 ac_res=`eval echo '${'$as_ac_Header'}'`
20721 { echo "$as_me:$LINENO: result: $ac_res" >&5
20722 echo "${ECHO_T}$ac_res" >&6; }
20725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20726 cat >>confdefs.h <<_ACEOF
20727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20728 _ACEOF
20730 else
20732 for ac_header in kerberosIV/krb.h
20734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 ac_res=`eval echo '${'$as_ac_Header'}'`
20742 { echo "$as_me:$LINENO: result: $ac_res" >&5
20743 echo "${ECHO_T}$ac_res" >&6; }
20744 else
20745 # Is the header compilable?
20746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20748 cat >conftest.$ac_ext <<_ACEOF
20749 /* confdefs.h. */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20754 $ac_includes_default
20755 #include <$ac_header>
20756 _ACEOF
20757 rm -f conftest.$ac_objext
20758 if { (ac_try="$ac_compile"
20759 case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_compile") 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && {
20771 test -z "$ac_c_werror_flag" ||
20772 test ! -s conftest.err
20773 } && test -s conftest.$ac_objext; then
20774 ac_header_compiler=yes
20775 else
20776 echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20779 ac_header_compiler=no
20782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20784 echo "${ECHO_T}$ac_header_compiler" >&6; }
20786 # Is the header present?
20787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20789 cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h. */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20795 #include <$ac_header>
20796 _ACEOF
20797 if { (ac_try="$ac_cpp conftest.$ac_ext"
20798 case "(($ac_try" in
20799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800 *) ac_try_echo=$ac_try;;
20801 esac
20802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20804 ac_status=$?
20805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } >/dev/null && {
20810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20811 test ! -s conftest.err
20812 }; then
20813 ac_header_preproc=yes
20814 else
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 ac_header_preproc=no
20821 rm -f conftest.err conftest.$ac_ext
20822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20823 echo "${ECHO_T}$ac_header_preproc" >&6; }
20825 # So? What about this header?
20826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20827 yes:no: )
20828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20832 ac_header_preproc=yes
20834 no:yes:* )
20835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20849 esac
20850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20854 else
20855 eval "$as_ac_Header=\$ac_header_preproc"
20857 ac_res=`eval echo '${'$as_ac_Header'}'`
20858 { echo "$as_me:$LINENO: result: $ac_res" >&5
20859 echo "${ECHO_T}$ac_res" >&6; }
20862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20863 cat >>confdefs.h <<_ACEOF
20864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20865 _ACEOF
20867 else
20869 for ac_header in kerberos/krb.h
20871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 ac_res=`eval echo '${'$as_ac_Header'}'`
20879 { echo "$as_me:$LINENO: result: $ac_res" >&5
20880 echo "${ECHO_T}$ac_res" >&6; }
20881 else
20882 # Is the header compilable?
20883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20885 cat >conftest.$ac_ext <<_ACEOF
20886 /* confdefs.h. */
20887 _ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h. */
20891 $ac_includes_default
20892 #include <$ac_header>
20893 _ACEOF
20894 rm -f conftest.$ac_objext
20895 if { (ac_try="$ac_compile"
20896 case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_compile") 2>conftest.er1
20902 ac_status=$?
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest.$ac_objext; then
20911 ac_header_compiler=yes
20912 else
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 ac_header_compiler=no
20919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20921 echo "${ECHO_T}$ac_header_compiler" >&6; }
20923 # Is the header present?
20924 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h. */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #include <$ac_header>
20933 _ACEOF
20934 if { (ac_try="$ac_cpp conftest.$ac_ext"
20935 case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20938 esac
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20941 ac_status=$?
20942 grep -v '^ *+' conftest.er1 >conftest.err
20943 rm -f conftest.er1
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } >/dev/null && {
20947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20948 test ! -s conftest.err
20949 }; then
20950 ac_header_preproc=yes
20951 else
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20955 ac_header_preproc=no
20958 rm -f conftest.err conftest.$ac_ext
20959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20960 echo "${ECHO_T}$ac_header_preproc" >&6; }
20962 # So? What about this header?
20963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20964 yes:no: )
20965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20969 ac_header_preproc=yes
20971 no:yes:* )
20972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20986 esac
20987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20990 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 else
20992 eval "$as_ac_Header=\$ac_header_preproc"
20994 ac_res=`eval echo '${'$as_ac_Header'}'`
20995 { echo "$as_me:$LINENO: result: $ac_res" >&5
20996 echo "${ECHO_T}$ac_res" >&6; }
20999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21000 cat >>confdefs.h <<_ACEOF
21001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21002 _ACEOF
21006 done
21010 done
21014 done
21018 for ac_header in com_err.h
21020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 ac_res=`eval echo '${'$as_ac_Header'}'`
21028 { echo "$as_me:$LINENO: result: $ac_res" >&5
21029 echo "${ECHO_T}$ac_res" >&6; }
21030 else
21031 # Is the header compilable?
21032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21034 cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h. */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21040 $ac_includes_default
21041 #include <$ac_header>
21042 _ACEOF
21043 rm -f conftest.$ac_objext
21044 if { (ac_try="$ac_compile"
21045 case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_compile") 2>conftest.er1
21051 ac_status=$?
21052 grep -v '^ *+' conftest.er1 >conftest.err
21053 rm -f conftest.er1
21054 cat conftest.err >&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } && {
21057 test -z "$ac_c_werror_flag" ||
21058 test ! -s conftest.err
21059 } && test -s conftest.$ac_objext; then
21060 ac_header_compiler=yes
21061 else
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 ac_header_compiler=no
21068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21070 echo "${ECHO_T}$ac_header_compiler" >&6; }
21072 # Is the header present?
21073 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21075 cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h. */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21081 #include <$ac_header>
21082 _ACEOF
21083 if { (ac_try="$ac_cpp conftest.$ac_ext"
21084 case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21087 esac
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21090 ac_status=$?
21091 grep -v '^ *+' conftest.er1 >conftest.err
21092 rm -f conftest.er1
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } >/dev/null && {
21096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21097 test ! -s conftest.err
21098 }; then
21099 ac_header_preproc=yes
21100 else
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21104 ac_header_preproc=no
21107 rm -f conftest.err conftest.$ac_ext
21108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21109 echo "${ECHO_T}$ac_header_preproc" >&6; }
21111 # So? What about this header?
21112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21113 yes:no: )
21114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21118 ac_header_preproc=yes
21120 no:yes:* )
21121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21135 esac
21136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21141 eval "$as_ac_Header=\$ac_header_preproc"
21143 ac_res=`eval echo '${'$as_ac_Header'}'`
21144 { echo "$as_me:$LINENO: result: $ac_res" >&5
21145 echo "${ECHO_T}$ac_res" >&6; }
21148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21149 cat >>confdefs.h <<_ACEOF
21150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21151 _ACEOF
21155 done
21159 # Solaris requires -lintl if you want strerror (which calls dgettext)
21160 # to return localized messages.
21162 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21163 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21164 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 else
21167 ac_check_lib_save_LIBS=$LIBS
21168 LIBS="-lintl $LIBS"
21169 cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h. */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21176 /* Override any GCC internal prototype to avoid an error.
21177 Use char because int might match the return type of a GCC
21178 builtin and then its argument prototype would still apply. */
21179 #ifdef __cplusplus
21180 extern "C"
21181 #endif
21182 char dgettext ();
21184 main ()
21186 return dgettext ();
21188 return 0;
21190 _ACEOF
21191 rm -f conftest.$ac_objext conftest$ac_exeext
21192 if { (ac_try="$ac_link"
21193 case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21196 esac
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_link") 2>conftest.er1
21199 ac_status=$?
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest$ac_exeext &&
21208 $as_test_x conftest$ac_exeext; then
21209 ac_cv_lib_intl_dgettext=yes
21210 else
21211 echo "$as_me: failed program was:" >&5
21212 sed 's/^/| /' conftest.$ac_ext >&5
21214 ac_cv_lib_intl_dgettext=no
21217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21218 conftest$ac_exeext conftest.$ac_ext
21219 LIBS=$ac_check_lib_save_LIBS
21221 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21222 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21223 if test $ac_cv_lib_intl_dgettext = yes; then
21224 cat >>confdefs.h <<_ACEOF
21225 #define HAVE_LIBINTL 1
21226 _ACEOF
21228 LIBS="-lintl $LIBS"
21233 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21234 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21235 if test "${emacs_cv_localtime_cache+set}" = set; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 else
21238 if test x$ac_cv_func_tzset = xyes; then
21239 if test "$cross_compiling" = yes; then
21240 # If we have tzset, assume the worst when cross-compiling.
21241 emacs_cv_localtime_cache=yes
21242 else
21243 cat >conftest.$ac_ext <<_ACEOF
21244 /* confdefs.h. */
21245 _ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h. */
21249 #include <time.h>
21250 extern char **environ;
21251 unset_TZ ()
21253 char **from, **to;
21254 for (to = from = environ; (*to = *from); from++)
21255 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21256 to++;
21258 char TZ_GMT0[] = "TZ=GMT0";
21259 char TZ_PST8[] = "TZ=PST8";
21260 main()
21262 time_t now = time ((time_t *) 0);
21263 int hour_GMT0, hour_unset;
21264 if (putenv (TZ_GMT0) != 0)
21265 exit (1);
21266 hour_GMT0 = localtime (&now)->tm_hour;
21267 unset_TZ ();
21268 hour_unset = localtime (&now)->tm_hour;
21269 if (putenv (TZ_PST8) != 0)
21270 exit (1);
21271 if (localtime (&now)->tm_hour == hour_GMT0)
21272 exit (1);
21273 unset_TZ ();
21274 if (localtime (&now)->tm_hour != hour_unset)
21275 exit (1);
21276 exit (0);
21278 _ACEOF
21279 rm -f conftest$ac_exeext
21280 if { (ac_try="$ac_link"
21281 case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_link") 2>&5
21287 ac_status=$?
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21290 { (case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_try") 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; }; then
21299 emacs_cv_localtime_cache=no
21300 else
21301 echo "$as_me: program exited with status $ac_status" >&5
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21305 ( exit $ac_status )
21306 emacs_cv_localtime_cache=yes
21308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21312 else
21313 # If we lack tzset, report that localtime does not cache TZ,
21314 # since we can't invalidate the cache if we don't have tzset.
21315 emacs_cv_localtime_cache=no
21318 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21319 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21320 if test $emacs_cv_localtime_cache = yes; then
21322 cat >>confdefs.h <<\_ACEOF
21323 #define LOCALTIME_CACHE 1
21324 _ACEOF
21328 if test "x$HAVE_TIMEVAL" = xyes; then
21330 for ac_func in gettimeofday
21332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 else
21338 cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h. */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21346 #define $ac_func innocuous_$ac_func
21348 /* System header to define __stub macros and hopefully few prototypes,
21349 which can conflict with char $ac_func (); below.
21350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21351 <limits.h> exists even on freestanding compilers. */
21353 #ifdef __STDC__
21354 # include <limits.h>
21355 #else
21356 # include <assert.h>
21357 #endif
21359 #undef $ac_func
21361 /* Override any GCC internal prototype to avoid an error.
21362 Use char because int might match the return type of a GCC
21363 builtin and then its argument prototype would still apply. */
21364 #ifdef __cplusplus
21365 extern "C"
21366 #endif
21367 char $ac_func ();
21368 /* The GNU C library defines this for functions which it implements
21369 to always fail with ENOSYS. Some functions are actually named
21370 something starting with __ and the normal name is an alias. */
21371 #if defined __stub_$ac_func || defined __stub___$ac_func
21372 choke me
21373 #endif
21376 main ()
21378 return $ac_func ();
21380 return 0;
21382 _ACEOF
21383 rm -f conftest.$ac_objext conftest$ac_exeext
21384 if { (ac_try="$ac_link"
21385 case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21388 esac
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390 (eval "$ac_link") 2>conftest.er1
21391 ac_status=$?
21392 grep -v '^ *+' conftest.er1 >conftest.err
21393 rm -f conftest.er1
21394 cat conftest.err >&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } && {
21397 test -z "$ac_c_werror_flag" ||
21398 test ! -s conftest.err
21399 } && test -s conftest$ac_exeext &&
21400 $as_test_x conftest$ac_exeext; then
21401 eval "$as_ac_var=yes"
21402 else
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 eval "$as_ac_var=no"
21409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21410 conftest$ac_exeext conftest.$ac_ext
21412 ac_res=`eval echo '${'$as_ac_var'}'`
21413 { echo "$as_me:$LINENO: result: $ac_res" >&5
21414 echo "${ECHO_T}$ac_res" >&6; }
21415 if test `eval echo '${'$as_ac_var'}'` = yes; then
21416 cat >>confdefs.h <<_ACEOF
21417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21418 _ACEOF
21421 done
21423 if test $ac_cv_func_gettimeofday = yes; then
21424 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21425 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21426 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 else
21429 cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h. */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21436 #ifdef TIME_WITH_SYS_TIME
21437 #include <sys/time.h>
21438 #include <time.h>
21439 #else
21440 #ifdef HAVE_SYS_TIME_H
21441 #include <sys/time.h>
21442 #else
21443 #include <time.h>
21444 #endif
21445 #endif
21447 main ()
21449 struct timeval time;
21450 gettimeofday (&time, 0);
21452 return 0;
21454 _ACEOF
21455 rm -f conftest.$ac_objext
21456 if { (ac_try="$ac_compile"
21457 case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_compile") 2>conftest.er1
21463 ac_status=$?
21464 grep -v '^ *+' conftest.er1 >conftest.err
21465 rm -f conftest.er1
21466 cat conftest.err >&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && {
21469 test -z "$ac_c_werror_flag" ||
21470 test ! -s conftest.err
21471 } && test -s conftest.$ac_objext; then
21472 emacs_cv_gettimeofday_two_arguments=yes
21473 else
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21477 emacs_cv_gettimeofday_two_arguments=no
21480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21482 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21483 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21484 if test $emacs_cv_gettimeofday_two_arguments = no; then
21486 cat >>confdefs.h <<\_ACEOF
21487 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21488 _ACEOF
21494 ok_so_far=yes
21495 { echo "$as_me:$LINENO: checking for socket" >&5
21496 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21497 if test "${ac_cv_func_socket+set}" = set; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21499 else
21500 cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h. */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21508 #define socket innocuous_socket
21510 /* System header to define __stub macros and hopefully few prototypes,
21511 which can conflict with char socket (); below.
21512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21513 <limits.h> exists even on freestanding compilers. */
21515 #ifdef __STDC__
21516 # include <limits.h>
21517 #else
21518 # include <assert.h>
21519 #endif
21521 #undef socket
21523 /* Override any GCC internal prototype to avoid an error.
21524 Use char because int might match the return type of a GCC
21525 builtin and then its argument prototype would still apply. */
21526 #ifdef __cplusplus
21527 extern "C"
21528 #endif
21529 char socket ();
21530 /* The GNU C library defines this for functions which it implements
21531 to always fail with ENOSYS. Some functions are actually named
21532 something starting with __ and the normal name is an alias. */
21533 #if defined __stub_socket || defined __stub___socket
21534 choke me
21535 #endif
21538 main ()
21540 return socket ();
21542 return 0;
21544 _ACEOF
21545 rm -f conftest.$ac_objext conftest$ac_exeext
21546 if { (ac_try="$ac_link"
21547 case "(($ac_try" in
21548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21549 *) ac_try_echo=$ac_try;;
21550 esac
21551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21552 (eval "$ac_link") 2>conftest.er1
21553 ac_status=$?
21554 grep -v '^ *+' conftest.er1 >conftest.err
21555 rm -f conftest.er1
21556 cat conftest.err >&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } && {
21559 test -z "$ac_c_werror_flag" ||
21560 test ! -s conftest.err
21561 } && test -s conftest$ac_exeext &&
21562 $as_test_x conftest$ac_exeext; then
21563 ac_cv_func_socket=yes
21564 else
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21568 ac_cv_func_socket=no
21571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21572 conftest$ac_exeext conftest.$ac_ext
21574 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21575 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21576 if test $ac_cv_func_socket = yes; then
21578 else
21579 ok_so_far=no
21582 if test $ok_so_far = yes; then
21583 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21584 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21585 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21586 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21587 echo $ECHO_N "(cached) $ECHO_C" >&6
21589 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21590 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21591 else
21592 # Is the header compilable?
21593 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21594 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21595 cat >conftest.$ac_ext <<_ACEOF
21596 /* confdefs.h. */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21601 $ac_includes_default
21602 #include <netinet/in.h>
21603 _ACEOF
21604 rm -f conftest.$ac_objext
21605 if { (ac_try="$ac_compile"
21606 case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21609 esac
21610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21611 (eval "$ac_compile") 2>conftest.er1
21612 ac_status=$?
21613 grep -v '^ *+' conftest.er1 >conftest.err
21614 rm -f conftest.er1
21615 cat conftest.err >&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } && {
21618 test -z "$ac_c_werror_flag" ||
21619 test ! -s conftest.err
21620 } && test -s conftest.$ac_objext; then
21621 ac_header_compiler=yes
21622 else
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 ac_header_compiler=no
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21631 echo "${ECHO_T}$ac_header_compiler" >&6; }
21633 # Is the header present?
21634 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21635 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21636 cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h. */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h. */
21642 #include <netinet/in.h>
21643 _ACEOF
21644 if { (ac_try="$ac_cpp conftest.$ac_ext"
21645 case "(($ac_try" in
21646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647 *) ac_try_echo=$ac_try;;
21648 esac
21649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21651 ac_status=$?
21652 grep -v '^ *+' conftest.er1 >conftest.err
21653 rm -f conftest.er1
21654 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } >/dev/null && {
21657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21658 test ! -s conftest.err
21659 }; then
21660 ac_header_preproc=yes
21661 else
21662 echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21665 ac_header_preproc=no
21668 rm -f conftest.err conftest.$ac_ext
21669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21670 echo "${ECHO_T}$ac_header_preproc" >&6; }
21672 # So? What about this header?
21673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21674 yes:no: )
21675 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21676 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21678 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21679 ac_header_preproc=yes
21681 no:yes:* )
21682 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21683 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21684 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21685 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21686 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21687 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21688 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21689 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21690 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21691 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21692 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21693 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21696 esac
21697 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21698 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21699 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21700 echo $ECHO_N "(cached) $ECHO_C" >&6
21701 else
21702 ac_cv_header_netinet_in_h=$ac_header_preproc
21704 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21705 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21708 if test $ac_cv_header_netinet_in_h = yes; then
21710 else
21711 ok_so_far=no
21716 if test $ok_so_far = yes; then
21717 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21718 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21719 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21720 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21721 echo $ECHO_N "(cached) $ECHO_C" >&6
21723 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21724 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21725 else
21726 # Is the header compilable?
21727 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21728 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21729 cat >conftest.$ac_ext <<_ACEOF
21730 /* confdefs.h. */
21731 _ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h. */
21735 $ac_includes_default
21736 #include <arpa/inet.h>
21737 _ACEOF
21738 rm -f conftest.$ac_objext
21739 if { (ac_try="$ac_compile"
21740 case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21743 esac
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_compile") 2>conftest.er1
21746 ac_status=$?
21747 grep -v '^ *+' conftest.er1 >conftest.err
21748 rm -f conftest.er1
21749 cat conftest.err >&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } && {
21752 test -z "$ac_c_werror_flag" ||
21753 test ! -s conftest.err
21754 } && test -s conftest.$ac_objext; then
21755 ac_header_compiler=yes
21756 else
21757 echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21760 ac_header_compiler=no
21763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21765 echo "${ECHO_T}$ac_header_compiler" >&6; }
21767 # Is the header present?
21768 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21769 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21770 cat >conftest.$ac_ext <<_ACEOF
21771 /* confdefs.h. */
21772 _ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21776 #include <arpa/inet.h>
21777 _ACEOF
21778 if { (ac_try="$ac_cpp conftest.$ac_ext"
21779 case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21785 ac_status=$?
21786 grep -v '^ *+' conftest.er1 >conftest.err
21787 rm -f conftest.er1
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } >/dev/null && {
21791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21792 test ! -s conftest.err
21793 }; then
21794 ac_header_preproc=yes
21795 else
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21799 ac_header_preproc=no
21802 rm -f conftest.err conftest.$ac_ext
21803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21804 echo "${ECHO_T}$ac_header_preproc" >&6; }
21806 # So? What about this header?
21807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21808 yes:no: )
21809 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21810 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21811 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21812 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21813 ac_header_preproc=yes
21815 no:yes:* )
21816 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21817 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21819 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21820 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21821 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21822 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21823 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21824 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21825 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21826 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21827 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21830 esac
21831 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21832 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21833 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21834 echo $ECHO_N "(cached) $ECHO_C" >&6
21835 else
21836 ac_cv_header_arpa_inet_h=$ac_header_preproc
21838 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21839 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21842 if test $ac_cv_header_arpa_inet_h = yes; then
21844 else
21845 ok_so_far=no
21850 if test $ok_so_far = yes; then
21852 cat >>confdefs.h <<\_ACEOF
21853 #define HAVE_INET_SOCKETS 1
21854 _ACEOF
21859 for ac_header in sys/ioctl.h
21861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
21868 ac_res=`eval echo '${'$as_ac_Header'}'`
21869 { echo "$as_me:$LINENO: result: $ac_res" >&5
21870 echo "${ECHO_T}$ac_res" >&6; }
21871 else
21872 # Is the header compilable?
21873 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21875 cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h. */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 $ac_includes_default
21882 #include <$ac_header>
21883 _ACEOF
21884 rm -f conftest.$ac_objext
21885 if { (ac_try="$ac_compile"
21886 case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21889 esac
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891 (eval "$ac_compile") 2>conftest.er1
21892 ac_status=$?
21893 grep -v '^ *+' conftest.er1 >conftest.err
21894 rm -f conftest.er1
21895 cat conftest.err >&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); } && {
21898 test -z "$ac_c_werror_flag" ||
21899 test ! -s conftest.err
21900 } && test -s conftest.$ac_objext; then
21901 ac_header_compiler=yes
21902 else
21903 echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 ac_header_compiler=no
21909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21911 echo "${ECHO_T}$ac_header_compiler" >&6; }
21913 # Is the header present?
21914 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21916 cat >conftest.$ac_ext <<_ACEOF
21917 /* confdefs.h. */
21918 _ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h. */
21922 #include <$ac_header>
21923 _ACEOF
21924 if { (ac_try="$ac_cpp conftest.$ac_ext"
21925 case "(($ac_try" in
21926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21927 *) ac_try_echo=$ac_try;;
21928 esac
21929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21931 ac_status=$?
21932 grep -v '^ *+' conftest.er1 >conftest.err
21933 rm -f conftest.er1
21934 cat conftest.err >&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } >/dev/null && {
21937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21938 test ! -s conftest.err
21939 }; then
21940 ac_header_preproc=yes
21941 else
21942 echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21945 ac_header_preproc=no
21948 rm -f conftest.err conftest.$ac_ext
21949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21950 echo "${ECHO_T}$ac_header_preproc" >&6; }
21952 # So? What about this header?
21953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21954 yes:no: )
21955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21959 ac_header_preproc=yes
21961 no:yes:* )
21962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21976 esac
21977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21981 else
21982 eval "$as_ac_Header=\$ac_header_preproc"
21984 ac_res=`eval echo '${'$as_ac_Header'}'`
21985 { echo "$as_me:$LINENO: result: $ac_res" >&5
21986 echo "${ECHO_T}$ac_res" >&6; }
21989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21990 cat >>confdefs.h <<_ACEOF
21991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21992 _ACEOF
21996 done
21999 if test -f /usr/lpp/X11/bin/smt.exp; then
22001 cat >>confdefs.h <<\_ACEOF
22002 #define HAVE_AIX_SMT_EXP 1
22003 _ACEOF
22007 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22008 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22009 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22010 { echo "$as_me:$LINENO: result: yes" >&5
22011 echo "${ECHO_T}yes" >&6; }
22013 cat >>confdefs.h <<\_ACEOF
22014 #define HAVE_DEV_PTMX 1
22015 _ACEOF
22017 else
22018 { echo "$as_me:$LINENO: result: no" >&5
22019 echo "${ECHO_T}no" >&6; }
22022 { echo "$as_me:$LINENO: checking for pid_t" >&5
22023 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22024 if test "${ac_cv_type_pid_t+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 $ac_includes_default
22034 typedef pid_t ac__type_new_;
22036 main ()
22038 if ((ac__type_new_ *) 0)
22039 return 0;
22040 if (sizeof (ac__type_new_))
22041 return 0;
22043 return 0;
22045 _ACEOF
22046 rm -f conftest.$ac_objext
22047 if { (ac_try="$ac_compile"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_compile") 2>conftest.er1
22054 ac_status=$?
22055 grep -v '^ *+' conftest.er1 >conftest.err
22056 rm -f conftest.er1
22057 cat conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } && {
22060 test -z "$ac_c_werror_flag" ||
22061 test ! -s conftest.err
22062 } && test -s conftest.$ac_objext; then
22063 ac_cv_type_pid_t=yes
22064 else
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22068 ac_cv_type_pid_t=no
22071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22074 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22075 if test $ac_cv_type_pid_t = yes; then
22077 else
22079 cat >>confdefs.h <<_ACEOF
22080 #define pid_t int
22081 _ACEOF
22086 for ac_header in vfork.h
22088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22093 echo $ECHO_N "(cached) $ECHO_C" >&6
22095 ac_res=`eval echo '${'$as_ac_Header'}'`
22096 { echo "$as_me:$LINENO: result: $ac_res" >&5
22097 echo "${ECHO_T}$ac_res" >&6; }
22098 else
22099 # Is the header compilable?
22100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22102 cat >conftest.$ac_ext <<_ACEOF
22103 /* confdefs.h. */
22104 _ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22108 $ac_includes_default
22109 #include <$ac_header>
22110 _ACEOF
22111 rm -f conftest.$ac_objext
22112 if { (ac_try="$ac_compile"
22113 case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22116 esac
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_compile") 2>conftest.er1
22119 ac_status=$?
22120 grep -v '^ *+' conftest.er1 >conftest.err
22121 rm -f conftest.er1
22122 cat conftest.err >&5
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } && {
22125 test -z "$ac_c_werror_flag" ||
22126 test ! -s conftest.err
22127 } && test -s conftest.$ac_objext; then
22128 ac_header_compiler=yes
22129 else
22130 echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22133 ac_header_compiler=no
22136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22138 echo "${ECHO_T}$ac_header_compiler" >&6; }
22140 # Is the header present?
22141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22143 cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h. */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22149 #include <$ac_header>
22150 _ACEOF
22151 if { (ac_try="$ac_cpp conftest.$ac_ext"
22152 case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22158 ac_status=$?
22159 grep -v '^ *+' conftest.er1 >conftest.err
22160 rm -f conftest.er1
22161 cat conftest.err >&5
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } >/dev/null && {
22164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22165 test ! -s conftest.err
22166 }; then
22167 ac_header_preproc=yes
22168 else
22169 echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 ac_header_preproc=no
22175 rm -f conftest.err conftest.$ac_ext
22176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22177 echo "${ECHO_T}$ac_header_preproc" >&6; }
22179 # So? What about this header?
22180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22181 yes:no: )
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22186 ac_header_preproc=yes
22188 no:yes:* )
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22203 esac
22204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22207 echo $ECHO_N "(cached) $ECHO_C" >&6
22208 else
22209 eval "$as_ac_Header=\$ac_header_preproc"
22211 ac_res=`eval echo '${'$as_ac_Header'}'`
22212 { echo "$as_me:$LINENO: result: $ac_res" >&5
22213 echo "${ECHO_T}$ac_res" >&6; }
22216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22217 cat >>confdefs.h <<_ACEOF
22218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22219 _ACEOF
22223 done
22227 for ac_func in fork vfork
22229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22233 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 else
22235 cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h. */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22243 #define $ac_func innocuous_$ac_func
22245 /* System header to define __stub macros and hopefully few prototypes,
22246 which can conflict with char $ac_func (); below.
22247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22248 <limits.h> exists even on freestanding compilers. */
22250 #ifdef __STDC__
22251 # include <limits.h>
22252 #else
22253 # include <assert.h>
22254 #endif
22256 #undef $ac_func
22258 /* Override any GCC internal prototype to avoid an error.
22259 Use char because int might match the return type of a GCC
22260 builtin and then its argument prototype would still apply. */
22261 #ifdef __cplusplus
22262 extern "C"
22263 #endif
22264 char $ac_func ();
22265 /* The GNU C library defines this for functions which it implements
22266 to always fail with ENOSYS. Some functions are actually named
22267 something starting with __ and the normal name is an alias. */
22268 #if defined __stub_$ac_func || defined __stub___$ac_func
22269 choke me
22270 #endif
22273 main ()
22275 return $ac_func ();
22277 return 0;
22279 _ACEOF
22280 rm -f conftest.$ac_objext conftest$ac_exeext
22281 if { (ac_try="$ac_link"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_link") 2>conftest.er1
22288 ac_status=$?
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } && {
22294 test -z "$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22296 } && test -s conftest$ac_exeext &&
22297 $as_test_x conftest$ac_exeext; then
22298 eval "$as_ac_var=yes"
22299 else
22300 echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22303 eval "$as_ac_var=no"
22306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22307 conftest$ac_exeext conftest.$ac_ext
22309 ac_res=`eval echo '${'$as_ac_var'}'`
22310 { echo "$as_me:$LINENO: result: $ac_res" >&5
22311 echo "${ECHO_T}$ac_res" >&6; }
22312 if test `eval echo '${'$as_ac_var'}'` = yes; then
22313 cat >>confdefs.h <<_ACEOF
22314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22315 _ACEOF
22318 done
22320 if test "x$ac_cv_func_fork" = xyes; then
22321 { echo "$as_me:$LINENO: checking for working fork" >&5
22322 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22323 if test "${ac_cv_func_fork_works+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326 if test "$cross_compiling" = yes; then
22327 ac_cv_func_fork_works=cross
22328 else
22329 cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h. */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22335 $ac_includes_default
22337 main ()
22340 /* By Ruediger Kuhlmann. */
22341 return fork () < 0;
22344 return 0;
22346 _ACEOF
22347 rm -f conftest$ac_exeext
22348 if { (ac_try="$ac_link"
22349 case "(($ac_try" in
22350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351 *) ac_try_echo=$ac_try;;
22352 esac
22353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22354 (eval "$ac_link") 2>&5
22355 ac_status=$?
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22358 { (case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22361 esac
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_try") 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
22367 ac_cv_func_fork_works=yes
22368 else
22369 echo "$as_me: program exited with status $ac_status" >&5
22370 echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22373 ( exit $ac_status )
22374 ac_cv_func_fork_works=no
22376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22381 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22382 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22384 else
22385 ac_cv_func_fork_works=$ac_cv_func_fork
22387 if test "x$ac_cv_func_fork_works" = xcross; then
22388 case $host in
22389 *-*-amigaos* | *-*-msdosdjgpp*)
22390 # Override, as these systems have only a dummy fork() stub
22391 ac_cv_func_fork_works=no
22394 ac_cv_func_fork_works=yes
22396 esac
22397 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22398 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22400 ac_cv_func_vfork_works=$ac_cv_func_vfork
22401 if test "x$ac_cv_func_vfork" = xyes; then
22402 { echo "$as_me:$LINENO: checking for working vfork" >&5
22403 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22404 if test "${ac_cv_func_vfork_works+set}" = set; then
22405 echo $ECHO_N "(cached) $ECHO_C" >&6
22406 else
22407 if test "$cross_compiling" = yes; then
22408 ac_cv_func_vfork_works=cross
22409 else
22410 cat >conftest.$ac_ext <<_ACEOF
22411 /* confdefs.h. */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22416 /* Thanks to Paul Eggert for this test. */
22417 $ac_includes_default
22418 #include <sys/wait.h>
22419 #ifdef HAVE_VFORK_H
22420 # include <vfork.h>
22421 #endif
22422 /* On some sparc systems, changes by the child to local and incoming
22423 argument registers are propagated back to the parent. The compiler
22424 is told about this with #include <vfork.h>, but some compilers
22425 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22426 static variable whose address is put into a register that is
22427 clobbered by the vfork. */
22428 static void
22429 #ifdef __cplusplus
22430 sparc_address_test (int arg)
22431 # else
22432 sparc_address_test (arg) int arg;
22433 #endif
22435 static pid_t child;
22436 if (!child) {
22437 child = vfork ();
22438 if (child < 0) {
22439 perror ("vfork");
22440 _exit(2);
22442 if (!child) {
22443 arg = getpid();
22444 write(-1, "", 0);
22445 _exit (arg);
22451 main ()
22453 pid_t parent = getpid ();
22454 pid_t child;
22456 sparc_address_test (0);
22458 child = vfork ();
22460 if (child == 0) {
22461 /* Here is another test for sparc vfork register problems. This
22462 test uses lots of local variables, at least as many local
22463 variables as main has allocated so far including compiler
22464 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22465 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22466 reuse the register of parent for one of the local variables,
22467 since it will think that parent can't possibly be used any more
22468 in this routine. Assigning to the local variable will thus
22469 munge parent in the parent process. */
22470 pid_t
22471 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22472 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22473 /* Convince the compiler that p..p7 are live; otherwise, it might
22474 use the same hardware register for all 8 local variables. */
22475 if (p != p1 || p != p2 || p != p3 || p != p4
22476 || p != p5 || p != p6 || p != p7)
22477 _exit(1);
22479 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22480 from child file descriptors. If the child closes a descriptor
22481 before it execs or exits, this munges the parent's descriptor
22482 as well. Test for this by closing stdout in the child. */
22483 _exit(close(fileno(stdout)) != 0);
22484 } else {
22485 int status;
22486 struct stat st;
22488 while (wait(&status) != child)
22490 return (
22491 /* Was there some problem with vforking? */
22492 child < 0
22494 /* Did the child fail? (This shouldn't happen.) */
22495 || status
22497 /* Did the vfork/compiler bug occur? */
22498 || parent != getpid()
22500 /* Did the file descriptor bug occur? */
22501 || fstat(fileno(stdout), &st) != 0
22505 _ACEOF
22506 rm -f conftest$ac_exeext
22507 if { (ac_try="$ac_link"
22508 case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22511 esac
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_link") 2>&5
22514 ac_status=$?
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22517 { (case "(($ac_try" in
22518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22519 *) ac_try_echo=$ac_try;;
22520 esac
22521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22522 (eval "$ac_try") 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
22526 ac_cv_func_vfork_works=yes
22527 else
22528 echo "$as_me: program exited with status $ac_status" >&5
22529 echo "$as_me: failed program was:" >&5
22530 sed 's/^/| /' conftest.$ac_ext >&5
22532 ( exit $ac_status )
22533 ac_cv_func_vfork_works=no
22535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22540 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22541 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22544 if test "x$ac_cv_func_fork_works" = xcross; then
22545 ac_cv_func_vfork_works=$ac_cv_func_vfork
22546 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22547 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22550 if test "x$ac_cv_func_vfork_works" = xyes; then
22552 cat >>confdefs.h <<\_ACEOF
22553 #define HAVE_WORKING_VFORK 1
22554 _ACEOF
22556 else
22558 cat >>confdefs.h <<\_ACEOF
22559 #define vfork fork
22560 _ACEOF
22563 if test "x$ac_cv_func_fork_works" = xyes; then
22565 cat >>confdefs.h <<\_ACEOF
22566 #define HAVE_WORKING_FORK 1
22567 _ACEOF
22572 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22573 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22574 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22575 echo $ECHO_N "(cached) $ECHO_C" >&6
22576 else
22577 cat >conftest.$ac_ext <<_ACEOF
22578 /* confdefs.h. */
22579 _ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h. */
22583 #include <langinfo.h>
22585 main ()
22587 char* cs = nl_langinfo(CODESET);
22589 return 0;
22591 _ACEOF
22592 rm -f conftest.$ac_objext conftest$ac_exeext
22593 if { (ac_try="$ac_link"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22597 esac
22598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22599 (eval "$ac_link") 2>conftest.er1
22600 ac_status=$?
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } && {
22606 test -z "$ac_c_werror_flag" ||
22607 test ! -s conftest.err
22608 } && test -s conftest$ac_exeext &&
22609 $as_test_x conftest$ac_exeext; then
22610 emacs_cv_langinfo_codeset=yes
22611 else
22612 echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22615 emacs_cv_langinfo_codeset=no
22618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22619 conftest$ac_exeext conftest.$ac_ext
22622 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22623 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22624 if test $emacs_cv_langinfo_codeset = yes; then
22626 cat >>confdefs.h <<\_ACEOF
22627 #define HAVE_LANGINFO_CODESET 1
22628 _ACEOF
22632 { echo "$as_me:$LINENO: checking for size_t" >&5
22633 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22634 if test "${ac_cv_type_size_t+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637 cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h. */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 $ac_includes_default
22644 typedef size_t ac__type_new_;
22646 main ()
22648 if ((ac__type_new_ *) 0)
22649 return 0;
22650 if (sizeof (ac__type_new_))
22651 return 0;
22653 return 0;
22655 _ACEOF
22656 rm -f conftest.$ac_objext
22657 if { (ac_try="$ac_compile"
22658 case "(($ac_try" in
22659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660 *) ac_try_echo=$ac_try;;
22661 esac
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663 (eval "$ac_compile") 2>conftest.er1
22664 ac_status=$?
22665 grep -v '^ *+' conftest.er1 >conftest.err
22666 rm -f conftest.er1
22667 cat conftest.err >&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } && {
22670 test -z "$ac_c_werror_flag" ||
22671 test ! -s conftest.err
22672 } && test -s conftest.$ac_objext; then
22673 ac_cv_type_size_t=yes
22674 else
22675 echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22678 ac_cv_type_size_t=no
22681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22684 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22685 if test $ac_cv_type_size_t = yes; then
22687 cat >>confdefs.h <<_ACEOF
22688 #define HAVE_SIZE_T 1
22689 _ACEOF
22695 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22696 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22697 if test "${ac_cv_type_mbstate_t+set}" = set; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22699 else
22700 cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h. */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 $ac_includes_default
22707 # include <wchar.h>
22709 main ()
22711 mbstate_t x; return sizeof x;
22713 return 0;
22715 _ACEOF
22716 rm -f conftest.$ac_objext
22717 if { (ac_try="$ac_compile"
22718 case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22721 esac
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_compile") 2>conftest.er1
22724 ac_status=$?
22725 grep -v '^ *+' conftest.er1 >conftest.err
22726 rm -f conftest.er1
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } && {
22730 test -z "$ac_c_werror_flag" ||
22731 test ! -s conftest.err
22732 } && test -s conftest.$ac_objext; then
22733 ac_cv_type_mbstate_t=yes
22734 else
22735 echo "$as_me: failed program was:" >&5
22736 sed 's/^/| /' conftest.$ac_ext >&5
22738 ac_cv_type_mbstate_t=no
22741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22743 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22744 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22745 if test $ac_cv_type_mbstate_t = yes; then
22747 cat >>confdefs.h <<\_ACEOF
22748 #define HAVE_MBSTATE_T 1
22749 _ACEOF
22751 else
22753 cat >>confdefs.h <<\_ACEOF
22754 #define mbstate_t int
22755 _ACEOF
22759 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22760 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22761 if test "${emacs_cv_c_restrict+set}" = set; then
22762 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 else
22764 cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h. */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22770 void fred (int *restrict x);
22772 main ()
22776 return 0;
22778 _ACEOF
22779 rm -f conftest.$ac_objext
22780 if { (ac_try="$ac_compile"
22781 case "(($ac_try" in
22782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783 *) ac_try_echo=$ac_try;;
22784 esac
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786 (eval "$ac_compile") 2>conftest.er1
22787 ac_status=$?
22788 grep -v '^ *+' conftest.er1 >conftest.err
22789 rm -f conftest.er1
22790 cat conftest.err >&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && {
22793 test -z "$ac_c_werror_flag" ||
22794 test ! -s conftest.err
22795 } && test -s conftest.$ac_objext; then
22796 emacs_cv_c_restrict=yes
22797 else
22798 echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22801 cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h. */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22807 void fred (int *__restrict x);
22809 main ()
22813 return 0;
22815 _ACEOF
22816 rm -f conftest.$ac_objext
22817 if { (ac_try="$ac_compile"
22818 case "(($ac_try" in
22819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820 *) ac_try_echo=$ac_try;;
22821 esac
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823 (eval "$ac_compile") 2>conftest.er1
22824 ac_status=$?
22825 grep -v '^ *+' conftest.er1 >conftest.err
22826 rm -f conftest.er1
22827 cat conftest.err >&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); } && {
22830 test -z "$ac_c_werror_flag" ||
22831 test ! -s conftest.err
22832 } && test -s conftest.$ac_objext; then
22833 emacs_cv_c_restrict=__restrict
22834 else
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 emacs_cv_c_restrict=no
22841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22846 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22847 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22848 case "$emacs_cv_c_restrict" in
22849 yes) emacs_restrict=restrict;;
22850 no) emacs_restrict="";;
22851 *) emacs_restrict="$emacs_cv_c_restrict";;
22852 esac
22853 if test "$emacs_restrict" != __restrict; then
22855 cat >>confdefs.h <<_ACEOF
22856 #define __restrict $emacs_restrict
22857 _ACEOF
22861 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22862 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22863 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22864 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 else
22866 cat >conftest.$ac_ext <<_ACEOF
22867 /* confdefs.h. */
22868 _ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22872 void fred (int x[__restrict]);
22874 main ()
22878 return 0;
22880 _ACEOF
22881 rm -f conftest.$ac_objext
22882 if { (ac_try="$ac_compile"
22883 case "(($ac_try" in
22884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22886 esac
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_compile") 2>conftest.er1
22889 ac_status=$?
22890 grep -v '^ *+' conftest.er1 >conftest.err
22891 rm -f conftest.er1
22892 cat conftest.err >&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } && {
22895 test -z "$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22897 } && test -s conftest.$ac_objext; then
22898 emacs_cv_c_restrict_arr=yes
22899 else
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22903 emacs_cv_c_restrict_arr=no
22906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22908 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22909 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22910 if test "$emacs_cv_c_restrict_arr" = yes; then
22912 cat >>confdefs.h <<\_ACEOF
22913 #define __restrict_arr __restrict
22914 _ACEOF
22920 # Set up the CFLAGS for real compilation, so we can substitute it.
22921 CFLAGS="$REAL_CFLAGS"
22922 CPPFLAGS="$REAL_CPPFLAGS"
22924 #### Find out which version of Emacs this is.
22925 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22926 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22927 if test x"${version}" = x; then
22928 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22929 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22930 { (exit 1); exit 1; }; }
22933 ### Specify what sort of things we'll be editing into Makefile and config.h.
22934 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22970 cat >>confdefs.h <<_ACEOF
22971 #define EMACS_CONFIGURATION "${canonical}"
22972 _ACEOF
22975 cat >>confdefs.h <<_ACEOF
22976 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22977 _ACEOF
22980 cat >>confdefs.h <<_ACEOF
22981 #define config_machfile "${machfile}"
22982 _ACEOF
22985 cat >>confdefs.h <<_ACEOF
22986 #define config_opsysfile "${opsysfile}"
22987 _ACEOF
22990 cat >>confdefs.h <<_ACEOF
22991 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22992 _ACEOF
22995 cat >>confdefs.h <<_ACEOF
22996 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22997 _ACEOF
23000 cat >>confdefs.h <<_ACEOF
23001 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23002 _ACEOF
23005 cat >>confdefs.h <<_ACEOF
23006 #define UNEXEC_SRC ${UNEXEC_SRC}
23007 _ACEOF
23010 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23012 cat >>confdefs.h <<\_ACEOF
23013 #define HAVE_X_WINDOWS 1
23014 _ACEOF
23017 if test "${USE_X_TOOLKIT}" != "none" ; then
23019 cat >>confdefs.h <<\_ACEOF
23020 #define USE_X_TOOLKIT 1
23021 _ACEOF
23024 if test "${HAVE_X11}" = "yes" ; then
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_X11 1
23028 _ACEOF
23031 if test "${HAVE_XFREE386}" = "yes" ; then
23033 cat >>confdefs.h <<\_ACEOF
23034 #define HAVE_XFREE386 1
23035 _ACEOF
23038 if test "${HAVE_MENUS}" = "yes" ; then
23040 cat >>confdefs.h <<\_ACEOF
23041 #define HAVE_MENUS 1
23042 _ACEOF
23045 if test "${GNU_MALLOC}" = "yes" ; then
23047 cat >>confdefs.h <<\_ACEOF
23048 #define GNU_MALLOC 1
23049 _ACEOF
23052 if test "${REL_ALLOC}" = "yes" ; then
23054 cat >>confdefs.h <<\_ACEOF
23055 #define REL_ALLOC 1
23056 _ACEOF
23064 #### Report on what we decided to do.
23065 #### Report GTK as a toolkit, even if it doesn't use Xt.
23066 #### It makes printing result more understandable as using GTK sets
23067 #### toolkit_scroll_bars to yes by default.
23068 if test "${HAVE_GTK}" = "yes"; then
23069 USE_X_TOOLKIT=GTK
23072 echo "
23073 Configured for \`${canonical}'.
23075 Where should the build process find the source code? ${srcdir}
23076 What operating system and machine description files should Emacs use?
23077 \`${opsysfile}' and \`${machfile}'
23078 What compiler should emacs be built with? ${CC} ${CFLAGS}
23079 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23080 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23081 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23082 What window system should Emacs use? ${window_system}
23083 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23085 if test -n "${x_includes}"; then
23086 echo " Where do we find X Windows header files? ${x_includes}"
23087 else
23088 echo " Where do we find X Windows header files? Standard dirs"
23090 if test -n "${x_libraries}"; then
23091 echo " Where do we find X Windows libraries? ${x_libraries}"
23092 else
23093 echo " Where do we find X Windows libraries? Standard dirs"
23096 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23097 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23098 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23099 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23100 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23101 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23102 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23103 echo
23105 if test $USE_XASSERTS = yes; then
23106 echo " Compiling with asserts turned on."
23107 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23108 echo
23111 if test "$USE_X_TOOLKIT" = GTK; then
23112 case "$canonical" in
23113 *cygwin*)
23114 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23115 will probably get a crash on startup. If this happens, please use another
23116 toolkit for Emacs. See etc/PROBLEMS for more information."
23118 esac
23123 # Remove any trailing slashes in these variables.
23124 test "${prefix}" != NONE &&
23125 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23126 test "${exec_prefix}" != NONE &&
23127 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23129 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23130 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23131 ## from Makefile.c can correctly provide the arg `-traditional' to the
23132 ## C preprocessor.
23134 cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h. */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23140 yes..yes
23141 _ACEOF
23142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23143 $EGREP "yes..yes" >/dev/null 2>&1; then
23144 CPP_NEED_TRADITIONAL=no
23145 else
23146 CPP_NEED_TRADITIONAL=yes
23148 rm -f conftest*
23151 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
23153 ac_config_commands="$ac_config_commands default"
23155 cat >confcache <<\_ACEOF
23156 # This file is a shell script that caches the results of configure
23157 # tests run on this system so they can be shared between configure
23158 # scripts and configure runs, see configure's option --config-cache.
23159 # It is not useful on other systems. If it contains results you don't
23160 # want to keep, you may remove or edit it.
23162 # config.status only pays attention to the cache file if you give it
23163 # the --recheck option to rerun configure.
23165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23167 # following values.
23169 _ACEOF
23171 # The following way of writing the cache mishandles newlines in values,
23172 # but we know of no workaround that is simple, portable, and efficient.
23173 # So, we kill variables containing newlines.
23174 # Ultrix sh set writes to stderr and can't be redirected directly,
23175 # and sets the high bit in the cache file unless we assign to the vars.
23177 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23178 eval ac_val=\$$ac_var
23179 case $ac_val in #(
23180 *${as_nl}*)
23181 case $ac_var in #(
23182 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23183 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23184 esac
23185 case $ac_var in #(
23186 _ | IFS | as_nl) ;; #(
23187 *) $as_unset $ac_var ;;
23188 esac ;;
23189 esac
23190 done
23192 (set) 2>&1 |
23193 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23194 *${as_nl}ac_space=\ *)
23195 # `set' does not quote correctly, so add quotes (double-quote
23196 # substitution turns \\\\ into \\, and sed turns \\ into \).
23197 sed -n \
23198 "s/'/'\\\\''/g;
23199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23200 ;; #(
23202 # `set' quotes correctly as required by POSIX, so do not add quotes.
23203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23205 esac |
23206 sort
23208 sed '
23209 /^ac_cv_env_/b end
23210 t clear
23211 :clear
23212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23213 t end
23214 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23215 :end' >>confcache
23216 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23217 if test -w "$cache_file"; then
23218 test "x$cache_file" != "x/dev/null" &&
23219 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23220 echo "$as_me: updating cache $cache_file" >&6;}
23221 cat confcache >$cache_file
23222 else
23223 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23224 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23227 rm -f confcache
23229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23230 # Let make expand exec_prefix.
23231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23233 DEFS=-DHAVE_CONFIG_H
23235 ac_libobjs=
23236 ac_ltlibobjs=
23237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23238 # 1. Remove the extension, and $U if already installed.
23239 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23240 ac_i=`echo "$ac_i" | sed "$ac_script"`
23241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23242 # will be set to the directory where LIBOBJS objects are built.
23243 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23244 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23245 done
23246 LIBOBJS=$ac_libobjs
23248 LTLIBOBJS=$ac_ltlibobjs
23252 : ${CONFIG_STATUS=./config.status}
23253 ac_clean_files_save=$ac_clean_files
23254 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23255 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23256 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23257 cat >$CONFIG_STATUS <<_ACEOF
23258 #! $SHELL
23259 # Generated by $as_me.
23260 # Run this file to recreate the current configuration.
23261 # Compiler output produced by configure, useful for debugging
23262 # configure, is in config.log if it exists.
23264 debug=false
23265 ac_cs_recheck=false
23266 ac_cs_silent=false
23267 SHELL=\${CONFIG_SHELL-$SHELL}
23268 _ACEOF
23270 cat >>$CONFIG_STATUS <<\_ACEOF
23271 ## --------------------- ##
23272 ## M4sh Initialization. ##
23273 ## --------------------- ##
23275 # Be more Bourne compatible
23276 DUALCASE=1; export DUALCASE # for MKS sh
23277 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23278 emulate sh
23279 NULLCMD=:
23280 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23281 # is contrary to our usage. Disable this feature.
23282 alias -g '${1+"$@"}'='"$@"'
23283 setopt NO_GLOB_SUBST
23284 else
23285 case `(set -o) 2>/dev/null` in
23286 *posix*) set -o posix ;;
23287 esac
23294 # PATH needs CR
23295 # Avoid depending upon Character Ranges.
23296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23299 as_cr_digits='0123456789'
23300 as_cr_alnum=$as_cr_Letters$as_cr_digits
23302 # The user is always right.
23303 if test "${PATH_SEPARATOR+set}" != set; then
23304 echo "#! /bin/sh" >conf$$.sh
23305 echo "exit 0" >>conf$$.sh
23306 chmod +x conf$$.sh
23307 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23308 PATH_SEPARATOR=';'
23309 else
23310 PATH_SEPARATOR=:
23312 rm -f conf$$.sh
23315 # Support unset when possible.
23316 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23317 as_unset=unset
23318 else
23319 as_unset=false
23323 # IFS
23324 # We need space, tab and new line, in precisely that order. Quoting is
23325 # there to prevent editors from complaining about space-tab.
23326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23327 # splitting by setting IFS to empty value.)
23328 as_nl='
23330 IFS=" "" $as_nl"
23332 # Find who we are. Look in the path if we contain no directory separator.
23333 case $0 in
23334 *[\\/]* ) as_myself=$0 ;;
23335 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23336 for as_dir in $PATH
23338 IFS=$as_save_IFS
23339 test -z "$as_dir" && as_dir=.
23340 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23341 done
23342 IFS=$as_save_IFS
23345 esac
23346 # We did not find ourselves, most probably we were run as `sh COMMAND'
23347 # in which case we are not to be found in the path.
23348 if test "x$as_myself" = x; then
23349 as_myself=$0
23351 if test ! -f "$as_myself"; then
23352 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23353 { (exit 1); exit 1; }
23356 # Work around bugs in pre-3.0 UWIN ksh.
23357 for as_var in ENV MAIL MAILPATH
23358 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23359 done
23360 PS1='$ '
23361 PS2='> '
23362 PS4='+ '
23364 # NLS nuisances.
23365 for as_var in \
23366 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23367 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23368 LC_TELEPHONE LC_TIME
23370 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23371 eval $as_var=C; export $as_var
23372 else
23373 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23375 done
23377 # Required to use basename.
23378 if expr a : '\(a\)' >/dev/null 2>&1 &&
23379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23380 as_expr=expr
23381 else
23382 as_expr=false
23385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23386 as_basename=basename
23387 else
23388 as_basename=false
23392 # Name of the executable.
23393 as_me=`$as_basename -- "$0" ||
23394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23395 X"$0" : 'X\(//\)$' \| \
23396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23397 echo X/"$0" |
23398 sed '/^.*\/\([^/][^/]*\)\/*$/{
23399 s//\1/
23402 /^X\/\(\/\/\)$/{
23403 s//\1/
23406 /^X\/\(\/\).*/{
23407 s//\1/
23410 s/.*/./; q'`
23412 # CDPATH.
23413 $as_unset CDPATH
23417 as_lineno_1=$LINENO
23418 as_lineno_2=$LINENO
23419 test "x$as_lineno_1" != "x$as_lineno_2" &&
23420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23423 # uniformly replaced by the line number. The first 'sed' inserts a
23424 # line-number line after each line using $LINENO; the second 'sed'
23425 # does the real work. The second script uses 'N' to pair each
23426 # line-number line with the line containing $LINENO, and appends
23427 # trailing '-' during substitution so that $LINENO is not a special
23428 # case at line end.
23429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23430 # scripts with optimization help from Paolo Bonzini. Blame Lee
23431 # E. McMahon (1931-1989) for sed's syntax. :-)
23432 sed -n '
23434 /[$]LINENO/=
23435 ' <$as_myself |
23436 sed '
23437 s/[$]LINENO.*/&-/
23438 t lineno
23440 :lineno
23442 :loop
23443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23444 t loop
23445 s/-\n.*//
23446 ' >$as_me.lineno &&
23447 chmod +x "$as_me.lineno" ||
23448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23449 { (exit 1); exit 1; }; }
23451 # Don't try to exec as it changes $[0], causing all sort of problems
23452 # (the dirname of $[0] is not the place where we might find the
23453 # original and so on. Autoconf is especially sensitive to this).
23454 . "./$as_me.lineno"
23455 # Exit status is that of the last command.
23456 exit
23460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23461 as_dirname=dirname
23462 else
23463 as_dirname=false
23466 ECHO_C= ECHO_N= ECHO_T=
23467 case `echo -n x` in
23468 -n*)
23469 case `echo 'x\c'` in
23470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23471 *) ECHO_C='\c';;
23472 esac;;
23474 ECHO_N='-n';;
23475 esac
23477 if expr a : '\(a\)' >/dev/null 2>&1 &&
23478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23479 as_expr=expr
23480 else
23481 as_expr=false
23484 rm -f conf$$ conf$$.exe conf$$.file
23485 if test -d conf$$.dir; then
23486 rm -f conf$$.dir/conf$$.file
23487 else
23488 rm -f conf$$.dir
23489 mkdir conf$$.dir
23491 echo >conf$$.file
23492 if ln -s conf$$.file conf$$ 2>/dev/null; then
23493 as_ln_s='ln -s'
23494 # ... but there are two gotchas:
23495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23497 # In both cases, we have to default to `cp -p'.
23498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23499 as_ln_s='cp -p'
23500 elif ln conf$$.file conf$$ 2>/dev/null; then
23501 as_ln_s=ln
23502 else
23503 as_ln_s='cp -p'
23505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23506 rmdir conf$$.dir 2>/dev/null
23508 if mkdir -p . 2>/dev/null; then
23509 as_mkdir_p=:
23510 else
23511 test -d ./-p && rmdir ./-p
23512 as_mkdir_p=false
23515 if test -x / >/dev/null 2>&1; then
23516 as_test_x='test -x'
23517 else
23518 if ls -dL / >/dev/null 2>&1; then
23519 as_ls_L_option=L
23520 else
23521 as_ls_L_option=
23523 as_test_x='
23524 eval sh -c '\''
23525 if test -d "$1"; then
23526 test -d "$1/.";
23527 else
23528 case $1 in
23529 -*)set "./$1";;
23530 esac;
23531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23532 ???[sx]*):;;*)false;;esac;fi
23533 '\'' sh
23536 as_executable_p=$as_test_x
23538 # Sed expression to map a string onto a valid CPP name.
23539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23541 # Sed expression to map a string onto a valid variable name.
23542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23545 exec 6>&1
23547 # Save the log message, to keep $[0] and so on meaningful, and to
23548 # report actual input values of CONFIG_FILES etc. instead of their
23549 # values after options handling.
23550 ac_log="
23551 This file was extended by $as_me, which was
23552 generated by GNU Autoconf 2.61. Invocation command line was
23554 CONFIG_FILES = $CONFIG_FILES
23555 CONFIG_HEADERS = $CONFIG_HEADERS
23556 CONFIG_LINKS = $CONFIG_LINKS
23557 CONFIG_COMMANDS = $CONFIG_COMMANDS
23558 $ $0 $@
23560 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23563 _ACEOF
23565 cat >>$CONFIG_STATUS <<_ACEOF
23566 # Files that config.status was made for.
23567 config_files="$ac_config_files"
23568 config_headers="$ac_config_headers"
23569 config_commands="$ac_config_commands"
23571 _ACEOF
23573 cat >>$CONFIG_STATUS <<\_ACEOF
23574 ac_cs_usage="\
23575 \`$as_me' instantiates files from templates according to the
23576 current configuration.
23578 Usage: $0 [OPTIONS] [FILE]...
23580 -h, --help print this help, then exit
23581 -V, --version print version number and configuration settings, then exit
23582 -q, --quiet do not print progress messages
23583 -d, --debug don't remove temporary files
23584 --recheck update $as_me by reconfiguring in the same conditions
23585 --file=FILE[:TEMPLATE]
23586 instantiate the configuration file FILE
23587 --header=FILE[:TEMPLATE]
23588 instantiate the configuration header FILE
23590 Configuration files:
23591 $config_files
23593 Configuration headers:
23594 $config_headers
23596 Configuration commands:
23597 $config_commands
23599 Report bugs to <bug-autoconf@gnu.org>."
23601 _ACEOF
23602 cat >>$CONFIG_STATUS <<_ACEOF
23603 ac_cs_version="\\
23604 config.status
23605 configured by $0, generated by GNU Autoconf 2.61,
23606 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23608 Copyright (C) 2006 Free Software Foundation, Inc.
23609 This config.status script is free software; the Free Software Foundation
23610 gives unlimited permission to copy, distribute and modify it."
23612 ac_pwd='$ac_pwd'
23613 srcdir='$srcdir'
23614 INSTALL='$INSTALL'
23615 _ACEOF
23617 cat >>$CONFIG_STATUS <<\_ACEOF
23618 # If no file are specified by the user, then we need to provide default
23619 # value. By we need to know if files were specified by the user.
23620 ac_need_defaults=:
23621 while test $# != 0
23623 case $1 in
23624 --*=*)
23625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23626 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23627 ac_shift=:
23630 ac_option=$1
23631 ac_optarg=$2
23632 ac_shift=shift
23634 esac
23636 case $ac_option in
23637 # Handling of the options.
23638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23639 ac_cs_recheck=: ;;
23640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23641 echo "$ac_cs_version"; exit ;;
23642 --debug | --debu | --deb | --de | --d | -d )
23643 debug=: ;;
23644 --file | --fil | --fi | --f )
23645 $ac_shift
23646 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23647 ac_need_defaults=false;;
23648 --header | --heade | --head | --hea )
23649 $ac_shift
23650 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23651 ac_need_defaults=false;;
23652 --he | --h)
23653 # Conflict between --help and --header
23654 { echo "$as_me: error: ambiguous option: $1
23655 Try \`$0 --help' for more information." >&2
23656 { (exit 1); exit 1; }; };;
23657 --help | --hel | -h )
23658 echo "$ac_cs_usage"; exit ;;
23659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23661 ac_cs_silent=: ;;
23663 # This is an error.
23664 -*) { echo "$as_me: error: unrecognized option: $1
23665 Try \`$0 --help' for more information." >&2
23666 { (exit 1); exit 1; }; } ;;
23668 *) ac_config_targets="$ac_config_targets $1"
23669 ac_need_defaults=false ;;
23671 esac
23672 shift
23673 done
23675 ac_configure_extra_args=
23677 if $ac_cs_silent; then
23678 exec 6>/dev/null
23679 ac_configure_extra_args="$ac_configure_extra_args --silent"
23682 _ACEOF
23683 cat >>$CONFIG_STATUS <<_ACEOF
23684 if \$ac_cs_recheck; then
23685 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23686 CONFIG_SHELL=$SHELL
23687 export CONFIG_SHELL
23688 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23691 _ACEOF
23692 cat >>$CONFIG_STATUS <<\_ACEOF
23693 exec 5>>config.log
23695 echo
23696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23697 ## Running $as_me. ##
23698 _ASBOX
23699 echo "$ac_log"
23700 } >&5
23702 _ACEOF
23703 cat >>$CONFIG_STATUS <<_ACEOF
23705 # INIT-COMMANDS
23707 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23709 _ACEOF
23711 cat >>$CONFIG_STATUS <<\_ACEOF
23713 # Handling of arguments.
23714 for ac_config_target in $ac_config_targets
23716 case $ac_config_target in
23717 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23718 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23719 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23720 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23721 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23722 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23723 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23724 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23725 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23726 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23727 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23728 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23730 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23731 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23732 { (exit 1); exit 1; }; };;
23733 esac
23734 done
23737 # If the user did not use the arguments to specify the items to instantiate,
23738 # then the envvar interface is used. Set only those that are not.
23739 # We use the long form for the default assignment because of an extremely
23740 # bizarre bug on SunOS 4.1.3.
23741 if $ac_need_defaults; then
23742 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23743 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23744 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23747 # Have a temporary directory for convenience. Make it in the build tree
23748 # simply because there is no reason against having it here, and in addition,
23749 # creating and moving files from /tmp can sometimes cause problems.
23750 # Hook for its removal unless debugging.
23751 # Note that there is a small window in which the directory will not be cleaned:
23752 # after its creation but before its name has been assigned to `$tmp'.
23753 $debug ||
23755 tmp=
23756 trap 'exit_status=$?
23757 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23759 trap '{ (exit 1); exit 1; }' 1 2 13 15
23761 # Create a (secure) tmp directory for tmp files.
23764 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23765 test -n "$tmp" && test -d "$tmp"
23766 } ||
23768 tmp=./conf$$-$RANDOM
23769 (umask 077 && mkdir "$tmp")
23770 } ||
23772 echo "$me: cannot create a temporary directory in ." >&2
23773 { (exit 1); exit 1; }
23777 # Set up the sed scripts for CONFIG_FILES section.
23780 # No need to generate the scripts if there are no CONFIG_FILES.
23781 # This happens for instance when ./config.status config.h
23782 if test -n "$CONFIG_FILES"; then
23784 _ACEOF
23788 ac_delim='%!_!# '
23789 for ac_last_try in false false false false false :; do
23790 cat >conf$$subs.sed <<_ACEOF
23791 SHELL!$SHELL$ac_delim
23792 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23793 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23794 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23795 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23796 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23797 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23798 exec_prefix!$exec_prefix$ac_delim
23799 prefix!$prefix$ac_delim
23800 program_transform_name!$program_transform_name$ac_delim
23801 bindir!$bindir$ac_delim
23802 sbindir!$sbindir$ac_delim
23803 libexecdir!$libexecdir$ac_delim
23804 datarootdir!$datarootdir$ac_delim
23805 datadir!$datadir$ac_delim
23806 sysconfdir!$sysconfdir$ac_delim
23807 sharedstatedir!$sharedstatedir$ac_delim
23808 localstatedir!$localstatedir$ac_delim
23809 includedir!$includedir$ac_delim
23810 oldincludedir!$oldincludedir$ac_delim
23811 docdir!$docdir$ac_delim
23812 infodir!$infodir$ac_delim
23813 htmldir!$htmldir$ac_delim
23814 dvidir!$dvidir$ac_delim
23815 pdfdir!$pdfdir$ac_delim
23816 psdir!$psdir$ac_delim
23817 libdir!$libdir$ac_delim
23818 localedir!$localedir$ac_delim
23819 mandir!$mandir$ac_delim
23820 DEFS!$DEFS$ac_delim
23821 ECHO_C!$ECHO_C$ac_delim
23822 ECHO_N!$ECHO_N$ac_delim
23823 ECHO_T!$ECHO_T$ac_delim
23824 LIBS!$LIBS$ac_delim
23825 build_alias!$build_alias$ac_delim
23826 host_alias!$host_alias$ac_delim
23827 target_alias!$target_alias$ac_delim
23828 MAINT!$MAINT$ac_delim
23829 build!$build$ac_delim
23830 build_cpu!$build_cpu$ac_delim
23831 build_vendor!$build_vendor$ac_delim
23832 build_os!$build_os$ac_delim
23833 host!$host$ac_delim
23834 host_cpu!$host_cpu$ac_delim
23835 host_vendor!$host_vendor$ac_delim
23836 host_os!$host_os$ac_delim
23837 CC!$CC$ac_delim
23838 CFLAGS!$CFLAGS$ac_delim
23839 LDFLAGS!$LDFLAGS$ac_delim
23840 CPPFLAGS!$CPPFLAGS$ac_delim
23841 ac_ct_CC!$ac_ct_CC$ac_delim
23842 EXEEXT!$EXEEXT$ac_delim
23843 OBJEXT!$OBJEXT$ac_delim
23844 CPP!$CPP$ac_delim
23845 GREP!$GREP$ac_delim
23846 EGREP!$EGREP$ac_delim
23847 LN_S!$LN_S$ac_delim
23848 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23849 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23850 INSTALL_DATA!$INSTALL_DATA$ac_delim
23851 RANLIB!$RANLIB$ac_delim
23852 INSTALL_INFO!$INSTALL_INFO$ac_delim
23853 GZIP_PROG!$GZIP_PROG$ac_delim
23854 LIBSOUND!$LIBSOUND$ac_delim
23855 PKG_CONFIG!$PKG_CONFIG$ac_delim
23856 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23857 ALSA_LIBS!$ALSA_LIBS$ac_delim
23858 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23859 SET_MAKE!$SET_MAKE$ac_delim
23860 XMKMF!$XMKMF$ac_delim
23861 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23862 GTK_LIBS!$GTK_LIBS$ac_delim
23863 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23864 XFT_LIBS!$XFT_LIBS$ac_delim
23865 ALLOCA!$ALLOCA$ac_delim
23866 liblockfile!$liblockfile$ac_delim
23867 LIBOBJS!$LIBOBJS$ac_delim
23868 NEED_SETGID!$NEED_SETGID$ac_delim
23869 KMEM_GROUP!$KMEM_GROUP$ac_delim
23870 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23871 GETOPT_H!$GETOPT_H$ac_delim
23872 GETOPTOBJS!$GETOPTOBJS$ac_delim
23873 version!$version$ac_delim
23874 configuration!$configuration$ac_delim
23875 canonical!$canonical$ac_delim
23876 srcdir!$srcdir$ac_delim
23877 lispdir!$lispdir$ac_delim
23878 locallisppath!$locallisppath$ac_delim
23879 lisppath!$lisppath$ac_delim
23880 x_default_search_path!$x_default_search_path$ac_delim
23881 etcdir!$etcdir$ac_delim
23882 archlibdir!$archlibdir$ac_delim
23883 bitmapdir!$bitmapdir$ac_delim
23884 gamedir!$gamedir$ac_delim
23885 gameuser!$gameuser$ac_delim
23886 c_switch_system!$c_switch_system$ac_delim
23887 c_switch_machine!$c_switch_machine$ac_delim
23888 _ACEOF
23890 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23891 break
23892 elif $ac_last_try; then
23893 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23894 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23895 { (exit 1); exit 1; }; }
23896 else
23897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23899 done
23901 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23902 if test -n "$ac_eof"; then
23903 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23904 ac_eof=`expr $ac_eof + 1`
23907 cat >>$CONFIG_STATUS <<_ACEOF
23908 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23910 _ACEOF
23911 sed '
23912 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23913 s/^/s,@/; s/!/@,|#_!!_#|/
23916 s/'"$ac_delim"'$/,g/; t
23917 s/$/\\/; p
23918 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23919 ' >>$CONFIG_STATUS <conf$$subs.sed
23920 rm -f conf$$subs.sed
23921 cat >>$CONFIG_STATUS <<_ACEOF
23922 CEOF$ac_eof
23923 _ACEOF
23926 ac_delim='%!_!# '
23927 for ac_last_try in false false false false false :; do
23928 cat >conf$$subs.sed <<_ACEOF
23929 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23930 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23931 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23932 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23933 machfile!$machfile$ac_delim
23934 opsysfile!$opsysfile$ac_delim
23935 carbon_appdir!$carbon_appdir$ac_delim
23936 LTLIBOBJS!$LTLIBOBJS$ac_delim
23937 _ACEOF
23939 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23940 break
23941 elif $ac_last_try; then
23942 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23943 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23944 { (exit 1); exit 1; }; }
23945 else
23946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23948 done
23950 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23951 if test -n "$ac_eof"; then
23952 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23953 ac_eof=`expr $ac_eof + 1`
23956 cat >>$CONFIG_STATUS <<_ACEOF
23957 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23959 _ACEOF
23960 sed '
23961 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23962 s/^/s,@/; s/!/@,|#_!!_#|/
23965 s/'"$ac_delim"'$/,g/; t
23966 s/$/\\/; p
23967 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23968 ' >>$CONFIG_STATUS <conf$$subs.sed
23969 rm -f conf$$subs.sed
23970 cat >>$CONFIG_STATUS <<_ACEOF
23971 :end
23972 s/|#_!!_#|//g
23973 CEOF$ac_eof
23974 _ACEOF
23977 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23978 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23979 # trailing colons and then remove the whole line if VPATH becomes empty
23980 # (actually we leave an empty line to preserve line numbers).
23981 if test "x$srcdir" = x.; then
23982 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23983 s/:*\$(srcdir):*/:/
23984 s/:*\${srcdir}:*/:/
23985 s/:*@srcdir@:*/:/
23986 s/^\([^=]*=[ ]*\):*/\1/
23987 s/:*$//
23988 s/^[^=]*=[ ]*$//
23992 cat >>$CONFIG_STATUS <<\_ACEOF
23993 fi # test -n "$CONFIG_FILES"
23996 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23998 case $ac_tag in
23999 :[FHLC]) ac_mode=$ac_tag; continue;;
24000 esac
24001 case $ac_mode$ac_tag in
24002 :[FHL]*:*);;
24003 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24004 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24005 { (exit 1); exit 1; }; };;
24006 :[FH]-) ac_tag=-:-;;
24007 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24008 esac
24009 ac_save_IFS=$IFS
24010 IFS=:
24011 set x $ac_tag
24012 IFS=$ac_save_IFS
24013 shift
24014 ac_file=$1
24015 shift
24017 case $ac_mode in
24018 :L) ac_source=$1;;
24019 :[FH])
24020 ac_file_inputs=
24021 for ac_f
24023 case $ac_f in
24024 -) ac_f="$tmp/stdin";;
24025 *) # Look for the file first in the build tree, then in the source tree
24026 # (if the path is not absolute). The absolute path cannot be DOS-style,
24027 # because $ac_f cannot contain `:'.
24028 test -f "$ac_f" ||
24029 case $ac_f in
24030 [\\/$]*) false;;
24031 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24032 esac ||
24033 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24034 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24035 { (exit 1); exit 1; }; };;
24036 esac
24037 ac_file_inputs="$ac_file_inputs $ac_f"
24038 done
24040 # Let's still pretend it is `configure' which instantiates (i.e., don't
24041 # use $as_me), people would be surprised to read:
24042 # /* config.h. Generated by config.status. */
24043 configure_input="Generated from "`IFS=:
24044 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24045 if test x"$ac_file" != x-; then
24046 configure_input="$ac_file. $configure_input"
24047 { echo "$as_me:$LINENO: creating $ac_file" >&5
24048 echo "$as_me: creating $ac_file" >&6;}
24051 case $ac_tag in
24052 *:-:* | *:-) cat >"$tmp/stdin";;
24053 esac
24055 esac
24057 ac_dir=`$as_dirname -- "$ac_file" ||
24058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24059 X"$ac_file" : 'X\(//\)[^/]' \| \
24060 X"$ac_file" : 'X\(//\)$' \| \
24061 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24062 echo X"$ac_file" |
24063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24064 s//\1/
24067 /^X\(\/\/\)[^/].*/{
24068 s//\1/
24071 /^X\(\/\/\)$/{
24072 s//\1/
24075 /^X\(\/\).*/{
24076 s//\1/
24079 s/.*/./; q'`
24080 { as_dir="$ac_dir"
24081 case $as_dir in #(
24082 -*) as_dir=./$as_dir;;
24083 esac
24084 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24085 as_dirs=
24086 while :; do
24087 case $as_dir in #(
24088 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24089 *) as_qdir=$as_dir;;
24090 esac
24091 as_dirs="'$as_qdir' $as_dirs"
24092 as_dir=`$as_dirname -- "$as_dir" ||
24093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24094 X"$as_dir" : 'X\(//\)[^/]' \| \
24095 X"$as_dir" : 'X\(//\)$' \| \
24096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24097 echo X"$as_dir" |
24098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24099 s//\1/
24102 /^X\(\/\/\)[^/].*/{
24103 s//\1/
24106 /^X\(\/\/\)$/{
24107 s//\1/
24110 /^X\(\/\).*/{
24111 s//\1/
24114 s/.*/./; q'`
24115 test -d "$as_dir" && break
24116 done
24117 test -z "$as_dirs" || eval "mkdir $as_dirs"
24118 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24119 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24120 { (exit 1); exit 1; }; }; }
24121 ac_builddir=.
24123 case "$ac_dir" in
24124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24126 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24127 # A ".." for each directory in $ac_dir_suffix.
24128 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24129 case $ac_top_builddir_sub in
24130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24132 esac ;;
24133 esac
24134 ac_abs_top_builddir=$ac_pwd
24135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24136 # for backward compatibility:
24137 ac_top_builddir=$ac_top_build_prefix
24139 case $srcdir in
24140 .) # We are building in place.
24141 ac_srcdir=.
24142 ac_top_srcdir=$ac_top_builddir_sub
24143 ac_abs_top_srcdir=$ac_pwd ;;
24144 [\\/]* | ?:[\\/]* ) # Absolute name.
24145 ac_srcdir=$srcdir$ac_dir_suffix;
24146 ac_top_srcdir=$srcdir
24147 ac_abs_top_srcdir=$srcdir ;;
24148 *) # Relative name.
24149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24150 ac_top_srcdir=$ac_top_build_prefix$srcdir
24151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24152 esac
24153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24156 case $ac_mode in
24159 # CONFIG_FILE
24162 case $INSTALL in
24163 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24164 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24165 esac
24166 _ACEOF
24168 cat >>$CONFIG_STATUS <<\_ACEOF
24169 # If the template does not know about datarootdir, expand it.
24170 # FIXME: This hack should be removed a few years after 2.60.
24171 ac_datarootdir_hack=; ac_datarootdir_seen=
24173 case `sed -n '/datarootdir/ {
24177 /@datadir@/p
24178 /@docdir@/p
24179 /@infodir@/p
24180 /@localedir@/p
24181 /@mandir@/p
24182 ' $ac_file_inputs` in
24183 *datarootdir*) ac_datarootdir_seen=yes;;
24184 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24185 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24186 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24187 _ACEOF
24188 cat >>$CONFIG_STATUS <<_ACEOF
24189 ac_datarootdir_hack='
24190 s&@datadir@&$datadir&g
24191 s&@docdir@&$docdir&g
24192 s&@infodir@&$infodir&g
24193 s&@localedir@&$localedir&g
24194 s&@mandir@&$mandir&g
24195 s&\\\${datarootdir}&$datarootdir&g' ;;
24196 esac
24197 _ACEOF
24199 # Neutralize VPATH when `$srcdir' = `.'.
24200 # Shell code in configure.ac might set extrasub.
24201 # FIXME: do we really want to maintain this feature?
24202 cat >>$CONFIG_STATUS <<_ACEOF
24203 sed "$ac_vpsub
24204 $extrasub
24205 _ACEOF
24206 cat >>$CONFIG_STATUS <<\_ACEOF
24208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24209 s&@configure_input@&$configure_input&;t t
24210 s&@top_builddir@&$ac_top_builddir_sub&;t t
24211 s&@srcdir@&$ac_srcdir&;t t
24212 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24213 s&@top_srcdir@&$ac_top_srcdir&;t t
24214 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24215 s&@builddir@&$ac_builddir&;t t
24216 s&@abs_builddir@&$ac_abs_builddir&;t t
24217 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24218 s&@INSTALL@&$ac_INSTALL&;t t
24219 $ac_datarootdir_hack
24220 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24222 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24223 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24224 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24225 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24226 which seems to be undefined. Please make sure it is defined." >&5
24227 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24228 which seems to be undefined. Please make sure it is defined." >&2;}
24230 rm -f "$tmp/stdin"
24231 case $ac_file in
24232 -) cat "$tmp/out"; rm -f "$tmp/out";;
24233 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24234 esac
24238 # CONFIG_HEADER
24240 _ACEOF
24242 # Transform confdefs.h into a sed script `conftest.defines', that
24243 # substitutes the proper values into config.h.in to produce config.h.
24244 rm -f conftest.defines conftest.tail
24245 # First, append a space to every undef/define line, to ease matching.
24246 echo 's/$/ /' >conftest.defines
24247 # Then, protect against being on the right side of a sed subst, or in
24248 # an unquoted here document, in config.status. If some macros were
24249 # called several times there might be several #defines for the same
24250 # symbol, which is useless. But do not sort them, since the last
24251 # AC_DEFINE must be honored.
24252 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24253 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24254 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24255 # PARAMS is the parameter list in the macro definition--in most cases, it's
24256 # just an empty string.
24257 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24258 ac_dB='\\)[ (].*,\\1define\\2'
24259 ac_dC=' '
24260 ac_dD=' ,'
24262 uniq confdefs.h |
24263 sed -n '
24264 t rset
24265 :rset
24266 s/^[ ]*#[ ]*define[ ][ ]*//
24267 t ok
24270 s/[\\&,]/\\&/g
24271 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24272 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24273 ' >>conftest.defines
24275 # Remove the space that was appended to ease matching.
24276 # Then replace #undef with comments. This is necessary, for
24277 # example, in the case of _POSIX_SOURCE, which is predefined and required
24278 # on some systems where configure will not decide to define it.
24279 # (The regexp can be short, since the line contains either #define or #undef.)
24280 echo 's/ $//
24281 s,^[ #]*u.*,/* & */,' >>conftest.defines
24283 # Break up conftest.defines:
24284 ac_max_sed_lines=50
24286 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24287 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24288 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24289 # et cetera.
24290 ac_in='$ac_file_inputs'
24291 ac_out='"$tmp/out1"'
24292 ac_nxt='"$tmp/out2"'
24294 while :
24296 # Write a here document:
24297 cat >>$CONFIG_STATUS <<_ACEOF
24298 # First, check the format of the line:
24299 cat >"\$tmp/defines.sed" <<\\CEOF
24300 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24301 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24303 :def
24304 _ACEOF
24305 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24306 echo 'CEOF
24307 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24308 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24309 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24310 grep . conftest.tail >/dev/null || break
24311 rm -f conftest.defines
24312 mv conftest.tail conftest.defines
24313 done
24314 rm -f conftest.defines conftest.tail
24316 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24317 cat >>$CONFIG_STATUS <<\_ACEOF
24318 if test x"$ac_file" != x-; then
24319 echo "/* $configure_input */" >"$tmp/config.h"
24320 cat "$ac_result" >>"$tmp/config.h"
24321 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24322 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24323 echo "$as_me: $ac_file is unchanged" >&6;}
24324 else
24325 rm -f $ac_file
24326 mv "$tmp/config.h" $ac_file
24328 else
24329 echo "/* $configure_input */"
24330 cat "$ac_result"
24332 rm -f "$tmp/out12"
24335 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24336 echo "$as_me: executing $ac_file commands" >&6;}
24338 esac
24341 case $ac_file$ac_mode in
24342 "default":C)
24344 ### Make the necessary directories, if they don't exist.
24345 for dir in etc lisp ; do
24346 test -d ${dir} || mkdir ${dir}
24347 done
24349 # Build src/Makefile from ${srcdir}/src/Makefile.c
24350 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24351 # This must be done after src/config.h is built, since we rely on that file.
24353 # Now get this: Some word that is part of the ${srcdir} directory name
24354 # or the ${configuration} value might, just might, happen to be an
24355 # identifier like `sun4' or `i386' or something, and be predefined by
24356 # the C preprocessor to some helpful value like 1, or maybe the empty
24357 # string. Needless to say consequent macro substitutions are less
24358 # than conducive to the makefile finding the correct directory.
24359 undefs="`echo $top_srcdir $configuration $canonical |
24360 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24361 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24364 echo creating src/epaths.h
24365 ${MAKE-make} epaths-force
24367 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24368 # `..' to `. .' unless invoked with -traditional
24370 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24371 CPPFLAGS="$CPPFLAGS -traditional"
24374 echo creating lib-src/Makefile
24375 ( cd lib-src
24376 rm -f junk.c junk1.c junk2.c
24377 sed -e '/start of cpp stuff/q' \
24378 < Makefile.c > junk1.c
24379 sed -e '1,/start of cpp stuff/d'\
24380 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24381 < Makefile.c > junk.c
24382 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24383 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24384 cat junk1.c junk2.c > Makefile.new
24385 rm -f junk.c junk1.c junk2.c
24386 chmod 444 Makefile.new
24387 mv -f Makefile.new Makefile
24390 echo creating src/Makefile
24391 ( cd src
24392 rm -f junk.c junk1.c junk2.c
24393 sed -e '/start of cpp stuff/q' \
24394 < Makefile.c > junk1.c
24395 sed -e '1,/start of cpp stuff/d'\
24396 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24397 < Makefile.c > junk.c
24398 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24399 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24400 cat junk1.c junk2.c > Makefile.new
24401 rm -f junk.c junk1.c junk2.c
24402 chmod 444 Makefile.new
24403 mv -f Makefile.new Makefile
24406 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24407 echo creating src/.gdbinit
24408 echo source $srcdir/src/.gdbinit > src/.gdbinit
24411 # This is how we know whether to re-run configure in certain cases.
24412 touch src/config.stamp
24416 esac
24417 done # for ac_tag
24420 { (exit 0); exit 0; }
24421 _ACEOF
24422 chmod +x $CONFIG_STATUS
24423 ac_clean_files=$ac_clean_files_save
24426 # configure is writing to config.log, and then calls config.status.
24427 # config.status does its own redirection, appending to config.log.
24428 # Unfortunately, on DOS this fails, as config.log is still kept open
24429 # by configure, so config.status won't be able to write to it; its
24430 # output is simply discarded. So we exec the FD to /dev/null,
24431 # effectively closing config.log, so it can be properly (re)opened and
24432 # appended to by config.status. When coming back to configure, we
24433 # need to make the FD available again.
24434 if test "$no_create" != yes; then
24435 ac_cs_success=:
24436 ac_config_status_args=
24437 test "$silent" = yes &&
24438 ac_config_status_args="$ac_config_status_args --quiet"
24439 exec 5>/dev/null
24440 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24441 exec 5>>config.log
24442 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24443 # would make configure fail if this is the last instruction.
24444 $ac_cs_success || { (exit 1); exit 1; }