* fontset.c (fontset_get_font_group):
[emacs.git] / configure
bloba4b821ae5d41fde8b4f8f81ecfb0e7590b7191ee
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
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='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.60'
576 PACKAGE_STRING='emacs 23.0.60'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_config_libobj_dir=src
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
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 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
748 XMKMF'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --enable-asserts compile code with asserts enabled
1336 --enable-maintainer-mode
1337 enable make rules and dependencies not useful (and
1338 sometimes confusing) to the casual installer
1339 --enable-locallisppath=PATH
1340 directories Emacs should search for lisp files
1341 specific to this site
1342 --disable-largefile omit support for large files
1344 Optional Packages:
1345 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1346 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1347 --without-pop don't support POP mail retrieval with movemail
1348 --with-kerberos support Kerberos-authenticated POP
1349 --with-kerberos5 support Kerberos version 5 authenticated POP
1350 --with-hesiod support Hesiod to get the POP server host
1351 --without-sound don't compile with sound support
1352 --without-sync-input Process async input synchronously
1353 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1354 motif, gtk, no)
1355 --without-xpm don't compile with XPM image support
1356 --without-jpeg don't compile with JPEG image support
1357 --without-tiff don't compile with TIFF image support
1358 --without-gif don't compile with GIF image support
1359 --without-png don't compile with PNG image support
1360 --without-rsvg don't compile with SVG image support
1361 --without-freetype don't use Freetype for local font support
1362 --without-xft don't use XFT for anti aliased fonts
1363 --without-libotf don't use libotf for OpenType font support
1364 --without-m17n-flt don't use m17n-flt for text shaping
1365 --without-toolkit-scroll-bars
1366 don't use Motif or Xaw3d scroll bars
1367 --without-xaw3d don't use Xaw3d
1368 --without-xim don't use X11 XIM
1369 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1370 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1371 console
1372 --without-dbus don't compile with D-Bus support
1373 --without-makeinfo don't require makeinfo for building manuals
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CPP C preprocessor
1388 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 _ACEOF
1394 ac_status=$?
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1401 ac_builddir=.
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 emacs configure 23.0.60
1454 generated by GNU Autoconf 2.61
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.60, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1470 $ $0 $@
1472 _ACEOF
1473 exec 5>>config.log
1475 cat <<_ASUNAME
1476 ## --------- ##
1477 ## Platform. ##
1478 ## --------- ##
1480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497 _ASUNAME
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505 done
1506 IFS=$as_save_IFS
1508 } >&5
1510 cat >&5 <<_ACEOF
1513 ## ----------- ##
1514 ## Core tests. ##
1515 ## ----------- ##
1517 _ACEOF
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_configure_args=
1526 ac_configure_args0=
1527 ac_configure_args1=
1528 ac_must_keep_next=false
1529 for ac_pass in 1 2
1531 for ac_arg
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
1538 *\'*)
1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1562 esac
1563 done
1564 done
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1576 echo
1578 cat <<\_ASBOX
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1582 _ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
1600 (set) 2>&1 |
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1603 sed -n \
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610 esac |
1611 sort
1613 echo
1615 cat <<\_ASBOX
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1636 _ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651 ## ----------- ##
1652 ## confdefs.h. ##
1653 ## ----------- ##
1654 _ASBOX
1655 echo
1656 cat confdefs.h
1657 echo
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 exit $exit_status
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 done
1670 ac_signal=0
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 _ACEOF
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708 else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1712 shift
1713 for ac_site_file
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1721 done
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1734 else
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1744 # value.
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1752 set,)
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,set)
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1760 ,);;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 echo "$as_me: former value: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 echo "$as_me: current value: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1770 fi;;
1771 esac
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1774 case $ac_new_val in
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1777 esac
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781 esac
1783 done
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s,x,x', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1836 _ACEOF
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1838 rm -f conftest.sed
1841 lispdir='${datadir}/emacs/${version}/lisp'
1842 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1843 '${datadir}/emacs/site-lisp'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1845 etcdir='${datadir}/emacs/${version}/etc'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs/${version}/etc'
1848 gamedir='${localstatedir}/games/emacs'
1850 gameuser=games
1855 # Check whether --with-pop was given.
1856 if test "${with_pop+set}" = set; then
1857 withval=$with_pop;
1858 else
1859 with_pop=yes
1862 if test "$with_pop" = yes; then
1863 cat >>confdefs.h <<\_ACEOF
1864 #define MAIL_USE_POP 1
1865 _ACEOF
1871 # Check whether --with-kerberos was given.
1872 if test "${with_kerberos+set}" = set; then
1873 withval=$with_kerberos;
1874 else
1875 with_kerberos=no
1878 if test "$with_kerberos" = yes; then
1879 cat >>confdefs.h <<\_ACEOF
1880 #define KERBEROS 1
1881 _ACEOF
1887 # Check whether --with-kerberos5 was given.
1888 if test "${with_kerberos5+set}" = set; then
1889 withval=$with_kerberos5;
1890 else
1891 with_kerberos5=no
1894 if test "${with_kerberos5}" = yes; then
1895 if test "${with_kerberos}" != yes; then
1896 with_kerberos=yes
1897 cat >>confdefs.h <<\_ACEOF
1898 #define KERBEROS 1
1899 _ACEOF
1903 cat >>confdefs.h <<\_ACEOF
1904 #define KERBEROS5 1
1905 _ACEOF
1910 # Check whether --with-hesiod was given.
1911 if test "${with_hesiod+set}" = set; then
1912 withval=$with_hesiod;
1913 else
1914 with_hesiod=no
1917 if test "$with_hesiod" = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1920 #define HESIOD 1
1921 _ACEOF
1926 # Check whether --with-sound was given.
1927 if test "${with_sound+set}" = set; then
1928 withval=$with_sound;
1929 else
1930 with_sound=yes
1935 # Check whether --with-sync-input was given.
1936 if test "${with_sync_input+set}" = set; then
1937 withval=$with_sync_input;
1938 else
1939 with_sync_input=yes
1942 if test "$with_sync_input" = yes; then
1944 cat >>confdefs.h <<\_ACEOF
1945 #define SYNC_INPUT 1
1946 _ACEOF
1951 # Check whether --with-x-toolkit was given.
1952 if test "${with_x_toolkit+set}" = set; then
1953 withval=$with_x_toolkit; case "${withval}" in
1954 y | ye | yes ) val=gtk ;;
1955 n | no ) val=no ;;
1956 l | lu | luc | luci | lucid ) val=lucid ;;
1957 a | at | ath | athe | athen | athena ) val=athena ;;
1958 m | mo | mot | moti | motif ) val=motif ;;
1959 g | gt | gtk ) val=gtk ;;
1961 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1962 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1963 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1964 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1965 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1966 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1967 { (exit 1); exit 1; }; }
1969 esac
1970 with_x_toolkit=$val
1976 # Check whether --with-xpm was given.
1977 if test "${with_xpm+set}" = set; then
1978 withval=$with_xpm;
1979 else
1980 with_xpm=yes
1984 # Check whether --with-jpeg was given.
1985 if test "${with_jpeg+set}" = set; then
1986 withval=$with_jpeg;
1987 else
1988 with_jpeg=yes
1992 # Check whether --with-tiff was given.
1993 if test "${with_tiff+set}" = set; then
1994 withval=$with_tiff;
1995 else
1996 with_tiff=yes
2000 # Check whether --with-gif was given.
2001 if test "${with_gif+set}" = set; then
2002 withval=$with_gif;
2003 else
2004 with_gif=yes
2008 # Check whether --with-png was given.
2009 if test "${with_png+set}" = set; then
2010 withval=$with_png;
2011 else
2012 with_png=yes
2016 # Check whether --with-rsvg was given.
2017 if test "${with_rsvg+set}" = set; then
2018 withval=$with_rsvg;
2019 else
2020 with_rsvg=yes
2025 # Check whether --with-freetype was given.
2026 if test "${with_freetype+set}" = set; then
2027 withval=$with_freetype;
2028 else
2029 with_freetype=yes
2033 # Check whether --with-xft was given.
2034 if test "${with_xft+set}" = set; then
2035 withval=$with_xft;
2036 else
2037 with_xft=yes
2041 # Check whether --with-libotf was given.
2042 if test "${with_libotf+set}" = set; then
2043 withval=$with_libotf;
2044 else
2045 with_libotf=yes
2049 # Check whether --with-m17n-flt was given.
2050 if test "${with_m17n_flt+set}" = set; then
2051 withval=$with_m17n_flt;
2052 else
2053 with_m17n_flt=yes
2058 # Check whether --with-toolkit-scroll-bars was given.
2059 if test "${with_toolkit_scroll_bars+set}" = set; then
2060 withval=$with_toolkit_scroll_bars;
2061 else
2062 with_toolkit_scroll_bars=yes
2066 # Check whether --with-xaw3d was given.
2067 if test "${with_xaw3d+set}" = set; then
2068 withval=$with_xaw3d;
2069 else
2070 with_xaw3d=yes
2074 # Check whether --with-xim was given.
2075 if test "${with_xim+set}" = set; then
2076 withval=$with_xim;
2077 else
2078 with_xim=yes
2082 # Check whether --with-carbon was given.
2083 if test "${with_carbon+set}" = set; then
2084 withval=$with_carbon;
2085 else
2086 with_carbon=no
2091 # Check whether --with-gpm was given.
2092 if test "${with_gpm+set}" = set; then
2093 withval=$with_gpm;
2094 else
2095 with_gpm=yes
2099 # Check whether --with-dbus was given.
2100 if test "${with_dbus+set}" = set; then
2101 withval=$with_dbus;
2102 else
2103 with_dbus=yes
2107 ## For the times when you want to build Emacs but don't have
2108 ## a suitable makeinfo, and can live without the manuals.
2110 # Check whether --with-makeinfo was given.
2111 if test "${with_makeinfo+set}" = set; then
2112 withval=$with_makeinfo;
2113 else
2114 with_makeinfo=yes
2119 # Check whether --with-gtk was given.
2120 if test "${with_gtk+set}" = set; then
2121 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2122 specify a toolkit." >&5
2123 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2124 specify a toolkit." >&2;}
2125 { (exit 1); exit 1; }; }
2130 # Check whether --with-gcc was given.
2131 if test "${with_gcc+set}" = set; then
2132 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2133 variable to specify a compiler." >&5
2134 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2135 variable to specify a compiler." >&2;}
2136 { (exit 1); exit 1; }; }
2141 # Check whether --with-pkg-config-prog was given.
2142 if test "${with_pkg_config_prog+set}" = set; then
2143 withval=$with_pkg_config_prog;
2146 if test "X${with_pkg_config_prog}" != X; then
2147 if test "${with_pkg_config_prog}" != yes; then
2148 PKG_CONFIG="${with_pkg_config_prog}"
2152 # Check whether --enable-carbon-app was given.
2153 if test "${enable_carbon_app+set}" = set; then
2154 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2158 # Check whether --enable-asserts was given.
2159 if test "${enable_asserts+set}" = set; then
2160 enableval=$enable_asserts; USE_XASSERTS=$enableval
2161 else
2162 USE_XASSERTS=no
2166 # Check whether --enable-maintainer-mode was given.
2167 if test "${enable_maintainer_mode+set}" = set; then
2168 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2169 else
2170 USE_MAINTAINER_MODE=no
2173 if test $USE_MAINTAINER_MODE = yes; then
2174 MAINT=
2175 else
2176 MAINT=#
2180 # Check whether --enable-locallisppath was given.
2181 if test "${enable_locallisppath+set}" = set; then
2182 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2183 locallisppath=
2184 elif test "${enableval}" != "yes"; then
2185 locallisppath=${enableval}
2190 #### Make srcdir absolute, if it isn't already. It's important to
2191 #### avoid running the path through pwd unnecessarily, since pwd can
2192 #### give you automounter prefixes, which can go away. We do all this
2193 #### so Emacs can find its files when run uninstalled.
2194 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2195 unset CDPATH
2196 case "${srcdir}" in
2197 /* ) ;;
2199 ## We may be able to use the $PWD environment variable to make this
2200 ## absolute. But sometimes PWD is inaccurate.
2201 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2202 ## but that tested only for a well-formed and valid PWD,
2203 ## it did not object when PWD was well-formed and valid but just wrong.
2204 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2205 then
2206 srcdir="$PWD"
2207 else
2208 srcdir="`(cd ${srcdir}; pwd)`"
2211 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2212 esac
2214 #### Check if the source directory already has a configured system in it.
2215 if test `pwd` != `(cd ${srcdir} && pwd)` \
2216 && test -f "${srcdir}/src/config.h" ; then
2217 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2218 as a build directory right now; it has been configured in its own
2219 right. To configure in another directory as well, you MUST
2220 use GNU make. If you do not have GNU make, then you must
2221 now do \`make distclean' in ${srcdir},
2222 and then run $0 again." >&5
2223 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2224 as a build directory right now; it has been configured in its own
2225 right. To configure in another directory as well, you MUST
2226 use GNU make. If you do not have GNU make, then you must
2227 now do \`make distclean' in ${srcdir},
2228 and then run $0 again." >&2;}
2231 #### Given the configuration name, set machfile and opsysfile to the
2232 #### names of the m/*.h and s/*.h files we should use.
2234 ### Canonicalize the configuration name.
2236 ac_aux_dir=
2237 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2238 if test -f "$ac_dir/install-sh"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/install-sh -c"
2241 break
2242 elif test -f "$ac_dir/install.sh"; then
2243 ac_aux_dir=$ac_dir
2244 ac_install_sh="$ac_aux_dir/install.sh -c"
2245 break
2246 elif test -f "$ac_dir/shtool"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/shtool install -c"
2249 break
2251 done
2252 if test -z "$ac_aux_dir"; then
2253 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2254 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2255 { (exit 1); exit 1; }; }
2258 # These three variables are undocumented and unsupported,
2259 # and are intended to be withdrawn in a future Autoconf release.
2260 # They can cause serious problems if a builder's source tree is in a directory
2261 # whose full name contains unusual characters.
2262 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2263 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2264 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2267 # Make sure we can run config.sub.
2268 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2269 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2270 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2271 { (exit 1); exit 1; }; }
2273 { echo "$as_me:$LINENO: checking build system type" >&5
2274 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2275 if test "${ac_cv_build+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 ac_build_alias=$build_alias
2279 test "x$ac_build_alias" = x &&
2280 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2281 test "x$ac_build_alias" = x &&
2282 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2283 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2284 { (exit 1); exit 1; }; }
2285 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2286 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2287 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2288 { (exit 1); exit 1; }; }
2291 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2292 echo "${ECHO_T}$ac_cv_build" >&6; }
2293 case $ac_cv_build in
2294 *-*-*) ;;
2295 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2296 echo "$as_me: error: invalid value of canonical build" >&2;}
2297 { (exit 1); exit 1; }; };;
2298 esac
2299 build=$ac_cv_build
2300 ac_save_IFS=$IFS; IFS='-'
2301 set x $ac_cv_build
2302 shift
2303 build_cpu=$1
2304 build_vendor=$2
2305 shift; shift
2306 # Remember, the first character of IFS is used to create $*,
2307 # except with old shells:
2308 build_os=$*
2309 IFS=$ac_save_IFS
2310 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2313 { echo "$as_me:$LINENO: checking host system type" >&5
2314 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2315 if test "${ac_cv_host+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318 if test "x$host_alias" = x; then
2319 ac_cv_host=$ac_cv_build
2320 else
2321 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2322 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2323 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2324 { (exit 1); exit 1; }; }
2328 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2329 echo "${ECHO_T}$ac_cv_host" >&6; }
2330 case $ac_cv_host in
2331 *-*-*) ;;
2332 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2333 echo "$as_me: error: invalid value of canonical host" >&2;}
2334 { (exit 1); exit 1; }; };;
2335 esac
2336 host=$ac_cv_host
2337 ac_save_IFS=$IFS; IFS='-'
2338 set x $ac_cv_host
2339 shift
2340 host_cpu=$1
2341 host_vendor=$2
2342 shift; shift
2343 # Remember, the first character of IFS is used to create $*,
2344 # except with old shells:
2345 host_os=$*
2346 IFS=$ac_save_IFS
2347 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2350 canonical=$host
2351 configuration=${host_alias-${build_alias-$host}}
2355 ### If you add support for a new configuration, add code to this
2356 ### switch statement to recognize your configuration name and select
2357 ### the appropriate operating system and machine description files.
2359 ### You would hope that you could choose an m/*.h file pretty much
2360 ### based on the machine portion of the configuration name, and an s-
2361 ### file based on the operating system portion. However, it turns out
2362 ### that each m/*.h file is pretty manufacturer-specific - for
2363 ### example mips.h is MIPS
2364 ### So we basically have to have a special case for each
2365 ### configuration name.
2367 ### As far as handling version numbers on operating systems is
2368 ### concerned, make sure things will fail in a fixable way. If
2369 ### /etc/MACHINES doesn't say anything about version numbers, be
2370 ### prepared to handle anything reasonably. If version numbers
2371 ### matter, be sure /etc/MACHINES says something about it.
2373 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2374 ### "System V Release 4"; he writes, "The old convention encouraged
2375 ### confusion between `system' and `release' levels'."
2377 machine='' opsys='' unported=no
2378 case "${canonical}" in
2380 ## FreeBSD ports
2381 *-*-freebsd* )
2382 opsys=freebsd
2383 case "${canonical}" in
2384 alpha*-*-freebsd*) machine=alpha ;;
2385 arm*-*-freebsd*) machine=arm ;;
2386 ia64-*-freebsd*) machine=ia64 ;;
2387 sparc64-*-freebsd*) machine=sparc ;;
2388 powerpc-*-freebsd*) machine=macppc ;;
2389 i[3456]86-*-freebsd*) machine=intel386 ;;
2390 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2391 esac
2394 ## FreeBSD kernel + glibc based userland
2395 *-*-kfreebsd*gnu* )
2396 opsys=gnu-kfreebsd
2397 case "${canonical}" in
2398 alpha*-*-kfreebsd*) machine=alpha ;;
2399 ia64-*-kfreebsd*) machine=ia64 ;;
2400 sparc64-*-kfreebsd*) machine=sparc ;;
2401 powerpc-*-kfreebsd*) machine=macppc ;;
2402 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2403 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2404 esac
2407 ## NetBSD ports
2408 *-*-netbsd* )
2409 opsys=netbsd
2410 if test -f /usr/lib/crti.o; then
2412 cat >>confdefs.h <<\_ACEOF
2413 #define HAVE_CRTIN
2414 _ACEOF
2418 case "${canonical}" in
2419 alpha*-*-netbsd*) machine=alpha ;;
2420 i[3456]86-*-netbsd*) machine=intel386 ;;
2421 powerpc-*-netbsd*) machine=macppc ;;
2422 sparc*-*-netbsd*) machine=sparc ;;
2423 vax-*-netbsd*) machine=vax ;;
2424 arm-*-netbsd*) machine=arm ;;
2425 x86_64-*-netbsd*) machine=amdx86-64 ;;
2426 hppa-*-netbsd*) machine=hp800 ;;
2427 esac
2430 ## OpenBSD ports
2431 *-*-openbsd* )
2432 opsys=openbsd
2433 case "${canonical}" in
2434 alpha*-*-openbsd*) machine=alpha ;;
2435 arm-*-openbsd*) machine=arm ;;
2436 i386-*-openbsd*) machine=intel386 ;;
2437 powerpc-*-openbsd*) machine=macppc ;;
2438 sparc*-*-openbsd*) machine=sparc ;;
2439 vax-*-openbsd*) machine=vax ;;
2440 x86_64-*-openbsd*) machine=amdx86-64 ;;
2441 esac
2444 ## LynxOS ports
2445 *-*-lynxos* )
2446 opsys=lynxos
2447 case "${canonical}" in
2448 i[3456]86-*-lynxos*) machine=intel386 ;;
2449 powerpc-*-lynxos*) machine=powerpc ;;
2450 esac
2453 alpha*-*-linux-gnu* )
2454 machine=alpha opsys=gnu-linux
2457 arm*-*-linux-gnu* )
2458 machine=arm opsys=gnu-linux
2461 ## Apple Darwin / Mac OS X
2462 *-apple-darwin* )
2463 case "${canonical}" in
2464 i[3456]86-* ) machine=intel386 ;;
2465 powerpc-* ) machine=powermac ;;
2466 * ) unported=yes ;;
2467 esac
2468 opsys=darwin
2469 # Define CPP as follows to make autoconf work correctly.
2470 CPP="${CC-cc} -E -no-cpp-precomp"
2471 # Use fink packages if available.
2472 if test -d /sw/include && test -d /sw/lib; then
2473 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2474 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2475 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2479 ## HP 9000 series 700 and 800, running HP/UX
2480 hppa*-hp-hpux10.2* )
2481 machine=hp800 opsys=hpux10-20
2483 hppa*-hp-hpux1[1-9]* )
2484 machine=hp800 opsys=hpux11
2485 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2488 hppa*-*-linux-gnu* )
2489 machine=hp800 opsys=gnu-linux
2492 ## IBM machines
2493 s390-*-linux-gnu* )
2494 machine=ibms390 opsys=gnu-linux
2496 s390x-*-linux-gnu* )
2497 machine=ibms390x opsys=gnu-linux
2499 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2500 machine=ibmrs6000 opsys=aix4-2
2502 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2503 machine=ibmrs6000 opsys=aix4-2
2505 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2506 machine=ibmrs6000 opsys=aix4-2
2508 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2509 machine=ibmrs6000 opsys=aix4-2
2512 ## Macintosh PowerPC
2513 powerpc*-*-linux-gnu* )
2514 machine=macppc opsys=gnu-linux
2517 ## Silicon Graphics machines
2518 ## Iris 4D
2519 mips-sgi-irix6.5 )
2520 machine=iris4d opsys=irix6-5
2521 # Without defining _LANGUAGE_C, things get masked out in the headers
2522 # so that, for instance, grepping for `free' in stdlib.h fails and
2523 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2524 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2525 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2528 ## Suns
2529 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2530 machine=sparc opsys=gnu-linux
2533 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2534 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2535 | rs6000-*-solaris2*)
2536 case "${canonical}" in
2537 i[3456]86-*-* ) machine=intel386 ;;
2538 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2539 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2540 sparc* ) machine=sparc ;;
2541 * ) unported=yes ;;
2542 esac
2543 case "${canonical}" in
2544 *-sunos5.3* | *-solaris2.3* )
2545 opsys=sol2-3
2546 NON_GNU_CPP=/usr/ccs/lib/cpp
2548 *-sunos5.4* | *-solaris2.4* )
2549 opsys=sol2-4
2550 NON_GNU_CPP=/usr/ccs/lib/cpp
2551 RANLIB="ar -ts"
2553 *-sunos5.5* | *-solaris2.5* )
2554 opsys=sol2-5
2555 NON_GNU_CPP=/usr/ccs/lib/cpp
2556 RANLIB="ar -ts"
2558 *-sunos5.6* | *-solaris2.6* )
2559 opsys=sol2-6
2560 NON_GNU_CPP=/usr/ccs/lib/cpp
2561 RANLIB="ar -ts"
2563 *-sunos5* | *-solaris* )
2564 opsys=sol2-6
2565 emacs_check_sunpro_c=yes
2566 NON_GNU_CPP=/usr/ccs/lib/cpp
2568 esac
2569 ## Watch out for a compiler that we know will not work.
2570 case "${canonical}" in
2571 *-solaris* | *-sunos5* )
2572 if [ "x$CC" = x/usr/ucb/cc ]; then
2573 ## /usr/ucb/cc doesn't work;
2574 ## we should find some other compiler that does work.
2575 unset CC
2578 *) ;;
2579 esac
2582 ## Vaxen.
2583 vax-dec-* )
2584 machine=vax
2585 case "${canonical}" in
2586 *-vms* ) opsys=vms ;;
2587 * ) unported=yes
2588 esac
2591 ## IA-64
2592 ia64*-*-linux* )
2593 machine=ia64 opsys=gnu-linux
2596 ## Intel 386 machines where we don't care about the manufacturer
2597 i[3456]86-*-* )
2598 machine=intel386
2599 case "${canonical}" in
2600 *-cygwin ) opsys=cygwin ;;
2601 *-darwin* ) opsys=darwin
2602 CPP="${CC-cc} -E -no-cpp-precomp"
2604 *-linux-gnu* ) opsys=gnu-linux ;;
2605 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2606 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2607 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2608 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2609 esac
2612 ## m68k Linux-based GNU system
2613 m68k-*-linux-gnu* )
2614 machine=m68k opsys=gnu-linux
2617 ## Mips Linux-based GNU system
2618 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2619 machine=mips opsys=gnu-linux
2622 ## AMD x86-64 Linux-based GNU system
2623 x86_64-*-linux-gnu* )
2624 machine=amdx86-64 opsys=gnu-linux
2627 ## Tensilica Xtensa Linux-based GNU system
2628 xtensa*-*-linux-gnu* )
2629 machine=xtensa opsys=gnu-linux
2633 unported=yes
2635 esac
2637 ### If the code above didn't choose an operating system, just choose
2638 ### an operating system based on the configuration name. You really
2639 ### only want to use this when you have no idea what the right
2640 ### operating system is; if you know what operating systems a machine
2641 ### runs, it's cleaner to make it explicit in the case statement
2642 ### above.
2643 if test x"${opsys}" = x; then
2644 case "${canonical}" in
2645 *-gnu* ) opsys=gnu ;;
2646 *-sysv4.2uw* ) opsys=unixware ;;
2647 *-sysv5uw* ) opsys=unixware ;;
2648 *-sysv5OpenUNIX* ) opsys=unixware ;;
2649 *-sysv4.1* | *-sysvr4.1* )
2650 NON_GNU_CPP=/usr/lib/cpp
2651 opsys=usg5-4 ;;
2652 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2653 if [ x$NON_GNU_CPP = x ]; then
2654 if [ -f /usr/ccs/lib/cpp ]; then
2655 NON_GNU_CPP=/usr/ccs/lib/cpp
2656 else
2657 NON_GNU_CPP=/lib/cpp
2660 opsys=usg5-4-2 ;;
2661 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2663 unported=yes
2665 esac
2670 if test $unported = yes; then
2671 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2672 Check \`etc/MACHINES' for recognized configuration names." >&5
2673 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2674 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2675 { (exit 1); exit 1; }; }
2678 machfile="m/${machine}.h"
2679 opsysfile="s/${opsys}.h"
2682 #### Choose a compiler.
2683 test -n "$CC" && cc_specified=yes
2685 # Save the value of CFLAGS that the user specified.
2686 SPECIFIED_CFLAGS="$CFLAGS"
2688 ac_ext=c
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2695 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2715 done
2716 done
2717 IFS=$as_save_IFS
2721 CC=$ac_cv_prog_CC
2722 if test -n "$CC"; then
2723 { echo "$as_me:$LINENO: result: $CC" >&5
2724 echo "${ECHO_T}$CC" >&6; }
2725 else
2726 { echo "$as_me:$LINENO: result: no" >&5
2727 echo "${ECHO_T}no" >&6; }
2732 if test -z "$ac_cv_prog_CC"; then
2733 ac_ct_CC=$CC
2734 # Extract the first word of "gcc", so it can be a program name with args.
2735 set dummy gcc; ac_word=$2
2736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741 if test -n "$ac_ct_CC"; then
2742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751 ac_cv_prog_ac_ct_CC="gcc"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2755 done
2756 done
2757 IFS=$as_save_IFS
2761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2762 if test -n "$ac_ct_CC"; then
2763 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2764 echo "${ECHO_T}$ac_ct_CC" >&6; }
2765 else
2766 { echo "$as_me:$LINENO: result: no" >&5
2767 echo "${ECHO_T}no" >&6; }
2770 if test "x$ac_ct_CC" = x; then
2771 CC=""
2772 else
2773 case $cross_compiling:$ac_tool_warned in
2774 yes:)
2775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2776 whose name does not start with the host triplet. If you think this
2777 configuration is useful to you, please write to autoconf@gnu.org." >&5
2778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2779 whose name does not start with the host triplet. If you think this
2780 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2781 ac_tool_warned=yes ;;
2782 esac
2783 CC=$ac_ct_CC
2785 else
2786 CC="$ac_cv_prog_CC"
2789 if test -z "$CC"; then
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2792 set dummy ${ac_tool_prefix}cc; ac_word=$2
2793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2795 if test "${ac_cv_prog_CC+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC="$CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_CC="${ac_tool_prefix}cc"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2812 done
2813 done
2814 IFS=$as_save_IFS
2818 CC=$ac_cv_prog_CC
2819 if test -n "$CC"; then
2820 { echo "$as_me:$LINENO: result: $CC" >&5
2821 echo "${ECHO_T}$CC" >&6; }
2822 else
2823 { echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6; }
2830 if test -z "$CC"; then
2831 # Extract the first word of "cc", so it can be a program name with args.
2832 set dummy cc; ac_word=$2
2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_CC+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 else
2841 ac_prog_rejected=no
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2850 ac_prog_rejected=yes
2851 continue
2853 ac_cv_prog_CC="cc"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2857 done
2858 done
2859 IFS=$as_save_IFS
2861 if test $ac_prog_rejected = yes; then
2862 # We found a bogon in the path, so make sure we never use it.
2863 set dummy $ac_cv_prog_CC
2864 shift
2865 if test $# != 0; then
2866 # We chose a different compiler from the bogus one.
2867 # However, it has the same basename, so the bogon will be chosen
2868 # first if we set CC to just the basename; use the full file name.
2869 shift
2870 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2875 CC=$ac_cv_prog_CC
2876 if test -n "$CC"; then
2877 { echo "$as_me:$LINENO: result: $CC" >&5
2878 echo "${ECHO_T}$CC" >&6; }
2879 else
2880 { echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6; }
2886 if test -z "$CC"; then
2887 if test -n "$ac_tool_prefix"; then
2888 for ac_prog in cl.exe
2890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2894 if test "${ac_cv_prog_CC+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2911 done
2912 done
2913 IFS=$as_save_IFS
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919 { echo "$as_me:$LINENO: result: $CC" >&5
2920 echo "${ECHO_T}$CC" >&6; }
2921 else
2922 { echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6; }
2927 test -n "$CC" && break
2928 done
2930 if test -z "$CC"; then
2931 ac_ct_CC=$CC
2932 for ac_prog in cl.exe
2934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy $ac_prog; ac_word=$2
2936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_ac_ct_CC="$ac_prog"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2955 done
2956 done
2957 IFS=$as_save_IFS
2961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962 if test -n "$ac_ct_CC"; then
2963 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2964 echo "${ECHO_T}$ac_ct_CC" >&6; }
2965 else
2966 { echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6; }
2971 test -n "$ac_ct_CC" && break
2972 done
2974 if test "x$ac_ct_CC" = x; then
2975 CC=""
2976 else
2977 case $cross_compiling:$ac_tool_warned in
2978 yes:)
2979 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2980 whose name does not start with the host triplet. If you think this
2981 configuration is useful to you, please write to autoconf@gnu.org." >&5
2982 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2983 whose name does not start with the host triplet. If you think this
2984 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2985 ac_tool_warned=yes ;;
2986 esac
2987 CC=$ac_ct_CC
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO: checking for C compiler version" >&5
3002 ac_compiler=`set X $ac_compile; echo $2`
3003 { (ac_try="$ac_compiler --version >&5"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compiler --version >&5") 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }
3013 { (ac_try="$ac_compiler -v >&5"
3014 case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compiler -v >&5") 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (ac_try="$ac_compiler -V >&5"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compiler -V >&5") 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }
3034 cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h. */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3042 main ()
3046 return 0;
3048 _ACEOF
3049 ac_clean_files_save=$ac_clean_files
3050 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3051 # Try to create an executable without -o first, disregard a.out.
3052 # It will help us diagnose broken compilers, and finding out an intuition
3053 # of exeext.
3054 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3055 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3056 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3058 # List of possible output files, starting from the most likely.
3059 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3060 # only as a last resort. b.out is created by i960 compilers.
3061 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3063 # The IRIX 6 linker writes into existing files which may not be
3064 # executable, retaining their permissions. Remove them first so a
3065 # subsequent execution test works.
3066 ac_rmfiles=
3067 for ac_file in $ac_files
3069 case $ac_file in
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3071 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3072 esac
3073 done
3074 rm -f $ac_rmfiles
3076 if { (ac_try="$ac_link_default"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_link_default") 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3087 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3088 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3089 # so that the user can short-circuit this test for compilers unknown to
3090 # Autoconf.
3091 for ac_file in $ac_files ''
3093 test -f "$ac_file" || continue
3094 case $ac_file in
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3097 [ab].out )
3098 # We found the default executable, but exeext='' is most
3099 # certainly right.
3100 break;;
3101 *.* )
3102 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3103 then :; else
3104 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106 # We set ac_cv_exeext here because the later test for it is not
3107 # safe: cross compilers may not add the suffix if given an `-o'
3108 # argument, so we may need to know it at that point already.
3109 # Even if this section looks crufty: it has the advantage of
3110 # actually working.
3111 break;;
3113 break;;
3114 esac
3115 done
3116 test "$ac_cv_exeext" = no && ac_cv_exeext=
3118 else
3119 ac_file=''
3122 { echo "$as_me:$LINENO: result: $ac_file" >&5
3123 echo "${ECHO_T}$ac_file" >&6; }
3124 if test -z "$ac_file"; then
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: C compiler cannot create executables
3131 See \`config.log' for more details." >&2;}
3132 { (exit 77); exit 77; }; }
3135 ac_exeext=$ac_cv_exeext
3137 # Check that the compiler produces executables we can run. If not, either
3138 # the compiler is broken, or we cross compile.
3139 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3140 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3141 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3142 # If not cross compiling, check that we can run a simple program.
3143 if test "$cross_compiling" != yes; then
3144 if { ac_try='./$ac_file'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 cross_compiling=no
3155 else
3156 if test "$cross_compiling" = maybe; then
3157 cross_compiling=yes
3158 else
3159 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3160 If you meant to cross compile, use \`--host'.
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: cannot run C compiled programs.
3163 If you meant to cross compile, use \`--host'.
3164 See \`config.log' for more details." >&2;}
3165 { (exit 1); exit 1; }; }
3169 { echo "$as_me:$LINENO: result: yes" >&5
3170 echo "${ECHO_T}yes" >&6; }
3172 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3173 ac_clean_files=$ac_clean_files_save
3174 # Check that the compiler produces executables we can run. If not, either
3175 # the compiler is broken, or we cross compile.
3176 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3177 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3178 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3179 echo "${ECHO_T}$cross_compiling" >&6; }
3181 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3182 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3183 if { (ac_try="$ac_link"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_link") 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; then
3193 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3194 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3195 # work properly (i.e., refer to `conftest.exe'), while it won't with
3196 # `rm'.
3197 for ac_file in conftest.exe conftest conftest.*; do
3198 test -f "$ac_file" || continue
3199 case $ac_file in
3200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3201 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3202 break;;
3203 * ) break;;
3204 esac
3205 done
3206 else
3207 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3208 See \`config.log' for more details." >&5
3209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3210 See \`config.log' for more details." >&2;}
3211 { (exit 1); exit 1; }; }
3214 rm -f conftest$ac_cv_exeext
3215 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3216 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3218 rm -f conftest.$ac_ext
3219 EXEEXT=$ac_cv_exeext
3220 ac_exeext=$EXEEXT
3221 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3222 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3223 if test "${ac_cv_objext+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3234 main ()
3238 return 0;
3240 _ACEOF
3241 rm -f conftest.o conftest.obj
3242 if { (ac_try="$ac_compile"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_compile") 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; then
3252 for ac_file in conftest.o conftest.obj conftest.*; do
3253 test -f "$ac_file" || continue;
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3257 break;;
3258 esac
3259 done
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3265 See \`config.log' for more details." >&5
3266 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3267 See \`config.log' for more details." >&2;}
3268 { (exit 1); exit 1; }; }
3271 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3273 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3274 echo "${ECHO_T}$ac_cv_objext" >&6; }
3275 OBJEXT=$ac_cv_objext
3276 ac_objext=$OBJEXT
3277 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3278 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3279 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3290 main ()
3292 #ifndef __GNUC__
3293 choke me
3294 #endif
3297 return 0;
3299 _ACEOF
3300 rm -f conftest.$ac_objext
3301 if { (ac_try="$ac_compile"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_compile") 2>conftest.er1
3308 ac_status=$?
3309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } && {
3314 test -z "$ac_c_werror_flag" ||
3315 test ! -s conftest.err
3316 } && test -s conftest.$ac_objext; then
3317 ac_compiler_gnu=yes
3318 else
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 ac_compiler_gnu=no
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3329 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3330 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3331 GCC=`test $ac_compiler_gnu = yes && echo yes`
3332 ac_test_CFLAGS=${CFLAGS+set}
3333 ac_save_CFLAGS=$CFLAGS
3334 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3335 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_cc_g+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 ac_save_c_werror_flag=$ac_c_werror_flag
3340 ac_c_werror_flag=yes
3341 ac_cv_prog_cc_g=no
3342 CFLAGS="-g"
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h. */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3351 main ()
3355 return 0;
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (ac_try="$ac_compile"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_compile") 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } && {
3372 test -z "$ac_c_werror_flag" ||
3373 test ! -s conftest.err
3374 } && test -s conftest.$ac_objext; then
3375 ac_cv_prog_cc_g=yes
3376 else
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3380 CFLAGS=""
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h. */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3389 main ()
3393 return 0;
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3414 else
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 ac_c_werror_flag=$ac_save_c_werror_flag
3419 CFLAGS="-g"
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3428 main ()
3432 return 0;
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_compile") 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && {
3449 test -z "$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 } && test -s conftest.$ac_objext; then
3452 ac_cv_prog_cc_g=yes
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_c_werror_flag=$ac_save_c_werror_flag
3469 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3471 if test "$ac_test_CFLAGS" = set; then
3472 CFLAGS=$ac_save_CFLAGS
3473 elif test $ac_cv_prog_cc_g = yes; then
3474 if test "$GCC" = yes; then
3475 CFLAGS="-g -O2"
3476 else
3477 CFLAGS="-g"
3479 else
3480 if test "$GCC" = yes; then
3481 CFLAGS="-O2"
3482 else
3483 CFLAGS=
3486 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3487 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3488 if test "${ac_cv_prog_cc_c89+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 ac_cv_prog_cc_c89=no
3492 ac_save_CC=$CC
3493 cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h. */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499 #include <stdarg.h>
3500 #include <stdio.h>
3501 #include <sys/types.h>
3502 #include <sys/stat.h>
3503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3504 struct buf { int x; };
3505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3506 static char *e (p, i)
3507 char **p;
3508 int i;
3510 return p[i];
3512 static char *f (char * (*g) (char **, int), char **p, ...)
3514 char *s;
3515 va_list v;
3516 va_start (v,p);
3517 s = g (p, va_arg (v,int));
3518 va_end (v);
3519 return s;
3522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3523 function prototypes and stuff, but not '\xHH' hex character constants.
3524 These don't provoke an error unfortunately, instead are silently treated
3525 as 'x'. The following induces an error, until -std is added to get
3526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3527 array size at least. It's necessary to write '\x00'==0 to get something
3528 that's true only with -std. */
3529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3531 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3532 inside strings and character constants. */
3533 #define FOO(x) 'x'
3534 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3536 int test (int i, double x);
3537 struct s1 {int (*f) (int a);};
3538 struct s2 {int (*f) (double a);};
3539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3540 int argc;
3541 char **argv;
3543 main ()
3545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3547 return 0;
3549 _ACEOF
3550 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3551 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3553 CC="$ac_save_CC $ac_arg"
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3571 ac_cv_prog_cc_c89=$ac_arg
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3579 rm -f core conftest.err conftest.$ac_objext
3580 test "x$ac_cv_prog_cc_c89" != "xno" && break
3581 done
3582 rm -f conftest.$ac_ext
3583 CC=$ac_save_CC
3586 # AC_CACHE_VAL
3587 case "x$ac_cv_prog_cc_c89" in
3589 { echo "$as_me:$LINENO: result: none needed" >&5
3590 echo "${ECHO_T}none needed" >&6; } ;;
3591 xno)
3592 { echo "$as_me:$LINENO: result: unsupported" >&5
3593 echo "${ECHO_T}unsupported" >&6; } ;;
3595 CC="$CC $ac_cv_prog_cc_c89"
3596 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3597 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3598 esac
3601 ac_ext=c
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608 # On Suns, sometimes $CPP names a directory.
3609 if test -n "$CPP" && test -d "$CPP"; then
3610 CPP=
3613 ## If not using gcc, and on Solaris, and no CPP specified, see if
3614 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3615 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3616 test x"$CPP" = x; then
3617 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3618 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3620 if test "${emacs_cv_sunpro_c+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3631 main ()
3633 #ifndef __SUNPRO_C
3634 fail;
3635 #endif
3638 return 0;
3640 _ACEOF
3641 rm -f conftest.$ac_objext conftest$ac_exeext
3642 if { (ac_try="$ac_link"
3643 case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646 esac
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_link") 2>conftest.er1
3649 ac_status=$?
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } && {
3655 test -z "$ac_c_werror_flag" ||
3656 test ! -s conftest.err
3657 } && test -s conftest$ac_exeext &&
3658 $as_test_x conftest$ac_exeext; then
3659 emacs_cv_sunpro_c=yes
3660 else
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 emacs_cv_sunpro_c=no
3667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3668 conftest$ac_exeext conftest.$ac_ext
3671 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3672 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3674 if test x"$emacs_cv_sunpro_c" = xyes; then
3675 NON_GNU_CPP="$CC -E -Xs"
3679 #### Some systems specify a CPP to use unless we are using GCC.
3680 #### Now that we know whether we are using GCC, we can decide whether
3681 #### to use that one.
3682 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3683 then
3684 CPP="$NON_GNU_CPP"
3687 #### Some systems specify a CC to use unless we are using GCC.
3688 #### Now that we know whether we are using GCC, we can decide whether
3689 #### to use that one.
3690 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3691 test x$cc_specified != xyes
3692 then
3693 CC="$NON_GNU_CC"
3696 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3697 then
3698 CC="$CC $GCC_TEST_OPTIONS"
3701 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3702 then
3703 CC="$CC $NON_GCC_TEST_OPTIONS"
3707 cat >>confdefs.h <<\_ACEOF
3708 #define _GNU_SOURCE 1
3709 _ACEOF
3712 ac_ext=c
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3718 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3719 # On Suns, sometimes $CPP names a directory.
3720 if test -n "$CPP" && test -d "$CPP"; then
3721 CPP=
3723 if test -z "$CPP"; then
3724 if test "${ac_cv_prog_CPP+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 # Double quotes because CPP needs to be expanded
3728 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3730 ac_preproc_ok=false
3731 for ac_c_preproc_warn_flag in '' yes
3733 # Use a header file that comes with gcc, so configuring glibc
3734 # with a fresh cross-compiler works.
3735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3736 # <limits.h> exists even on freestanding compilers.
3737 # On the NeXT, cc -E runs the code through the compiler's parser,
3738 # not just through cpp. "Syntax error" is here to catch this case.
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 #ifdef __STDC__
3746 # include <limits.h>
3747 #else
3748 # include <assert.h>
3749 #endif
3750 Syntax error
3751 _ACEOF
3752 if { (ac_try="$ac_cpp conftest.$ac_ext"
3753 case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3759 ac_status=$?
3760 grep -v '^ *+' conftest.er1 >conftest.err
3761 rm -f conftest.er1
3762 cat conftest.err >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } >/dev/null && {
3765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3766 test ! -s conftest.err
3767 }; then
3769 else
3770 echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3773 # Broken: fails on valid input.
3774 continue
3777 rm -f conftest.err conftest.$ac_ext
3779 # OK, works on sane cases. Now check whether nonexistent headers
3780 # can be detected and how.
3781 cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h. */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787 #include <ac_nonexistent.h>
3788 _ACEOF
3789 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } >/dev/null && {
3802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3804 }; then
3805 # Broken: success on invalid input.
3806 continue
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 # Passes both tests.
3812 ac_preproc_ok=:
3813 break
3816 rm -f conftest.err conftest.$ac_ext
3818 done
3819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3820 rm -f conftest.err conftest.$ac_ext
3821 if $ac_preproc_ok; then
3822 break
3825 done
3826 ac_cv_prog_CPP=$CPP
3829 CPP=$ac_cv_prog_CPP
3830 else
3831 ac_cv_prog_CPP=$CPP
3833 { echo "$as_me:$LINENO: result: $CPP" >&5
3834 echo "${ECHO_T}$CPP" >&6; }
3835 ac_preproc_ok=false
3836 for ac_c_preproc_warn_flag in '' yes
3838 # Use a header file that comes with gcc, so configuring glibc
3839 # with a fresh cross-compiler works.
3840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3841 # <limits.h> exists even on freestanding compilers.
3842 # On the NeXT, cc -E runs the code through the compiler's parser,
3843 # not just through cpp. "Syntax error" is here to catch this case.
3844 cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h. */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #ifdef __STDC__
3851 # include <limits.h>
3852 #else
3853 # include <assert.h>
3854 #endif
3855 Syntax error
3856 _ACEOF
3857 if { (ac_try="$ac_cpp conftest.$ac_ext"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } >/dev/null && {
3870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 }; then
3874 else
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3878 # Broken: fails on valid input.
3879 continue
3882 rm -f conftest.err conftest.$ac_ext
3884 # OK, works on sane cases. Now check whether nonexistent headers
3885 # can be detected and how.
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3893 _ACEOF
3894 if { (ac_try="$ac_cpp conftest.$ac_ext"
3895 case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } >/dev/null && {
3907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 }; then
3910 # Broken: success on invalid input.
3911 continue
3912 else
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 # Passes both tests.
3917 ac_preproc_ok=:
3918 break
3921 rm -f conftest.err conftest.$ac_ext
3923 done
3924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3925 rm -f conftest.err conftest.$ac_ext
3926 if $ac_preproc_ok; then
3928 else
3929 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3930 See \`config.log' for more details." >&5
3931 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3932 See \`config.log' for more details." >&2;}
3933 { (exit 1); exit 1; }; }
3936 ac_ext=c
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3944 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3945 if test "${ac_cv_path_GREP+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948 # Extract the first word of "grep ggrep" to use in msg output
3949 if test -z "$GREP"; then
3950 set dummy grep ggrep; ac_prog_name=$2
3951 if test "${ac_cv_path_GREP+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954 ac_path_GREP_found=false
3955 # Loop through the user's path and test for each of PROGNAME-LIST
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_prog in grep ggrep; do
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3964 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3965 # Check for GNU ac_path_GREP and select it if it is found.
3966 # Check for GNU $ac_path_GREP
3967 case `"$ac_path_GREP" --version 2>&1` in
3968 *GNU*)
3969 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3971 ac_count=0
3972 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3973 while :
3975 cat "conftest.in" "conftest.in" >"conftest.tmp"
3976 mv "conftest.tmp" "conftest.in"
3977 cp "conftest.in" "conftest.nl"
3978 echo 'GREP' >> "conftest.nl"
3979 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3980 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3981 ac_count=`expr $ac_count + 1`
3982 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3983 # Best one so far, save it but keep looking for a better one
3984 ac_cv_path_GREP="$ac_path_GREP"
3985 ac_path_GREP_max=$ac_count
3987 # 10*(2^10) chars as input seems more than enough
3988 test $ac_count -gt 10 && break
3989 done
3990 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3991 esac
3994 $ac_path_GREP_found && break 3
3995 done
3996 done
3998 done
3999 IFS=$as_save_IFS
4004 GREP="$ac_cv_path_GREP"
4005 if test -z "$GREP"; then
4006 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4007 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4008 { (exit 1); exit 1; }; }
4011 else
4012 ac_cv_path_GREP=$GREP
4017 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4018 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4019 GREP="$ac_cv_path_GREP"
4022 { echo "$as_me:$LINENO: checking for egrep" >&5
4023 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4024 if test "${ac_cv_path_EGREP+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4028 then ac_cv_path_EGREP="$GREP -E"
4029 else
4030 # Extract the first word of "egrep" to use in msg output
4031 if test -z "$EGREP"; then
4032 set dummy egrep; ac_prog_name=$2
4033 if test "${ac_cv_path_EGREP+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 ac_path_EGREP_found=false
4037 # Loop through the user's path and test for each of PROGNAME-LIST
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_prog in egrep; do
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4046 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4047 # Check for GNU ac_path_EGREP and select it if it is found.
4048 # Check for GNU $ac_path_EGREP
4049 case `"$ac_path_EGREP" --version 2>&1` in
4050 *GNU*)
4051 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4053 ac_count=0
4054 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4055 while :
4057 cat "conftest.in" "conftest.in" >"conftest.tmp"
4058 mv "conftest.tmp" "conftest.in"
4059 cp "conftest.in" "conftest.nl"
4060 echo 'EGREP' >> "conftest.nl"
4061 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4063 ac_count=`expr $ac_count + 1`
4064 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4065 # Best one so far, save it but keep looking for a better one
4066 ac_cv_path_EGREP="$ac_path_EGREP"
4067 ac_path_EGREP_max=$ac_count
4069 # 10*(2^10) chars as input seems more than enough
4070 test $ac_count -gt 10 && break
4071 done
4072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4073 esac
4076 $ac_path_EGREP_found && break 3
4077 done
4078 done
4080 done
4081 IFS=$as_save_IFS
4086 EGREP="$ac_cv_path_EGREP"
4087 if test -z "$EGREP"; then
4088 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4089 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4090 { (exit 1); exit 1; }; }
4093 else
4094 ac_cv_path_EGREP=$EGREP
4100 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4101 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4102 EGREP="$ac_cv_path_EGREP"
4106 { echo "$as_me:$LINENO: checking for AIX" >&5
4107 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h. */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #ifdef _AIX
4116 #endif
4118 _ACEOF
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 $EGREP "yes" >/dev/null 2>&1; then
4121 { echo "$as_me:$LINENO: result: yes" >&5
4122 echo "${ECHO_T}yes" >&6; }
4123 cat >>confdefs.h <<\_ACEOF
4124 #define _ALL_SOURCE 1
4125 _ACEOF
4127 else
4128 { echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6; }
4131 rm -f conftest*
4134 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4135 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4136 if test "${ac_cv_header_stdc+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <stdlib.h>
4146 #include <stdarg.h>
4147 #include <string.h>
4148 #include <float.h>
4151 main ()
4155 return 0;
4157 _ACEOF
4158 rm -f conftest.$ac_objext
4159 if { (ac_try="$ac_compile"
4160 case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_compile") 2>conftest.er1
4166 ac_status=$?
4167 grep -v '^ *+' conftest.er1 >conftest.err
4168 rm -f conftest.er1
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } && {
4172 test -z "$ac_c_werror_flag" ||
4173 test ! -s conftest.err
4174 } && test -s conftest.$ac_objext; then
4175 ac_cv_header_stdc=yes
4176 else
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 ac_cv_header_stdc=no
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 if test $ac_cv_header_stdc = yes; then
4186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #include <string.h>
4195 _ACEOF
4196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4197 $EGREP "memchr" >/dev/null 2>&1; then
4199 else
4200 ac_cv_header_stdc=no
4202 rm -f conftest*
4206 if test $ac_cv_header_stdc = yes; then
4207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h. */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 #include <stdlib.h>
4216 _ACEOF
4217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4218 $EGREP "free" >/dev/null 2>&1; then
4220 else
4221 ac_cv_header_stdc=no
4223 rm -f conftest*
4227 if test $ac_cv_header_stdc = yes; then
4228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4229 if test "$cross_compiling" = yes; then
4231 else
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 #include <ctype.h>
4239 #include <stdlib.h>
4240 #if ((' ' & 0x0FF) == 0x020)
4241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243 #else
4244 # define ISLOWER(c) \
4245 (('a' <= (c) && (c) <= 'i') \
4246 || ('j' <= (c) && (c) <= 'r') \
4247 || ('s' <= (c) && (c) <= 'z'))
4248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4249 #endif
4251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4253 main ()
4255 int i;
4256 for (i = 0; i < 256; i++)
4257 if (XOR (islower (i), ISLOWER (i))
4258 || toupper (i) != TOUPPER (i))
4259 return 2;
4260 return 0;
4262 _ACEOF
4263 rm -f conftest$ac_exeext
4264 if { (ac_try="$ac_link"
4265 case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_link") 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4284 else
4285 echo "$as_me: program exited with status $ac_status" >&5
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 ( exit $ac_status )
4290 ac_cv_header_stdc=no
4292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4298 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4299 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4300 if test $ac_cv_header_stdc = yes; then
4302 cat >>confdefs.h <<\_ACEOF
4303 #define STDC_HEADERS 1
4304 _ACEOF
4308 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4319 inttypes.h stdint.h unistd.h
4321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4335 #include <$ac_header>
4336 _ACEOF
4337 rm -f conftest.$ac_objext
4338 if { (ac_try="$ac_compile"
4339 case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342 esac
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_compile") 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } && {
4351 test -z "$ac_c_werror_flag" ||
4352 test ! -s conftest.err
4353 } && test -s conftest.$ac_objext; then
4354 eval "$as_ac_Header=yes"
4355 else
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 eval "$as_ac_Header=no"
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 ac_res=`eval echo '${'$as_ac_Header'}'`
4365 { echo "$as_me:$LINENO: result: $ac_res" >&5
4366 echo "${ECHO_T}$ac_res" >&6; }
4367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4368 cat >>confdefs.h <<_ACEOF
4369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4370 _ACEOF
4374 done
4377 if test "${ac_cv_header_minix_config_h+set}" = set; then
4378 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4379 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4380 if test "${ac_cv_header_minix_config_h+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4384 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4385 else
4386 # Is the header compilable?
4387 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4388 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h. */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4395 $ac_includes_default
4396 #include <minix/config.h>
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (ac_try="$ac_compile"
4400 case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403 esac
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_compile") 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } && {
4412 test -z "$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4414 } && test -s conftest.$ac_objext; then
4415 ac_header_compiler=yes
4416 else
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4420 ac_header_compiler=no
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4425 echo "${ECHO_T}$ac_header_compiler" >&6; }
4427 # Is the header present?
4428 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4429 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4430 cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h. */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 #include <minix/config.h>
4437 _ACEOF
4438 if { (ac_try="$ac_cpp conftest.$ac_ext"
4439 case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } >/dev/null && {
4451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4452 test ! -s conftest.err
4453 }; then
4454 ac_header_preproc=yes
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 ac_header_preproc=no
4462 rm -f conftest.err conftest.$ac_ext
4463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4464 echo "${ECHO_T}$ac_header_preproc" >&6; }
4466 # So? What about this header?
4467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4468 yes:no: )
4469 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4470 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4471 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4472 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4473 ac_header_preproc=yes
4475 no:yes:* )
4476 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4477 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4478 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4479 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4480 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4481 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4482 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4483 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4484 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4485 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4487 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4490 esac
4491 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4492 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4493 if test "${ac_cv_header_minix_config_h+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496 ac_cv_header_minix_config_h=$ac_header_preproc
4498 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4499 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4502 if test $ac_cv_header_minix_config_h = yes; then
4503 MINIX=yes
4504 else
4505 MINIX=
4509 if test "$MINIX" = yes; then
4511 cat >>confdefs.h <<\_ACEOF
4512 #define _POSIX_SOURCE 1
4513 _ACEOF
4516 cat >>confdefs.h <<\_ACEOF
4517 #define _POSIX_1_SOURCE 2
4518 _ACEOF
4521 cat >>confdefs.h <<\_ACEOF
4522 #define _MINIX 1
4523 _ACEOF
4537 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4538 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4539 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h. */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4549 # define __EXTENSIONS__ 1
4550 $ac_includes_default
4552 main ()
4556 return 0;
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (ac_try="$ac_compile"
4561 case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564 esac
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_compile") 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && {
4573 test -z "$ac_c_werror_flag" ||
4574 test ! -s conftest.err
4575 } && test -s conftest.$ac_objext; then
4576 ac_cv_safe_to_define___extensions__=yes
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_cv_safe_to_define___extensions__=no
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4587 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4588 test $ac_cv_safe_to_define___extensions__ = yes &&
4589 cat >>confdefs.h <<\_ACEOF
4590 #define __EXTENSIONS__ 1
4591 _ACEOF
4593 cat >>confdefs.h <<\_ACEOF
4594 #define _POSIX_PTHREAD_SEMANTICS 1
4595 _ACEOF
4597 cat >>confdefs.h <<\_ACEOF
4598 #define _TANDEM_SOURCE 1
4599 _ACEOF
4603 ### Use -Wno-pointer-sign if the compiler supports it
4604 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4605 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4606 SAVE_CFLAGS="$CFLAGS"
4607 CFLAGS="$CFLAGS -Wno-pointer-sign"
4608 cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h. */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4616 main ()
4620 return 0;
4622 _ACEOF
4623 rm -f conftest.$ac_objext
4624 if { (ac_try="$ac_compile"
4625 case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_compile") 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && {
4637 test -z "$ac_c_werror_flag" ||
4638 test ! -s conftest.err
4639 } && test -s conftest.$ac_objext; then
4640 has_option=yes
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 has_option=no
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 if test $has_option = yes; then
4650 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4652 { echo "$as_me:$LINENO: result: $has_option" >&5
4653 echo "${ECHO_T}$has_option" >&6; }
4654 CFLAGS="$SAVE_CFLAGS"
4655 unset has_option
4656 unset SAVE_CFLAGS
4658 #### Some other nice autoconf tests.
4660 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4661 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4662 LN_S=$as_ln_s
4663 if test "$LN_S" = "ln -s"; then
4664 { echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6; }
4666 else
4667 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4668 echo "${ECHO_T}no, using $LN_S" >&6; }
4671 ac_ext=c
4672 ac_cpp='$CPP $CPPFLAGS'
4673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4677 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4678 # On Suns, sometimes $CPP names a directory.
4679 if test -n "$CPP" && test -d "$CPP"; then
4680 CPP=
4682 if test -z "$CPP"; then
4683 if test "${ac_cv_prog_CPP+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686 # Double quotes because CPP needs to be expanded
4687 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4689 ac_preproc_ok=false
4690 for ac_c_preproc_warn_flag in '' yes
4692 # Use a header file that comes with gcc, so configuring glibc
4693 # with a fresh cross-compiler works.
4694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4695 # <limits.h> exists even on freestanding compilers.
4696 # On the NeXT, cc -E runs the code through the compiler's parser,
4697 # not just through cpp. "Syntax error" is here to catch this case.
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #ifdef __STDC__
4705 # include <limits.h>
4706 #else
4707 # include <assert.h>
4708 #endif
4709 Syntax error
4710 _ACEOF
4711 if { (ac_try="$ac_cpp conftest.$ac_ext"
4712 case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } >/dev/null && {
4724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 }; then
4728 else
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 # Broken: fails on valid input.
4733 continue
4736 rm -f conftest.err conftest.$ac_ext
4738 # OK, works on sane cases. Now check whether nonexistent headers
4739 # can be detected and how.
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h. */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 #include <ac_nonexistent.h>
4747 _ACEOF
4748 if { (ac_try="$ac_cpp conftest.$ac_ext"
4749 case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4755 ac_status=$?
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } >/dev/null && {
4761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 }; then
4764 # Broken: success on invalid input.
4765 continue
4766 else
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4770 # Passes both tests.
4771 ac_preproc_ok=:
4772 break
4775 rm -f conftest.err conftest.$ac_ext
4777 done
4778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4779 rm -f conftest.err conftest.$ac_ext
4780 if $ac_preproc_ok; then
4781 break
4784 done
4785 ac_cv_prog_CPP=$CPP
4788 CPP=$ac_cv_prog_CPP
4789 else
4790 ac_cv_prog_CPP=$CPP
4792 { echo "$as_me:$LINENO: result: $CPP" >&5
4793 echo "${ECHO_T}$CPP" >&6; }
4794 ac_preproc_ok=false
4795 for ac_c_preproc_warn_flag in '' yes
4797 # Use a header file that comes with gcc, so configuring glibc
4798 # with a fresh cross-compiler works.
4799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4800 # <limits.h> exists even on freestanding compilers.
4801 # On the NeXT, cc -E runs the code through the compiler's parser,
4802 # not just through cpp. "Syntax error" is here to catch this case.
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h. */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 #ifdef __STDC__
4810 # include <limits.h>
4811 #else
4812 # include <assert.h>
4813 #endif
4814 Syntax error
4815 _ACEOF
4816 if { (ac_try="$ac_cpp conftest.$ac_ext"
4817 case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820 esac
4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4823 ac_status=$?
4824 grep -v '^ *+' conftest.er1 >conftest.err
4825 rm -f conftest.er1
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } >/dev/null && {
4829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4830 test ! -s conftest.err
4831 }; then
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 # Broken: fails on valid input.
4838 continue
4841 rm -f conftest.err conftest.$ac_ext
4843 # OK, works on sane cases. Now check whether nonexistent headers
4844 # can be detected and how.
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 #include <ac_nonexistent.h>
4852 _ACEOF
4853 if { (ac_try="$ac_cpp conftest.$ac_ext"
4854 case "(($ac_try" in
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4857 esac
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } >/dev/null && {
4866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4868 }; then
4869 # Broken: success on invalid input.
4870 continue
4871 else
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 # Passes both tests.
4876 ac_preproc_ok=:
4877 break
4880 rm -f conftest.err conftest.$ac_ext
4882 done
4883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4884 rm -f conftest.err conftest.$ac_ext
4885 if $ac_preproc_ok; then
4887 else
4888 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4889 See \`config.log' for more details." >&5
4890 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4891 See \`config.log' for more details." >&2;}
4892 { (exit 1); exit 1; }; }
4895 ac_ext=c
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901 # Find a good install program. We prefer a C program (faster),
4902 # so one script is as good as another. But avoid the broken or
4903 # incompatible versions:
4904 # SysV /etc/install, /usr/sbin/install
4905 # SunOS /usr/etc/install
4906 # IRIX /sbin/install
4907 # AIX /bin/install
4908 # AmigaOS /C/install, which installs bootblocks on floppy discs
4909 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4910 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4911 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4912 # OS/2's system install, which has a completely different semantic
4913 # ./install, which can be erroneously created by make from ./install.sh.
4914 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4915 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4916 if test -z "$INSTALL"; then
4917 if test "${ac_cv_path_install+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 # Account for people who put trailing slashes in PATH elements.
4926 case $as_dir/ in
4927 ./ | .// | /cC/* | \
4928 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4929 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4930 /usr/ucb/* ) ;;
4932 # OSF1 and SCO ODT 3.0 have their own names for install.
4933 # Don't use installbsd from OSF since it installs stuff as root
4934 # by default.
4935 for ac_prog in ginstall scoinst install; do
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4938 if test $ac_prog = install &&
4939 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4940 # AIX install. It has an incompatible calling convention.
4942 elif test $ac_prog = install &&
4943 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4944 # program-specific install script used by HP pwplus--don't use.
4946 else
4947 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4948 break 3
4951 done
4952 done
4954 esac
4955 done
4956 IFS=$as_save_IFS
4960 if test "${ac_cv_path_install+set}" = set; then
4961 INSTALL=$ac_cv_path_install
4962 else
4963 # As a last resort, use the slow shell script. Don't cache a
4964 # value for INSTALL within a source directory, because that will
4965 # break other packages using the cache if that directory is
4966 # removed, or if the value is a relative name.
4967 INSTALL=$ac_install_sh
4970 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4971 echo "${ECHO_T}$INSTALL" >&6; }
4973 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4974 # It thinks the first close brace ends the variable substitution.
4975 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4977 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4979 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4981 if test "x$RANLIB" = x; then
4982 if test -n "$ac_tool_prefix"; then
4983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4984 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_prog_RANLIB+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990 if test -n "$RANLIB"; then
4991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5010 RANLIB=$ac_cv_prog_RANLIB
5011 if test -n "$RANLIB"; then
5012 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5013 echo "${ECHO_T}$RANLIB" >&6; }
5014 else
5015 { echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6; }
5021 if test -z "$ac_cv_prog_RANLIB"; then
5022 ac_ct_RANLIB=$RANLIB
5023 # Extract the first word of "ranlib", so it can be a program name with args.
5024 set dummy ranlib; ac_word=$2
5025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 if test -n "$ac_ct_RANLIB"; then
5031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_ac_ct_RANLIB="ranlib"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5044 done
5045 done
5046 IFS=$as_save_IFS
5050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5051 if test -n "$ac_ct_RANLIB"; then
5052 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5053 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5054 else
5055 { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5059 if test "x$ac_ct_RANLIB" = x; then
5060 RANLIB=":"
5061 else
5062 case $cross_compiling:$ac_tool_warned in
5063 yes:)
5064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5065 whose name does not start with the host triplet. If you think this
5066 configuration is useful to you, please write to autoconf@gnu.org." >&5
5067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5068 whose name does not start with the host triplet. If you think this
5069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5070 ac_tool_warned=yes ;;
5071 esac
5072 RANLIB=$ac_ct_RANLIB
5074 else
5075 RANLIB="$ac_cv_prog_RANLIB"
5079 # Extract the first word of "install-info", so it can be a program name with args.
5080 set dummy install-info; ac_word=$2
5081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5083 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 case $INSTALL_INFO in
5087 [\\/]* | ?:[\\/]*)
5088 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5102 done
5103 done
5104 IFS=$as_save_IFS
5107 esac
5109 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5110 if test -n "$INSTALL_INFO"; then
5111 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5112 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5113 else
5114 { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5119 # Extract the first word of "install-info", so it can be a program name with args.
5120 set dummy install-info; ac_word=$2
5121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5123 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 case $INSTALL_INFO in
5127 [\\/]* | ?:[\\/]*)
5128 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in /usr/sbin
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5142 done
5143 done
5144 IFS=$as_save_IFS
5147 esac
5149 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5150 if test -n "$INSTALL_INFO"; then
5151 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5152 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5153 else
5154 { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5159 # Extract the first word of "install-info", so it can be a program name with args.
5160 set dummy install-info; ac_word=$2
5161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5163 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 case $INSTALL_INFO in
5167 [\\/]* | ?:[\\/]*)
5168 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in /sbin
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5182 done
5183 done
5184 IFS=$as_save_IFS
5186 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5188 esac
5190 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5191 if test -n "$INSTALL_INFO"; then
5192 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5193 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5194 else
5195 { echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6; }
5200 # Extract the first word of "gzip", so it can be a program name with args.
5201 set dummy gzip; ac_word=$2
5202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5204 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 case $GZIP_PROG in
5208 [\\/]* | ?:[\\/]*)
5209 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5223 done
5224 done
5225 IFS=$as_save_IFS
5228 esac
5230 GZIP_PROG=$ac_cv_path_GZIP_PROG
5231 if test -n "$GZIP_PROG"; then
5232 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5233 echo "${ECHO_T}$GZIP_PROG" >&6; }
5234 else
5235 { echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; }
5242 ## Need makeinfo >= 4.6 (?) to build the manuals.
5243 # Extract the first word of "makeinfo", so it can be a program name with args.
5244 set dummy makeinfo; ac_word=$2
5245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5247 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 case $MAKEINFO in
5251 [\\/]* | ?:[\\/]*)
5252 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5270 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5272 esac
5274 MAKEINFO=$ac_cv_path_MAKEINFO
5275 if test -n "$MAKEINFO"; then
5276 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5277 echo "${ECHO_T}$MAKEINFO" >&6; }
5278 else
5279 { echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6; }
5284 if test "$MAKEINFO" != "no" && \
5285 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5286 MAKEINFO=no
5289 ## Makeinfo is unusual. For a released Emacs, the manuals are
5290 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5291 ## therefore in the category of "special tools" not normally required, which
5292 ## configure does not have to check for (eg autoconf itself).
5293 ## In a CVS checkout on the other hand, the manuals are not included.
5294 ## So makeinfo is a requirement to build from CVS, and configure
5295 ## should test for it as it does for any other build requirement.
5296 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5297 ## with pre-built manuals, from a CVS checkout.
5298 if test "$MAKEINFO" = "no"; then
5299 if test "x${with_makeinfo}" = "xno"; then
5300 MAKEINFO=off
5301 elif ! test -e $srcdir/info/emacs; then
5302 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5303 source tree does not seem to have pre-built manuals in the \`info' directory.
5304 Either install a suitable version of makeinfo, or re-run configure
5305 with the \`--without-makeinfo' option to build without the manuals. " >&5
5306 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5307 source tree does not seem to have pre-built manuals in the \`info' directory.
5308 Either install a suitable version of makeinfo, or re-run configure
5309 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5310 { (exit 1); exit 1; }; }
5315 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5316 then
5317 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5320 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5321 then
5322 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5326 late_LDFLAGS=$LDFLAGS
5327 if test "$GCC" = yes; then
5328 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5329 else
5330 LDFLAGS="$LDFLAGS -znocombreloc"
5333 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5334 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5335 cat >conftest.$ac_ext <<_ACEOF
5336 main(){return 0;}
5337 _ACEOF
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (ac_try="$ac_link"
5340 case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_link") 2>conftest.er1
5346 ac_status=$?
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && {
5352 test -z "$ac_c_werror_flag" ||
5353 test ! -s conftest.err
5354 } && test -s conftest$ac_exeext &&
5355 $as_test_x conftest$ac_exeext; then
5356 { echo "$as_me:$LINENO: result: yes" >&5
5357 echo "${ECHO_T}yes" >&6; }
5358 else
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 LDFLAGS=$late_LDFLAGS
5363 { echo "$as_me:$LINENO: result: no" >&5
5364 echo "${ECHO_T}no" >&6; }
5367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5368 conftest$ac_exeext conftest.$ac_ext
5370 #### Extract some information from the operating system and machine files.
5372 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5373 - which libraries the lib-src programs will want, and
5374 - whether the GNU malloc routines are usable..." >&5
5375 echo "$as_me: checking the machine- and system-dependent files to find out
5376 - which libraries the lib-src programs will want, and
5377 - whether the GNU malloc routines are usable..." >&6;}
5379 ### First figure out CFLAGS (which we use for running the compiler here)
5380 ### and REAL_CFLAGS (which we use for real compilation).
5381 ### The two are the same except on a few systems, where they are made
5382 ### different to work around various lossages. For example,
5383 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5384 ### as implying static linking.
5386 ### If the CFLAGS env var is specified, we use that value
5387 ### instead of the default.
5389 ### It's not important that this name contain the PID; you can't run
5390 ### two configures in the same directory and have anything work
5391 ### anyway.
5392 tempcname="conftest.c"
5394 echo '
5395 #include "'${srcdir}'/src/'${opsysfile}'"
5396 #include "'${srcdir}'/src/'${machfile}'"
5397 #ifndef LIBS_MACHINE
5398 #define LIBS_MACHINE
5399 #endif
5400 #ifndef LIBS_SYSTEM
5401 #define LIBS_SYSTEM
5402 #endif
5403 #ifndef C_SWITCH_SYSTEM
5404 #define C_SWITCH_SYSTEM
5405 #endif
5406 #ifndef C_SWITCH_MACHINE
5407 #define C_SWITCH_MACHINE
5408 #endif
5409 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5410 configure___ c_switch_system=C_SWITCH_SYSTEM
5411 configure___ c_switch_machine=C_SWITCH_MACHINE
5413 #ifndef LIB_X11_LIB
5414 #define LIB_X11_LIB -lX11
5415 #endif
5417 #ifndef LIBX11_SYSTEM
5418 #define LIBX11_SYSTEM
5419 #endif
5420 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5422 #ifdef UNEXEC
5423 configure___ unexec=UNEXEC
5424 #else
5425 configure___ unexec=unexec.o
5426 #endif
5428 #ifdef SYSTEM_MALLOC
5429 configure___ system_malloc=yes
5430 #else
5431 configure___ system_malloc=no
5432 #endif
5434 #ifdef USE_MMAP_FOR_BUFFERS
5435 configure___ use_mmap_for_buffers=yes
5436 #else
5437 configure___ use_mmap_for_buffers=no
5438 #endif
5440 #ifndef C_DEBUG_SWITCH
5441 #define C_DEBUG_SWITCH -g
5442 #endif
5444 #ifndef C_OPTIMIZE_SWITCH
5445 #ifdef __GNUC__
5446 #define C_OPTIMIZE_SWITCH -O2
5447 #else
5448 #define C_OPTIMIZE_SWITCH -O
5449 #endif
5450 #endif
5452 #ifndef C_WARNINGS_SWITCH
5453 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5454 #endif
5456 #ifndef LD_SWITCH_MACHINE
5457 #define LD_SWITCH_MACHINE
5458 #endif
5460 #ifndef LD_SWITCH_SYSTEM
5461 #define LD_SWITCH_SYSTEM
5462 #endif
5464 #ifndef LD_SWITCH_X_SITE_AUX
5465 #define LD_SWITCH_X_SITE_AUX
5466 #endif
5468 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5469 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5471 #ifdef THIS_IS_CONFIGURE
5473 /* Get the CFLAGS for tests in configure. */
5474 #ifdef __GNUC__
5475 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5476 #else
5477 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5478 #endif
5480 #else /* not THIS_IS_CONFIGURE */
5482 /* Get the CFLAGS for real compilation. */
5483 #ifdef __GNUC__
5484 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5485 #else
5486 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5487 #endif
5489 #endif /* not THIS_IS_CONFIGURE */
5490 ' > ${tempcname}
5492 # The value of CPP is a quoted variable reference, so we need to do this
5493 # to get its actual value...
5494 CPP=`eval "echo $CPP"`
5495 eval `${CPP} -Isrc ${tempcname} \
5496 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5497 if test "x$SPECIFIED_CFLAGS" = x; then
5498 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5499 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5500 else
5501 REAL_CFLAGS="$CFLAGS"
5503 rm ${tempcname}
5505 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5507 ### Make sure subsequent tests use flags consistent with the build flags.
5509 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5510 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5511 else
5512 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5517 # Check whether --enable-largefile was given.
5518 if test "${enable_largefile+set}" = set; then
5519 enableval=$enable_largefile;
5522 if test "$enable_largefile" != no; then
5524 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5525 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5526 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529 ac_cv_sys_largefile_CC=no
5530 if test "$GCC" != yes; then
5531 ac_save_CC=$CC
5532 while :; do
5533 # IRIX 6.2 and later do not support large files by default,
5534 # so use the C compiler's -n32 option if that helps.
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <sys/types.h>
5542 /* Check that off_t can represent 2**63 - 1 correctly.
5543 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5544 since some C++ compilers masquerading as C compilers
5545 incorrectly reject 9223372036854775807. */
5546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5548 && LARGE_OFF_T % 2147483647 == 1)
5549 ? 1 : -1];
5551 main ()
5555 return 0;
5557 _ACEOF
5558 rm -f conftest.$ac_objext
5559 if { (ac_try="$ac_compile"
5560 case "(($ac_try" in
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5563 esac
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_compile") 2>conftest.er1
5566 ac_status=$?
5567 grep -v '^ *+' conftest.er1 >conftest.err
5568 rm -f conftest.er1
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } && {
5572 test -z "$ac_c_werror_flag" ||
5573 test ! -s conftest.err
5574 } && test -s conftest.$ac_objext; then
5575 break
5576 else
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5583 rm -f core conftest.err conftest.$ac_objext
5584 CC="$CC -n32"
5585 rm -f conftest.$ac_objext
5586 if { (ac_try="$ac_compile"
5587 case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590 esac
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_compile") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest.$ac_objext; then
5602 ac_cv_sys_largefile_CC=' -n32'; break
5603 else
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5610 rm -f core conftest.err conftest.$ac_objext
5611 break
5612 done
5613 CC=$ac_save_CC
5614 rm -f conftest.$ac_ext
5617 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5618 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5619 if test "$ac_cv_sys_largefile_CC" != no; then
5620 CC=$CC$ac_cv_sys_largefile_CC
5623 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5624 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5625 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628 while :; do
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h. */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 #include <sys/types.h>
5636 /* Check that off_t can represent 2**63 - 1 correctly.
5637 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5638 since some C++ compilers masquerading as C compilers
5639 incorrectly reject 9223372036854775807. */
5640 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5641 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5642 && LARGE_OFF_T % 2147483647 == 1)
5643 ? 1 : -1];
5645 main ()
5649 return 0;
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (ac_try="$ac_compile"
5654 case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compile") 2>conftest.er1
5660 ac_status=$?
5661 grep -v '^ *+' conftest.er1 >conftest.err
5662 rm -f conftest.er1
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest.$ac_objext; then
5669 ac_cv_sys_file_offset_bits=no; break
5670 else
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h. */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 #define _FILE_OFFSET_BITS 64
5685 #include <sys/types.h>
5686 /* Check that off_t can represent 2**63 - 1 correctly.
5687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5688 since some C++ compilers masquerading as C compilers
5689 incorrectly reject 9223372036854775807. */
5690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5692 && LARGE_OFF_T % 2147483647 == 1)
5693 ? 1 : -1];
5695 main ()
5699 return 0;
5701 _ACEOF
5702 rm -f conftest.$ac_objext
5703 if { (ac_try="$ac_compile"
5704 case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_compile") 2>conftest.er1
5710 ac_status=$?
5711 grep -v '^ *+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } && {
5716 test -z "$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5718 } && test -s conftest.$ac_objext; then
5719 ac_cv_sys_file_offset_bits=64; break
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 ac_cv_sys_file_offset_bits=unknown
5729 break
5730 done
5732 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5733 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5734 case $ac_cv_sys_file_offset_bits in #(
5735 no | unknown) ;;
5737 cat >>confdefs.h <<_ACEOF
5738 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5739 _ACEOF
5741 esac
5742 rm -f conftest*
5743 if test $ac_cv_sys_file_offset_bits = unknown; then
5744 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5745 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5746 if test "${ac_cv_sys_large_files+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749 while :; do
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h. */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 #include <sys/types.h>
5757 /* Check that off_t can represent 2**63 - 1 correctly.
5758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5759 since some C++ compilers masquerading as C compilers
5760 incorrectly reject 9223372036854775807. */
5761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5763 && LARGE_OFF_T % 2147483647 == 1)
5764 ? 1 : -1];
5766 main ()
5770 return 0;
5772 _ACEOF
5773 rm -f conftest.$ac_objext
5774 if { (ac_try="$ac_compile"
5775 case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compile") 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && {
5787 test -z "$ac_c_werror_flag" ||
5788 test ! -s conftest.err
5789 } && test -s conftest.$ac_objext; then
5790 ac_cv_sys_large_files=no; break
5791 else
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #define _LARGE_FILES 1
5806 #include <sys/types.h>
5807 /* Check that off_t can represent 2**63 - 1 correctly.
5808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5809 since some C++ compilers masquerading as C compilers
5810 incorrectly reject 9223372036854775807. */
5811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5813 && LARGE_OFF_T % 2147483647 == 1)
5814 ? 1 : -1];
5816 main ()
5820 return 0;
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5825 case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } && {
5837 test -z "$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 } && test -s conftest.$ac_objext; then
5840 ac_cv_sys_large_files=1; break
5841 else
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 ac_cv_sys_large_files=unknown
5850 break
5851 done
5853 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5854 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5855 case $ac_cv_sys_large_files in #(
5856 no | unknown) ;;
5858 cat >>confdefs.h <<_ACEOF
5859 #define _LARGE_FILES $ac_cv_sys_large_files
5860 _ACEOF
5862 esac
5863 rm -f conftest*
5869 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5870 ### be located in either /usr/lib64 or /usr/lib.
5871 case "${canonical}" in
5872 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5873 if test -d /usr/lib64; then
5875 cat >>confdefs.h <<\_ACEOF
5876 #define HAVE_LIB64_DIR 1
5877 _ACEOF
5880 esac
5885 if test "${with_sound}" != "no"; then
5886 # Sound support for GNU/Linux and the free BSDs.
5890 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 ac_res=`eval echo '${'$as_ac_Header'}'`
5900 { echo "$as_me:$LINENO: result: $ac_res" >&5
5901 echo "${ECHO_T}$ac_res" >&6; }
5902 else
5903 # Is the header compilable?
5904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
5913 #include <$ac_header>
5914 _ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5917 case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920 esac
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && {
5929 test -z "$ac_c_werror_flag" ||
5930 test ! -s conftest.err
5931 } && test -s conftest.$ac_objext; then
5932 ac_header_compiler=yes
5933 else
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 ac_header_compiler=no
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5942 echo "${ECHO_T}$ac_header_compiler" >&6; }
5944 # Is the header present?
5945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 #include <$ac_header>
5954 _ACEOF
5955 if { (ac_try="$ac_cpp conftest.$ac_ext"
5956 case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959 esac
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null && {
5968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5970 }; then
5971 ac_header_preproc=yes
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 ac_header_preproc=no
5979 rm -f conftest.err conftest.$ac_ext
5980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5981 echo "${ECHO_T}$ac_header_preproc" >&6; }
5983 # So? What about this header?
5984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5985 yes:no: )
5986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5990 ac_header_preproc=yes
5992 no:yes:* )
5993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6007 esac
6008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013 eval "$as_ac_Header=\$ac_header_preproc"
6015 ac_res=`eval echo '${'$as_ac_Header'}'`
6016 { echo "$as_me:$LINENO: result: $ac_res" >&5
6017 echo "${ECHO_T}$ac_res" >&6; }
6020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6021 cat >>confdefs.h <<_ACEOF
6022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6023 _ACEOF
6027 done
6029 # Emulation library used on NetBSD.
6030 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6031 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6032 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035 ac_check_lib_save_LIBS=$LIBS
6036 LIBS="-lossaudio $LIBS"
6037 cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h. */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6044 /* Override any GCC internal prototype to avoid an error.
6045 Use char because int might match the return type of a GCC
6046 builtin and then its argument prototype would still apply. */
6047 #ifdef __cplusplus
6048 extern "C"
6049 #endif
6050 char _oss_ioctl ();
6052 main ()
6054 return _oss_ioctl ();
6056 return 0;
6058 _ACEOF
6059 rm -f conftest.$ac_objext conftest$ac_exeext
6060 if { (ac_try="$ac_link"
6061 case "(($ac_try" in
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6064 esac
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_link") 2>conftest.er1
6067 ac_status=$?
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && {
6073 test -z "$ac_c_werror_flag" ||
6074 test ! -s conftest.err
6075 } && test -s conftest$ac_exeext &&
6076 $as_test_x conftest$ac_exeext; then
6077 ac_cv_lib_ossaudio__oss_ioctl=yes
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6082 ac_cv_lib_ossaudio__oss_ioctl=no
6085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6086 conftest$ac_exeext conftest.$ac_ext
6087 LIBS=$ac_check_lib_save_LIBS
6089 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6090 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6091 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6092 LIBSOUND=-lossaudio
6093 else
6094 LIBSOUND=
6099 ALSA_REQUIRED=1.0.0
6100 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6102 succeeded=no
6104 # Extract the first word of "pkg-config", so it can be a program name with args.
6105 set dummy pkg-config; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111 case $PKG_CONFIG in
6112 [\\/]* | ?:[\\/]*)
6113 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6127 done
6128 done
6129 IFS=$as_save_IFS
6131 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6133 esac
6135 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6136 if test -n "$PKG_CONFIG"; then
6137 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6138 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6139 else
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6146 if test "$PKG_CONFIG" = "no" ; then
6147 HAVE_ALSA=no
6148 else
6149 PKG_CONFIG_MIN_VERSION=0.9.0
6150 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6151 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6152 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6154 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6155 { echo "$as_me:$LINENO: result: yes" >&5
6156 echo "${ECHO_T}yes" >&6; }
6157 succeeded=yes
6159 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6160 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6161 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6162 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6163 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6165 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6166 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6167 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6168 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6169 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6170 else
6171 { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6173 ALSA_CFLAGS=""
6174 ALSA_LIBS=""
6175 ## If we have a custom action on failure, don't print errors, but
6176 ## do set a variable so people can do so.
6177 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6183 else
6184 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6185 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6189 if test $succeeded = yes; then
6190 HAVE_ALSA=yes
6191 else
6192 HAVE_ALSA=no
6195 if test $HAVE_ALSA = yes; then
6196 SAVE_CFLAGS="$CFLAGS"
6197 SAVE_LDFLAGS="$LDFLAGS"
6198 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6199 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6200 cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 #include <asoundlib.h>
6208 main ()
6210 snd_lib_error_set_handler (0);
6212 return 0;
6214 _ACEOF
6215 rm -f conftest.$ac_objext
6216 if { (ac_try="$ac_compile"
6217 case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compile") 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest.$ac_objext; then
6232 emacs_alsa_normal=yes
6233 else
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 emacs_alsa_normal=no
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 if test "$emacs_alsa_normal" != yes; then
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #include <alsa/asoundlib.h>
6250 main ()
6252 snd_lib_error_set_handler (0);
6254 return 0;
6256 _ACEOF
6257 rm -f conftest.$ac_objext
6258 if { (ac_try="$ac_compile"
6259 case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_compile") 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest.$ac_objext; then
6274 emacs_alsa_subdir=yes
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6279 emacs_alsa_subdir=no
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283 if test "$emacs_alsa_subdir" != yes; then
6284 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6285 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6286 { (exit 1); exit 1; }; }
6288 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6291 CFLAGS="$SAVE_CFLAGS"
6292 LDFLAGS="$SAVE_LDFLAGS"
6293 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6294 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6296 cat >>confdefs.h <<\_ACEOF
6297 #define HAVE_ALSA 1
6298 _ACEOF
6329 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6330 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6331 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6332 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6333 sys/utsname.h pwd.h
6335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 ac_res=`eval echo '${'$as_ac_Header'}'`
6343 { echo "$as_me:$LINENO: result: $ac_res" >&5
6344 echo "${ECHO_T}$ac_res" >&6; }
6345 else
6346 # Is the header compilable?
6347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 $ac_includes_default
6356 #include <$ac_header>
6357 _ACEOF
6358 rm -f conftest.$ac_objext
6359 if { (ac_try="$ac_compile"
6360 case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363 esac
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_compile") 2>conftest.er1
6366 ac_status=$?
6367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && {
6372 test -z "$ac_c_werror_flag" ||
6373 test ! -s conftest.err
6374 } && test -s conftest.$ac_objext; then
6375 ac_header_compiler=yes
6376 else
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 ac_header_compiler=no
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6385 echo "${ECHO_T}$ac_header_compiler" >&6; }
6387 # Is the header present?
6388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 #include <$ac_header>
6397 _ACEOF
6398 if { (ac_try="$ac_cpp conftest.$ac_ext"
6399 case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402 esac
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6405 ac_status=$?
6406 grep -v '^ *+' conftest.er1 >conftest.err
6407 rm -f conftest.er1
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } >/dev/null && {
6411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 }; then
6414 ac_header_preproc=yes
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_header_preproc=no
6422 rm -f conftest.err conftest.$ac_ext
6423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6424 echo "${ECHO_T}$ac_header_preproc" >&6; }
6426 # So? What about this header?
6427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6428 yes:no: )
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6433 ac_header_preproc=yes
6435 no:yes:* )
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6450 esac
6451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456 eval "$as_ac_Header=\$ac_header_preproc"
6458 ac_res=`eval echo '${'$as_ac_Header'}'`
6459 { echo "$as_me:$LINENO: result: $ac_res" >&5
6460 echo "${ECHO_T}$ac_res" >&6; }
6463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6464 cat >>confdefs.h <<_ACEOF
6465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6466 _ACEOF
6470 done
6473 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6474 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h. */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 #include <sys/personality.h>
6483 main ()
6485 personality (PER_LINUX32)
6487 return 0;
6489 _ACEOF
6490 rm -f conftest.$ac_objext
6491 if { (ac_try="$ac_compile"
6492 case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495 esac
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_compile") 2>conftest.er1
6498 ac_status=$?
6499 grep -v '^ *+' conftest.er1 >conftest.err
6500 rm -f conftest.er1
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && {
6504 test -z "$ac_c_werror_flag" ||
6505 test ! -s conftest.err
6506 } && test -s conftest.$ac_objext; then
6507 emacs_cv_personality_linux32=yes
6508 else
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6512 emacs_cv_personality_linux32=no
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6517 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6519 if test $emacs_cv_personality_linux32 = yes; then
6521 cat >>confdefs.h <<\_ACEOF
6522 #define HAVE_PERSONALITY_LINUX32 1
6523 _ACEOF
6528 for ac_header in term.h
6530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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
6535 else
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 #include <$ac_header>
6543 _ACEOF
6544 if { (ac_try="$ac_cpp conftest.$ac_ext"
6545 case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548 esac
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } >/dev/null && {
6557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6559 }; then
6560 eval "$as_ac_Header=yes"
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 eval "$as_ac_Header=no"
6568 rm -f conftest.err conftest.$ac_ext
6570 ac_res=`eval echo '${'$as_ac_Header'}'`
6571 { echo "$as_me:$LINENO: result: $ac_res" >&5
6572 echo "${ECHO_T}$ac_res" >&6; }
6573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6574 cat >>confdefs.h <<_ACEOF
6575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6576 _ACEOF
6580 done
6582 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6584 if test "${ac_cv_header_stdc+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #include <stdlib.h>
6594 #include <stdarg.h>
6595 #include <string.h>
6596 #include <float.h>
6599 main ()
6603 return 0;
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (ac_try="$ac_compile"
6608 case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611 esac
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_compile") 2>conftest.er1
6614 ac_status=$?
6615 grep -v '^ *+' conftest.er1 >conftest.err
6616 rm -f conftest.er1
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && {
6620 test -z "$ac_c_werror_flag" ||
6621 test ! -s conftest.err
6622 } && test -s conftest.$ac_objext; then
6623 ac_cv_header_stdc=yes
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 ac_cv_header_stdc=no
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 if test $ac_cv_header_stdc = yes; then
6634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 #include <string.h>
6643 _ACEOF
6644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6645 $EGREP "memchr" >/dev/null 2>&1; then
6647 else
6648 ac_cv_header_stdc=no
6650 rm -f conftest*
6654 if test $ac_cv_header_stdc = yes; then
6655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <stdlib.h>
6664 _ACEOF
6665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6666 $EGREP "free" >/dev/null 2>&1; then
6668 else
6669 ac_cv_header_stdc=no
6671 rm -f conftest*
6675 if test $ac_cv_header_stdc = yes; then
6676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6677 if test "$cross_compiling" = yes; then
6679 else
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #include <ctype.h>
6687 #include <stdlib.h>
6688 #if ((' ' & 0x0FF) == 0x020)
6689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6691 #else
6692 # define ISLOWER(c) \
6693 (('a' <= (c) && (c) <= 'i') \
6694 || ('j' <= (c) && (c) <= 'r') \
6695 || ('s' <= (c) && (c) <= 'z'))
6696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6697 #endif
6699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6701 main ()
6703 int i;
6704 for (i = 0; i < 256; i++)
6705 if (XOR (islower (i), ISLOWER (i))
6706 || toupper (i) != TOUPPER (i))
6707 return 2;
6708 return 0;
6710 _ACEOF
6711 rm -f conftest$ac_exeext
6712 if { (ac_try="$ac_link"
6713 case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716 esac
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_link") 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6722 { (case "(($ac_try" in
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6725 esac
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727 (eval "$ac_try") 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6732 else
6733 echo "$as_me: program exited with status $ac_status" >&5
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 ( exit $ac_status )
6738 ac_cv_header_stdc=no
6740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6746 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6747 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6748 if test $ac_cv_header_stdc = yes; then
6750 cat >>confdefs.h <<\_ACEOF
6751 #define STDC_HEADERS 1
6752 _ACEOF
6756 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6757 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6758 if test "${ac_cv_header_time+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761 cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h. */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 #include <sys/types.h>
6768 #include <sys/time.h>
6769 #include <time.h>
6772 main ()
6774 if ((struct tm *) 0)
6775 return 0;
6777 return 0;
6779 _ACEOF
6780 rm -f conftest.$ac_objext
6781 if { (ac_try="$ac_compile"
6782 case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6785 esac
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6788 ac_status=$?
6789 grep -v '^ *+' conftest.er1 >conftest.err
6790 rm -f conftest.er1
6791 cat conftest.err >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6797 ac_cv_header_time=yes
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6802 ac_cv_header_time=no
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6808 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6809 if test $ac_cv_header_time = yes; then
6811 cat >>confdefs.h <<\_ACEOF
6812 #define TIME_WITH_SYS_TIME 1
6813 _ACEOF
6817 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6818 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6819 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 cat >conftest.$ac_ext <<_ACEOF
6823 /* confdefs.h. */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6828 $ac_includes_default
6830 main ()
6832 #ifndef sys_siglist
6833 (void) sys_siglist;
6834 #endif
6837 return 0;
6839 _ACEOF
6840 rm -f conftest.$ac_objext
6841 if { (ac_try="$ac_compile"
6842 case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6845 esac
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_compile") 2>conftest.er1
6848 ac_status=$?
6849 grep -v '^ *+' conftest.er1 >conftest.err
6850 rm -f conftest.er1
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } && {
6854 test -z "$ac_c_werror_flag" ||
6855 test ! -s conftest.err
6856 } && test -s conftest.$ac_objext; then
6857 ac_cv_have_decl_sys_siglist=yes
6858 else
6859 echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6862 ac_cv_have_decl_sys_siglist=no
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6868 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6869 if test $ac_cv_have_decl_sys_siglist = yes; then
6871 cat >>confdefs.h <<_ACEOF
6872 #define HAVE_DECL_SYS_SIGLIST 1
6873 _ACEOF
6876 else
6877 cat >>confdefs.h <<_ACEOF
6878 #define HAVE_DECL_SYS_SIGLIST 0
6879 _ACEOF
6885 if test $ac_cv_have_decl_sys_siglist != yes; then
6886 # For Tru64, at least:
6887 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6888 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6889 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892 cat >conftest.$ac_ext <<_ACEOF
6893 /* confdefs.h. */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6898 $ac_includes_default
6900 main ()
6902 #ifndef __sys_siglist
6903 (void) __sys_siglist;
6904 #endif
6907 return 0;
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (ac_try="$ac_compile"
6912 case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915 esac
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.$ac_objext; then
6927 ac_cv_have_decl___sys_siglist=yes
6928 else
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 ac_cv_have_decl___sys_siglist=no
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6938 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6939 if test $ac_cv_have_decl___sys_siglist = yes; then
6941 cat >>confdefs.h <<_ACEOF
6942 #define HAVE_DECL___SYS_SIGLIST 1
6943 _ACEOF
6946 else
6947 cat >>confdefs.h <<_ACEOF
6948 #define HAVE_DECL___SYS_SIGLIST 0
6949 _ACEOF
6955 if test $ac_cv_have_decl___sys_siglist = yes; then
6957 cat >>confdefs.h <<\_ACEOF
6958 #define sys_siglist __sys_siglist
6959 _ACEOF
6963 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6964 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6965 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <sys/types.h>
6975 #include <sys/wait.h>
6976 #ifndef WEXITSTATUS
6977 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6978 #endif
6979 #ifndef WIFEXITED
6980 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6981 #endif
6984 main ()
6986 int s;
6987 wait (&s);
6988 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6990 return 0;
6992 _ACEOF
6993 rm -f conftest.$ac_objext
6994 if { (ac_try="$ac_compile"
6995 case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998 esac
6999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000 (eval "$ac_compile") 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && {
7007 test -z "$ac_c_werror_flag" ||
7008 test ! -s conftest.err
7009 } && test -s conftest.$ac_objext; then
7010 ac_cv_header_sys_wait_h=yes
7011 else
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7015 ac_cv_header_sys_wait_h=no
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7021 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7022 if test $ac_cv_header_sys_wait_h = yes; then
7024 cat >>confdefs.h <<\_ACEOF
7025 #define HAVE_SYS_WAIT_H 1
7026 _ACEOF
7031 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7032 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7033 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #ifdef TIME_WITH_SYS_TIME
7043 #include <sys/time.h>
7044 #include <time.h>
7045 #else
7046 #ifdef HAVE_SYS_TIME_H
7047 #include <sys/time.h>
7048 #else
7049 #include <time.h>
7050 #endif
7051 #endif
7052 #ifdef HAVE_UTIME_H
7053 #include <utime.h>
7054 #endif
7056 main ()
7058 static struct utimbuf x; x.actime = x.modtime;
7060 return 0;
7062 _ACEOF
7063 rm -f conftest.$ac_objext
7064 if { (ac_try="$ac_compile"
7065 case "(($ac_try" in
7066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7067 *) ac_try_echo=$ac_try;;
7068 esac
7069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7070 (eval "$ac_compile") 2>conftest.er1
7071 ac_status=$?
7072 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -f conftest.er1
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } && {
7077 test -z "$ac_c_werror_flag" ||
7078 test ! -s conftest.err
7079 } && test -s conftest.$ac_objext; then
7080 emacs_cv_struct_utimbuf=yes
7081 else
7082 echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7085 emacs_cv_struct_utimbuf=no
7088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7091 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7092 if test $emacs_cv_struct_utimbuf = yes; then
7094 cat >>confdefs.h <<\_ACEOF
7095 #define HAVE_STRUCT_UTIMBUF 1
7096 _ACEOF
7100 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7101 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7102 if test "${ac_cv_type_signal+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h. */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7111 #include <sys/types.h>
7112 #include <signal.h>
7115 main ()
7117 return *(signal (0, 0)) (0) == 1;
7119 return 0;
7121 _ACEOF
7122 rm -f conftest.$ac_objext
7123 if { (ac_try="$ac_compile"
7124 case "(($ac_try" in
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7127 esac
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 ac_cv_type_signal=int
7140 else
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 ac_cv_type_signal=void
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7150 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7152 cat >>confdefs.h <<_ACEOF
7153 #define RETSIGTYPE $ac_cv_type_signal
7154 _ACEOF
7158 { echo "$as_me:$LINENO: checking for speed_t" >&5
7159 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7160 if test "${emacs_cv_speed_t+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163 cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h. */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 #include <termios.h>
7171 main ()
7173 speed_t x = 1;
7175 return 0;
7177 _ACEOF
7178 rm -f conftest.$ac_objext
7179 if { (ac_try="$ac_compile"
7180 case "(($ac_try" in
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7183 esac
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_compile") 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && {
7192 test -z "$ac_c_werror_flag" ||
7193 test ! -s conftest.err
7194 } && test -s conftest.$ac_objext; then
7195 emacs_cv_speed_t=yes
7196 else
7197 echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7200 emacs_cv_speed_t=no
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7206 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7207 if test $emacs_cv_speed_t = yes; then
7209 cat >>confdefs.h <<\_ACEOF
7210 #define HAVE_SPEED_T 1
7211 _ACEOF
7215 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7216 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7217 if test "${emacs_cv_struct_timeval+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h. */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 #ifdef TIME_WITH_SYS_TIME
7227 #include <sys/time.h>
7228 #include <time.h>
7229 #else
7230 #ifdef HAVE_SYS_TIME_H
7231 #include <sys/time.h>
7232 #else
7233 #include <time.h>
7234 #endif
7235 #endif
7237 main ()
7239 static struct timeval x; x.tv_sec = x.tv_usec;
7241 return 0;
7243 _ACEOF
7244 rm -f conftest.$ac_objext
7245 if { (ac_try="$ac_compile"
7246 case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7249 esac
7250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_compile") 2>conftest.er1
7252 ac_status=$?
7253 grep -v '^ *+' conftest.er1 >conftest.err
7254 rm -f conftest.er1
7255 cat conftest.err >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } && {
7258 test -z "$ac_c_werror_flag" ||
7259 test ! -s conftest.err
7260 } && test -s conftest.$ac_objext; then
7261 emacs_cv_struct_timeval=yes
7262 else
7263 echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7266 emacs_cv_struct_timeval=no
7269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7272 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7273 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7274 if test $emacs_cv_struct_timeval = yes; then
7276 cat >>confdefs.h <<\_ACEOF
7277 #define HAVE_TIMEVAL 1
7278 _ACEOF
7282 { echo "$as_me:$LINENO: checking for struct exception" >&5
7283 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7284 if test "${emacs_cv_struct_exception+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287 cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h. */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 #include <math.h>
7295 main ()
7297 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7299 return 0;
7301 _ACEOF
7302 rm -f conftest.$ac_objext
7303 if { (ac_try="$ac_compile"
7304 case "(($ac_try" in
7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306 *) ac_try_echo=$ac_try;;
7307 esac
7308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309 (eval "$ac_compile") 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest.$ac_objext; then
7319 emacs_cv_struct_exception=yes
7320 else
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7324 emacs_cv_struct_exception=no
7327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7330 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7331 HAVE_EXCEPTION=$emacs_cv_struct_exception
7332 if test $emacs_cv_struct_exception != yes; then
7334 cat >>confdefs.h <<\_ACEOF
7335 #define NO_MATHERR 1
7336 _ACEOF
7341 for ac_header in sys/socket.h
7343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 ac_res=`eval echo '${'$as_ac_Header'}'`
7351 { echo "$as_me:$LINENO: result: $ac_res" >&5
7352 echo "${ECHO_T}$ac_res" >&6; }
7353 else
7354 # Is the header compilable?
7355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
7364 #include <$ac_header>
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7368 case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371 esac
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 ac_header_compiler=yes
7384 else
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_header_compiler=no
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7393 echo "${ECHO_T}$ac_header_compiler" >&6; }
7395 # Is the header present?
7396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 #include <$ac_header>
7405 _ACEOF
7406 if { (ac_try="$ac_cpp conftest.$ac_ext"
7407 case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } >/dev/null && {
7419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 }; then
7422 ac_header_preproc=yes
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 ac_header_preproc=no
7430 rm -f conftest.err conftest.$ac_ext
7431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7432 echo "${ECHO_T}$ac_header_preproc" >&6; }
7434 # So? What about this header?
7435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7436 yes:no: )
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7441 ac_header_preproc=yes
7443 no:yes:* )
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7458 esac
7459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464 eval "$as_ac_Header=\$ac_header_preproc"
7466 ac_res=`eval echo '${'$as_ac_Header'}'`
7467 { echo "$as_me:$LINENO: result: $ac_res" >&5
7468 echo "${ECHO_T}$ac_res" >&6; }
7471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7472 cat >>confdefs.h <<_ACEOF
7473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7474 _ACEOF
7478 done
7481 for ac_header in net/if.h
7483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489 cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h. */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 $ac_includes_default
7496 #if HAVE_SYS_SOCKET_H
7497 #include <sys/socket.h>
7498 #endif
7500 #include <$ac_header>
7501 _ACEOF
7502 rm -f conftest.$ac_objext
7503 if { (ac_try="$ac_compile"
7504 case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7507 esac
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7519 eval "$as_ac_Header=yes"
7520 else
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7524 eval "$as_ac_Header=no"
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 ac_res=`eval echo '${'$as_ac_Header'}'`
7530 { echo "$as_me:$LINENO: result: $ac_res" >&5
7531 echo "${ECHO_T}$ac_res" >&6; }
7532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7533 cat >>confdefs.h <<_ACEOF
7534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7535 _ACEOF
7539 done
7542 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7543 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7544 if test "${ac_cv_struct_tm+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547 cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h. */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 #include <sys/types.h>
7554 #include <time.h>
7557 main ()
7559 struct tm tm;
7560 int *p = &tm.tm_sec;
7561 return !p;
7563 return 0;
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7568 case "(($ac_try" in
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7571 esac
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_compile") 2>conftest.er1
7574 ac_status=$?
7575 grep -v '^ *+' conftest.er1 >conftest.err
7576 rm -f conftest.er1
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && {
7580 test -z "$ac_c_werror_flag" ||
7581 test ! -s conftest.err
7582 } && test -s conftest.$ac_objext; then
7583 ac_cv_struct_tm=time.h
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_cv_struct_tm=sys/time.h
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7594 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7595 if test $ac_cv_struct_tm = sys/time.h; then
7597 cat >>confdefs.h <<\_ACEOF
7598 #define TM_IN_SYS_TIME 1
7599 _ACEOF
7603 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7604 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7605 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608 cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h. */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 #include <sys/types.h>
7615 #include <$ac_cv_struct_tm>
7619 main ()
7621 static struct tm ac_aggr;
7622 if (ac_aggr.tm_zone)
7623 return 0;
7625 return 0;
7627 _ACEOF
7628 rm -f conftest.$ac_objext
7629 if { (ac_try="$ac_compile"
7630 case "(($ac_try" in
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7633 esac
7634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635 (eval "$ac_compile") 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && {
7642 test -z "$ac_c_werror_flag" ||
7643 test ! -s conftest.err
7644 } && test -s conftest.$ac_objext; then
7645 ac_cv_member_struct_tm_tm_zone=yes
7646 else
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h. */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7656 #include <sys/types.h>
7657 #include <$ac_cv_struct_tm>
7661 main ()
7663 static struct tm ac_aggr;
7664 if (sizeof ac_aggr.tm_zone)
7665 return 0;
7667 return 0;
7669 _ACEOF
7670 rm -f conftest.$ac_objext
7671 if { (ac_try="$ac_compile"
7672 case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675 esac
7676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677 (eval "$ac_compile") 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } && {
7684 test -z "$ac_c_werror_flag" ||
7685 test ! -s conftest.err
7686 } && test -s conftest.$ac_objext; then
7687 ac_cv_member_struct_tm_tm_zone=yes
7688 else
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7692 ac_cv_member_struct_tm_tm_zone=no
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7701 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7702 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7704 cat >>confdefs.h <<_ACEOF
7705 #define HAVE_STRUCT_TM_TM_ZONE 1
7706 _ACEOF
7711 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7713 cat >>confdefs.h <<\_ACEOF
7714 #define HAVE_TM_ZONE 1
7715 _ACEOF
7717 else
7718 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7719 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7720 if test "${ac_cv_have_decl_tzname+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h. */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 #include <time.h>
7732 main ()
7734 #ifndef tzname
7735 (void) tzname;
7736 #endif
7739 return 0;
7741 _ACEOF
7742 rm -f conftest.$ac_objext
7743 if { (ac_try="$ac_compile"
7744 case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7747 esac
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_compile") 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } && {
7756 test -z "$ac_c_werror_flag" ||
7757 test ! -s conftest.err
7758 } && test -s conftest.$ac_objext; then
7759 ac_cv_have_decl_tzname=yes
7760 else
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7764 ac_cv_have_decl_tzname=no
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7770 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7771 if test $ac_cv_have_decl_tzname = yes; then
7773 cat >>confdefs.h <<_ACEOF
7774 #define HAVE_DECL_TZNAME 1
7775 _ACEOF
7778 else
7779 cat >>confdefs.h <<_ACEOF
7780 #define HAVE_DECL_TZNAME 0
7781 _ACEOF
7787 { echo "$as_me:$LINENO: checking for tzname" >&5
7788 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7789 if test "${ac_cv_var_tzname+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 cat >conftest.$ac_ext <<_ACEOF
7793 /* confdefs.h. */
7794 _ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 #include <time.h>
7799 #if !HAVE_DECL_TZNAME
7800 extern char *tzname[];
7801 #endif
7804 main ()
7806 return tzname[0][0];
7808 return 0;
7810 _ACEOF
7811 rm -f conftest.$ac_objext conftest$ac_exeext
7812 if { (ac_try="$ac_link"
7813 case "(($ac_try" in
7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815 *) ac_try_echo=$ac_try;;
7816 esac
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_link") 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } && {
7825 test -z "$ac_c_werror_flag" ||
7826 test ! -s conftest.err
7827 } && test -s conftest$ac_exeext &&
7828 $as_test_x conftest$ac_exeext; then
7829 ac_cv_var_tzname=yes
7830 else
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7834 ac_cv_var_tzname=no
7837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7838 conftest$ac_exeext conftest.$ac_ext
7840 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7841 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7842 if test $ac_cv_var_tzname = yes; then
7844 cat >>confdefs.h <<\_ACEOF
7845 #define HAVE_TZNAME 1
7846 _ACEOF
7851 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7852 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7853 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856 cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h. */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 #include <time.h>
7865 main ()
7867 static struct tm ac_aggr;
7868 if (ac_aggr.tm_gmtoff)
7869 return 0;
7871 return 0;
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (ac_try="$ac_compile"
7876 case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879 esac
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7891 ac_cv_member_struct_tm_tm_gmtoff=yes
7892 else
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h. */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902 #include <time.h>
7905 main ()
7907 static struct tm ac_aggr;
7908 if (sizeof ac_aggr.tm_gmtoff)
7909 return 0;
7911 return 0;
7913 _ACEOF
7914 rm -f conftest.$ac_objext
7915 if { (ac_try="$ac_compile"
7916 case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_compile") 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && {
7928 test -z "$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 } && test -s conftest.$ac_objext; then
7931 ac_cv_member_struct_tm_tm_gmtoff=yes
7932 else
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 ac_cv_member_struct_tm_tm_gmtoff=no
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7945 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7946 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_TM_GMTOFF 1
7950 _ACEOF
7954 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7955 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7956 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959 cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h. */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 $ac_includes_default
7966 #if HAVE_SYS_SOCKET_H
7967 #include <sys/socket.h>
7968 #endif
7969 #if HAVE_NET_IF_H
7970 #include <net/if.h>
7971 #endif
7974 main ()
7976 static struct ifreq ac_aggr;
7977 if (ac_aggr.ifr_flags)
7978 return 0;
7980 return 0;
7982 _ACEOF
7983 rm -f conftest.$ac_objext
7984 if { (ac_try="$ac_compile"
7985 case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_compile") 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && {
7997 test -z "$ac_c_werror_flag" ||
7998 test ! -s conftest.err
7999 } && test -s conftest.$ac_objext; then
8000 ac_cv_member_struct_ifreq_ifr_flags=yes
8001 else
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8005 cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h. */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 $ac_includes_default
8012 #if HAVE_SYS_SOCKET_H
8013 #include <sys/socket.h>
8014 #endif
8015 #if HAVE_NET_IF_H
8016 #include <net/if.h>
8017 #endif
8020 main ()
8022 static struct ifreq ac_aggr;
8023 if (sizeof ac_aggr.ifr_flags)
8024 return 0;
8026 return 0;
8028 _ACEOF
8029 rm -f conftest.$ac_objext
8030 if { (ac_try="$ac_compile"
8031 case "(($ac_try" in
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8034 esac
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_compile") 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest.$ac_objext; then
8046 ac_cv_member_struct_ifreq_ifr_flags=yes
8047 else
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 ac_cv_member_struct_ifreq_ifr_flags=no
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8060 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8061 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8063 cat >>confdefs.h <<_ACEOF
8064 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8065 _ACEOF
8069 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8070 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8071 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080 $ac_includes_default
8081 #if HAVE_SYS_SOCKET_H
8082 #include <sys/socket.h>
8083 #endif
8084 #if HAVE_NET_IF_H
8085 #include <net/if.h>
8086 #endif
8089 main ()
8091 static struct ifreq ac_aggr;
8092 if (ac_aggr.ifr_hwaddr)
8093 return 0;
8095 return 0;
8097 _ACEOF
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8100 case "(($ac_try" in
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8103 esac
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8106 ac_status=$?
8107 grep -v '^ *+' conftest.er1 >conftest.err
8108 rm -f conftest.er1
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } && {
8112 test -z "$ac_c_werror_flag" ||
8113 test ! -s conftest.err
8114 } && test -s conftest.$ac_objext; then
8115 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8116 else
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h. */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 $ac_includes_default
8127 #if HAVE_SYS_SOCKET_H
8128 #include <sys/socket.h>
8129 #endif
8130 #if HAVE_NET_IF_H
8131 #include <net/if.h>
8132 #endif
8135 main ()
8137 static struct ifreq ac_aggr;
8138 if (sizeof ac_aggr.ifr_hwaddr)
8139 return 0;
8141 return 0;
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8146 case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149 esac
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8161 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8162 else
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8175 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8176 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8178 cat >>confdefs.h <<_ACEOF
8179 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8180 _ACEOF
8184 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8185 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8186 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 else
8189 cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h. */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 $ac_includes_default
8196 #if HAVE_SYS_SOCKET_H
8197 #include <sys/socket.h>
8198 #endif
8199 #if HAVE_NET_IF_H
8200 #include <net/if.h>
8201 #endif
8204 main ()
8206 static struct ifreq ac_aggr;
8207 if (ac_aggr.ifr_netmask)
8208 return 0;
8210 return 0;
8212 _ACEOF
8213 rm -f conftest.$ac_objext
8214 if { (ac_try="$ac_compile"
8215 case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_compile") 2>conftest.er1
8221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } && {
8227 test -z "$ac_c_werror_flag" ||
8228 test ! -s conftest.err
8229 } && test -s conftest.$ac_objext; then
8230 ac_cv_member_struct_ifreq_ifr_netmask=yes
8231 else
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8235 cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h. */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 $ac_includes_default
8242 #if HAVE_SYS_SOCKET_H
8243 #include <sys/socket.h>
8244 #endif
8245 #if HAVE_NET_IF_H
8246 #include <net/if.h>
8247 #endif
8250 main ()
8252 static struct ifreq ac_aggr;
8253 if (sizeof ac_aggr.ifr_netmask)
8254 return 0;
8256 return 0;
8258 _ACEOF
8259 rm -f conftest.$ac_objext
8260 if { (ac_try="$ac_compile"
8261 case "(($ac_try" in
8262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8263 *) ac_try_echo=$ac_try;;
8264 esac
8265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266 (eval "$ac_compile") 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && {
8273 test -z "$ac_c_werror_flag" ||
8274 test ! -s conftest.err
8275 } && test -s conftest.$ac_objext; then
8276 ac_cv_member_struct_ifreq_ifr_netmask=yes
8277 else
8278 echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8281 ac_cv_member_struct_ifreq_ifr_netmask=no
8284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8290 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8291 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8293 cat >>confdefs.h <<_ACEOF
8294 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8295 _ACEOF
8299 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8300 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8301 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304 cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h. */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 $ac_includes_default
8311 #if HAVE_SYS_SOCKET_H
8312 #include <sys/socket.h>
8313 #endif
8314 #if HAVE_NET_IF_H
8315 #include <net/if.h>
8316 #endif
8319 main ()
8321 static struct ifreq ac_aggr;
8322 if (ac_aggr.ifr_broadaddr)
8323 return 0;
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext
8329 if { (ac_try="$ac_compile"
8330 case "(($ac_try" in
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8333 esac
8334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335 (eval "$ac_compile") 2>conftest.er1
8336 ac_status=$?
8337 grep -v '^ *+' conftest.er1 >conftest.err
8338 rm -f conftest.er1
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } && {
8342 test -z "$ac_c_werror_flag" ||
8343 test ! -s conftest.err
8344 } && test -s conftest.$ac_objext; then
8345 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8346 else
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8350 cat >conftest.$ac_ext <<_ACEOF
8351 /* confdefs.h. */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 $ac_includes_default
8357 #if HAVE_SYS_SOCKET_H
8358 #include <sys/socket.h>
8359 #endif
8360 #if HAVE_NET_IF_H
8361 #include <net/if.h>
8362 #endif
8365 main ()
8367 static struct ifreq ac_aggr;
8368 if (sizeof ac_aggr.ifr_broadaddr)
8369 return 0;
8371 return 0;
8373 _ACEOF
8374 rm -f conftest.$ac_objext
8375 if { (ac_try="$ac_compile"
8376 case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8379 esac
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_compile") 2>conftest.er1
8382 ac_status=$?
8383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } && {
8388 test -z "$ac_c_werror_flag" ||
8389 test ! -s conftest.err
8390 } && test -s conftest.$ac_objext; then
8391 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8392 else
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8405 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8406 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8408 cat >>confdefs.h <<_ACEOF
8409 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8410 _ACEOF
8414 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8415 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8416 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h. */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8426 #if HAVE_SYS_SOCKET_H
8427 #include <sys/socket.h>
8428 #endif
8429 #if HAVE_NET_IF_H
8430 #include <net/if.h>
8431 #endif
8434 main ()
8436 static struct ifreq ac_aggr;
8437 if (ac_aggr.ifr_addr)
8438 return 0;
8440 return 0;
8442 _ACEOF
8443 rm -f conftest.$ac_objext
8444 if { (ac_try="$ac_compile"
8445 case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8448 esac
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_compile") 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } && {
8457 test -z "$ac_c_werror_flag" ||
8458 test ! -s conftest.err
8459 } && test -s conftest.$ac_objext; then
8460 ac_cv_member_struct_ifreq_ifr_addr=yes
8461 else
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h. */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 $ac_includes_default
8472 #if HAVE_SYS_SOCKET_H
8473 #include <sys/socket.h>
8474 #endif
8475 #if HAVE_NET_IF_H
8476 #include <net/if.h>
8477 #endif
8480 main ()
8482 static struct ifreq ac_aggr;
8483 if (sizeof ac_aggr.ifr_addr)
8484 return 0;
8486 return 0;
8488 _ACEOF
8489 rm -f conftest.$ac_objext
8490 if { (ac_try="$ac_compile"
8491 case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_compile") 2>conftest.er1
8497 ac_status=$?
8498 grep -v '^ *+' conftest.er1 >conftest.err
8499 rm -f conftest.er1
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && {
8503 test -z "$ac_c_werror_flag" ||
8504 test ! -s conftest.err
8505 } && test -s conftest.$ac_objext; then
8506 ac_cv_member_struct_ifreq_ifr_addr=yes
8507 else
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 ac_cv_member_struct_ifreq_ifr_addr=no
8514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8520 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8521 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8523 cat >>confdefs.h <<_ACEOF
8524 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8525 _ACEOF
8532 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8533 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8534 if test "$ac_cv_prog_cc_c89" != no; then
8535 { echo "$as_me:$LINENO: result: yes" >&5
8536 echo "${ECHO_T}yes" >&6; }
8538 cat >>confdefs.h <<\_ACEOF
8539 #define PROTOTYPES 1
8540 _ACEOF
8543 cat >>confdefs.h <<\_ACEOF
8544 #define __PROTOTYPES 1
8545 _ACEOF
8547 else
8548 { echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6; }
8552 { echo "$as_me:$LINENO: checking for working volatile" >&5
8553 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8554 if test "${ac_cv_c_volatile+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h. */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8565 main ()
8568 volatile int x;
8569 int * volatile y = (int *) 0;
8570 return !x && !y;
8572 return 0;
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8583 ac_status=$?
8584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.$ac_objext; then
8592 ac_cv_c_volatile=yes
8593 else
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 ac_cv_c_volatile=no
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8603 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8604 if test $ac_cv_c_volatile = no; then
8606 cat >>confdefs.h <<\_ACEOF
8607 #define volatile
8608 _ACEOF
8612 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8613 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8614 if test "${ac_cv_c_const+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617 cat >conftest.$ac_ext <<_ACEOF
8618 /* confdefs.h. */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8625 main ()
8627 /* FIXME: Include the comments suggested by Paul. */
8628 #ifndef __cplusplus
8629 /* Ultrix mips cc rejects this. */
8630 typedef int charset[2];
8631 const charset cs;
8632 /* SunOS 4.1.1 cc rejects this. */
8633 char const *const *pcpcc;
8634 char **ppc;
8635 /* NEC SVR4.0.2 mips cc rejects this. */
8636 struct point {int x, y;};
8637 static struct point const zero = {0,0};
8638 /* AIX XL C 1.02.0.0 rejects this.
8639 It does not let you subtract one const X* pointer from another in
8640 an arm of an if-expression whose if-part is not a constant
8641 expression */
8642 const char *g = "string";
8643 pcpcc = &g + (g ? g-g : 0);
8644 /* HPUX 7.0 cc rejects these. */
8645 ++pcpcc;
8646 ppc = (char**) pcpcc;
8647 pcpcc = (char const *const *) ppc;
8648 { /* SCO 3.2v4 cc rejects this. */
8649 char *t;
8650 char const *s = 0 ? (char *) 0 : (char const *) 0;
8652 *t++ = 0;
8653 if (s) return 0;
8655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8656 int x[] = {25, 17};
8657 const int *foo = &x[0];
8658 ++foo;
8660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8661 typedef const int *iptr;
8662 iptr p = 0;
8663 ++p;
8665 { /* AIX XL C 1.02.0.0 rejects this saying
8666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8667 struct s { int j; const int *ap[3]; };
8668 struct s *b; b->j = 5;
8670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8671 const int foo = 10;
8672 if (!foo) return 0;
8674 return !cs[0] && !zero.x;
8675 #endif
8678 return 0;
8680 _ACEOF
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8683 case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686 esac
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_compile") 2>conftest.er1
8689 ac_status=$?
8690 grep -v '^ *+' conftest.er1 >conftest.err
8691 rm -f conftest.er1
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } && {
8695 test -z "$ac_c_werror_flag" ||
8696 test ! -s conftest.err
8697 } && test -s conftest.$ac_objext; then
8698 ac_cv_c_const=yes
8699 else
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8703 ac_cv_c_const=no
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8709 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8710 if test $ac_cv_c_const = no; then
8712 cat >>confdefs.h <<\_ACEOF
8713 #define const
8714 _ACEOF
8718 { echo "$as_me:$LINENO: checking for void * support" >&5
8719 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8720 if test "${emacs_cv_void_star+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8731 main ()
8733 void * foo;
8735 return 0;
8737 _ACEOF
8738 rm -f conftest.$ac_objext
8739 if { (ac_try="$ac_compile"
8740 case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743 esac
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_compile") 2>conftest.er1
8746 ac_status=$?
8747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } && {
8752 test -z "$ac_c_werror_flag" ||
8753 test ! -s conftest.err
8754 } && test -s conftest.$ac_objext; then
8755 emacs_cv_void_star=yes
8756 else
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 emacs_cv_void_star=no
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8766 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8767 if test $emacs_cv_void_star = yes; then
8768 cat >>confdefs.h <<\_ACEOF
8769 #define POINTER_TYPE void
8770 _ACEOF
8772 else
8773 cat >>confdefs.h <<\_ACEOF
8774 #define POINTER_TYPE char
8775 _ACEOF
8783 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8784 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8785 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8786 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789 cat >conftest.make <<\_ACEOF
8790 SHELL = /bin/sh
8791 all:
8792 @echo '@@@%%%=$(MAKE)=@@@%%%'
8793 _ACEOF
8794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8795 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8796 *@@@%%%=?*=@@@%%%*)
8797 eval ac_cv_prog_make_${ac_make}_set=yes;;
8799 eval ac_cv_prog_make_${ac_make}_set=no;;
8800 esac
8801 rm -f conftest.make
8803 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8804 { echo "$as_me:$LINENO: result: yes" >&5
8805 echo "${ECHO_T}yes" >&6; }
8806 SET_MAKE=
8807 else
8808 { echo "$as_me:$LINENO: result: no" >&5
8809 echo "${ECHO_T}no" >&6; }
8810 SET_MAKE="MAKE=${MAKE-make}"
8814 { echo "$as_me:$LINENO: checking for long file names" >&5
8815 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8816 if test "${ac_cv_sys_long_file_names+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819 ac_cv_sys_long_file_names=yes
8820 # Test for long file names in all the places we know might matter:
8821 # . the current directory, where building will happen
8822 # $prefix/lib where we will be installing things
8823 # $exec_prefix/lib likewise
8824 # $TMPDIR if set, where it might want to write temporary files
8825 # /tmp where it might want to write temporary files
8826 # /var/tmp likewise
8827 # /usr/tmp likewise
8828 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8829 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8830 # in the usual case where exec_prefix is '${prefix}'.
8831 case $ac_dir in #(
8832 . | /* | ?:[\\/]*) ;; #(
8833 *) continue;;
8834 esac
8835 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8836 ac_xdir=$ac_dir/cf$$
8837 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8838 ac_tf1=$ac_xdir/conftest9012345
8839 ac_tf2=$ac_xdir/conftest9012346
8840 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8841 ac_cv_sys_long_file_names=no
8842 rm -f -r "$ac_xdir" 2>/dev/null
8843 test $ac_cv_sys_long_file_names = no && break
8844 done
8846 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8847 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8848 if test $ac_cv_sys_long_file_names = yes; then
8850 cat >>confdefs.h <<\_ACEOF
8851 #define HAVE_LONG_FILE_NAMES 1
8852 _ACEOF
8857 #### Choose a window system.
8859 { echo "$as_me:$LINENO: checking for X" >&5
8860 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8863 # Check whether --with-x was given.
8864 if test "${with_x+set}" = set; then
8865 withval=$with_x;
8868 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8869 if test "x$with_x" = xno; then
8870 # The user explicitly disabled X.
8871 have_x=disabled
8872 else
8873 case $x_includes,$x_libraries in #(
8874 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8875 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8876 { (exit 1); exit 1; }; };; #(
8877 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880 # One or both of the vars are not set, and there is no cached value.
8881 ac_x_includes=no ac_x_libraries=no
8882 rm -f -r conftest.dir
8883 if mkdir conftest.dir; then
8884 cd conftest.dir
8885 cat >Imakefile <<'_ACEOF'
8886 incroot:
8887 @echo incroot='${INCROOT}'
8888 usrlibdir:
8889 @echo usrlibdir='${USRLIBDIR}'
8890 libdir:
8891 @echo libdir='${LIBDIR}'
8892 _ACEOF
8893 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8894 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8895 for ac_var in incroot usrlibdir libdir; do
8896 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8897 done
8898 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8899 for ac_extension in a so sl; do
8900 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8901 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8902 ac_im_usrlibdir=$ac_im_libdir; break
8904 done
8905 # Screen out bogus values from the imake configuration. They are
8906 # bogus both because they are the default anyway, and because
8907 # using them would break gcc on systems where it needs fixed includes.
8908 case $ac_im_incroot in
8909 /usr/include) ac_x_includes= ;;
8910 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8911 esac
8912 case $ac_im_usrlibdir in
8913 /usr/lib | /lib) ;;
8914 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8915 esac
8917 cd ..
8918 rm -f -r conftest.dir
8921 # Standard set of common directories for X headers.
8922 # Check X11 before X11Rn because it is often a symlink to the current release.
8923 ac_x_header_dirs='
8924 /usr/X11/include
8925 /usr/X11R6/include
8926 /usr/X11R5/include
8927 /usr/X11R4/include
8929 /usr/include/X11
8930 /usr/include/X11R6
8931 /usr/include/X11R5
8932 /usr/include/X11R4
8934 /usr/local/X11/include
8935 /usr/local/X11R6/include
8936 /usr/local/X11R5/include
8937 /usr/local/X11R4/include
8939 /usr/local/include/X11
8940 /usr/local/include/X11R6
8941 /usr/local/include/X11R5
8942 /usr/local/include/X11R4
8944 /usr/X386/include
8945 /usr/x386/include
8946 /usr/XFree86/include/X11
8948 /usr/include
8949 /usr/local/include
8950 /usr/unsupported/include
8951 /usr/athena/include
8952 /usr/local/x11r5/include
8953 /usr/lpp/Xamples/include
8955 /usr/openwin/include
8956 /usr/openwin/share/include'
8958 if test "$ac_x_includes" = no; then
8959 # Guess where to find include files, by looking for Xlib.h.
8960 # First, try using that file with no special directory specified.
8961 cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h. */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 #include <X11/Xlib.h>
8968 _ACEOF
8969 if { (ac_try="$ac_cpp conftest.$ac_ext"
8970 case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } >/dev/null && {
8982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8983 test ! -s conftest.err
8984 }; then
8985 # We can compile using X headers with no special include directory.
8986 ac_x_includes=
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 for ac_dir in $ac_x_header_dirs; do
8992 if test -r "$ac_dir/X11/Xlib.h"; then
8993 ac_x_includes=$ac_dir
8994 break
8996 done
8999 rm -f conftest.err conftest.$ac_ext
9000 fi # $ac_x_includes = no
9002 if test "$ac_x_libraries" = no; then
9003 # Check for the libraries.
9004 # See if we find them without any special options.
9005 # Don't add to $LIBS permanently.
9006 ac_save_LIBS=$LIBS
9007 LIBS="-lX11 $LIBS"
9008 cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h. */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 #include <X11/Xlib.h>
9016 main ()
9018 XrmInitialize ()
9020 return 0;
9022 _ACEOF
9023 rm -f conftest.$ac_objext conftest$ac_exeext
9024 if { (ac_try="$ac_link"
9025 case "(($ac_try" in
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9028 esac
9029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_link") 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 } && test -s conftest$ac_exeext &&
9040 $as_test_x conftest$ac_exeext; then
9041 LIBS=$ac_save_LIBS
9042 # We can link X programs with no special library path.
9043 ac_x_libraries=
9044 else
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9048 LIBS=$ac_save_LIBS
9049 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9051 # Don't even attempt the hair of trying to link an X program!
9052 for ac_extension in a so sl; do
9053 if test -r "$ac_dir/libX11.$ac_extension"; then
9054 ac_x_libraries=$ac_dir
9055 break 2
9057 done
9058 done
9061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9062 conftest$ac_exeext conftest.$ac_ext
9063 fi # $ac_x_libraries = no
9065 case $ac_x_includes,$ac_x_libraries in #(
9066 no,* | *,no | *\'*)
9067 # Didn't find X, or a directory has "'" in its name.
9068 ac_cv_have_x="have_x=no";; #(
9070 # Record where we found X for the cache.
9071 ac_cv_have_x="have_x=yes\
9072 ac_x_includes='$ac_x_includes'\
9073 ac_x_libraries='$ac_x_libraries'"
9074 esac
9076 ;; #(
9077 *) have_x=yes;;
9078 esac
9079 eval "$ac_cv_have_x"
9080 fi # $with_x != no
9082 if test "$have_x" != yes; then
9083 { echo "$as_me:$LINENO: result: $have_x" >&5
9084 echo "${ECHO_T}$have_x" >&6; }
9085 no_x=yes
9086 else
9087 # If each of the values was on the command line, it overrides each guess.
9088 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9089 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9090 # Update the cache value to reflect the command line values.
9091 ac_cv_have_x="have_x=yes\
9092 ac_x_includes='$x_includes'\
9093 ac_x_libraries='$x_libraries'"
9094 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9095 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9098 if test "$no_x" = yes; then
9099 window_system=none
9100 else
9101 window_system=x11
9104 ## Workaround for bug in autoconf <= 2.62.
9105 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9106 ## No need to do anything special for these standard directories.
9107 ## This is an experiment, take it out if it causes problems.
9108 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9110 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9114 if test "${x_libraries}" != NONE; then
9115 if test -n "${x_libraries}"; then
9116 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9117 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9119 x_default_search_path=""
9120 x_search_path=${x_libraries}
9121 if test -z "${x_search_path}"; then
9122 x_search_path=/usr/lib
9124 for x_library in `echo ${x_search_path}: | \
9125 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9126 x_search_path="\
9127 ${x_library}/X11/%L/%T/%N%C%S:\
9128 ${x_library}/X11/%l/%T/%N%C%S:\
9129 ${x_library}/X11/%T/%N%C%S:\
9130 ${x_library}/X11/%L/%T/%N%S:\
9131 ${x_library}/X11/%l/%T/%N%S:\
9132 ${x_library}/X11/%T/%N%S"
9133 if test x"${x_default_search_path}" = x; then
9134 x_default_search_path=${x_search_path}
9135 else
9136 x_default_search_path="${x_search_path}:${x_default_search_path}"
9138 done
9140 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9141 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9144 if test x"${x_includes}" = x; then
9145 bitmapdir=/usr/include/X11/bitmaps
9146 else
9147 # accumulate include directories that have X11 bitmap subdirectories
9148 bmd_acc="dummyval"
9149 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9150 if test -d "${bmd}/X11/bitmaps"; then
9151 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9153 if test -d "${bmd}/bitmaps"; then
9154 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9156 done
9157 if test ${bmd_acc} != "dummyval"; then
9158 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9162 HAVE_CARBON=no
9163 if test "${with_carbon}" != no; then
9164 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9165 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9166 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9167 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9171 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9172 else
9173 # Is the header compilable?
9174 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9175 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h. */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9183 #include <Carbon/Carbon.h>
9184 _ACEOF
9185 rm -f conftest.$ac_objext
9186 if { (ac_try="$ac_compile"
9187 case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_compile") 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } && {
9199 test -z "$ac_c_werror_flag" ||
9200 test ! -s conftest.err
9201 } && test -s conftest.$ac_objext; then
9202 ac_header_compiler=yes
9203 else
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9207 ac_header_compiler=no
9210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9212 echo "${ECHO_T}$ac_header_compiler" >&6; }
9214 # Is the header present?
9215 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9216 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9217 cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h. */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 #include <Carbon/Carbon.h>
9224 _ACEOF
9225 if { (ac_try="$ac_cpp conftest.$ac_ext"
9226 case "(($ac_try" in
9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9229 esac
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9232 ac_status=$?
9233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } >/dev/null && {
9238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 }; then
9241 ac_header_preproc=yes
9242 else
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9246 ac_header_preproc=no
9249 rm -f conftest.err conftest.$ac_ext
9250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9251 echo "${ECHO_T}$ac_header_preproc" >&6; }
9253 # So? What about this header?
9254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9255 yes:no: )
9256 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9257 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9259 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9260 ac_header_preproc=yes
9262 no:yes:* )
9263 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9264 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9266 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9268 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9270 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9271 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9272 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9273 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9274 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9277 esac
9278 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9279 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9280 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9285 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9286 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9289 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9290 HAVE_CARBON=yes
9295 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9296 if test "${with_carbon+set}" != set \
9297 && test "${carbon_appdir_x+set}" != set; then
9298 for var in with_x with_x_toolkit with_xim \
9299 with_xpm with_jpeg with_tiff with_gif with_png; do
9300 if eval test \"\${$var+set}\" = set; then
9301 HAVE_CARBON=no
9302 break
9304 done
9307 if test "${HAVE_CARBON}" = yes; then
9308 window_system=mac
9311 case "${window_system}" in
9312 x11 )
9313 HAVE_X_WINDOWS=yes
9314 HAVE_X11=yes
9315 case "${with_x_toolkit}" in
9316 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9317 motif ) USE_X_TOOLKIT=MOTIF ;;
9318 gtk ) with_gtk=yes
9319 USE_X_TOOLKIT=none ;;
9320 no ) USE_X_TOOLKIT=none ;;
9321 * ) USE_X_TOOLKIT=maybe ;;
9322 esac
9324 mac | none )
9325 HAVE_X_WINDOWS=no
9326 HAVE_X11=no
9327 USE_X_TOOLKIT=none
9329 esac
9331 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9332 # Extract the first word of "X", so it can be a program name with args.
9333 set dummy X; ac_word=$2
9334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9336 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339 if test -n "$HAVE_XSERVER"; then
9340 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9341 else
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_prog_HAVE_XSERVER="true"
9350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9353 done
9354 done
9355 IFS=$as_save_IFS
9357 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9360 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9361 if test -n "$HAVE_XSERVER"; then
9362 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9363 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9364 else
9365 { echo "$as_me:$LINENO: result: no" >&5
9366 echo "${ECHO_T}no" >&6; }
9370 if test "$HAVE_XSERVER" = true ||
9371 test -n "$DISPLAY" ||
9372 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9373 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9374 were found. You should install the relevant development files for X
9375 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9376 sure you have development files for image handling, i.e.
9377 tiff, gif, jpeg, png and xpm.
9378 If you are sure you want Emacs compiled without X window support, pass
9379 --without-x
9380 to configure." >&5
9381 echo "$as_me: error: You seem to be running X, but no X development libraries
9382 were found. You should install the relevant development files for X
9383 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9384 sure you have development files for image handling, i.e.
9385 tiff, gif, jpeg, png and xpm.
9386 If you are sure you want Emacs compiled without X window support, pass
9387 --without-x
9388 to configure." >&2;}
9389 { (exit 1); exit 1; }; }
9393 ### If we're using X11, we should use the X menu package.
9394 HAVE_MENUS=no
9395 case ${HAVE_X11} in
9396 yes ) HAVE_MENUS=yes ;;
9397 esac
9399 ### Compute the unexec source name from the object name.
9400 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9402 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9403 # Assume not, until told otherwise.
9404 GNU_MALLOC=yes
9405 doug_lea_malloc=yes
9406 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9407 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9408 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411 cat >conftest.$ac_ext <<_ACEOF
9412 /* confdefs.h. */
9413 _ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9419 #define malloc_get_state innocuous_malloc_get_state
9421 /* System header to define __stub macros and hopefully few prototypes,
9422 which can conflict with char malloc_get_state (); below.
9423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9424 <limits.h> exists even on freestanding compilers. */
9426 #ifdef __STDC__
9427 # include <limits.h>
9428 #else
9429 # include <assert.h>
9430 #endif
9432 #undef malloc_get_state
9434 /* Override any GCC internal prototype to avoid an error.
9435 Use char because int might match the return type of a GCC
9436 builtin and then its argument prototype would still apply. */
9437 #ifdef __cplusplus
9438 extern "C"
9439 #endif
9440 char malloc_get_state ();
9441 /* The GNU C library defines this for functions which it implements
9442 to always fail with ENOSYS. Some functions are actually named
9443 something starting with __ and the normal name is an alias. */
9444 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9445 choke me
9446 #endif
9449 main ()
9451 return malloc_get_state ();
9453 return 0;
9455 _ACEOF
9456 rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (ac_try="$ac_link"
9458 case "(($ac_try" in
9459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460 *) ac_try_echo=$ac_try;;
9461 esac
9462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463 (eval "$ac_link") 2>conftest.er1
9464 ac_status=$?
9465 grep -v '^ *+' conftest.er1 >conftest.err
9466 rm -f conftest.er1
9467 cat conftest.err >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } && {
9470 test -z "$ac_c_werror_flag" ||
9471 test ! -s conftest.err
9472 } && test -s conftest$ac_exeext &&
9473 $as_test_x conftest$ac_exeext; then
9474 ac_cv_func_malloc_get_state=yes
9475 else
9476 echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9479 ac_cv_func_malloc_get_state=no
9482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9483 conftest$ac_exeext conftest.$ac_ext
9485 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9486 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9487 if test $ac_cv_func_malloc_get_state = yes; then
9489 else
9490 doug_lea_malloc=no
9493 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9494 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9495 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9506 #define malloc_set_state innocuous_malloc_set_state
9508 /* System header to define __stub macros and hopefully few prototypes,
9509 which can conflict with char malloc_set_state (); below.
9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511 <limits.h> exists even on freestanding compilers. */
9513 #ifdef __STDC__
9514 # include <limits.h>
9515 #else
9516 # include <assert.h>
9517 #endif
9519 #undef malloc_set_state
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 char malloc_set_state ();
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9532 choke me
9533 #endif
9536 main ()
9538 return malloc_set_state ();
9540 return 0;
9542 _ACEOF
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9545 case "(($ac_try" in
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9548 esac
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && {
9557 test -z "$ac_c_werror_flag" ||
9558 test ! -s conftest.err
9559 } && test -s conftest$ac_exeext &&
9560 $as_test_x conftest$ac_exeext; then
9561 ac_cv_func_malloc_set_state=yes
9562 else
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9566 ac_cv_func_malloc_set_state=no
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9572 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9573 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9574 if test $ac_cv_func_malloc_set_state = yes; then
9576 else
9577 doug_lea_malloc=no
9580 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9581 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9582 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585 cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h. */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 extern void (* __after_morecore_hook)();
9593 main ()
9595 __after_morecore_hook = 0
9597 return 0;
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9602 case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605 esac
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_link") 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest$ac_exeext &&
9617 $as_test_x conftest$ac_exeext; then
9618 emacs_cv_var___after_morecore_hook=yes
9619 else
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 emacs_cv_var___after_morecore_hook=no
9626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9627 conftest$ac_exeext conftest.$ac_ext
9629 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9630 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9631 if test $emacs_cv_var___after_morecore_hook = no; then
9632 doug_lea_malloc=no
9634 if test "${system_malloc}" = "yes"; then
9635 GNU_MALLOC=no
9636 GNU_MALLOC_reason="
9637 (The GNU allocators don't work with this system configuration.)"
9639 if test "$doug_lea_malloc" = "yes" ; then
9640 if test "$GNU_MALLOC" = yes ; then
9641 GNU_MALLOC_reason="
9642 (Using Doug Lea's new malloc from the GNU C Library.)"
9645 cat >>confdefs.h <<\_ACEOF
9646 #define DOUG_LEA_MALLOC 1
9647 _ACEOF
9651 if test x"${REL_ALLOC}" = x; then
9652 REL_ALLOC=${GNU_MALLOC}
9658 for ac_header in stdlib.h unistd.h
9660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 ac_res=`eval echo '${'$as_ac_Header'}'`
9668 { echo "$as_me:$LINENO: result: $ac_res" >&5
9669 echo "${ECHO_T}$ac_res" >&6; }
9670 else
9671 # Is the header compilable?
9672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 $ac_includes_default
9681 #include <$ac_header>
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (ac_try="$ac_compile"
9685 case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_compile") 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest.$ac_objext; then
9700 ac_header_compiler=yes
9701 else
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9705 ac_header_compiler=no
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9710 echo "${ECHO_T}$ac_header_compiler" >&6; }
9712 # Is the header present?
9713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 #include <$ac_header>
9722 _ACEOF
9723 if { (ac_try="$ac_cpp conftest.$ac_ext"
9724 case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } >/dev/null && {
9736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 }; then
9739 ac_header_preproc=yes
9740 else
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_header_preproc=no
9747 rm -f conftest.err conftest.$ac_ext
9748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9749 echo "${ECHO_T}$ac_header_preproc" >&6; }
9751 # So? What about this header?
9752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9753 yes:no: )
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9758 ac_header_preproc=yes
9760 no:yes:* )
9761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9775 esac
9776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 else
9781 eval "$as_ac_Header=\$ac_header_preproc"
9783 ac_res=`eval echo '${'$as_ac_Header'}'`
9784 { echo "$as_me:$LINENO: result: $ac_res" >&5
9785 echo "${ECHO_T}$ac_res" >&6; }
9788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9789 cat >>confdefs.h <<_ACEOF
9790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9791 _ACEOF
9795 done
9798 for ac_func in getpagesize
9800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9814 #define $ac_func innocuous_$ac_func
9816 /* System header to define __stub macros and hopefully few prototypes,
9817 which can conflict with char $ac_func (); below.
9818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9819 <limits.h> exists even on freestanding compilers. */
9821 #ifdef __STDC__
9822 # include <limits.h>
9823 #else
9824 # include <assert.h>
9825 #endif
9827 #undef $ac_func
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char $ac_func ();
9836 /* The GNU C library defines this for functions which it implements
9837 to always fail with ENOSYS. Some functions are actually named
9838 something starting with __ and the normal name is an alias. */
9839 #if defined __stub_$ac_func || defined __stub___$ac_func
9840 choke me
9841 #endif
9844 main ()
9846 return $ac_func ();
9848 return 0;
9850 _ACEOF
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (ac_try="$ac_link"
9853 case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9856 esac
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_link") 2>conftest.er1
9859 ac_status=$?
9860 grep -v '^ *+' conftest.er1 >conftest.err
9861 rm -f conftest.er1
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } && {
9865 test -z "$ac_c_werror_flag" ||
9866 test ! -s conftest.err
9867 } && test -s conftest$ac_exeext &&
9868 $as_test_x conftest$ac_exeext; then
9869 eval "$as_ac_var=yes"
9870 else
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 eval "$as_ac_var=no"
9877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878 conftest$ac_exeext conftest.$ac_ext
9880 ac_res=`eval echo '${'$as_ac_var'}'`
9881 { echo "$as_me:$LINENO: result: $ac_res" >&5
9882 echo "${ECHO_T}$ac_res" >&6; }
9883 if test `eval echo '${'$as_ac_var'}'` = yes; then
9884 cat >>confdefs.h <<_ACEOF
9885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9886 _ACEOF
9889 done
9891 { echo "$as_me:$LINENO: checking for working mmap" >&5
9892 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9893 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896 if test "$cross_compiling" = yes; then
9897 ac_cv_func_mmap_fixed_mapped=no
9898 else
9899 cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h. */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 $ac_includes_default
9906 /* malloc might have been renamed as rpl_malloc. */
9907 #undef malloc
9909 /* Thanks to Mike Haertel and Jim Avera for this test.
9910 Here is a matrix of mmap possibilities:
9911 mmap private not fixed
9912 mmap private fixed at somewhere currently unmapped
9913 mmap private fixed at somewhere already mapped
9914 mmap shared not fixed
9915 mmap shared fixed at somewhere currently unmapped
9916 mmap shared fixed at somewhere already mapped
9917 For private mappings, we should verify that changes cannot be read()
9918 back from the file, nor mmap's back from the file at a different
9919 address. (There have been systems where private was not correctly
9920 implemented like the infamous i386 svr4.0, and systems where the
9921 VM page cache was not coherent with the file system buffer cache
9922 like early versions of FreeBSD and possibly contemporary NetBSD.)
9923 For shared mappings, we should conversely verify that changes get
9924 propagated back to all the places they're supposed to be.
9926 Grep wants private fixed already mapped.
9927 The main things grep needs to know about mmap are:
9928 * does it exist and is it safe to write into the mmap'd area
9929 * how to use it (BSD variants) */
9931 #include <fcntl.h>
9932 #include <sys/mman.h>
9934 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9935 char *malloc ();
9936 #endif
9938 /* This mess was copied from the GNU getpagesize.h. */
9939 #ifndef HAVE_GETPAGESIZE
9940 /* Assume that all systems that can run configure have sys/param.h. */
9941 # ifndef HAVE_SYS_PARAM_H
9942 # define HAVE_SYS_PARAM_H 1
9943 # endif
9945 # ifdef _SC_PAGESIZE
9946 # define getpagesize() sysconf(_SC_PAGESIZE)
9947 # else /* no _SC_PAGESIZE */
9948 # ifdef HAVE_SYS_PARAM_H
9949 # include <sys/param.h>
9950 # ifdef EXEC_PAGESIZE
9951 # define getpagesize() EXEC_PAGESIZE
9952 # else /* no EXEC_PAGESIZE */
9953 # ifdef NBPG
9954 # define getpagesize() NBPG * CLSIZE
9955 # ifndef CLSIZE
9956 # define CLSIZE 1
9957 # endif /* no CLSIZE */
9958 # else /* no NBPG */
9959 # ifdef NBPC
9960 # define getpagesize() NBPC
9961 # else /* no NBPC */
9962 # ifdef PAGESIZE
9963 # define getpagesize() PAGESIZE
9964 # endif /* PAGESIZE */
9965 # endif /* no NBPC */
9966 # endif /* no NBPG */
9967 # endif /* no EXEC_PAGESIZE */
9968 # else /* no HAVE_SYS_PARAM_H */
9969 # define getpagesize() 8192 /* punt totally */
9970 # endif /* no HAVE_SYS_PARAM_H */
9971 # endif /* no _SC_PAGESIZE */
9973 #endif /* no HAVE_GETPAGESIZE */
9976 main ()
9978 char *data, *data2, *data3;
9979 int i, pagesize;
9980 int fd;
9982 pagesize = getpagesize ();
9984 /* First, make a file with some known garbage in it. */
9985 data = (char *) malloc (pagesize);
9986 if (!data)
9987 return 1;
9988 for (i = 0; i < pagesize; ++i)
9989 *(data + i) = rand ();
9990 umask (0);
9991 fd = creat ("conftest.mmap", 0600);
9992 if (fd < 0)
9993 return 1;
9994 if (write (fd, data, pagesize) != pagesize)
9995 return 1;
9996 close (fd);
9998 /* Next, try to mmap the file at a fixed address which already has
9999 something else allocated at it. If we can, also make sure that
10000 we see the same garbage. */
10001 fd = open ("conftest.mmap", O_RDWR);
10002 if (fd < 0)
10003 return 1;
10004 data2 = (char *) malloc (2 * pagesize);
10005 if (!data2)
10006 return 1;
10007 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10008 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10009 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10010 return 1;
10011 for (i = 0; i < pagesize; ++i)
10012 if (*(data + i) != *(data2 + i))
10013 return 1;
10015 /* Finally, make sure that changes to the mapped area do not
10016 percolate back to the file as seen by read(). (This is a bug on
10017 some variants of i386 svr4.0.) */
10018 for (i = 0; i < pagesize; ++i)
10019 *(data2 + i) = *(data2 + i) + 1;
10020 data3 = (char *) malloc (pagesize);
10021 if (!data3)
10022 return 1;
10023 if (read (fd, data3, pagesize) != pagesize)
10024 return 1;
10025 for (i = 0; i < pagesize; ++i)
10026 if (*(data + i) != *(data3 + i))
10027 return 1;
10028 close (fd);
10029 return 0;
10031 _ACEOF
10032 rm -f conftest$ac_exeext
10033 if { (ac_try="$ac_link"
10034 case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037 esac
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_link") 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10043 { (case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10046 esac
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_try") 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 ac_cv_func_mmap_fixed_mapped=yes
10053 else
10054 echo "$as_me: program exited with status $ac_status" >&5
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ( exit $ac_status )
10059 ac_cv_func_mmap_fixed_mapped=no
10061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10066 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10067 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10068 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_MMAP 1
10072 _ACEOF
10075 rm -f conftest.mmap
10077 if test $use_mmap_for_buffers = yes; then
10078 REL_ALLOC=no
10081 LIBS="$libsrc_libs $LIBS"
10084 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10085 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10086 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089 ac_check_lib_save_LIBS=$LIBS
10090 LIBS="-ldnet $LIBS"
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h. */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10101 #ifdef __cplusplus
10102 extern "C"
10103 #endif
10104 char dnet_ntoa ();
10106 main ()
10108 return dnet_ntoa ();
10110 return 0;
10112 _ACEOF
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest$ac_exeext &&
10130 $as_test_x conftest$ac_exeext; then
10131 ac_cv_lib_dnet_dnet_ntoa=yes
10132 else
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ac_cv_lib_dnet_dnet_ntoa=no
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10144 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10145 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE_LIBDNET 1
10148 _ACEOF
10150 LIBS="-ldnet $LIBS"
10155 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10156 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10157 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160 ac_check_lib_save_LIBS=$LIBS
10161 LIBS="-lXbsd $LIBS"
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h. */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10171 main ()
10173 return main ();
10175 return 0;
10177 _ACEOF
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (ac_try="$ac_link"
10180 case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_link") 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } && {
10192 test -z "$ac_c_werror_flag" ||
10193 test ! -s conftest.err
10194 } && test -s conftest$ac_exeext &&
10195 $as_test_x conftest$ac_exeext; then
10196 ac_cv_lib_Xbsd_main=yes
10197 else
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_cv_lib_Xbsd_main=no
10204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LIBS=$ac_check_lib_save_LIBS
10208 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10209 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10210 if test $ac_cv_lib_Xbsd_main = yes; then
10211 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10216 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10217 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10218 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221 ac_check_lib_save_LIBS=$LIBS
10222 LIBS="-lpthreads $LIBS"
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10230 /* Override any GCC internal prototype to avoid an error.
10231 Use char because int might match the return type of a GCC
10232 builtin and then its argument prototype would still apply. */
10233 #ifdef __cplusplus
10234 extern "C"
10235 #endif
10236 char cma_open ();
10238 main ()
10240 return cma_open ();
10242 return 0;
10244 _ACEOF
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (ac_try="$ac_link"
10247 case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10250 esac
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_link") 2>conftest.er1
10253 ac_status=$?
10254 grep -v '^ *+' conftest.er1 >conftest.err
10255 rm -f conftest.er1
10256 cat conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } && {
10259 test -z "$ac_c_werror_flag" ||
10260 test ! -s conftest.err
10261 } && test -s conftest$ac_exeext &&
10262 $as_test_x conftest$ac_exeext; then
10263 ac_cv_lib_pthreads_cma_open=yes
10264 else
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10268 ac_cv_lib_pthreads_cma_open=no
10271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10272 conftest$ac_exeext conftest.$ac_ext
10273 LIBS=$ac_check_lib_save_LIBS
10275 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10276 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10277 if test $ac_cv_lib_pthreads_cma_open = yes; then
10278 cat >>confdefs.h <<_ACEOF
10279 #define HAVE_LIBPTHREADS 1
10280 _ACEOF
10282 LIBS="-lpthreads $LIBS"
10288 case ${host_os} in
10289 aix*)
10290 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10291 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10292 if test "${gdb_cv_bigtoc+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10296 case $GCC in
10297 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10298 *) gdb_cv_bigtoc=-bbigtoc ;;
10299 esac
10301 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10302 cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h. */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10310 main ()
10312 int i;
10314 return 0;
10316 _ACEOF
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (ac_try="$ac_link"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_link") 2>conftest.er1
10325 ac_status=$?
10326 grep -v '^ *+' conftest.er1 >conftest.err
10327 rm -f conftest.er1
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } && {
10331 test -z "$ac_c_werror_flag" ||
10332 test ! -s conftest.err
10333 } && test -s conftest$ac_exeext &&
10334 $as_test_x conftest$ac_exeext; then
10336 else
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 gdb_cv_bigtoc=
10343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10344 conftest$ac_exeext conftest.$ac_ext
10347 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10348 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10350 esac
10352 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10353 # used for the tests that follow. We set them back to REAL_CFLAGS and
10354 # REAL_CPPFLAGS later on.
10356 REAL_CPPFLAGS="$CPPFLAGS"
10358 if test "${HAVE_X11}" = "yes"; then
10359 DEFS="$C_SWITCH_X_SITE $DEFS"
10360 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10361 LIBS="$LIBX $LIBS"
10362 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10363 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10365 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10366 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10367 # but it's more convenient here to set LD_RUN_PATH
10368 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10369 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10370 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10371 export LD_RUN_PATH
10374 if test "${opsys}" = "gnu-linux"; then
10375 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10376 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10377 cat >conftest.$ac_ext <<_ACEOF
10378 /* confdefs.h. */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10385 main ()
10387 XOpenDisplay ("foo");
10389 return 0;
10391 _ACEOF
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (ac_try="$ac_link"
10394 case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_link") 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest$ac_exeext &&
10409 $as_test_x conftest$ac_exeext; then
10410 xlinux_first_failure=no
10411 else
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 xlinux_first_failure=yes
10418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10419 conftest$ac_exeext conftest.$ac_ext
10420 if test "${xlinux_first_failure}" = "yes"; then
10421 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10422 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10423 OLD_CPPFLAGS="$CPPFLAGS"
10424 OLD_LIBS="$LIBS"
10425 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10426 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10427 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10428 LIBS="$LIBS -b i486-linuxaout"
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h. */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10437 main ()
10439 XOpenDisplay ("foo");
10441 return 0;
10443 _ACEOF
10444 rm -f conftest.$ac_objext conftest$ac_exeext
10445 if { (ac_try="$ac_link"
10446 case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449 esac
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_link") 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest$ac_exeext &&
10461 $as_test_x conftest$ac_exeext; then
10462 xlinux_second_failure=no
10463 else
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 xlinux_second_failure=yes
10470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10471 conftest$ac_exeext conftest.$ac_ext
10472 if test "${xlinux_second_failure}" = "yes"; then
10473 # If we get the same failure with -b, there is no use adding -b.
10474 # So take it out. This plays safe.
10475 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10476 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10477 CPPFLAGS="$OLD_CPPFLAGS"
10478 LIBS="$OLD_LIBS"
10479 { echo "$as_me:$LINENO: result: no" >&5
10480 echo "${ECHO_T}no" >&6; }
10481 else
10482 { echo "$as_me:$LINENO: result: yes" >&5
10483 echo "${ECHO_T}yes" >&6; }
10485 else
10486 { echo "$as_me:$LINENO: result: no" >&5
10487 echo "${ECHO_T}no" >&6; }
10491 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10492 # header files included from there.
10493 { echo "$as_me:$LINENO: checking for Xkb" >&5
10494 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h. */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 #include <X11/Xlib.h>
10502 #include <X11/XKBlib.h>
10504 main ()
10506 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10508 return 0;
10510 _ACEOF
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (ac_try="$ac_link"
10513 case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10516 esac
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_link") 2>conftest.er1
10519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest$ac_exeext &&
10528 $as_test_x conftest$ac_exeext; then
10529 emacs_xkb=yes
10530 else
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10534 emacs_xkb=no
10537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10538 conftest$ac_exeext conftest.$ac_ext
10539 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10540 echo "${ECHO_T}$emacs_xkb" >&6; }
10541 if test $emacs_xkb = yes; then
10543 cat >>confdefs.h <<\_ACEOF
10544 #define HAVE_XKBGETKEYBOARD 1
10545 _ACEOF
10553 for ac_func in XrmSetDatabase XScreenResourceString \
10554 XScreenNumberOfScreen XSetWMProtocols
10556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562 cat >conftest.$ac_ext <<_ACEOF
10563 /* confdefs.h. */
10564 _ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10570 #define $ac_func innocuous_$ac_func
10572 /* System header to define __stub macros and hopefully few prototypes,
10573 which can conflict with char $ac_func (); below.
10574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10575 <limits.h> exists even on freestanding compilers. */
10577 #ifdef __STDC__
10578 # include <limits.h>
10579 #else
10580 # include <assert.h>
10581 #endif
10583 #undef $ac_func
10585 /* Override any GCC internal prototype to avoid an error.
10586 Use char because int might match the return type of a GCC
10587 builtin and then its argument prototype would still apply. */
10588 #ifdef __cplusplus
10589 extern "C"
10590 #endif
10591 char $ac_func ();
10592 /* The GNU C library defines this for functions which it implements
10593 to always fail with ENOSYS. Some functions are actually named
10594 something starting with __ and the normal name is an alias. */
10595 #if defined __stub_$ac_func || defined __stub___$ac_func
10596 choke me
10597 #endif
10600 main ()
10602 return $ac_func ();
10604 return 0;
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_link") 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest$ac_exeext &&
10624 $as_test_x conftest$ac_exeext; then
10625 eval "$as_ac_var=yes"
10626 else
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10630 eval "$as_ac_var=no"
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634 conftest$ac_exeext conftest.$ac_ext
10636 ac_res=`eval echo '${'$as_ac_var'}'`
10637 { echo "$as_me:$LINENO: result: $ac_res" >&5
10638 echo "${ECHO_T}$ac_res" >&6; }
10639 if test `eval echo '${'$as_ac_var'}'` = yes; then
10640 cat >>confdefs.h <<_ACEOF
10641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10642 _ACEOF
10645 done
10649 if test "${window_system}" = "x11"; then
10650 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10651 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10652 if test "${emacs_cv_x11_version_6+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655 cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h. */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10661 #include <X11/Xlib.h>
10663 main ()
10665 #if XlibSpecificationRelease < 6
10666 fail;
10667 #endif
10670 return 0;
10672 _ACEOF
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (ac_try="$ac_link"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10678 esac
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_link") 2>conftest.er1
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest$ac_exeext &&
10690 $as_test_x conftest$ac_exeext; then
10691 emacs_cv_x11_version_6=yes
10692 else
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 emacs_cv_x11_version_6=no
10699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10700 conftest$ac_exeext conftest.$ac_ext
10703 if test $emacs_cv_x11_version_6 = yes; then
10704 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10705 echo "${ECHO_T}6 or newer" >&6; }
10707 cat >>confdefs.h <<\_ACEOF
10708 #define HAVE_X11R6 1
10709 _ACEOF
10711 else
10712 { echo "$as_me:$LINENO: result: before 6" >&5
10713 echo "${ECHO_T}before 6" >&6; }
10718 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10719 HAVE_RSVG=no
10720 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10721 if test "${with_rsvg}" != "no"; then
10722 RSVG_REQUIRED=2.0.0
10723 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10726 succeeded=no
10728 # Extract the first word of "pkg-config", so it can be a program name with args.
10729 set dummy pkg-config; ac_word=$2
10730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735 case $PKG_CONFIG in
10736 [\\/]* | ?:[\\/]*)
10737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10743 IFS=$as_save_IFS
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10749 break 2
10751 done
10752 done
10753 IFS=$as_save_IFS
10755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10757 esac
10759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10760 if test -n "$PKG_CONFIG"; then
10761 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10762 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10763 else
10764 { echo "$as_me:$LINENO: result: no" >&5
10765 echo "${ECHO_T}no" >&6; }
10770 if test "$PKG_CONFIG" = "no" ; then
10772 else
10773 PKG_CONFIG_MIN_VERSION=0.9.0
10774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10775 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10776 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10778 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10779 { echo "$as_me:$LINENO: result: yes" >&5
10780 echo "${ECHO_T}yes" >&6; }
10781 succeeded=yes
10783 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10784 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10785 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10786 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10787 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10789 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10790 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10791 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10792 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10793 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10794 else
10795 { echo "$as_me:$LINENO: result: no" >&5
10796 echo "${ECHO_T}no" >&6; }
10797 RSVG_CFLAGS=""
10798 RSVG_LIBS=""
10799 ## If we have a custom action on failure, don't print errors, but
10800 ## do set a variable so people can do so.
10801 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10807 else
10808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10813 if test $succeeded = yes; then
10815 else
10822 if test ".${RSVG_CFLAGS}" != "."; then
10823 HAVE_RSVG=yes
10825 cat >>confdefs.h <<\_ACEOF
10826 #define HAVE_RSVG 1
10827 _ACEOF
10829 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10830 LIBS="$RSVG_LIBS $LIBS"
10836 HAVE_GTK=no
10837 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10838 GLIB_REQUIRED=2.6
10839 GTK_REQUIRED=2.6
10840 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10843 succeeded=no
10845 # Extract the first word of "pkg-config", so it can be a program name with args.
10846 set dummy pkg-config; ac_word=$2
10847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10849 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852 case $PKG_CONFIG in
10853 [\\/]* | ?:[\\/]*)
10854 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858 for as_dir in $PATH
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10864 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10868 done
10869 done
10870 IFS=$as_save_IFS
10872 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10874 esac
10876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10877 if test -n "$PKG_CONFIG"; then
10878 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10879 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10880 else
10881 { echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6; }
10887 if test "$PKG_CONFIG" = "no" ; then
10888 pkg_check_gtk=no
10889 else
10890 PKG_CONFIG_MIN_VERSION=0.9.0
10891 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10892 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10893 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10895 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10896 { echo "$as_me:$LINENO: result: yes" >&5
10897 echo "${ECHO_T}yes" >&6; }
10898 succeeded=yes
10900 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10901 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10902 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10903 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10904 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10906 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10907 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10908 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10909 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10910 echo "${ECHO_T}$GTK_LIBS" >&6; }
10911 else
10912 { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10914 GTK_CFLAGS=""
10915 GTK_LIBS=""
10916 ## If we have a custom action on failure, don't print errors, but
10917 ## do set a variable so people can do so.
10918 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10924 else
10925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10930 if test $succeeded = yes; then
10931 pkg_check_gtk=yes
10932 else
10933 pkg_check_gtk=no
10936 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10937 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10938 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10939 { (exit 1); exit 1; }; }
10944 if test x"$pkg_check_gtk" = xyes; then
10948 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10949 CFLAGS="$CFLAGS $GTK_CFLAGS"
10950 LIBS="$GTK_LIBS $LIBS"
10951 GTK_COMPILES=no
10953 for ac_func in gtk_main
10955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 else
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10969 #define $ac_func innocuous_$ac_func
10971 /* System header to define __stub macros and hopefully few prototypes,
10972 which can conflict with char $ac_func (); below.
10973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10974 <limits.h> exists even on freestanding compilers. */
10976 #ifdef __STDC__
10977 # include <limits.h>
10978 #else
10979 # include <assert.h>
10980 #endif
10982 #undef $ac_func
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char $ac_func ();
10991 /* The GNU C library defines this for functions which it implements
10992 to always fail with ENOSYS. Some functions are actually named
10993 something starting with __ and the normal name is an alias. */
10994 #if defined __stub_$ac_func || defined __stub___$ac_func
10995 choke me
10996 #endif
10999 main ()
11001 return $ac_func ();
11003 return 0;
11005 _ACEOF
11006 rm -f conftest.$ac_objext conftest$ac_exeext
11007 if { (ac_try="$ac_link"
11008 case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11011 esac
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_link") 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } && {
11020 test -z "$ac_c_werror_flag" ||
11021 test ! -s conftest.err
11022 } && test -s conftest$ac_exeext &&
11023 $as_test_x conftest$ac_exeext; then
11024 eval "$as_ac_var=yes"
11025 else
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 eval "$as_ac_var=no"
11032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11033 conftest$ac_exeext conftest.$ac_ext
11035 ac_res=`eval echo '${'$as_ac_var'}'`
11036 { echo "$as_me:$LINENO: result: $ac_res" >&5
11037 echo "${ECHO_T}$ac_res" >&6; }
11038 if test `eval echo '${'$as_ac_var'}'` = yes; then
11039 cat >>confdefs.h <<_ACEOF
11040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11041 _ACEOF
11042 GTK_COMPILES=yes
11044 done
11046 if test "${GTK_COMPILES}" != "yes"; then
11047 if test "$USE_X_TOOLKIT" != "maybe"; then
11048 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11049 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11050 { (exit 1); exit 1; }; };
11052 else
11053 HAVE_GTK=yes
11055 cat >>confdefs.h <<\_ACEOF
11056 #define USE_GTK 1
11057 _ACEOF
11059 USE_X_TOOLKIT=none
11060 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11062 else
11063 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11064 closing open displays. This is no problem if you just use
11065 one display, but if you use more than one and close one of them
11066 Emacs may crash." >&5
11067 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11068 closing open displays. This is no problem if you just use
11069 one display, but if you use more than one and close one of them
11070 Emacs may crash." >&2;}
11071 sleep 3
11078 if test "${HAVE_GTK}" = "yes"; then
11080 if test "$with_toolkit_scroll_bars" != no; then
11081 with_toolkit_scroll_bars=yes
11084 HAVE_GTK_MULTIDISPLAY=no
11086 for ac_func in gdk_display_open
11088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094 cat >conftest.$ac_ext <<_ACEOF
11095 /* confdefs.h. */
11096 _ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11102 #define $ac_func innocuous_$ac_func
11104 /* System header to define __stub macros and hopefully few prototypes,
11105 which can conflict with char $ac_func (); below.
11106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11107 <limits.h> exists even on freestanding compilers. */
11109 #ifdef __STDC__
11110 # include <limits.h>
11111 #else
11112 # include <assert.h>
11113 #endif
11115 #undef $ac_func
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11120 #ifdef __cplusplus
11121 extern "C"
11122 #endif
11123 char $ac_func ();
11124 /* The GNU C library defines this for functions which it implements
11125 to always fail with ENOSYS. Some functions are actually named
11126 something starting with __ and the normal name is an alias. */
11127 #if defined __stub_$ac_func || defined __stub___$ac_func
11128 choke me
11129 #endif
11132 main ()
11134 return $ac_func ();
11136 return 0;
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } && {
11153 test -z "$ac_c_werror_flag" ||
11154 test ! -s conftest.err
11155 } && test -s conftest$ac_exeext &&
11156 $as_test_x conftest$ac_exeext; then
11157 eval "$as_ac_var=yes"
11158 else
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 eval "$as_ac_var=no"
11165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11166 conftest$ac_exeext conftest.$ac_ext
11168 ac_res=`eval echo '${'$as_ac_var'}'`
11169 { echo "$as_me:$LINENO: result: $ac_res" >&5
11170 echo "${ECHO_T}$ac_res" >&6; }
11171 if test `eval echo '${'$as_ac_var'}'` = yes; then
11172 cat >>confdefs.h <<_ACEOF
11173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11174 _ACEOF
11175 HAVE_GTK_MULTIDISPLAY=yes
11177 done
11179 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11181 cat >>confdefs.h <<\_ACEOF
11182 #define HAVE_GTK_MULTIDISPLAY 1
11183 _ACEOF
11187 HAVE_GTK_FILE_SELECTION=no
11189 for ac_func in gtk_file_selection_new
11191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11194 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11205 #define $ac_func innocuous_$ac_func
11207 /* System header to define __stub macros and hopefully few prototypes,
11208 which can conflict with char $ac_func (); below.
11209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11210 <limits.h> exists even on freestanding compilers. */
11212 #ifdef __STDC__
11213 # include <limits.h>
11214 #else
11215 # include <assert.h>
11216 #endif
11218 #undef $ac_func
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char $ac_func ();
11227 /* The GNU C library defines this for functions which it implements
11228 to always fail with ENOSYS. Some functions are actually named
11229 something starting with __ and the normal name is an alias. */
11230 #if defined __stub_$ac_func || defined __stub___$ac_func
11231 choke me
11232 #endif
11235 main ()
11237 return $ac_func ();
11239 return 0;
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (ac_try="$ac_link"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_link") 2>conftest.er1
11250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } && {
11256 test -z "$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11258 } && test -s conftest$ac_exeext &&
11259 $as_test_x conftest$ac_exeext; then
11260 eval "$as_ac_var=yes"
11261 else
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 eval "$as_ac_var=no"
11268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11269 conftest$ac_exeext conftest.$ac_ext
11271 ac_res=`eval echo '${'$as_ac_var'}'`
11272 { echo "$as_me:$LINENO: result: $ac_res" >&5
11273 echo "${ECHO_T}$ac_res" >&6; }
11274 if test `eval echo '${'$as_ac_var'}'` = yes; then
11275 cat >>confdefs.h <<_ACEOF
11276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11277 _ACEOF
11278 HAVE_GTK_FILE_SELECTION=yes
11280 done
11283 HAVE_GTK_FILE_CHOOSER=no
11285 for ac_func in gtk_file_chooser_dialog_new
11287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11301 #define $ac_func innocuous_$ac_func
11303 /* System header to define __stub macros and hopefully few prototypes,
11304 which can conflict with char $ac_func (); below.
11305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11306 <limits.h> exists even on freestanding compilers. */
11308 #ifdef __STDC__
11309 # include <limits.h>
11310 #else
11311 # include <assert.h>
11312 #endif
11314 #undef $ac_func
11316 /* Override any GCC internal prototype to avoid an error.
11317 Use char because int might match the return type of a GCC
11318 builtin and then its argument prototype would still apply. */
11319 #ifdef __cplusplus
11320 extern "C"
11321 #endif
11322 char $ac_func ();
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined __stub_$ac_func || defined __stub___$ac_func
11327 choke me
11328 #endif
11331 main ()
11333 return $ac_func ();
11335 return 0;
11337 _ACEOF
11338 rm -f conftest.$ac_objext conftest$ac_exeext
11339 if { (ac_try="$ac_link"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_link") 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest$ac_exeext &&
11355 $as_test_x conftest$ac_exeext; then
11356 eval "$as_ac_var=yes"
11357 else
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361 eval "$as_ac_var=no"
11364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11365 conftest$ac_exeext conftest.$ac_ext
11367 ac_res=`eval echo '${'$as_ac_var'}'`
11368 { echo "$as_me:$LINENO: result: $ac_res" >&5
11369 echo "${ECHO_T}$ac_res" >&6; }
11370 if test `eval echo '${'$as_ac_var'}'` = yes; then
11371 cat >>confdefs.h <<_ACEOF
11372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11373 _ACEOF
11374 HAVE_GTK_FILE_CHOOSER=yes
11376 done
11379 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11380 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11382 cat >>confdefs.h <<\_ACEOF
11383 #define HAVE_GTK_FILE_BOTH 1
11384 _ACEOF
11388 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11389 HAVE_GTK_AND_PTHREAD=no
11391 for ac_header in pthread.h
11393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 ac_res=`eval echo '${'$as_ac_Header'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11403 else
11404 # Is the header compilable?
11405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11407 cat >conftest.$ac_ext <<_ACEOF
11408 /* confdefs.h. */
11409 _ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11413 $ac_includes_default
11414 #include <$ac_header>
11415 _ACEOF
11416 rm -f conftest.$ac_objext
11417 if { (ac_try="$ac_compile"
11418 case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11421 esac
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_compile") 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && {
11430 test -z "$ac_c_werror_flag" ||
11431 test ! -s conftest.err
11432 } && test -s conftest.$ac_objext; then
11433 ac_header_compiler=yes
11434 else
11435 echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ac_header_compiler=no
11441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11443 echo "${ECHO_T}$ac_header_compiler" >&6; }
11445 # Is the header present?
11446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11448 cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h. */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 #include <$ac_header>
11455 _ACEOF
11456 if { (ac_try="$ac_cpp conftest.$ac_ext"
11457 case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460 esac
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } >/dev/null && {
11469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11470 test ! -s conftest.err
11471 }; then
11472 ac_header_preproc=yes
11473 else
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11477 ac_header_preproc=no
11480 rm -f conftest.err conftest.$ac_ext
11481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11482 echo "${ECHO_T}$ac_header_preproc" >&6; }
11484 # So? What about this header?
11485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11486 yes:no: )
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11491 ac_header_preproc=yes
11493 no:yes:* )
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11508 esac
11509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 else
11514 eval "$as_ac_Header=\$ac_header_preproc"
11516 ac_res=`eval echo '${'$as_ac_Header'}'`
11517 { echo "$as_me:$LINENO: result: $ac_res" >&5
11518 echo "${ECHO_T}$ac_res" >&6; }
11521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11522 cat >>confdefs.h <<_ACEOF
11523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11524 _ACEOF
11528 done
11530 if test "$ac_cv_header_pthread_h"; then
11531 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11532 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11533 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536 ac_check_lib_save_LIBS=$LIBS
11537 LIBS="-lpthread $LIBS"
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h. */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 char pthread_self ();
11553 main ()
11555 return pthread_self ();
11557 return 0;
11559 _ACEOF
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (ac_try="$ac_link"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565 esac
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && {
11574 test -z "$ac_c_werror_flag" ||
11575 test ! -s conftest.err
11576 } && test -s conftest$ac_exeext &&
11577 $as_test_x conftest$ac_exeext; then
11578 ac_cv_lib_pthread_pthread_self=yes
11579 else
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 ac_cv_lib_pthread_pthread_self=no
11586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11590 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11591 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11592 if test $ac_cv_lib_pthread_pthread_self = yes; then
11593 HAVE_GTK_AND_PTHREAD=yes
11597 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11598 case "${canonical}" in
11599 *-hpux*) ;;
11600 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11601 esac
11603 cat >>confdefs.h <<\_ACEOF
11604 #define HAVE_GTK_AND_PTHREAD 1
11605 _ACEOF
11611 HAVE_DBUS=no
11612 if test "${with_dbus}" = "yes"; then
11614 succeeded=no
11616 # Extract the first word of "pkg-config", so it can be a program name with args.
11617 set dummy pkg-config; ac_word=$2
11618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11620 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623 case $PKG_CONFIG in
11624 [\\/]* | ?:[\\/]*)
11625 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629 for as_dir in $PATH
11631 IFS=$as_save_IFS
11632 test -z "$as_dir" && as_dir=.
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11635 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11637 break 2
11639 done
11640 done
11641 IFS=$as_save_IFS
11643 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11645 esac
11647 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11648 if test -n "$PKG_CONFIG"; then
11649 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11650 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11651 else
11652 { echo "$as_me:$LINENO: result: no" >&5
11653 echo "${ECHO_T}no" >&6; }
11658 if test "$PKG_CONFIG" = "no" ; then
11659 HAVE_DBUS=no
11660 else
11661 PKG_CONFIG_MIN_VERSION=0.9.0
11662 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11663 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11664 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11666 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11667 { echo "$as_me:$LINENO: result: yes" >&5
11668 echo "${ECHO_T}yes" >&6; }
11669 succeeded=yes
11671 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11672 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11673 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11674 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11675 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11677 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11678 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11679 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11680 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11681 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11682 else
11683 { echo "$as_me:$LINENO: result: no" >&5
11684 echo "${ECHO_T}no" >&6; }
11685 DBUS_CFLAGS=""
11686 DBUS_LIBS=""
11687 ## If we have a custom action on failure, don't print errors, but
11688 ## do set a variable so people can do so.
11689 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11695 else
11696 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11697 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11701 if test $succeeded = yes; then
11702 HAVE_DBUS=yes
11703 else
11704 HAVE_DBUS=no
11707 if test "$HAVE_DBUS" = yes; then
11709 cat >>confdefs.h <<\_ACEOF
11710 #define HAVE_DBUS 1
11711 _ACEOF
11716 HAVE_XAW3D=no
11717 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11718 if test "$with_xaw3d" != no; then
11719 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11720 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11721 if test "${emacs_cv_xaw3d+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11731 #include <X11/Intrinsic.h>
11732 #include <X11/Xaw3d/Simple.h>
11734 main ()
11738 return 0;
11740 _ACEOF
11741 rm -f conftest.$ac_objext conftest$ac_exeext
11742 if { (ac_try="$ac_link"
11743 case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746 esac
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_link") 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } && {
11755 test -z "$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest$ac_exeext &&
11758 $as_test_x conftest$ac_exeext; then
11759 emacs_cv_xaw3d=yes
11760 else
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11764 emacs_cv_xaw3d=no
11767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11768 conftest$ac_exeext conftest.$ac_ext
11771 else
11772 emacs_cv_xaw3d=no
11774 if test $emacs_cv_xaw3d = yes; then
11775 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11776 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11777 USE_X_TOOLKIT=LUCID
11778 HAVE_XAW3D=yes
11780 cat >>confdefs.h <<\_ACEOF
11781 #define HAVE_XAW3D 1
11782 _ACEOF
11784 else
11785 { echo "$as_me:$LINENO: result: no" >&5
11786 echo "${ECHO_T}no" >&6; }
11787 { echo "$as_me:$LINENO: checking for libXaw" >&5
11788 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11789 if test "${emacs_cv_xaw+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792 cat >conftest.$ac_ext <<_ACEOF
11793 /* confdefs.h. */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11799 #include <X11/Intrinsic.h>
11800 #include <X11/Xaw/Simple.h>
11802 main ()
11806 return 0;
11808 _ACEOF
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (ac_try="$ac_link"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_link") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest$ac_exeext &&
11826 $as_test_x conftest$ac_exeext; then
11827 emacs_cv_xaw=yes
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 emacs_cv_xaw=no
11835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11836 conftest$ac_exeext conftest.$ac_ext
11839 if test $emacs_cv_xaw = yes; then
11840 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11841 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11842 USE_X_TOOLKIT=LUCID
11843 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11844 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11845 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11846 { (exit 1); exit 1; }; }
11847 else
11848 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11849 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11850 USE_X_TOOLKIT=none
11855 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11857 if test "${USE_X_TOOLKIT}" != "none"; then
11858 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11859 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11860 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 #include <X11/Intrinsic.h>
11871 main ()
11873 #if XtSpecificationRelease < 6
11874 fail;
11875 #endif
11878 return 0;
11880 _ACEOF
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (ac_try="$ac_link"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_link") 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest$ac_exeext &&
11898 $as_test_x conftest$ac_exeext; then
11899 emacs_cv_x11_toolkit_version_6=yes
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 emacs_cv_x11_toolkit_version_6=no
11907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11908 conftest$ac_exeext conftest.$ac_ext
11911 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11912 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11913 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11914 echo "${ECHO_T}6 or newer" >&6; }
11916 cat >>confdefs.h <<\_ACEOF
11917 #define HAVE_X11XTR6 1
11918 _ACEOF
11920 else
11921 { echo "$as_me:$LINENO: result: before 6" >&5
11922 echo "${ECHO_T}before 6" >&6; }
11925 OLDLIBS="$LIBS"
11926 if test x$HAVE_X11XTR6 = xyes; then
11927 LIBS="-lXt -lSM -lICE $LIBS"
11928 else
11929 LIBS="-lXt $LIBS"
11932 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11933 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11934 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11936 else
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lXmu $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 XmuConvertStandardSelection ();
11954 main ()
11956 return XmuConvertStandardSelection ();
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_Xmu_XmuConvertStandardSelection=yes
11980 else
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_cv_lib_Xmu_XmuConvertStandardSelection=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_Xmu_XmuConvertStandardSelection" >&5
11992 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11993 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11994 cat >>confdefs.h <<_ACEOF
11995 #define HAVE_LIBXMU 1
11996 _ACEOF
11998 LIBS="-lXmu $LIBS"
12002 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12005 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12006 if test "${HAVE_X11}" = "yes"; then
12007 if test "${USE_X_TOOLKIT}" != "none"; then
12009 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12010 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12011 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014 ac_check_lib_save_LIBS=$LIBS
12015 LIBS="-lXext $LIBS"
12016 cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h. */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12023 /* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12026 #ifdef __cplusplus
12027 extern "C"
12028 #endif
12029 char XShapeQueryExtension ();
12031 main ()
12033 return XShapeQueryExtension ();
12035 return 0;
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (ac_try="$ac_link"
12040 case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_link") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest$ac_exeext &&
12055 $as_test_x conftest$ac_exeext; then
12056 ac_cv_lib_Xext_XShapeQueryExtension=yes
12057 else
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 ac_cv_lib_Xext_XShapeQueryExtension=no
12064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12065 conftest$ac_exeext conftest.$ac_ext
12066 LIBS=$ac_check_lib_save_LIBS
12068 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12069 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12070 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12071 cat >>confdefs.h <<_ACEOF
12072 #define HAVE_LIBXEXT 1
12073 _ACEOF
12075 LIBS="-lXext $LIBS"
12082 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12083 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12084 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12085 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <Xm/Xm.h>
12096 main ()
12098 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12099 int x = 5;
12100 #else
12101 Motif version prior to 2.1.
12102 #endif
12104 return 0;
12106 _ACEOF
12107 rm -f conftest.$ac_objext
12108 if { (ac_try="$ac_compile"
12109 case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_compile") 2>conftest.er1
12115 ac_status=$?
12116 grep -v '^ *+' conftest.er1 >conftest.err
12117 rm -f conftest.er1
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } && {
12121 test -z "$ac_c_werror_flag" ||
12122 test ! -s conftest.err
12123 } && test -s conftest.$ac_objext; then
12124 emacs_cv_motif_version_2_1=yes
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 emacs_cv_motif_version_2_1=no
12132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12135 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12136 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12137 if test $emacs_cv_motif_version_2_1 = yes; then
12138 HAVE_LIBXP=no
12140 cat >>confdefs.h <<\_ACEOF
12141 #define HAVE_MOTIF_2_1 1
12142 _ACEOF
12144 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12145 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12146 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149 ac_check_lib_save_LIBS=$LIBS
12150 LIBS="-lXp $LIBS"
12151 cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h. */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12158 /* Override any GCC internal prototype to avoid an error.
12159 Use char because int might match the return type of a GCC
12160 builtin and then its argument prototype would still apply. */
12161 #ifdef __cplusplus
12162 extern "C"
12163 #endif
12164 char XpCreateContext ();
12166 main ()
12168 return XpCreateContext ();
12170 return 0;
12172 _ACEOF
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (ac_try="$ac_link"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest$ac_exeext &&
12190 $as_test_x conftest$ac_exeext; then
12191 ac_cv_lib_Xp_XpCreateContext=yes
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_cv_lib_Xp_XpCreateContext=no
12199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12200 conftest$ac_exeext conftest.$ac_ext
12201 LIBS=$ac_check_lib_save_LIBS
12203 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12204 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12205 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12206 HAVE_LIBXP=yes
12209 if test ${HAVE_LIBXP} = yes; then
12211 cat >>confdefs.h <<\_ACEOF
12212 #define HAVE_LIBXP 1
12213 _ACEOF
12216 else
12217 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12218 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12219 if test "${emacs_cv_lesstif+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222 # We put this in CFLAGS temporarily to precede other -I options
12223 # that might be in CFLAGS temporarily.
12224 # We put this in CPPFLAGS where it precedes the other -I options.
12225 OLD_CPPFLAGS=$CPPFLAGS
12226 OLD_CFLAGS=$CFLAGS
12227 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12228 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12237 main ()
12239 int x = 5;
12241 return 0;
12243 _ACEOF
12244 rm -f conftest.$ac_objext
12245 if { (ac_try="$ac_compile"
12246 case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_compile") 2>conftest.er1
12252 ac_status=$?
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } && {
12258 test -z "$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12260 } && test -s conftest.$ac_objext; then
12261 emacs_cv_lesstif=yes
12262 else
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 emacs_cv_lesstif=no
12269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12272 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12273 if test $emacs_cv_lesstif = yes; then
12274 # Make sure this -I option remains in CPPFLAGS after it is set
12275 # back to REAL_CPPFLAGS.
12276 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12277 # have those other -I options anyway. Ultimately, having this
12278 # directory ultimately in CPPFLAGS will be enough.
12279 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12280 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12281 else
12282 CFLAGS=$OLD_CFLAGS
12283 CPPFLAGS=$OLD_CPPFLAGS
12290 USE_TOOLKIT_SCROLL_BARS=no
12291 if test "${with_toolkit_scroll_bars}" != "no"; then
12292 if test "${USE_X_TOOLKIT}" != "none"; then
12293 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12294 cat >>confdefs.h <<\_ACEOF
12295 #define USE_TOOLKIT_SCROLL_BARS 1
12296 _ACEOF
12298 HAVE_XAW3D=no
12299 USE_TOOLKIT_SCROLL_BARS=yes
12300 elif test "${HAVE_XAW3D}" = "yes"; then
12301 cat >>confdefs.h <<\_ACEOF
12302 #define USE_TOOLKIT_SCROLL_BARS 1
12303 _ACEOF
12305 USE_TOOLKIT_SCROLL_BARS=yes
12307 elif test "${HAVE_GTK}" = "yes"; then
12308 cat >>confdefs.h <<\_ACEOF
12309 #define USE_TOOLKIT_SCROLL_BARS 1
12310 _ACEOF
12312 USE_TOOLKIT_SCROLL_BARS=yes
12313 elif test "${HAVE_CARBON}" = "yes"; then
12314 cat >>confdefs.h <<\_ACEOF
12315 #define USE_TOOLKIT_SCROLL_BARS 1
12316 _ACEOF
12318 USE_TOOLKIT_SCROLL_BARS=yes
12322 cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h. */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 #include <X11/Xlib.h>
12330 #include <X11/Xresource.h>
12332 main ()
12334 XIMProc callback;
12336 return 0;
12338 _ACEOF
12339 rm -f conftest.$ac_objext
12340 if { (ac_try="$ac_compile"
12341 case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12344 esac
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_compile") 2>conftest.er1
12347 ac_status=$?
12348 grep -v '^ *+' conftest.er1 >conftest.err
12349 rm -f conftest.er1
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } && {
12353 test -z "$ac_c_werror_flag" ||
12354 test ! -s conftest.err
12355 } && test -s conftest.$ac_objext; then
12356 HAVE_XIM=yes
12358 cat >>confdefs.h <<\_ACEOF
12359 #define HAVE_XIM 1
12360 _ACEOF
12362 else
12363 echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12366 HAVE_XIM=no
12369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 if test "${with_xim}" != "no"; then
12374 cat >>confdefs.h <<\_ACEOF
12375 #define USE_XIM 1
12376 _ACEOF
12381 if test "${HAVE_XIM}" != "no"; then
12382 late_CFLAGS=$CFLAGS
12383 if test "$GCC" = yes; then
12384 CFLAGS="$CFLAGS --pedantic-errors"
12386 cat >conftest.$ac_ext <<_ACEOF
12387 /* confdefs.h. */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12393 #include <X11/Xlib.h>
12394 #include <X11/Xresource.h>
12396 main ()
12398 Display *display;
12399 XrmDatabase db;
12400 char *res_name;
12401 char *res_class;
12402 XIMProc callback;
12403 XPointer *client_data;
12404 #ifndef __GNUC__
12405 /* If we're not using GCC, it's probably not XFree86, and this is
12406 probably right, but we can't use something like --pedantic-errors. */
12407 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12408 char*, XIMProc, XPointer*);
12409 #endif
12410 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12411 client_data);
12413 return 0;
12415 _ACEOF
12416 rm -f conftest.$ac_objext
12417 if { (ac_try="$ac_compile"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_compile") 2>conftest.er1
12424 ac_status=$?
12425 grep -v '^ *+' conftest.er1 >conftest.err
12426 rm -f conftest.er1
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } && {
12430 test -z "$ac_c_werror_flag" ||
12431 test ! -s conftest.err
12432 } && test -s conftest.$ac_objext; then
12433 emacs_cv_arg6_star=yes
12434 else
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 if test "$emacs_cv_arg6_star" = yes; then
12444 cat >>confdefs.h <<\_ACEOF
12445 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12446 _ACEOF
12448 else
12449 cat >>confdefs.h <<\_ACEOF
12450 #define XRegisterIMInstantiateCallback_arg6 XPointer
12451 _ACEOF
12454 CFLAGS=$late_CFLAGS
12457 ### Start of font-backend section.
12459 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12460 HAVE_XFT=maybe
12461 if test "x${with_freetype}" = "xno"; then
12462 with_xft="no";
12464 if test "x${with_xft}" != "xno"; then
12467 succeeded=no
12469 # Extract the first word of "pkg-config", so it can be a program name with args.
12470 set dummy pkg-config; ac_word=$2
12471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12473 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476 case $PKG_CONFIG in
12477 [\\/]* | ?:[\\/]*)
12478 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12484 IFS=$as_save_IFS
12485 test -z "$as_dir" && as_dir=.
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12488 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12490 break 2
12492 done
12493 done
12494 IFS=$as_save_IFS
12496 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12498 esac
12500 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12501 if test -n "$PKG_CONFIG"; then
12502 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12503 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12504 else
12505 { echo "$as_me:$LINENO: result: no" >&5
12506 echo "${ECHO_T}no" >&6; }
12511 if test "$PKG_CONFIG" = "no" ; then
12512 HAVE_XFT=no
12513 else
12514 PKG_CONFIG_MIN_VERSION=0.9.0
12515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12516 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12517 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12519 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12520 { echo "$as_me:$LINENO: result: yes" >&5
12521 echo "${ECHO_T}yes" >&6; }
12522 succeeded=yes
12524 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12525 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12526 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12527 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12528 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12530 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12531 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12532 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12533 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12534 echo "${ECHO_T}$XFT_LIBS" >&6; }
12535 else
12536 { echo "$as_me:$LINENO: result: no" >&5
12537 echo "${ECHO_T}no" >&6; }
12538 XFT_CFLAGS=""
12539 XFT_LIBS=""
12540 ## If we have a custom action on failure, don't print errors, but
12541 ## do set a variable so people can do so.
12542 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12548 else
12549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12554 if test $succeeded = yes; then
12556 else
12557 HAVE_XFT=no
12560 if test "$HAVE_XFT" != no; then
12561 OLD_CPPFLAGS="$CPPFLAGS"
12562 OLD_CFLAGS="$CFLAGS"
12563 OLD_LIBS="$LIBS"
12564 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12565 CFLAGS="$CFLAGS $XFT_CFLAGS"
12566 LIBS="$XFT_LIBS $LIBS"
12567 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12568 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12569 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12570 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12574 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12575 else
12576 # Is the header compilable?
12577 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12578 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h. */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12585 $ac_includes_default
12586 #include <X11/Xft/Xft.h>
12587 _ACEOF
12588 rm -f conftest.$ac_objext
12589 if { (ac_try="$ac_compile"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_compile") 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest.$ac_objext; then
12605 ac_header_compiler=yes
12606 else
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12610 ac_header_compiler=no
12613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12615 echo "${ECHO_T}$ac_header_compiler" >&6; }
12617 # Is the header present?
12618 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12619 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12620 cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h. */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 #include <X11/Xft/Xft.h>
12627 _ACEOF
12628 if { (ac_try="$ac_cpp conftest.$ac_ext"
12629 case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632 esac
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } >/dev/null && {
12641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12642 test ! -s conftest.err
12643 }; then
12644 ac_header_preproc=yes
12645 else
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_header_preproc=no
12652 rm -f conftest.err conftest.$ac_ext
12653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12654 echo "${ECHO_T}$ac_header_preproc" >&6; }
12656 # So? What about this header?
12657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12658 yes:no: )
12659 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12660 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12662 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12663 ac_header_preproc=yes
12665 no:yes:* )
12666 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12667 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12668 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12669 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12671 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12673 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12674 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12675 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12676 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12677 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12680 esac
12681 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12682 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12683 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12688 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12689 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12692 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12693 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12694 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12695 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 else
12698 ac_check_lib_save_LIBS=$LIBS
12699 LIBS="-lXft $XFT_LIBS $LIBS"
12700 cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h. */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12707 /* Override any GCC internal prototype to avoid an error.
12708 Use char because int might match the return type of a GCC
12709 builtin and then its argument prototype would still apply. */
12710 #ifdef __cplusplus
12711 extern "C"
12712 #endif
12713 char XftFontOpen ();
12715 main ()
12717 return XftFontOpen ();
12719 return 0;
12721 _ACEOF
12722 rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } && {
12736 test -z "$ac_c_werror_flag" ||
12737 test ! -s conftest.err
12738 } && test -s conftest$ac_exeext &&
12739 $as_test_x conftest$ac_exeext; then
12740 ac_cv_lib_Xft_XftFontOpen=yes
12741 else
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 ac_cv_lib_Xft_XftFontOpen=no
12748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12749 conftest$ac_exeext conftest.$ac_ext
12750 LIBS=$ac_check_lib_save_LIBS
12752 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12753 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12754 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12755 HAVE_XFT=yes
12762 if test "${HAVE_XFT}" = "yes"; then
12764 cat >>confdefs.h <<\_ACEOF
12765 #define HAVE_XFT 1
12766 _ACEOF
12769 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12770 else
12771 CPPFLAGS="$OLD_CPPFLAGS"
12772 CFLAGS="$OLD_CFLAGS"
12773 LIBS="$OLD_LIBS"
12774 fi # "${HAVE_XFT}" = "yes"
12775 fi # "$HAVE_XFT" != no
12776 fi # "x${with_xft}" != "xno"
12778 if test "$HAVE_XFT" != "yes"; then
12779 HAVE_XFT=no
12783 HAVE_FREETYPE=no
12784 ### Use -lfreetype if available, unless `--with-freetype=no'.
12785 if test "${HAVE_XFT}" = "yes"; then
12786 HAVE_FREETYPE=yes
12787 elif test "x${with_freetype}" != "xno"; then
12790 succeeded=no
12792 # Extract the first word of "pkg-config", so it can be a program name with args.
12793 set dummy pkg-config; ac_word=$2
12794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 else
12799 case $PKG_CONFIG in
12800 [\\/]* | ?:[\\/]*)
12801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 break 2
12815 done
12816 done
12817 IFS=$as_save_IFS
12819 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12821 esac
12823 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12824 if test -n "$PKG_CONFIG"; then
12825 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12826 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12827 else
12828 { echo "$as_me:$LINENO: result: no" >&5
12829 echo "${ECHO_T}no" >&6; }
12834 if test "$PKG_CONFIG" = "no" ; then
12835 HAVE_FREETYPE=no
12836 else
12837 PKG_CONFIG_MIN_VERSION=0.9.0
12838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12839 { echo "$as_me:$LINENO: checking for freetype2" >&5
12840 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12842 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12843 { echo "$as_me:$LINENO: result: yes" >&5
12844 echo "${ECHO_T}yes" >&6; }
12845 succeeded=yes
12847 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12848 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12849 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12850 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12851 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12853 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12854 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12855 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12856 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12857 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12858 else
12859 { echo "$as_me:$LINENO: result: no" >&5
12860 echo "${ECHO_T}no" >&6; }
12861 FREETYPE_CFLAGS=""
12862 FREETYPE_LIBS=""
12863 ## If we have a custom action on failure, don't print errors, but
12864 ## do set a variable so people can do so.
12865 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12871 else
12872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12877 if test $succeeded = yes; then
12878 HAVE_FREETYPE=yes
12879 else
12880 HAVE_FREETYPE=no
12883 if test "${HAVE_FREETYPE}" = "yes"; then
12885 succeeded=no
12887 # Extract the first word of "pkg-config", so it can be a program name with args.
12888 set dummy pkg-config; ac_word=$2
12889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12891 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894 case $PKG_CONFIG in
12895 [\\/]* | ?:[\\/]*)
12896 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12908 break 2
12910 done
12911 done
12912 IFS=$as_save_IFS
12914 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12916 esac
12918 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12919 if test -n "$PKG_CONFIG"; then
12920 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12921 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12922 else
12923 { echo "$as_me:$LINENO: result: no" >&5
12924 echo "${ECHO_T}no" >&6; }
12929 if test "$PKG_CONFIG" = "no" ; then
12930 HAVE_FC=no
12931 else
12932 PKG_CONFIG_MIN_VERSION=0.9.0
12933 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12934 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12935 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12937 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12938 { echo "$as_me:$LINENO: result: yes" >&5
12939 echo "${ECHO_T}yes" >&6; }
12940 succeeded=yes
12942 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12943 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12944 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12945 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12946 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12948 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12949 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12950 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12951 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12952 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12953 else
12954 { echo "$as_me:$LINENO: result: no" >&5
12955 echo "${ECHO_T}no" >&6; }
12956 FONTCONFIG_CFLAGS=""
12957 FONTCONFIG_LIBS=""
12958 ## If we have a custom action on failure, don't print errors, but
12959 ## do set a variable so people can do so.
12960 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12966 else
12967 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12968 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12972 if test $succeeded = yes; then
12973 HAVE_FC=yes
12974 else
12975 HAVE_FC=no
12978 if test "${HAVE_FC}" = "no"; then
12979 HAVE_FREETYPE=no
12984 HAVE_LIBOTF=no
12985 if test "${HAVE_FREETYPE}" = "yes"; then
12987 cat >>confdefs.h <<\_ACEOF
12988 #define HAVE_FREETYPE 1
12989 _ACEOF
12991 if test "${with_libotf}" != "no"; then
12993 succeeded=no
12995 # Extract the first word of "pkg-config", so it can be a program name with args.
12996 set dummy pkg-config; ac_word=$2
12997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12999 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002 case $PKG_CONFIG in
13003 [\\/]* | ?:[\\/]*)
13004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13016 break 2
13018 done
13019 done
13020 IFS=$as_save_IFS
13022 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13024 esac
13026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13027 if test -n "$PKG_CONFIG"; then
13028 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13029 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13030 else
13031 { echo "$as_me:$LINENO: result: no" >&5
13032 echo "${ECHO_T}no" >&6; }
13037 if test "$PKG_CONFIG" = "no" ; then
13038 HAVE_LIBOTF=no
13039 else
13040 PKG_CONFIG_MIN_VERSION=0.9.0
13041 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13042 { echo "$as_me:$LINENO: checking for libotf" >&5
13043 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13045 if $PKG_CONFIG --exists "libotf" 2>&5; then
13046 { echo "$as_me:$LINENO: result: yes" >&5
13047 echo "${ECHO_T}yes" >&6; }
13048 succeeded=yes
13050 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13051 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13052 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13053 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13054 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13056 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13057 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13058 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13059 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13060 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13061 else
13062 { echo "$as_me:$LINENO: result: no" >&5
13063 echo "${ECHO_T}no" >&6; }
13064 LIBOTF_CFLAGS=""
13065 LIBOTF_LIBS=""
13066 ## If we have a custom action on failure, don't print errors, but
13067 ## do set a variable so people can do so.
13068 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13074 else
13075 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13076 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13080 if test $succeeded = yes; then
13081 HAVE_LIBOTF=yes
13082 else
13083 HAVE_LIBOTF=no
13086 if test "$HAVE_LIBOTF" = "yes"; then
13088 cat >>confdefs.h <<\_ACEOF
13089 #define HAVE_LIBOTF 1
13090 _ACEOF
13096 HAVE_M17N_FLT=no
13097 if test "${with_m17n_flt}" != "no"; then
13099 succeeded=no
13101 # Extract the first word of "pkg-config", so it can be a program name with args.
13102 set dummy pkg-config; ac_word=$2
13103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108 case $PKG_CONFIG in
13109 [\\/]* | ?:[\\/]*)
13110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13124 done
13125 done
13126 IFS=$as_save_IFS
13128 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13130 esac
13132 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13133 if test -n "$PKG_CONFIG"; then
13134 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13135 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13136 else
13137 { echo "$as_me:$LINENO: result: no" >&5
13138 echo "${ECHO_T}no" >&6; }
13143 if test "$PKG_CONFIG" = "no" ; then
13144 HAVE_M17N_FLT=no
13145 else
13146 PKG_CONFIG_MIN_VERSION=0.9.0
13147 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13148 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13149 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13151 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13152 { echo "$as_me:$LINENO: result: yes" >&5
13153 echo "${ECHO_T}yes" >&6; }
13154 succeeded=yes
13156 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13157 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13158 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13159 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13160 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13162 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13163 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13164 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13165 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13166 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13167 else
13168 { echo "$as_me:$LINENO: result: no" >&5
13169 echo "${ECHO_T}no" >&6; }
13170 M17N_FLT_CFLAGS=""
13171 M17N_FLT_LIBS=""
13172 ## If we have a custom action on failure, don't print errors, but
13173 ## do set a variable so people can do so.
13174 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13180 else
13181 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13182 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13186 if test $succeeded = yes; then
13187 HAVE_M17N_FLT=yes
13188 else
13189 HAVE_M17N_FLT=no
13192 if test "$HAVE_M17N_FLT" = "yes"; then
13194 cat >>confdefs.h <<\_ACEOF
13195 #define HAVE_M17N_FLT 1
13196 _ACEOF
13210 ### End of font-backend section.
13212 ### Use -lXpm if available, unless `--with-xpm=no'.
13213 HAVE_XPM=no
13214 if test "${HAVE_X11}" = "yes"; then
13215 if test "${with_xpm}" != "no"; then
13216 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13217 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13218 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13219 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13223 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13224 else
13225 # Is the header compilable?
13226 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13227 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13228 cat >conftest.$ac_ext <<_ACEOF
13229 /* confdefs.h. */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13234 $ac_includes_default
13235 #include <X11/xpm.h>
13236 _ACEOF
13237 rm -f conftest.$ac_objext
13238 if { (ac_try="$ac_compile"
13239 case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242 esac
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_compile") 2>conftest.er1
13245 ac_status=$?
13246 grep -v '^ *+' conftest.er1 >conftest.err
13247 rm -f conftest.er1
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } && {
13251 test -z "$ac_c_werror_flag" ||
13252 test ! -s conftest.err
13253 } && test -s conftest.$ac_objext; then
13254 ac_header_compiler=yes
13255 else
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13259 ac_header_compiler=no
13262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13264 echo "${ECHO_T}$ac_header_compiler" >&6; }
13266 # Is the header present?
13267 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13268 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13269 cat >conftest.$ac_ext <<_ACEOF
13270 /* confdefs.h. */
13271 _ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h. */
13275 #include <X11/xpm.h>
13276 _ACEOF
13277 if { (ac_try="$ac_cpp conftest.$ac_ext"
13278 case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13281 esac
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13284 ac_status=$?
13285 grep -v '^ *+' conftest.er1 >conftest.err
13286 rm -f conftest.er1
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } >/dev/null && {
13290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13291 test ! -s conftest.err
13292 }; then
13293 ac_header_preproc=yes
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 ac_header_preproc=no
13301 rm -f conftest.err conftest.$ac_ext
13302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13303 echo "${ECHO_T}$ac_header_preproc" >&6; }
13305 # So? What about this header?
13306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13307 yes:no: )
13308 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13309 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13311 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13312 ac_header_preproc=yes
13314 no:yes:* )
13315 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13316 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13318 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13320 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13322 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13324 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13326 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13329 esac
13330 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13331 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13332 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335 ac_cv_header_X11_xpm_h=$ac_header_preproc
13337 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13338 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13341 if test $ac_cv_header_X11_xpm_h = yes; then
13342 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13343 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13344 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347 ac_check_lib_save_LIBS=$LIBS
13348 LIBS="-lXpm -lX11 $LIBS"
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. */
13356 /* Override any GCC internal prototype to avoid an error.
13357 Use char because int might match the return type of a GCC
13358 builtin and then its argument prototype would still apply. */
13359 #ifdef __cplusplus
13360 extern "C"
13361 #endif
13362 char XpmReadFileToPixmap ();
13364 main ()
13366 return XpmReadFileToPixmap ();
13368 return 0;
13370 _ACEOF
13371 rm -f conftest.$ac_objext conftest$ac_exeext
13372 if { (ac_try="$ac_link"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_link") 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } && {
13385 test -z "$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 } && test -s conftest$ac_exeext &&
13388 $as_test_x conftest$ac_exeext; then
13389 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13390 else
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS
13401 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13402 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13403 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13404 HAVE_XPM=yes
13410 if test "${HAVE_XPM}" = "yes"; then
13411 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13412 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13413 cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h. */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 #include "X11/xpm.h"
13420 #ifndef XpmReturnAllocPixels
13421 no_return_alloc_pixels
13422 #endif
13424 _ACEOF
13425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13426 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13427 HAVE_XPM=no
13428 else
13429 HAVE_XPM=yes
13431 rm -f conftest*
13434 if test "${HAVE_XPM}" = "yes"; then
13435 { echo "$as_me:$LINENO: result: yes" >&5
13436 echo "${ECHO_T}yes" >&6; }
13437 else
13438 { echo "$as_me:$LINENO: result: no" >&5
13439 echo "${ECHO_T}no" >&6; }
13444 if test "${HAVE_XPM}" = "yes"; then
13446 cat >>confdefs.h <<\_ACEOF
13447 #define HAVE_XPM 1
13448 _ACEOF
13453 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13454 HAVE_JPEG=no
13455 if test "${HAVE_X11}" = "yes"; then
13456 if test "${with_jpeg}" != "no"; then
13457 if test "${ac_cv_header_jerror_h+set}" = set; then
13458 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13459 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13460 if test "${ac_cv_header_jerror_h+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13464 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13465 else
13466 # Is the header compilable?
13467 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13468 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13469 cat >conftest.$ac_ext <<_ACEOF
13470 /* confdefs.h. */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 $ac_includes_default
13476 #include <jerror.h>
13477 _ACEOF
13478 rm -f conftest.$ac_objext
13479 if { (ac_try="$ac_compile"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_compile") 2>conftest.er1
13486 ac_status=$?
13487 grep -v '^ *+' conftest.er1 >conftest.err
13488 rm -f conftest.er1
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } && {
13492 test -z "$ac_c_werror_flag" ||
13493 test ! -s conftest.err
13494 } && test -s conftest.$ac_objext; then
13495 ac_header_compiler=yes
13496 else
13497 echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 ac_header_compiler=no
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 echo "${ECHO_T}$ac_header_compiler" >&6; }
13507 # Is the header present?
13508 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13509 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <jerror.h>
13517 _ACEOF
13518 if { (ac_try="$ac_cpp conftest.$ac_ext"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } >/dev/null && {
13531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 }; then
13534 ac_header_preproc=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_header_preproc=no
13542 rm -f conftest.err conftest.$ac_ext
13543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13544 echo "${ECHO_T}$ac_header_preproc" >&6; }
13546 # So? What about this header?
13547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13548 yes:no: )
13549 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13550 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13552 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13553 ac_header_preproc=yes
13555 no:yes:* )
13556 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13557 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13559 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13560 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13561 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13563 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13565 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13567 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13570 esac
13571 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13572 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13573 if test "${ac_cv_header_jerror_h+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 else
13576 ac_cv_header_jerror_h=$ac_header_preproc
13578 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13579 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13582 if test $ac_cv_header_jerror_h = yes; then
13583 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13584 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13585 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588 ac_check_lib_save_LIBS=$LIBS
13589 LIBS="-ljpeg $LIBS"
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h. */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13597 /* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 char jpeg_destroy_compress ();
13605 main ()
13607 return jpeg_destroy_compress ();
13609 return 0;
13611 _ACEOF
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (ac_try="$ac_link"
13614 case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_link") 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } && {
13626 test -z "$ac_c_werror_flag" ||
13627 test ! -s conftest.err
13628 } && test -s conftest$ac_exeext &&
13629 $as_test_x conftest$ac_exeext; then
13630 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13631 else
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13635 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13639 conftest$ac_exeext conftest.$ac_ext
13640 LIBS=$ac_check_lib_save_LIBS
13642 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13643 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13644 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13645 HAVE_JPEG=yes
13654 if test "${HAVE_JPEG}" = "yes"; then
13655 cat >>confdefs.h <<\_ACEOF
13656 #define HAVE_JPEG 1
13657 _ACEOF
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 #include <jpeglib.h>
13666 version=JPEG_LIB_VERSION
13668 _ACEOF
13669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13670 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13671 cat >>confdefs.h <<\_ACEOF
13672 #define HAVE_JPEG 1
13673 _ACEOF
13675 else
13676 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13677 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13678 HAVE_JPEG=no
13680 rm -f conftest*
13685 ### Use -lpng if available, unless `--with-png=no'.
13686 HAVE_PNG=no
13687 if test "${HAVE_X11}" = "yes"; then
13688 if test "${with_png}" != "no"; then
13689 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13690 # in /usr/include/libpng.
13693 for ac_header in png.h libpng/png.h
13695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_res=`eval echo '${'$as_ac_Header'}'`
13703 { echo "$as_me:$LINENO: result: $ac_res" >&5
13704 echo "${ECHO_T}$ac_res" >&6; }
13705 else
13706 # Is the header compilable?
13707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13709 cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h. */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13715 $ac_includes_default
13716 #include <$ac_header>
13717 _ACEOF
13718 rm -f conftest.$ac_objext
13719 if { (ac_try="$ac_compile"
13720 case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13723 esac
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_compile") 2>conftest.er1
13726 ac_status=$?
13727 grep -v '^ *+' conftest.er1 >conftest.err
13728 rm -f conftest.er1
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } && {
13732 test -z "$ac_c_werror_flag" ||
13733 test ! -s conftest.err
13734 } && test -s conftest.$ac_objext; then
13735 ac_header_compiler=yes
13736 else
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 ac_header_compiler=no
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13745 echo "${ECHO_T}$ac_header_compiler" >&6; }
13747 # Is the header present?
13748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13750 cat >conftest.$ac_ext <<_ACEOF
13751 /* confdefs.h. */
13752 _ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 #include <$ac_header>
13757 _ACEOF
13758 if { (ac_try="$ac_cpp conftest.$ac_ext"
13759 case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13762 esac
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } >/dev/null && {
13771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13772 test ! -s conftest.err
13773 }; then
13774 ac_header_preproc=yes
13775 else
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_header_preproc=no
13782 rm -f conftest.err conftest.$ac_ext
13783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784 echo "${ECHO_T}$ac_header_preproc" >&6; }
13786 # So? What about this header?
13787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13788 yes:no: )
13789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793 ac_header_preproc=yes
13795 no:yes:* )
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13810 esac
13811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816 eval "$as_ac_Header=\$ac_header_preproc"
13818 ac_res=`eval echo '${'$as_ac_Header'}'`
13819 { echo "$as_me:$LINENO: result: $ac_res" >&5
13820 echo "${ECHO_T}$ac_res" >&6; }
13823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13824 cat >>confdefs.h <<_ACEOF
13825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13826 _ACEOF
13830 done
13832 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13833 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13834 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13835 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838 ac_check_lib_save_LIBS=$LIBS
13839 LIBS="-lpng -lz -lm $LIBS"
13840 cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h. */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13850 #ifdef __cplusplus
13851 extern "C"
13852 #endif
13853 char png_get_channels ();
13855 main ()
13857 return png_get_channels ();
13859 return 0;
13861 _ACEOF
13862 rm -f conftest.$ac_objext conftest$ac_exeext
13863 if { (ac_try="$ac_link"
13864 case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867 esac
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_link") 2>conftest.er1
13870 ac_status=$?
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } && {
13876 test -z "$ac_c_werror_flag" ||
13877 test ! -s conftest.err
13878 } && test -s conftest$ac_exeext &&
13879 $as_test_x conftest$ac_exeext; then
13880 ac_cv_lib_png_png_get_channels=yes
13881 else
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 ac_cv_lib_png_png_get_channels=no
13888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13889 conftest$ac_exeext conftest.$ac_ext
13890 LIBS=$ac_check_lib_save_LIBS
13892 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13893 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13894 if test $ac_cv_lib_png_png_get_channels = yes; then
13895 HAVE_PNG=yes
13901 if test "${HAVE_PNG}" = "yes"; then
13903 cat >>confdefs.h <<\_ACEOF
13904 #define HAVE_PNG 1
13905 _ACEOF
13910 ### Use -ltiff if available, unless `--with-tiff=no'.
13911 HAVE_TIFF=no
13912 if test "${HAVE_X11}" = "yes"; then
13913 if test "${with_tiff}" != "no"; then
13914 if test "${ac_cv_header_tiffio_h+set}" = set; then
13915 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13916 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13917 if test "${ac_cv_header_tiffio_h+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13921 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13922 else
13923 # Is the header compilable?
13924 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13925 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13926 cat >conftest.$ac_ext <<_ACEOF
13927 /* confdefs.h. */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 $ac_includes_default
13933 #include <tiffio.h>
13934 _ACEOF
13935 rm -f conftest.$ac_objext
13936 if { (ac_try="$ac_compile"
13937 case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13940 esac
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_compile") 2>conftest.er1
13943 ac_status=$?
13944 grep -v '^ *+' conftest.er1 >conftest.err
13945 rm -f conftest.er1
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } && {
13949 test -z "$ac_c_werror_flag" ||
13950 test ! -s conftest.err
13951 } && test -s conftest.$ac_objext; then
13952 ac_header_compiler=yes
13953 else
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13957 ac_header_compiler=no
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13962 echo "${ECHO_T}$ac_header_compiler" >&6; }
13964 # Is the header present?
13965 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13966 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h. */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #include <tiffio.h>
13974 _ACEOF
13975 if { (ac_try="$ac_cpp conftest.$ac_ext"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } >/dev/null && {
13988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13989 test ! -s conftest.err
13990 }; then
13991 ac_header_preproc=yes
13992 else
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_header_preproc=no
13999 rm -f conftest.err conftest.$ac_ext
14000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14001 echo "${ECHO_T}$ac_header_preproc" >&6; }
14003 # So? What about this header?
14004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14005 yes:no: )
14006 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14007 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14008 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14009 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14010 ac_header_preproc=yes
14012 no:yes:* )
14013 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14014 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14016 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14018 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14020 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14022 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14024 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14027 esac
14028 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14029 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14030 if test "${ac_cv_header_tiffio_h+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 else
14033 ac_cv_header_tiffio_h=$ac_header_preproc
14035 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14036 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14039 if test $ac_cv_header_tiffio_h = yes; then
14040 tifflibs="-lz -lm"
14041 # At least one tiff package requires the jpeg library.
14042 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14043 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14044 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14045 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048 ac_check_lib_save_LIBS=$LIBS
14049 LIBS="-ltiff $tifflibs $LIBS"
14050 cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h. */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14057 /* Override any GCC internal prototype to avoid an error.
14058 Use char because int might match the return type of a GCC
14059 builtin and then its argument prototype would still apply. */
14060 #ifdef __cplusplus
14061 extern "C"
14062 #endif
14063 char TIFFGetVersion ();
14065 main ()
14067 return TIFFGetVersion ();
14069 return 0;
14071 _ACEOF
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (ac_try="$ac_link"
14074 case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14077 esac
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_link") 2>conftest.er1
14080 ac_status=$?
14081 grep -v '^ *+' conftest.er1 >conftest.err
14082 rm -f conftest.er1
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && {
14086 test -z "$ac_c_werror_flag" ||
14087 test ! -s conftest.err
14088 } && test -s conftest$ac_exeext &&
14089 $as_test_x conftest$ac_exeext; then
14090 ac_cv_lib_tiff_TIFFGetVersion=yes
14091 else
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14095 ac_cv_lib_tiff_TIFFGetVersion=no
14098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14099 conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14102 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14103 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14104 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14105 HAVE_TIFF=yes
14113 if test "${HAVE_TIFF}" = "yes"; then
14115 cat >>confdefs.h <<\_ACEOF
14116 #define HAVE_TIFF 1
14117 _ACEOF
14122 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14123 HAVE_GIF=no
14124 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14125 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14126 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14127 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14128 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14132 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14133 else
14134 # Is the header compilable?
14135 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14136 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h. */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 $ac_includes_default
14144 #include <gif_lib.h>
14145 _ACEOF
14146 rm -f conftest.$ac_objext
14147 if { (ac_try="$ac_compile"
14148 case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14151 esac
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_compile") 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } && {
14160 test -z "$ac_c_werror_flag" ||
14161 test ! -s conftest.err
14162 } && test -s conftest.$ac_objext; then
14163 ac_header_compiler=yes
14164 else
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14168 ac_header_compiler=no
14171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14173 echo "${ECHO_T}$ac_header_compiler" >&6; }
14175 # Is the header present?
14176 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14177 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14178 cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h. */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184 #include <gif_lib.h>
14185 _ACEOF
14186 if { (ac_try="$ac_cpp conftest.$ac_ext"
14187 case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14190 esac
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } >/dev/null && {
14199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14200 test ! -s conftest.err
14201 }; then
14202 ac_header_preproc=yes
14203 else
14204 echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14207 ac_header_preproc=no
14210 rm -f conftest.err conftest.$ac_ext
14211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14212 echo "${ECHO_T}$ac_header_preproc" >&6; }
14214 # So? What about this header?
14215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14216 yes:no: )
14217 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14218 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14219 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14220 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14221 ac_header_preproc=yes
14223 no:yes:* )
14224 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14225 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14227 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14229 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14230 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14231 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14232 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14233 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14234 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14235 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14238 esac
14239 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14240 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14241 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244 ac_cv_header_gif_lib_h=$ac_header_preproc
14246 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14247 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14250 if test $ac_cv_header_gif_lib_h = yes; then
14251 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14252 # Earlier versions can crash Emacs.
14253 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14254 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14255 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 else
14258 ac_check_lib_save_LIBS=$LIBS
14259 LIBS="-lgif $LIBS"
14260 cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h. */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14267 /* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */
14270 #ifdef __cplusplus
14271 extern "C"
14272 #endif
14273 char EGifPutExtensionLast ();
14275 main ()
14277 return EGifPutExtensionLast ();
14279 return 0;
14281 _ACEOF
14282 rm -f conftest.$ac_objext conftest$ac_exeext
14283 if { (ac_try="$ac_link"
14284 case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_link") 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } && {
14296 test -z "$ac_c_werror_flag" ||
14297 test ! -s conftest.err
14298 } && test -s conftest$ac_exeext &&
14299 $as_test_x conftest$ac_exeext; then
14300 ac_cv_lib_gif_EGifPutExtensionLast=yes
14301 else
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 ac_cv_lib_gif_EGifPutExtensionLast=no
14308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14309 conftest$ac_exeext conftest.$ac_ext
14310 LIBS=$ac_check_lib_save_LIBS
14312 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14313 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14314 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14315 HAVE_GIF=yes
14316 else
14317 try_libungif=yes
14324 if test "$HAVE_GIF" = yes; then
14325 ac_gif_lib_name="-lgif"
14328 # If gif_lib.h but no libgif, try libungif.
14329 if test x"$try_libungif" = xyes; then
14330 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14331 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14332 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14333 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 else
14335 ac_check_lib_save_LIBS=$LIBS
14336 LIBS="-lungif $LIBS"
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14344 /* Override any GCC internal prototype to avoid an error.
14345 Use char because int might match the return type of a GCC
14346 builtin and then its argument prototype would still apply. */
14347 #ifdef __cplusplus
14348 extern "C"
14349 #endif
14350 char EGifPutExtensionLast ();
14352 main ()
14354 return EGifPutExtensionLast ();
14356 return 0;
14358 _ACEOF
14359 rm -f conftest.$ac_objext conftest$ac_exeext
14360 if { (ac_try="$ac_link"
14361 case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14364 esac
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_link") 2>conftest.er1
14367 ac_status=$?
14368 grep -v '^ *+' conftest.er1 >conftest.err
14369 rm -f conftest.er1
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } && {
14373 test -z "$ac_c_werror_flag" ||
14374 test ! -s conftest.err
14375 } && test -s conftest$ac_exeext &&
14376 $as_test_x conftest$ac_exeext; then
14377 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14378 else
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 ac_cv_lib_ungif_EGifPutExtensionLast=no
14385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14386 conftest$ac_exeext conftest.$ac_ext
14387 LIBS=$ac_check_lib_save_LIBS
14389 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14390 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14391 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14392 HAVE_GIF=yes
14396 if test "$HAVE_GIF" = yes; then
14398 cat >>confdefs.h <<\_ACEOF
14399 #define LIBGIF -lungif
14400 _ACEOF
14402 ac_gif_lib_name="-lungif"
14406 if test "${HAVE_GIF}" = "yes"; then
14408 cat >>confdefs.h <<\_ACEOF
14409 #define HAVE_GIF 1
14410 _ACEOF
14415 if test "${HAVE_X11}" = "yes"; then
14416 MISSING=""
14417 WITH_NO=""
14418 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14419 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14420 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14421 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14422 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14423 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14424 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14425 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14426 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14427 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14429 if test "X${MISSING}" != X; then
14430 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14431 $MISSING
14432 Maybe some development libraries/packages are missing?
14433 If you don't want to link with them give
14434 $WITH_NO
14435 as options to configure" >&5
14436 echo "$as_me: error: The following required libraries were not found:
14437 $MISSING
14438 Maybe some development libraries/packages are missing?
14439 If you don't want to link with them give
14440 $WITH_NO
14441 as options to configure" >&2;}
14442 { (exit 1); exit 1; }; }
14446 ### Use -lgpm if available, unless `--with-gpm=no'.
14447 HAVE_GPM=no
14448 if test "${with_gpm}" != "no"; then
14449 if test "${ac_cv_header_gpm_h+set}" = set; then
14450 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14451 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14452 if test "${ac_cv_header_gpm_h+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14456 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14457 else
14458 # Is the header compilable?
14459 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14460 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14461 cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h. */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 $ac_includes_default
14468 #include <gpm.h>
14469 _ACEOF
14470 rm -f conftest.$ac_objext
14471 if { (ac_try="$ac_compile"
14472 case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_compile") 2>conftest.er1
14478 ac_status=$?
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } && {
14484 test -z "$ac_c_werror_flag" ||
14485 test ! -s conftest.err
14486 } && test -s conftest.$ac_objext; then
14487 ac_header_compiler=yes
14488 else
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14492 ac_header_compiler=no
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14497 echo "${ECHO_T}$ac_header_compiler" >&6; }
14499 # Is the header present?
14500 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14501 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14502 cat >conftest.$ac_ext <<_ACEOF
14503 /* confdefs.h. */
14504 _ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 #include <gpm.h>
14509 _ACEOF
14510 if { (ac_try="$ac_cpp conftest.$ac_ext"
14511 case "(($ac_try" in
14512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513 *) ac_try_echo=$ac_try;;
14514 esac
14515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14517 ac_status=$?
14518 grep -v '^ *+' conftest.er1 >conftest.err
14519 rm -f conftest.er1
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } >/dev/null && {
14523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14524 test ! -s conftest.err
14525 }; then
14526 ac_header_preproc=yes
14527 else
14528 echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14531 ac_header_preproc=no
14534 rm -f conftest.err conftest.$ac_ext
14535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14536 echo "${ECHO_T}$ac_header_preproc" >&6; }
14538 # So? What about this header?
14539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14540 yes:no: )
14541 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14542 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14544 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14545 ac_header_preproc=yes
14547 no:yes:* )
14548 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14549 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14551 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14553 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14555 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14557 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14559 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14562 esac
14563 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14564 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14565 if test "${ac_cv_header_gpm_h+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568 ac_cv_header_gpm_h=$ac_header_preproc
14570 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14571 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14574 if test $ac_cv_header_gpm_h = yes; then
14575 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14576 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14577 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 else
14580 ac_check_lib_save_LIBS=$LIBS
14581 LIBS="-lgpm $LIBS"
14582 cat >conftest.$ac_ext <<_ACEOF
14583 /* confdefs.h. */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14589 /* Override any GCC internal prototype to avoid an error.
14590 Use char because int might match the return type of a GCC
14591 builtin and then its argument prototype would still apply. */
14592 #ifdef __cplusplus
14593 extern "C"
14594 #endif
14595 char Gpm_Open ();
14597 main ()
14599 return Gpm_Open ();
14601 return 0;
14603 _ACEOF
14604 rm -f conftest.$ac_objext conftest$ac_exeext
14605 if { (ac_try="$ac_link"
14606 case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14609 esac
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_link") 2>conftest.er1
14612 ac_status=$?
14613 grep -v '^ *+' conftest.er1 >conftest.err
14614 rm -f conftest.er1
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } && {
14618 test -z "$ac_c_werror_flag" ||
14619 test ! -s conftest.err
14620 } && test -s conftest$ac_exeext &&
14621 $as_test_x conftest$ac_exeext; then
14622 ac_cv_lib_gpm_Gpm_Open=yes
14623 else
14624 echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14627 ac_cv_lib_gpm_Gpm_Open=no
14630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14631 conftest$ac_exeext conftest.$ac_ext
14632 LIBS=$ac_check_lib_save_LIBS
14634 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14635 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14636 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14637 HAVE_GPM=yes
14645 if test "${HAVE_GPM}" = "yes"; then
14647 cat >>confdefs.h <<\_ACEOF
14648 #define HAVE_GPM 1
14649 _ACEOF
14653 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14654 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14655 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14656 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14659 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14660 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14661 else
14662 # Is the header compilable?
14663 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14664 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14665 cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h. */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14671 $ac_includes_default
14672 #include <malloc/malloc.h>
14673 _ACEOF
14674 rm -f conftest.$ac_objext
14675 if { (ac_try="$ac_compile"
14676 case "(($ac_try" in
14677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678 *) ac_try_echo=$ac_try;;
14679 esac
14680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681 (eval "$ac_compile") 2>conftest.er1
14682 ac_status=$?
14683 grep -v '^ *+' conftest.er1 >conftest.err
14684 rm -f conftest.er1
14685 cat conftest.err >&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } && {
14688 test -z "$ac_c_werror_flag" ||
14689 test ! -s conftest.err
14690 } && test -s conftest.$ac_objext; then
14691 ac_header_compiler=yes
14692 else
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 ac_header_compiler=no
14699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14701 echo "${ECHO_T}$ac_header_compiler" >&6; }
14703 # Is the header present?
14704 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14705 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h. */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 #include <malloc/malloc.h>
14713 _ACEOF
14714 if { (ac_try="$ac_cpp conftest.$ac_ext"
14715 case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } >/dev/null && {
14727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14728 test ! -s conftest.err
14729 }; then
14730 ac_header_preproc=yes
14731 else
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14735 ac_header_preproc=no
14738 rm -f conftest.err conftest.$ac_ext
14739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14740 echo "${ECHO_T}$ac_header_preproc" >&6; }
14742 # So? What about this header?
14743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14744 yes:no: )
14745 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14746 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14748 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14749 ac_header_preproc=yes
14751 no:yes:* )
14752 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14753 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14755 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14757 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14759 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14760 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14761 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14762 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14763 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14766 esac
14767 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14768 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14769 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 else
14772 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14774 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14775 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14778 if test $ac_cv_header_malloc_malloc_h = yes; then
14780 cat >>confdefs.h <<\_ACEOF
14781 #define HAVE_MALLOC_MALLOC_H 1
14782 _ACEOF
14788 ### Use Mac OS X Carbon API to implement GUI.
14789 if test "${HAVE_CARBON}" = "yes"; then
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_CARBON 1
14793 _ACEOF
14796 for ac_header in AvailabilityMacros.h
14798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 ac_res=`eval echo '${'$as_ac_Header'}'`
14806 { echo "$as_me:$LINENO: result: $ac_res" >&5
14807 echo "${ECHO_T}$ac_res" >&6; }
14808 else
14809 # Is the header compilable?
14810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14812 cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h. */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14818 $ac_includes_default
14819 #include <$ac_header>
14820 _ACEOF
14821 rm -f conftest.$ac_objext
14822 if { (ac_try="$ac_compile"
14823 case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_compile") 2>conftest.er1
14829 ac_status=$?
14830 grep -v '^ *+' conftest.er1 >conftest.err
14831 rm -f conftest.er1
14832 cat conftest.err >&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } && {
14835 test -z "$ac_c_werror_flag" ||
14836 test ! -s conftest.err
14837 } && test -s conftest.$ac_objext; then
14838 ac_header_compiler=yes
14839 else
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14843 ac_header_compiler=no
14846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14848 echo "${ECHO_T}$ac_header_compiler" >&6; }
14850 # Is the header present?
14851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14853 cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h. */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 #include <$ac_header>
14860 _ACEOF
14861 if { (ac_try="$ac_cpp conftest.$ac_ext"
14862 case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14865 esac
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } >/dev/null && {
14874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14875 test ! -s conftest.err
14876 }; then
14877 ac_header_preproc=yes
14878 else
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14882 ac_header_preproc=no
14885 rm -f conftest.err conftest.$ac_ext
14886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14887 echo "${ECHO_T}$ac_header_preproc" >&6; }
14889 # So? What about this header?
14890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14891 yes:no: )
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14896 ac_header_preproc=yes
14898 no:yes:* )
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14913 esac
14914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 else
14919 eval "$as_ac_Header=\$ac_header_preproc"
14921 ac_res=`eval echo '${'$as_ac_Header'}'`
14922 { echo "$as_me:$LINENO: result: $ac_res" >&5
14923 echo "${ECHO_T}$ac_res" >&6; }
14926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14927 cat >>confdefs.h <<_ACEOF
14928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14929 _ACEOF
14933 done
14935 ## Specify the install directory
14936 carbon_appdir=
14937 if test "${carbon_appdir_x}" != ""; then
14938 case ${carbon_appdir_x} in
14939 y | ye | yes) carbon_appdir=/Applications ;;
14940 * ) carbon_appdir=${carbon_appdir_x} ;;
14941 esac
14943 # We also have mouse menus.
14944 HAVE_MENUS=yes
14947 ### Use session management (-lSM -lICE) if available
14948 HAVE_X_SM=no
14949 if test "${HAVE_X11}" = "yes"; then
14950 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14951 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14952 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14953 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14957 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14958 else
14959 # Is the header compilable?
14960 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14961 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14962 cat >conftest.$ac_ext <<_ACEOF
14963 /* confdefs.h. */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 $ac_includes_default
14969 #include <X11/SM/SMlib.h>
14970 _ACEOF
14971 rm -f conftest.$ac_objext
14972 if { (ac_try="$ac_compile"
14973 case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14976 esac
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_compile") 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } && {
14985 test -z "$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14987 } && test -s conftest.$ac_objext; then
14988 ac_header_compiler=yes
14989 else
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 ac_header_compiler=no
14996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14998 echo "${ECHO_T}$ac_header_compiler" >&6; }
15000 # Is the header present?
15001 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15002 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15003 cat >conftest.$ac_ext <<_ACEOF
15004 /* confdefs.h. */
15005 _ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15009 #include <X11/SM/SMlib.h>
15010 _ACEOF
15011 if { (ac_try="$ac_cpp conftest.$ac_ext"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } >/dev/null && {
15024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 }; then
15027 ac_header_preproc=yes
15028 else
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 ac_header_preproc=no
15035 rm -f conftest.err conftest.$ac_ext
15036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15037 echo "${ECHO_T}$ac_header_preproc" >&6; }
15039 # So? What about this header?
15040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15041 yes:no: )
15042 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15043 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15045 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15046 ac_header_preproc=yes
15048 no:yes:* )
15049 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15050 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15052 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15054 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15056 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15058 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15060 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15063 esac
15064 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15065 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15066 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 else
15069 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15071 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15072 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15075 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15076 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15077 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15078 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081 ac_check_lib_save_LIBS=$LIBS
15082 LIBS="-lSM -lICE $LIBS"
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h. */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15090 /* Override any GCC internal prototype to avoid an error.
15091 Use char because int might match the return type of a GCC
15092 builtin and then its argument prototype would still apply. */
15093 #ifdef __cplusplus
15094 extern "C"
15095 #endif
15096 char SmcOpenConnection ();
15098 main ()
15100 return SmcOpenConnection ();
15102 return 0;
15104 _ACEOF
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (ac_try="$ac_link"
15107 case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110 esac
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_link") 2>conftest.er1
15113 ac_status=$?
15114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } && {
15119 test -z "$ac_c_werror_flag" ||
15120 test ! -s conftest.err
15121 } && test -s conftest$ac_exeext &&
15122 $as_test_x conftest$ac_exeext; then
15123 ac_cv_lib_SM_SmcOpenConnection=yes
15124 else
15125 echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.$ac_ext >&5
15128 ac_cv_lib_SM_SmcOpenConnection=no
15131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15132 conftest$ac_exeext conftest.$ac_ext
15133 LIBS=$ac_check_lib_save_LIBS
15135 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15136 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15137 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15138 HAVE_X_SM=yes
15145 if test "${HAVE_X_SM}" = "yes"; then
15147 cat >>confdefs.h <<\_ACEOF
15148 #define HAVE_X_SM 1
15149 _ACEOF
15151 case "$LIBS" in
15152 *-lSM*) ;;
15153 *) LIBS="-lSM -lICE $LIBS" ;;
15154 esac
15158 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15159 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15160 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15161 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 #include <netdb.h>
15172 main ()
15174 return h_errno;
15176 return 0;
15178 _ACEOF
15179 rm -f conftest.$ac_objext conftest$ac_exeext
15180 if { (ac_try="$ac_link"
15181 case "(($ac_try" in
15182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183 *) ac_try_echo=$ac_try;;
15184 esac
15185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15186 (eval "$ac_link") 2>conftest.er1
15187 ac_status=$?
15188 grep -v '^ *+' conftest.er1 >conftest.err
15189 rm -f conftest.er1
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } && {
15193 test -z "$ac_c_werror_flag" ||
15194 test ! -s conftest.err
15195 } && test -s conftest$ac_exeext &&
15196 $as_test_x conftest$ac_exeext; then
15197 emacs_cv_netdb_declares_h_errno=yes
15198 else
15199 echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15202 emacs_cv_netdb_declares_h_errno=no
15205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15206 conftest$ac_exeext conftest.$ac_ext
15208 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15209 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15210 if test $emacs_cv_netdb_declares_h_errno = yes; then
15212 cat >>confdefs.h <<\_ACEOF
15213 #define HAVE_H_ERRNO 1
15214 _ACEOF
15218 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15219 # for constant arguments. Useless!
15220 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15221 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15222 if test "${ac_cv_working_alloca_h+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 else
15225 cat >conftest.$ac_ext <<_ACEOF
15226 /* confdefs.h. */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 #include <alloca.h>
15233 main ()
15235 char *p = (char *) alloca (2 * sizeof (int));
15236 if (p) return 0;
15238 return 0;
15240 _ACEOF
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (ac_try="$ac_link"
15243 case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15246 esac
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_link") 2>conftest.er1
15249 ac_status=$?
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } && {
15255 test -z "$ac_c_werror_flag" ||
15256 test ! -s conftest.err
15257 } && test -s conftest$ac_exeext &&
15258 $as_test_x conftest$ac_exeext; then
15259 ac_cv_working_alloca_h=yes
15260 else
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15264 ac_cv_working_alloca_h=no
15267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15268 conftest$ac_exeext conftest.$ac_ext
15270 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15271 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15272 if test $ac_cv_working_alloca_h = yes; then
15274 cat >>confdefs.h <<\_ACEOF
15275 #define HAVE_ALLOCA_H 1
15276 _ACEOF
15280 { echo "$as_me:$LINENO: checking for alloca" >&5
15281 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15282 if test "${ac_cv_func_alloca_works+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285 cat >conftest.$ac_ext <<_ACEOF
15286 /* confdefs.h. */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 #ifdef __GNUC__
15292 # define alloca __builtin_alloca
15293 #else
15294 # ifdef _MSC_VER
15295 # include <malloc.h>
15296 # define alloca _alloca
15297 # else
15298 # ifdef HAVE_ALLOCA_H
15299 # include <alloca.h>
15300 # else
15301 # ifdef _AIX
15302 #pragma alloca
15303 # else
15304 # ifndef alloca /* predefined by HP cc +Olibcalls */
15305 char *alloca ();
15306 # endif
15307 # endif
15308 # endif
15309 # endif
15310 #endif
15313 main ()
15315 char *p = (char *) alloca (1);
15316 if (p) return 0;
15318 return 0;
15320 _ACEOF
15321 rm -f conftest.$ac_objext conftest$ac_exeext
15322 if { (ac_try="$ac_link"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326 esac
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_link") 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } && {
15335 test -z "$ac_c_werror_flag" ||
15336 test ! -s conftest.err
15337 } && test -s conftest$ac_exeext &&
15338 $as_test_x conftest$ac_exeext; then
15339 ac_cv_func_alloca_works=yes
15340 else
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 ac_cv_func_alloca_works=no
15347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15348 conftest$ac_exeext conftest.$ac_ext
15350 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15351 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15353 if test $ac_cv_func_alloca_works = yes; then
15355 cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_ALLOCA 1
15357 _ACEOF
15359 else
15360 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15361 # that cause trouble. Some versions do not even contain alloca or
15362 # contain a buggy version. If you still want to use their alloca,
15363 # use ar to extract alloca.o from them instead of compiling alloca.c.
15365 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15367 cat >>confdefs.h <<\_ACEOF
15368 #define C_ALLOCA 1
15369 _ACEOF
15372 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15373 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15374 if test "${ac_cv_os_cray+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377 cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h. */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 #if defined CRAY && ! defined CRAY2
15384 webecray
15385 #else
15386 wenotbecray
15387 #endif
15389 _ACEOF
15390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15391 $EGREP "webecray" >/dev/null 2>&1; then
15392 ac_cv_os_cray=yes
15393 else
15394 ac_cv_os_cray=no
15396 rm -f conftest*
15399 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15400 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15401 if test $ac_cv_os_cray = yes; then
15402 for ac_func in _getb67 GETB67 getb67; do
15403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409 cat >conftest.$ac_ext <<_ACEOF
15410 /* confdefs.h. */
15411 _ACEOF
15412 cat confdefs.h >>conftest.$ac_ext
15413 cat >>conftest.$ac_ext <<_ACEOF
15414 /* end confdefs.h. */
15415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15417 #define $ac_func innocuous_$ac_func
15419 /* System header to define __stub macros and hopefully few prototypes,
15420 which can conflict with char $ac_func (); below.
15421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15422 <limits.h> exists even on freestanding compilers. */
15424 #ifdef __STDC__
15425 # include <limits.h>
15426 #else
15427 # include <assert.h>
15428 #endif
15430 #undef $ac_func
15432 /* Override any GCC internal prototype to avoid an error.
15433 Use char because int might match the return type of a GCC
15434 builtin and then its argument prototype would still apply. */
15435 #ifdef __cplusplus
15436 extern "C"
15437 #endif
15438 char $ac_func ();
15439 /* The GNU C library defines this for functions which it implements
15440 to always fail with ENOSYS. Some functions are actually named
15441 something starting with __ and the normal name is an alias. */
15442 #if defined __stub_$ac_func || defined __stub___$ac_func
15443 choke me
15444 #endif
15447 main ()
15449 return $ac_func ();
15451 return 0;
15453 _ACEOF
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (ac_try="$ac_link"
15456 case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15459 esac
15460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_link") 2>conftest.er1
15462 ac_status=$?
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } && {
15468 test -z "$ac_c_werror_flag" ||
15469 test ! -s conftest.err
15470 } && test -s conftest$ac_exeext &&
15471 $as_test_x conftest$ac_exeext; then
15472 eval "$as_ac_var=yes"
15473 else
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 eval "$as_ac_var=no"
15480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15481 conftest$ac_exeext conftest.$ac_ext
15483 ac_res=`eval echo '${'$as_ac_var'}'`
15484 { echo "$as_me:$LINENO: result: $ac_res" >&5
15485 echo "${ECHO_T}$ac_res" >&6; }
15486 if test `eval echo '${'$as_ac_var'}'` = yes; then
15488 cat >>confdefs.h <<_ACEOF
15489 #define CRAY_STACKSEG_END $ac_func
15490 _ACEOF
15492 break
15495 done
15498 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15499 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15500 if test "${ac_cv_c_stack_direction+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503 if test "$cross_compiling" = yes; then
15504 ac_cv_c_stack_direction=0
15505 else
15506 cat >conftest.$ac_ext <<_ACEOF
15507 /* confdefs.h. */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 $ac_includes_default
15514 find_stack_direction ()
15516 static char *addr = 0;
15517 auto char dummy;
15518 if (addr == 0)
15520 addr = &dummy;
15521 return find_stack_direction ();
15523 else
15524 return (&dummy > addr) ? 1 : -1;
15528 main ()
15530 return find_stack_direction () < 0;
15532 _ACEOF
15533 rm -f conftest$ac_exeext
15534 if { (ac_try="$ac_link"
15535 case "(($ac_try" in
15536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15537 *) ac_try_echo=$ac_try;;
15538 esac
15539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15540 (eval "$ac_link") 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15544 { (case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547 esac
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_try") 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 ac_cv_c_stack_direction=1
15554 else
15555 echo "$as_me: program exited with status $ac_status" >&5
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 ( exit $ac_status )
15560 ac_cv_c_stack_direction=-1
15562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15567 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15568 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15570 cat >>confdefs.h <<_ACEOF
15571 #define STACK_DIRECTION $ac_cv_c_stack_direction
15572 _ACEOF
15578 if test x"$ac_cv_func_alloca_works" != xyes; then
15579 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15580 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15581 { (exit 1); exit 1; }; }
15584 # fmod, logb, and frexp are found in -lm on most systems.
15585 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15587 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15588 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15589 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 else
15592 ac_check_lib_save_LIBS=$LIBS
15593 LIBS="-lm $LIBS"
15594 cat >conftest.$ac_ext <<_ACEOF
15595 /* confdefs.h. */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15601 /* Override any GCC internal prototype to avoid an error.
15602 Use char because int might match the return type of a GCC
15603 builtin and then its argument prototype would still apply. */
15604 #ifdef __cplusplus
15605 extern "C"
15606 #endif
15607 char sqrt ();
15609 main ()
15611 return sqrt ();
15613 return 0;
15615 _ACEOF
15616 rm -f conftest.$ac_objext conftest$ac_exeext
15617 if { (ac_try="$ac_link"
15618 case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_link") 2>conftest.er1
15624 ac_status=$?
15625 grep -v '^ *+' conftest.er1 >conftest.err
15626 rm -f conftest.er1
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } && {
15630 test -z "$ac_c_werror_flag" ||
15631 test ! -s conftest.err
15632 } && test -s conftest$ac_exeext &&
15633 $as_test_x conftest$ac_exeext; then
15634 ac_cv_lib_m_sqrt=yes
15635 else
15636 echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15639 ac_cv_lib_m_sqrt=no
15642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15643 conftest$ac_exeext conftest.$ac_ext
15644 LIBS=$ac_check_lib_save_LIBS
15646 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15647 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15648 if test $ac_cv_lib_m_sqrt = yes; then
15649 cat >>confdefs.h <<_ACEOF
15650 #define HAVE_LIBM 1
15651 _ACEOF
15653 LIBS="-lm $LIBS"
15658 # Check for mail-locking functions in a "mail" library. Probably this should
15659 # have the same check as for liblockfile below.
15661 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15662 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15663 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 else
15666 ac_check_lib_save_LIBS=$LIBS
15667 LIBS="-lmail $LIBS"
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h. */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15675 /* Override any GCC internal prototype to avoid an error.
15676 Use char because int might match the return type of a GCC
15677 builtin and then its argument prototype would still apply. */
15678 #ifdef __cplusplus
15679 extern "C"
15680 #endif
15681 char maillock ();
15683 main ()
15685 return maillock ();
15687 return 0;
15689 _ACEOF
15690 rm -f conftest.$ac_objext conftest$ac_exeext
15691 if { (ac_try="$ac_link"
15692 case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15695 esac
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_link") 2>conftest.er1
15698 ac_status=$?
15699 grep -v '^ *+' conftest.er1 >conftest.err
15700 rm -f conftest.er1
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } && {
15704 test -z "$ac_c_werror_flag" ||
15705 test ! -s conftest.err
15706 } && test -s conftest$ac_exeext &&
15707 $as_test_x conftest$ac_exeext; then
15708 ac_cv_lib_mail_maillock=yes
15709 else
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15713 ac_cv_lib_mail_maillock=no
15716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15717 conftest$ac_exeext conftest.$ac_ext
15718 LIBS=$ac_check_lib_save_LIBS
15720 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15721 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15722 if test $ac_cv_lib_mail_maillock = yes; then
15723 cat >>confdefs.h <<_ACEOF
15724 #define HAVE_LIBMAIL 1
15725 _ACEOF
15727 LIBS="-lmail $LIBS"
15732 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15733 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15734 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737 ac_check_lib_save_LIBS=$LIBS
15738 LIBS="-llockfile $LIBS"
15739 cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h. */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15746 /* Override any GCC internal prototype to avoid an error.
15747 Use char because int might match the return type of a GCC
15748 builtin and then its argument prototype would still apply. */
15749 #ifdef __cplusplus
15750 extern "C"
15751 #endif
15752 char maillock ();
15754 main ()
15756 return maillock ();
15758 return 0;
15760 _ACEOF
15761 rm -f conftest.$ac_objext conftest$ac_exeext
15762 if { (ac_try="$ac_link"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15766 esac
15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_link") 2>conftest.er1
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest$ac_exeext &&
15778 $as_test_x conftest$ac_exeext; then
15779 ac_cv_lib_lockfile_maillock=yes
15780 else
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_cv_lib_lockfile_maillock=no
15787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15788 conftest$ac_exeext conftest.$ac_ext
15789 LIBS=$ac_check_lib_save_LIBS
15791 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15792 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15793 if test $ac_cv_lib_lockfile_maillock = yes; then
15794 cat >>confdefs.h <<_ACEOF
15795 #define HAVE_LIBLOCKFILE 1
15796 _ACEOF
15798 LIBS="-llockfile $LIBS"
15802 # If we have the shared liblockfile, assume we must use it for mail
15803 # locking (e.g. Debian). If we couldn't link against liblockfile
15804 # (no liblockfile.a installed), ensure that we don't need to.
15805 if test "$ac_cv_lib_lockfile_maillock" = no; then
15806 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15807 set dummy liblockfile.so; ac_word=$2
15808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15810 if test "${ac_cv_prog_liblockfile+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812 else
15813 if test -n "$liblockfile"; then
15814 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15815 else
15816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15817 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15818 for as_dir in $as_dummy
15820 IFS=$as_save_IFS
15821 test -z "$as_dir" && as_dir=.
15822 for ac_exec_ext in '' $ac_executable_extensions; do
15823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15824 ac_cv_prog_liblockfile="yes"
15825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15826 break 2
15828 done
15829 done
15830 IFS=$as_save_IFS
15832 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15835 liblockfile=$ac_cv_prog_liblockfile
15836 if test -n "$liblockfile"; then
15837 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15838 echo "${ECHO_T}$liblockfile" >&6; }
15839 else
15840 { echo "$as_me:$LINENO: result: no" >&5
15841 echo "${ECHO_T}no" >&6; }
15845 if test $ac_cv_prog_liblockfile = yes; then
15846 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15847 This probably means that movemail could lose mail.
15848 There may be a \`development' package to install containing liblockfile." >&5
15849 echo "$as_me: error: Shared liblockfile found but can't link against it.
15850 This probably means that movemail could lose mail.
15851 There may be a \`development' package to install containing liblockfile." >&2;}
15852 { (exit 1); exit 1; }; }
15853 else :
15857 for ac_func in touchlock
15859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865 cat >conftest.$ac_ext <<_ACEOF
15866 /* confdefs.h. */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15873 #define $ac_func innocuous_$ac_func
15875 /* System header to define __stub macros and hopefully few prototypes,
15876 which can conflict with char $ac_func (); below.
15877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15878 <limits.h> exists even on freestanding compilers. */
15880 #ifdef __STDC__
15881 # include <limits.h>
15882 #else
15883 # include <assert.h>
15884 #endif
15886 #undef $ac_func
15888 /* Override any GCC internal prototype to avoid an error.
15889 Use char because int might match the return type of a GCC
15890 builtin and then its argument prototype would still apply. */
15891 #ifdef __cplusplus
15892 extern "C"
15893 #endif
15894 char $ac_func ();
15895 /* The GNU C library defines this for functions which it implements
15896 to always fail with ENOSYS. Some functions are actually named
15897 something starting with __ and the normal name is an alias. */
15898 #if defined __stub_$ac_func || defined __stub___$ac_func
15899 choke me
15900 #endif
15903 main ()
15905 return $ac_func ();
15907 return 0;
15909 _ACEOF
15910 rm -f conftest.$ac_objext conftest$ac_exeext
15911 if { (ac_try="$ac_link"
15912 case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15915 esac
15916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15917 (eval "$ac_link") 2>conftest.er1
15918 ac_status=$?
15919 grep -v '^ *+' conftest.er1 >conftest.err
15920 rm -f conftest.er1
15921 cat conftest.err >&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } && {
15924 test -z "$ac_c_werror_flag" ||
15925 test ! -s conftest.err
15926 } && test -s conftest$ac_exeext &&
15927 $as_test_x conftest$ac_exeext; then
15928 eval "$as_ac_var=yes"
15929 else
15930 echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 eval "$as_ac_var=no"
15936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15937 conftest$ac_exeext conftest.$ac_ext
15939 ac_res=`eval echo '${'$as_ac_var'}'`
15940 { echo "$as_me:$LINENO: result: $ac_res" >&5
15941 echo "${ECHO_T}$ac_res" >&6; }
15942 if test `eval echo '${'$as_ac_var'}'` = yes; then
15943 cat >>confdefs.h <<_ACEOF
15944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15945 _ACEOF
15948 done
15951 for ac_header in maillock.h
15953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15960 ac_res=`eval echo '${'$as_ac_Header'}'`
15961 { echo "$as_me:$LINENO: result: $ac_res" >&5
15962 echo "${ECHO_T}$ac_res" >&6; }
15963 else
15964 # Is the header compilable?
15965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15967 cat >conftest.$ac_ext <<_ACEOF
15968 /* confdefs.h. */
15969 _ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 $ac_includes_default
15974 #include <$ac_header>
15975 _ACEOF
15976 rm -f conftest.$ac_objext
15977 if { (ac_try="$ac_compile"
15978 case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15981 esac
15982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983 (eval "$ac_compile") 2>conftest.er1
15984 ac_status=$?
15985 grep -v '^ *+' conftest.er1 >conftest.err
15986 rm -f conftest.er1
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } && {
15990 test -z "$ac_c_werror_flag" ||
15991 test ! -s conftest.err
15992 } && test -s conftest.$ac_objext; then
15993 ac_header_compiler=yes
15994 else
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 ac_header_compiler=no
16001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16003 echo "${ECHO_T}$ac_header_compiler" >&6; }
16005 # Is the header present?
16006 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16008 cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h. */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 #include <$ac_header>
16015 _ACEOF
16016 if { (ac_try="$ac_cpp conftest.$ac_ext"
16017 case "(($ac_try" in
16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 *) ac_try_echo=$ac_try;;
16020 esac
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16023 ac_status=$?
16024 grep -v '^ *+' conftest.er1 >conftest.err
16025 rm -f conftest.er1
16026 cat conftest.err >&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } >/dev/null && {
16029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16030 test ! -s conftest.err
16031 }; then
16032 ac_header_preproc=yes
16033 else
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 ac_header_preproc=no
16040 rm -f conftest.err conftest.$ac_ext
16041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16042 echo "${ECHO_T}$ac_header_preproc" >&6; }
16044 # So? What about this header?
16045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16046 yes:no: )
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16051 ac_header_preproc=yes
16053 no:yes:* )
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16068 esac
16069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074 eval "$as_ac_Header=\$ac_header_preproc"
16076 ac_res=`eval echo '${'$as_ac_Header'}'`
16077 { echo "$as_me:$LINENO: result: $ac_res" >&5
16078 echo "${ECHO_T}$ac_res" >&6; }
16081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16082 cat >>confdefs.h <<_ACEOF
16083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16084 _ACEOF
16088 done
16161 for ac_func in gethostname getdomainname dup2 \
16162 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16163 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16164 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16165 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16166 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16167 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16168 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16169 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16170 cfmakeraw cfsetspeed
16172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 else
16178 cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h. */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16186 #define $ac_func innocuous_$ac_func
16188 /* System header to define __stub macros and hopefully few prototypes,
16189 which can conflict with char $ac_func (); below.
16190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16191 <limits.h> exists even on freestanding compilers. */
16193 #ifdef __STDC__
16194 # include <limits.h>
16195 #else
16196 # include <assert.h>
16197 #endif
16199 #undef $ac_func
16201 /* Override any GCC internal prototype to avoid an error.
16202 Use char because int might match the return type of a GCC
16203 builtin and then its argument prototype would still apply. */
16204 #ifdef __cplusplus
16205 extern "C"
16206 #endif
16207 char $ac_func ();
16208 /* The GNU C library defines this for functions which it implements
16209 to always fail with ENOSYS. Some functions are actually named
16210 something starting with __ and the normal name is an alias. */
16211 #if defined __stub_$ac_func || defined __stub___$ac_func
16212 choke me
16213 #endif
16216 main ()
16218 return $ac_func ();
16220 return 0;
16222 _ACEOF
16223 rm -f conftest.$ac_objext conftest$ac_exeext
16224 if { (ac_try="$ac_link"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_link") 2>conftest.er1
16231 ac_status=$?
16232 grep -v '^ *+' conftest.er1 >conftest.err
16233 rm -f conftest.er1
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } && {
16237 test -z "$ac_c_werror_flag" ||
16238 test ! -s conftest.err
16239 } && test -s conftest$ac_exeext &&
16240 $as_test_x conftest$ac_exeext; then
16241 eval "$as_ac_var=yes"
16242 else
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 eval "$as_ac_var=no"
16249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16250 conftest$ac_exeext conftest.$ac_ext
16252 ac_res=`eval echo '${'$as_ac_var'}'`
16253 { echo "$as_me:$LINENO: result: $ac_res" >&5
16254 echo "${ECHO_T}$ac_res" >&6; }
16255 if test `eval echo '${'$as_ac_var'}'` = yes; then
16256 cat >>confdefs.h <<_ACEOF
16257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16258 _ACEOF
16261 done
16265 for ac_header in sys/un.h
16267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 ac_res=`eval echo '${'$as_ac_Header'}'`
16275 { echo "$as_me:$LINENO: result: $ac_res" >&5
16276 echo "${ECHO_T}$ac_res" >&6; }
16277 else
16278 # Is the header compilable?
16279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h. */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 $ac_includes_default
16288 #include <$ac_header>
16289 _ACEOF
16290 rm -f conftest.$ac_objext
16291 if { (ac_try="$ac_compile"
16292 case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16295 esac
16296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_compile") 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } && {
16304 test -z "$ac_c_werror_flag" ||
16305 test ! -s conftest.err
16306 } && test -s conftest.$ac_objext; then
16307 ac_header_compiler=yes
16308 else
16309 echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16312 ac_header_compiler=no
16315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16317 echo "${ECHO_T}$ac_header_compiler" >&6; }
16319 # Is the header present?
16320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16322 cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h. */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 #include <$ac_header>
16329 _ACEOF
16330 if { (ac_try="$ac_cpp conftest.$ac_ext"
16331 case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16334 esac
16335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16337 ac_status=$?
16338 grep -v '^ *+' conftest.er1 >conftest.err
16339 rm -f conftest.er1
16340 cat conftest.err >&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } >/dev/null && {
16343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16344 test ! -s conftest.err
16345 }; then
16346 ac_header_preproc=yes
16347 else
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 ac_header_preproc=no
16354 rm -f conftest.err conftest.$ac_ext
16355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16356 echo "${ECHO_T}$ac_header_preproc" >&6; }
16358 # So? What about this header?
16359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16360 yes:no: )
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16365 ac_header_preproc=yes
16367 no:yes:* )
16368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16382 esac
16383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388 eval "$as_ac_Header=\$ac_header_preproc"
16390 ac_res=`eval echo '${'$as_ac_Header'}'`
16391 { echo "$as_me:$LINENO: result: $ac_res" >&5
16392 echo "${ECHO_T}$ac_res" >&6; }
16395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16396 cat >>confdefs.h <<_ACEOF
16397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16398 _ACEOF
16402 done
16409 for ac_header in $ac_header_list
16411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16418 ac_res=`eval echo '${'$as_ac_Header'}'`
16419 { echo "$as_me:$LINENO: result: $ac_res" >&5
16420 echo "${ECHO_T}$ac_res" >&6; }
16421 else
16422 # Is the header compilable?
16423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16425 cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h. */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431 $ac_includes_default
16432 #include <$ac_header>
16433 _ACEOF
16434 rm -f conftest.$ac_objext
16435 if { (ac_try="$ac_compile"
16436 case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16439 esac
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_compile") 2>conftest.er1
16442 ac_status=$?
16443 grep -v '^ *+' conftest.er1 >conftest.err
16444 rm -f conftest.er1
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } && {
16448 test -z "$ac_c_werror_flag" ||
16449 test ! -s conftest.err
16450 } && test -s conftest.$ac_objext; then
16451 ac_header_compiler=yes
16452 else
16453 echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ac_header_compiler=no
16459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16461 echo "${ECHO_T}$ac_header_compiler" >&6; }
16463 # Is the header present?
16464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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. */
16472 #include <$ac_header>
16473 _ACEOF
16474 if { (ac_try="$ac_cpp conftest.$ac_ext"
16475 case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16478 esac
16479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } >/dev/null && {
16487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 }; then
16490 ac_header_preproc=yes
16491 else
16492 echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 ac_header_preproc=no
16498 rm -f conftest.err conftest.$ac_ext
16499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16500 echo "${ECHO_T}$ac_header_preproc" >&6; }
16502 # So? What about this header?
16503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16504 yes:no: )
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16509 ac_header_preproc=yes
16511 no:yes:* )
16512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16526 esac
16527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 else
16532 eval "$as_ac_Header=\$ac_header_preproc"
16534 ac_res=`eval echo '${'$as_ac_Header'}'`
16535 { echo "$as_me:$LINENO: result: $ac_res" >&5
16536 echo "${ECHO_T}$ac_res" >&6; }
16539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16540 cat >>confdefs.h <<_ACEOF
16541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16542 _ACEOF
16546 done
16556 for ac_func in $ac_func_list
16558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16563 else
16564 cat >conftest.$ac_ext <<_ACEOF
16565 /* confdefs.h. */
16566 _ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16572 #define $ac_func innocuous_$ac_func
16574 /* System header to define __stub macros and hopefully few prototypes,
16575 which can conflict with char $ac_func (); below.
16576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16577 <limits.h> exists even on freestanding compilers. */
16579 #ifdef __STDC__
16580 # include <limits.h>
16581 #else
16582 # include <assert.h>
16583 #endif
16585 #undef $ac_func
16587 /* Override any GCC internal prototype to avoid an error.
16588 Use char because int might match the return type of a GCC
16589 builtin and then its argument prototype would still apply. */
16590 #ifdef __cplusplus
16591 extern "C"
16592 #endif
16593 char $ac_func ();
16594 /* The GNU C library defines this for functions which it implements
16595 to always fail with ENOSYS. Some functions are actually named
16596 something starting with __ and the normal name is an alias. */
16597 #if defined __stub_$ac_func || defined __stub___$ac_func
16598 choke me
16599 #endif
16602 main ()
16604 return $ac_func ();
16606 return 0;
16608 _ACEOF
16609 rm -f conftest.$ac_objext conftest$ac_exeext
16610 if { (ac_try="$ac_link"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_link") 2>conftest.er1
16617 ac_status=$?
16618 grep -v '^ *+' conftest.er1 >conftest.err
16619 rm -f conftest.er1
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } && {
16623 test -z "$ac_c_werror_flag" ||
16624 test ! -s conftest.err
16625 } && test -s conftest$ac_exeext &&
16626 $as_test_x conftest$ac_exeext; then
16627 eval "$as_ac_var=yes"
16628 else
16629 echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 eval "$as_ac_var=no"
16635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16636 conftest$ac_exeext conftest.$ac_ext
16638 ac_res=`eval echo '${'$as_ac_var'}'`
16639 { echo "$as_me:$LINENO: result: $ac_res" >&5
16640 echo "${ECHO_T}$ac_res" >&6; }
16641 if test `eval echo '${'$as_ac_var'}'` = yes; then
16642 cat >>confdefs.h <<_ACEOF
16643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16644 _ACEOF
16647 done
16665 { echo "$as_me:$LINENO: checking for working mktime" >&5
16666 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16667 if test "${ac_cv_func_working_mktime+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16669 else
16670 if test "$cross_compiling" = yes; then
16671 ac_cv_func_working_mktime=no
16672 else
16673 cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h. */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 /* Test program from Paul Eggert and Tony Leneis. */
16680 #ifdef TIME_WITH_SYS_TIME
16681 # include <sys/time.h>
16682 # include <time.h>
16683 #else
16684 # ifdef HAVE_SYS_TIME_H
16685 # include <sys/time.h>
16686 # else
16687 # include <time.h>
16688 # endif
16689 #endif
16691 #include <limits.h>
16692 #include <stdlib.h>
16694 #ifdef HAVE_UNISTD_H
16695 # include <unistd.h>
16696 #endif
16698 #ifndef HAVE_ALARM
16699 # define alarm(X) /* empty */
16700 #endif
16702 /* Work around redefinition to rpl_putenv by other config tests. */
16703 #undef putenv
16705 static time_t time_t_max;
16706 static time_t time_t_min;
16708 /* Values we'll use to set the TZ environment variable. */
16709 static char *tz_strings[] = {
16710 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16711 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16713 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16715 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16716 Based on a problem report from Andreas Jaeger. */
16717 static int
16718 spring_forward_gap ()
16720 /* glibc (up to about 1998-10-07) failed this test. */
16721 struct tm tm;
16723 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16724 instead of "TZ=America/Vancouver" in order to detect the bug even
16725 on systems that don't support the Olson extension, or don't have the
16726 full zoneinfo tables installed. */
16727 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16729 tm.tm_year = 98;
16730 tm.tm_mon = 3;
16731 tm.tm_mday = 5;
16732 tm.tm_hour = 2;
16733 tm.tm_min = 0;
16734 tm.tm_sec = 0;
16735 tm.tm_isdst = -1;
16736 return mktime (&tm) != (time_t) -1;
16739 static int
16740 mktime_test1 (now)
16741 time_t now;
16743 struct tm *lt;
16744 return ! (lt = localtime (&now)) || mktime (lt) == now;
16747 static int
16748 mktime_test (now)
16749 time_t now;
16751 return (mktime_test1 (now)
16752 && mktime_test1 ((time_t) (time_t_max - now))
16753 && mktime_test1 ((time_t) (time_t_min + now)));
16756 static int
16757 irix_6_4_bug ()
16759 /* Based on code from Ariel Faigon. */
16760 struct tm tm;
16761 tm.tm_year = 96;
16762 tm.tm_mon = 3;
16763 tm.tm_mday = 0;
16764 tm.tm_hour = 0;
16765 tm.tm_min = 0;
16766 tm.tm_sec = 0;
16767 tm.tm_isdst = -1;
16768 mktime (&tm);
16769 return tm.tm_mon == 2 && tm.tm_mday == 31;
16772 static int
16773 bigtime_test (j)
16774 int j;
16776 struct tm tm;
16777 time_t now;
16778 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16779 now = mktime (&tm);
16780 if (now != (time_t) -1)
16782 struct tm *lt = localtime (&now);
16783 if (! (lt
16784 && lt->tm_year == tm.tm_year
16785 && lt->tm_mon == tm.tm_mon
16786 && lt->tm_mday == tm.tm_mday
16787 && lt->tm_hour == tm.tm_hour
16788 && lt->tm_min == tm.tm_min
16789 && lt->tm_sec == tm.tm_sec
16790 && lt->tm_yday == tm.tm_yday
16791 && lt->tm_wday == tm.tm_wday
16792 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16793 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16794 return 0;
16796 return 1;
16799 static int
16800 year_2050_test ()
16802 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16803 ignoring leap seconds. */
16804 unsigned long int answer = 2527315200UL;
16806 struct tm tm;
16807 time_t t;
16808 tm.tm_year = 2050 - 1900;
16809 tm.tm_mon = 2 - 1;
16810 tm.tm_mday = 1;
16811 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16812 tm.tm_isdst = -1;
16814 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16815 instead of "TZ=America/Vancouver" in order to detect the bug even
16816 on systems that don't support the Olson extension, or don't have the
16817 full zoneinfo tables installed. */
16818 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16820 t = mktime (&tm);
16822 /* Check that the result is either a failure, or close enough
16823 to the correct answer that we can assume the discrepancy is
16824 due to leap seconds. */
16825 return (t == (time_t) -1
16826 || (0 < t && answer - 120 <= t && t <= answer + 120));
16830 main ()
16832 time_t t, delta;
16833 int i, j;
16835 /* This test makes some buggy mktime implementations loop.
16836 Give up after 60 seconds; a mktime slower than that
16837 isn't worth using anyway. */
16838 alarm (60);
16840 for (;;)
16842 t = (time_t_max << 1) + 1;
16843 if (t <= time_t_max)
16844 break;
16845 time_t_max = t;
16847 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16849 delta = time_t_max / 997; /* a suitable prime number */
16850 for (i = 0; i < N_STRINGS; i++)
16852 if (tz_strings[i])
16853 putenv (tz_strings[i]);
16855 for (t = 0; t <= time_t_max - delta; t += delta)
16856 if (! mktime_test (t))
16857 return 1;
16858 if (! (mktime_test ((time_t) 1)
16859 && mktime_test ((time_t) (60 * 60))
16860 && mktime_test ((time_t) (60 * 60 * 24))))
16861 return 1;
16863 for (j = 1; ; j <<= 1)
16864 if (! bigtime_test (j))
16865 return 1;
16866 else if (INT_MAX / 2 < j)
16867 break;
16868 if (! bigtime_test (INT_MAX))
16869 return 1;
16871 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16873 _ACEOF
16874 rm -f conftest$ac_exeext
16875 if { (ac_try="$ac_link"
16876 case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_link") 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16888 esac
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_cv_func_working_mktime=yes
16895 else
16896 echo "$as_me: program exited with status $ac_status" >&5
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ( exit $ac_status )
16901 ac_cv_func_working_mktime=no
16903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16908 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16909 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16910 if test $ac_cv_func_working_mktime = no; then
16911 case " $LIBOBJS " in
16912 *" mktime.$ac_objext "* ) ;;
16913 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16915 esac
16919 if test "$ac_cv_func_working_mktime" = no; then
16921 cat >>confdefs.h <<\_ACEOF
16922 #define BROKEN_MKTIME 1
16923 _ACEOF
16927 ac_have_func=no # yes means we've found a way to get the load average.
16929 # Make sure getloadavg.c is where it belongs, at configure-time.
16930 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16931 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16932 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16933 { (exit 1); exit 1; }; }
16935 ac_save_LIBS=$LIBS
16937 # Check for getloadavg, but be sure not to touch the cache variable.
16938 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16939 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16940 if test "${ac_cv_func_getloadavg+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16942 else
16943 cat >conftest.$ac_ext <<_ACEOF
16944 /* confdefs.h. */
16945 _ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16949 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16951 #define getloadavg innocuous_getloadavg
16953 /* System header to define __stub macros and hopefully few prototypes,
16954 which can conflict with char getloadavg (); below.
16955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16956 <limits.h> exists even on freestanding compilers. */
16958 #ifdef __STDC__
16959 # include <limits.h>
16960 #else
16961 # include <assert.h>
16962 #endif
16964 #undef getloadavg
16966 /* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16969 #ifdef __cplusplus
16970 extern "C"
16971 #endif
16972 char getloadavg ();
16973 /* The GNU C library defines this for functions which it implements
16974 to always fail with ENOSYS. Some functions are actually named
16975 something starting with __ and the normal name is an alias. */
16976 #if defined __stub_getloadavg || defined __stub___getloadavg
16977 choke me
16978 #endif
16981 main ()
16983 return getloadavg ();
16985 return 0;
16987 _ACEOF
16988 rm -f conftest.$ac_objext conftest$ac_exeext
16989 if { (ac_try="$ac_link"
16990 case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16993 esac
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_link") 2>conftest.er1
16996 ac_status=$?
16997 grep -v '^ *+' conftest.er1 >conftest.err
16998 rm -f conftest.er1
16999 cat conftest.err >&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } && {
17002 test -z "$ac_c_werror_flag" ||
17003 test ! -s conftest.err
17004 } && test -s conftest$ac_exeext &&
17005 $as_test_x conftest$ac_exeext; then
17006 ac_cv_func_getloadavg=yes
17007 else
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_cv_func_getloadavg=no
17014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17015 conftest$ac_exeext conftest.$ac_ext
17017 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17018 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17019 if test $ac_cv_func_getloadavg = yes; then
17020 exit 0
17021 else
17022 exit 1
17024 ) && ac_have_func=yes
17026 # On HPUX9, an unprivileged user can get load averages through this function.
17028 for ac_func in pstat_getdynamic
17030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036 cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h. */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17044 #define $ac_func innocuous_$ac_func
17046 /* System header to define __stub macros and hopefully few prototypes,
17047 which can conflict with char $ac_func (); below.
17048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17049 <limits.h> exists even on freestanding compilers. */
17051 #ifdef __STDC__
17052 # include <limits.h>
17053 #else
17054 # include <assert.h>
17055 #endif
17057 #undef $ac_func
17059 /* Override any GCC internal prototype to avoid an error.
17060 Use char because int might match the return type of a GCC
17061 builtin and then its argument prototype would still apply. */
17062 #ifdef __cplusplus
17063 extern "C"
17064 #endif
17065 char $ac_func ();
17066 /* The GNU C library defines this for functions which it implements
17067 to always fail with ENOSYS. Some functions are actually named
17068 something starting with __ and the normal name is an alias. */
17069 #if defined __stub_$ac_func || defined __stub___$ac_func
17070 choke me
17071 #endif
17074 main ()
17076 return $ac_func ();
17078 return 0;
17080 _ACEOF
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (ac_try="$ac_link"
17083 case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17086 esac
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_link") 2>conftest.er1
17089 ac_status=$?
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } && {
17095 test -z "$ac_c_werror_flag" ||
17096 test ! -s conftest.err
17097 } && test -s conftest$ac_exeext &&
17098 $as_test_x conftest$ac_exeext; then
17099 eval "$as_ac_var=yes"
17100 else
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 eval "$as_ac_var=no"
17107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17108 conftest$ac_exeext conftest.$ac_ext
17110 ac_res=`eval echo '${'$as_ac_var'}'`
17111 { echo "$as_me:$LINENO: result: $ac_res" >&5
17112 echo "${ECHO_T}$ac_res" >&6; }
17113 if test `eval echo '${'$as_ac_var'}'` = yes; then
17114 cat >>confdefs.h <<_ACEOF
17115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17116 _ACEOF
17119 done
17122 # Solaris has libkstat which does not require root.
17124 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17125 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17126 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17128 else
17129 ac_check_lib_save_LIBS=$LIBS
17130 LIBS="-lkstat $LIBS"
17131 cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h. */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17138 /* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
17141 #ifdef __cplusplus
17142 extern "C"
17143 #endif
17144 char kstat_open ();
17146 main ()
17148 return kstat_open ();
17150 return 0;
17152 _ACEOF
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (ac_try="$ac_link"
17155 case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17158 esac
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_link") 2>conftest.er1
17161 ac_status=$?
17162 grep -v '^ *+' conftest.er1 >conftest.err
17163 rm -f conftest.er1
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } && {
17167 test -z "$ac_c_werror_flag" ||
17168 test ! -s conftest.err
17169 } && test -s conftest$ac_exeext &&
17170 $as_test_x conftest$ac_exeext; then
17171 ac_cv_lib_kstat_kstat_open=yes
17172 else
17173 echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17176 ac_cv_lib_kstat_kstat_open=no
17179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17180 conftest$ac_exeext conftest.$ac_ext
17181 LIBS=$ac_check_lib_save_LIBS
17183 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17184 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17185 if test $ac_cv_lib_kstat_kstat_open = yes; then
17186 cat >>confdefs.h <<_ACEOF
17187 #define HAVE_LIBKSTAT 1
17188 _ACEOF
17190 LIBS="-lkstat $LIBS"
17194 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17196 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17197 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17198 # to get the right answer into the cache.
17199 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17200 if test $ac_have_func = no; then
17201 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17202 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17203 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206 ac_check_lib_save_LIBS=$LIBS
17207 LIBS="-lelf $LIBS"
17208 cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h. */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17215 /* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17218 #ifdef __cplusplus
17219 extern "C"
17220 #endif
17221 char elf_begin ();
17223 main ()
17225 return elf_begin ();
17227 return 0;
17229 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_link") 2>conftest.er1
17238 ac_status=$?
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest$ac_exeext &&
17247 $as_test_x conftest$ac_exeext; then
17248 ac_cv_lib_elf_elf_begin=yes
17249 else
17250 echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_cv_lib_elf_elf_begin=no
17256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17257 conftest$ac_exeext conftest.$ac_ext
17258 LIBS=$ac_check_lib_save_LIBS
17260 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17261 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17262 if test $ac_cv_lib_elf_elf_begin = yes; then
17263 LIBS="-lelf $LIBS"
17267 if test $ac_have_func = no; then
17268 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17269 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17270 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273 ac_check_lib_save_LIBS=$LIBS
17274 LIBS="-lkvm $LIBS"
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 char kvm_open ();
17290 main ()
17292 return kvm_open ();
17294 return 0;
17296 _ACEOF
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_link") 2>conftest.er1
17305 ac_status=$?
17306 grep -v '^ *+' conftest.er1 >conftest.err
17307 rm -f conftest.er1
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest$ac_exeext &&
17314 $as_test_x conftest$ac_exeext; then
17315 ac_cv_lib_kvm_kvm_open=yes
17316 else
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17320 ac_cv_lib_kvm_kvm_open=no
17323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324 conftest$ac_exeext conftest.$ac_ext
17325 LIBS=$ac_check_lib_save_LIBS
17327 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17328 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17329 if test $ac_cv_lib_kvm_kvm_open = yes; then
17330 LIBS="-lkvm $LIBS"
17333 # Check for the 4.4BSD definition of getloadavg.
17334 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17335 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17336 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339 ac_check_lib_save_LIBS=$LIBS
17340 LIBS="-lutil $LIBS"
17341 cat >conftest.$ac_ext <<_ACEOF
17342 /* confdefs.h. */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17348 /* Override any GCC internal prototype to avoid an error.
17349 Use char because int might match the return type of a GCC
17350 builtin and then its argument prototype would still apply. */
17351 #ifdef __cplusplus
17352 extern "C"
17353 #endif
17354 char getloadavg ();
17356 main ()
17358 return getloadavg ();
17360 return 0;
17362 _ACEOF
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_link") 2>conftest.er1
17371 ac_status=$?
17372 grep -v '^ *+' conftest.er1 >conftest.err
17373 rm -f conftest.er1
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && {
17377 test -z "$ac_c_werror_flag" ||
17378 test ! -s conftest.err
17379 } && test -s conftest$ac_exeext &&
17380 $as_test_x conftest$ac_exeext; then
17381 ac_cv_lib_util_getloadavg=yes
17382 else
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 ac_cv_lib_util_getloadavg=no
17389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17390 conftest$ac_exeext conftest.$ac_ext
17391 LIBS=$ac_check_lib_save_LIBS
17393 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17394 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17395 if test $ac_cv_lib_util_getloadavg = yes; then
17396 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17401 if test $ac_have_func = no; then
17402 # There is a commonly available library for RS/6000 AIX.
17403 # Since it is not a standard part of AIX, it might be installed locally.
17404 ac_getloadavg_LIBS=$LIBS
17405 LIBS="-L/usr/local/lib $LIBS"
17406 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17407 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17408 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411 ac_check_lib_save_LIBS=$LIBS
17412 LIBS="-lgetloadavg $LIBS"
17413 cat >conftest.$ac_ext <<_ACEOF
17414 /* confdefs.h. */
17415 _ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17420 /* Override any GCC internal prototype to avoid an error.
17421 Use char because int might match the return type of a GCC
17422 builtin and then its argument prototype would still apply. */
17423 #ifdef __cplusplus
17424 extern "C"
17425 #endif
17426 char getloadavg ();
17428 main ()
17430 return getloadavg ();
17432 return 0;
17434 _ACEOF
17435 rm -f conftest.$ac_objext conftest$ac_exeext
17436 if { (ac_try="$ac_link"
17437 case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17440 esac
17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_link") 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } && {
17449 test -z "$ac_c_werror_flag" ||
17450 test ! -s conftest.err
17451 } && test -s conftest$ac_exeext &&
17452 $as_test_x conftest$ac_exeext; then
17453 ac_cv_lib_getloadavg_getloadavg=yes
17454 else
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 ac_cv_lib_getloadavg_getloadavg=no
17461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17462 conftest$ac_exeext conftest.$ac_ext
17463 LIBS=$ac_check_lib_save_LIBS
17465 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17466 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17467 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17468 LIBS="-lgetloadavg $LIBS"
17469 else
17470 LIBS=$ac_getloadavg_LIBS
17475 # Make sure it is really in the library, if we think we found it,
17476 # otherwise set up the replacement function.
17478 for ac_func in getloadavg
17480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17484 echo $ECHO_N "(cached) $ECHO_C" >&6
17485 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17494 #define $ac_func innocuous_$ac_func
17496 /* System header to define __stub macros and hopefully few prototypes,
17497 which can conflict with char $ac_func (); below.
17498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17499 <limits.h> exists even on freestanding compilers. */
17501 #ifdef __STDC__
17502 # include <limits.h>
17503 #else
17504 # include <assert.h>
17505 #endif
17507 #undef $ac_func
17509 /* Override any GCC internal prototype to avoid an error.
17510 Use char because int might match the return type of a GCC
17511 builtin and then its argument prototype would still apply. */
17512 #ifdef __cplusplus
17513 extern "C"
17514 #endif
17515 char $ac_func ();
17516 /* The GNU C library defines this for functions which it implements
17517 to always fail with ENOSYS. Some functions are actually named
17518 something starting with __ and the normal name is an alias. */
17519 #if defined __stub_$ac_func || defined __stub___$ac_func
17520 choke me
17521 #endif
17524 main ()
17526 return $ac_func ();
17528 return 0;
17530 _ACEOF
17531 rm -f conftest.$ac_objext conftest$ac_exeext
17532 if { (ac_try="$ac_link"
17533 case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_link") 2>conftest.er1
17539 ac_status=$?
17540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } && {
17545 test -z "$ac_c_werror_flag" ||
17546 test ! -s conftest.err
17547 } && test -s conftest$ac_exeext &&
17548 $as_test_x conftest$ac_exeext; then
17549 eval "$as_ac_var=yes"
17550 else
17551 echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 eval "$as_ac_var=no"
17557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17558 conftest$ac_exeext conftest.$ac_ext
17560 ac_res=`eval echo '${'$as_ac_var'}'`
17561 { echo "$as_me:$LINENO: result: $ac_res" >&5
17562 echo "${ECHO_T}$ac_res" >&6; }
17563 if test `eval echo '${'$as_ac_var'}'` = yes; then
17564 cat >>confdefs.h <<_ACEOF
17565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17566 _ACEOF
17568 else
17569 case " $LIBOBJS " in
17570 *" getloadavg.$ac_objext "* ) ;;
17571 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17573 esac
17576 cat >>confdefs.h <<\_ACEOF
17577 #define C_GETLOADAVG 1
17578 _ACEOF
17580 # Figure out what our getloadavg.c needs.
17581 ac_have_func=no
17582 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17583 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17584 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17585 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17589 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17590 else
17591 # Is the header compilable?
17592 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17593 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17594 cat >conftest.$ac_ext <<_ACEOF
17595 /* confdefs.h. */
17596 _ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600 $ac_includes_default
17601 #include <sys/dg_sys_info.h>
17602 _ACEOF
17603 rm -f conftest.$ac_objext
17604 if { (ac_try="$ac_compile"
17605 case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17608 esac
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_compile") 2>conftest.er1
17611 ac_status=$?
17612 grep -v '^ *+' conftest.er1 >conftest.err
17613 rm -f conftest.er1
17614 cat conftest.err >&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } && {
17617 test -z "$ac_c_werror_flag" ||
17618 test ! -s conftest.err
17619 } && test -s conftest.$ac_objext; then
17620 ac_header_compiler=yes
17621 else
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 ac_header_compiler=no
17628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17630 echo "${ECHO_T}$ac_header_compiler" >&6; }
17632 # Is the header present?
17633 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17634 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17635 cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h. */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 #include <sys/dg_sys_info.h>
17642 _ACEOF
17643 if { (ac_try="$ac_cpp conftest.$ac_ext"
17644 case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17647 esac
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17650 ac_status=$?
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } >/dev/null && {
17656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17657 test ! -s conftest.err
17658 }; then
17659 ac_header_preproc=yes
17660 else
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 ac_header_preproc=no
17667 rm -f conftest.err conftest.$ac_ext
17668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17669 echo "${ECHO_T}$ac_header_preproc" >&6; }
17671 # So? What about this header?
17672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17673 yes:no: )
17674 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17675 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17676 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17677 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17678 ac_header_preproc=yes
17680 no:yes:* )
17681 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17682 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17683 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17684 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17685 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17686 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17687 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17688 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17689 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17690 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17691 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17692 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17695 esac
17696 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17697 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17698 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 else
17701 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17703 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17704 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17707 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17708 ac_have_func=yes
17710 cat >>confdefs.h <<\_ACEOF
17711 #define DGUX 1
17712 _ACEOF
17715 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17716 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17717 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720 ac_check_lib_save_LIBS=$LIBS
17721 LIBS="-ldgc $LIBS"
17722 cat >conftest.$ac_ext <<_ACEOF
17723 /* confdefs.h. */
17724 _ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17729 /* Override any GCC internal prototype to avoid an error.
17730 Use char because int might match the return type of a GCC
17731 builtin and then its argument prototype would still apply. */
17732 #ifdef __cplusplus
17733 extern "C"
17734 #endif
17735 char dg_sys_info ();
17737 main ()
17739 return dg_sys_info ();
17741 return 0;
17743 _ACEOF
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (ac_try="$ac_link"
17746 case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749 esac
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_link") 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } && {
17758 test -z "$ac_c_werror_flag" ||
17759 test ! -s conftest.err
17760 } && test -s conftest$ac_exeext &&
17761 $as_test_x conftest$ac_exeext; then
17762 ac_cv_lib_dgc_dg_sys_info=yes
17763 else
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17767 ac_cv_lib_dgc_dg_sys_info=no
17770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17771 conftest$ac_exeext conftest.$ac_ext
17772 LIBS=$ac_check_lib_save_LIBS
17774 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17775 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17776 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17777 cat >>confdefs.h <<_ACEOF
17778 #define HAVE_LIBDGC 1
17779 _ACEOF
17781 LIBS="-ldgc $LIBS"
17789 if test "${ac_cv_header_locale_h+set}" = set; then
17790 { echo "$as_me:$LINENO: checking for locale.h" >&5
17791 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17792 if test "${ac_cv_header_locale_h+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17796 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17797 else
17798 # Is the header compilable?
17799 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17800 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h. */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 $ac_includes_default
17808 #include <locale.h>
17809 _ACEOF
17810 rm -f conftest.$ac_objext
17811 if { (ac_try="$ac_compile"
17812 case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_compile") 2>conftest.er1
17818 ac_status=$?
17819 grep -v '^ *+' conftest.er1 >conftest.err
17820 rm -f conftest.er1
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } && {
17824 test -z "$ac_c_werror_flag" ||
17825 test ! -s conftest.err
17826 } && test -s conftest.$ac_objext; then
17827 ac_header_compiler=yes
17828 else
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ac_header_compiler=no
17835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17837 echo "${ECHO_T}$ac_header_compiler" >&6; }
17839 # Is the header present?
17840 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17841 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17842 cat >conftest.$ac_ext <<_ACEOF
17843 /* confdefs.h. */
17844 _ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h. */
17848 #include <locale.h>
17849 _ACEOF
17850 if { (ac_try="$ac_cpp conftest.$ac_ext"
17851 case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17854 esac
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17857 ac_status=$?
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } >/dev/null && {
17863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17864 test ! -s conftest.err
17865 }; then
17866 ac_header_preproc=yes
17867 else
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 ac_header_preproc=no
17874 rm -f conftest.err conftest.$ac_ext
17875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17876 echo "${ECHO_T}$ac_header_preproc" >&6; }
17878 # So? What about this header?
17879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17880 yes:no: )
17881 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17882 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17883 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17884 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17885 ac_header_preproc=yes
17887 no:yes:* )
17888 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17889 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17890 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17891 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17892 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17893 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17894 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17895 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17897 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17899 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17902 esac
17903 { echo "$as_me:$LINENO: checking for locale.h" >&5
17904 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17905 if test "${ac_cv_header_locale_h+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 else
17908 ac_cv_header_locale_h=$ac_header_preproc
17910 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17911 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17917 for ac_func in setlocale
17919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17924 else
17925 cat >conftest.$ac_ext <<_ACEOF
17926 /* confdefs.h. */
17927 _ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h. */
17931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17933 #define $ac_func innocuous_$ac_func
17935 /* System header to define __stub macros and hopefully few prototypes,
17936 which can conflict with char $ac_func (); below.
17937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17938 <limits.h> exists even on freestanding compilers. */
17940 #ifdef __STDC__
17941 # include <limits.h>
17942 #else
17943 # include <assert.h>
17944 #endif
17946 #undef $ac_func
17948 /* Override any GCC internal prototype to avoid an error.
17949 Use char because int might match the return type of a GCC
17950 builtin and then its argument prototype would still apply. */
17951 #ifdef __cplusplus
17952 extern "C"
17953 #endif
17954 char $ac_func ();
17955 /* The GNU C library defines this for functions which it implements
17956 to always fail with ENOSYS. Some functions are actually named
17957 something starting with __ and the normal name is an alias. */
17958 #if defined __stub_$ac_func || defined __stub___$ac_func
17959 choke me
17960 #endif
17963 main ()
17965 return $ac_func ();
17967 return 0;
17969 _ACEOF
17970 rm -f conftest.$ac_objext conftest$ac_exeext
17971 if { (ac_try="$ac_link"
17972 case "(($ac_try" in
17973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974 *) ac_try_echo=$ac_try;;
17975 esac
17976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17977 (eval "$ac_link") 2>conftest.er1
17978 ac_status=$?
17979 grep -v '^ *+' conftest.er1 >conftest.err
17980 rm -f conftest.er1
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } && {
17984 test -z "$ac_c_werror_flag" ||
17985 test ! -s conftest.err
17986 } && test -s conftest$ac_exeext &&
17987 $as_test_x conftest$ac_exeext; then
17988 eval "$as_ac_var=yes"
17989 else
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 eval "$as_ac_var=no"
17996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17997 conftest$ac_exeext conftest.$ac_ext
17999 ac_res=`eval echo '${'$as_ac_var'}'`
18000 { echo "$as_me:$LINENO: result: $ac_res" >&5
18001 echo "${ECHO_T}$ac_res" >&6; }
18002 if test `eval echo '${'$as_ac_var'}'` = yes; then
18003 cat >>confdefs.h <<_ACEOF
18004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18005 _ACEOF
18008 done
18011 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18012 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18013 # Irix 4.0.5F has the header but not the library.
18014 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18015 ac_have_func=yes
18017 cat >>confdefs.h <<\_ACEOF
18018 #define SVR4 1
18019 _ACEOF
18023 if test $ac_have_func = no; then
18024 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18025 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18026 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18027 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18031 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18032 else
18033 # Is the header compilable?
18034 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18035 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18036 cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h. */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 $ac_includes_default
18043 #include <inq_stats/cpustats.h>
18044 _ACEOF
18045 rm -f conftest.$ac_objext
18046 if { (ac_try="$ac_compile"
18047 case "(($ac_try" in
18048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18050 esac
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_compile") 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } && {
18059 test -z "$ac_c_werror_flag" ||
18060 test ! -s conftest.err
18061 } && test -s conftest.$ac_objext; then
18062 ac_header_compiler=yes
18063 else
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18067 ac_header_compiler=no
18070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18072 echo "${ECHO_T}$ac_header_compiler" >&6; }
18074 # Is the header present?
18075 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18076 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18077 cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h. */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 #include <inq_stats/cpustats.h>
18084 _ACEOF
18085 if { (ac_try="$ac_cpp conftest.$ac_ext"
18086 case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18089 esac
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18092 ac_status=$?
18093 grep -v '^ *+' conftest.er1 >conftest.err
18094 rm -f conftest.er1
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } >/dev/null && {
18098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18099 test ! -s conftest.err
18100 }; then
18101 ac_header_preproc=yes
18102 else
18103 echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18106 ac_header_preproc=no
18109 rm -f conftest.err conftest.$ac_ext
18110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18111 echo "${ECHO_T}$ac_header_preproc" >&6; }
18113 # So? What about this header?
18114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18115 yes:no: )
18116 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18117 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18118 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18119 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18120 ac_header_preproc=yes
18122 no:yes:* )
18123 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18124 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18125 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18126 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18127 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18128 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18129 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18130 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18131 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18132 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18133 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18134 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18137 esac
18138 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18139 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18140 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18145 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18146 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18149 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18150 ac_have_func=yes
18152 cat >>confdefs.h <<\_ACEOF
18153 #define UMAX 1
18154 _ACEOF
18157 cat >>confdefs.h <<\_ACEOF
18158 #define UMAX4_3 1
18159 _ACEOF
18166 if test $ac_have_func = no; then
18167 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18168 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18169 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18170 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18174 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18175 else
18176 # Is the header compilable?
18177 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18178 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18179 cat >conftest.$ac_ext <<_ACEOF
18180 /* confdefs.h. */
18181 _ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18185 $ac_includes_default
18186 #include <sys/cpustats.h>
18187 _ACEOF
18188 rm -f conftest.$ac_objext
18189 if { (ac_try="$ac_compile"
18190 case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18193 esac
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_compile") 2>conftest.er1
18196 ac_status=$?
18197 grep -v '^ *+' conftest.er1 >conftest.err
18198 rm -f conftest.er1
18199 cat conftest.err >&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } && {
18202 test -z "$ac_c_werror_flag" ||
18203 test ! -s conftest.err
18204 } && test -s conftest.$ac_objext; then
18205 ac_header_compiler=yes
18206 else
18207 echo "$as_me: failed program was:" >&5
18208 sed 's/^/| /' conftest.$ac_ext >&5
18210 ac_header_compiler=no
18213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18215 echo "${ECHO_T}$ac_header_compiler" >&6; }
18217 # Is the header present?
18218 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18219 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18220 cat >conftest.$ac_ext <<_ACEOF
18221 /* confdefs.h. */
18222 _ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18226 #include <sys/cpustats.h>
18227 _ACEOF
18228 if { (ac_try="$ac_cpp conftest.$ac_ext"
18229 case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232 esac
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18235 ac_status=$?
18236 grep -v '^ *+' conftest.er1 >conftest.err
18237 rm -f conftest.er1
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } >/dev/null && {
18241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18242 test ! -s conftest.err
18243 }; then
18244 ac_header_preproc=yes
18245 else
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18249 ac_header_preproc=no
18252 rm -f conftest.err conftest.$ac_ext
18253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18254 echo "${ECHO_T}$ac_header_preproc" >&6; }
18256 # So? What about this header?
18257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18258 yes:no: )
18259 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18260 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18261 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18262 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18263 ac_header_preproc=yes
18265 no:yes:* )
18266 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18267 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18268 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18269 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18270 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18271 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18272 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18273 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18274 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18275 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18276 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18277 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18280 esac
18281 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18282 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18283 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18284 echo $ECHO_N "(cached) $ECHO_C" >&6
18285 else
18286 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18288 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18289 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18292 if test $ac_cv_header_sys_cpustats_h = yes; then
18293 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18294 #define UMAX 1
18295 _ACEOF
18302 if test $ac_have_func = no; then
18304 for ac_header in mach/mach.h
18306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18313 ac_res=`eval echo '${'$as_ac_Header'}'`
18314 { echo "$as_me:$LINENO: result: $ac_res" >&5
18315 echo "${ECHO_T}$ac_res" >&6; }
18316 else
18317 # Is the header compilable?
18318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h. */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18326 $ac_includes_default
18327 #include <$ac_header>
18328 _ACEOF
18329 rm -f conftest.$ac_objext
18330 if { (ac_try="$ac_compile"
18331 case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_compile") 2>conftest.er1
18337 ac_status=$?
18338 grep -v '^ *+' conftest.er1 >conftest.err
18339 rm -f conftest.er1
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } && {
18343 test -z "$ac_c_werror_flag" ||
18344 test ! -s conftest.err
18345 } && test -s conftest.$ac_objext; then
18346 ac_header_compiler=yes
18347 else
18348 echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 ac_header_compiler=no
18354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18356 echo "${ECHO_T}$ac_header_compiler" >&6; }
18358 # Is the header present?
18359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18361 cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h. */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18367 #include <$ac_header>
18368 _ACEOF
18369 if { (ac_try="$ac_cpp conftest.$ac_ext"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18376 ac_status=$?
18377 grep -v '^ *+' conftest.er1 >conftest.err
18378 rm -f conftest.er1
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } >/dev/null && {
18382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18383 test ! -s conftest.err
18384 }; then
18385 ac_header_preproc=yes
18386 else
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 ac_header_preproc=no
18393 rm -f conftest.err conftest.$ac_ext
18394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18395 echo "${ECHO_T}$ac_header_preproc" >&6; }
18397 # So? What about this header?
18398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18399 yes:no: )
18400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18404 ac_header_preproc=yes
18406 no:yes:* )
18407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18421 esac
18422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 else
18427 eval "$as_ac_Header=\$ac_header_preproc"
18429 ac_res=`eval echo '${'$as_ac_Header'}'`
18430 { echo "$as_me:$LINENO: result: $ac_res" >&5
18431 echo "${ECHO_T}$ac_res" >&6; }
18434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18437 _ACEOF
18441 done
18446 for ac_header in nlist.h
18448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18455 ac_res=`eval echo '${'$as_ac_Header'}'`
18456 { echo "$as_me:$LINENO: result: $ac_res" >&5
18457 echo "${ECHO_T}$ac_res" >&6; }
18458 else
18459 # Is the header compilable?
18460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18462 cat >conftest.$ac_ext <<_ACEOF
18463 /* confdefs.h. */
18464 _ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18468 $ac_includes_default
18469 #include <$ac_header>
18470 _ACEOF
18471 rm -f conftest.$ac_objext
18472 if { (ac_try="$ac_compile"
18473 case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18476 esac
18477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478 (eval "$ac_compile") 2>conftest.er1
18479 ac_status=$?
18480 grep -v '^ *+' conftest.er1 >conftest.err
18481 rm -f conftest.er1
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } && {
18485 test -z "$ac_c_werror_flag" ||
18486 test ! -s conftest.err
18487 } && test -s conftest.$ac_objext; then
18488 ac_header_compiler=yes
18489 else
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 ac_header_compiler=no
18496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18498 echo "${ECHO_T}$ac_header_compiler" >&6; }
18500 # Is the header present?
18501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h. */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 #include <$ac_header>
18510 _ACEOF
18511 if { (ac_try="$ac_cpp conftest.$ac_ext"
18512 case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18515 esac
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } >/dev/null && {
18524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18525 test ! -s conftest.err
18526 }; then
18527 ac_header_preproc=yes
18528 else
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 ac_header_preproc=no
18535 rm -f conftest.err conftest.$ac_ext
18536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18537 echo "${ECHO_T}$ac_header_preproc" >&6; }
18539 # So? What about this header?
18540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18541 yes:no: )
18542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18546 ac_header_preproc=yes
18548 no:yes:* )
18549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18563 esac
18564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569 eval "$as_ac_Header=\$ac_header_preproc"
18571 ac_res=`eval echo '${'$as_ac_Header'}'`
18572 { echo "$as_me:$LINENO: result: $ac_res" >&5
18573 echo "${ECHO_T}$ac_res" >&6; }
18576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18577 cat >>confdefs.h <<_ACEOF
18578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18579 _ACEOF
18580 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18581 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18582 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h. */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18591 #include <nlist.h>
18594 main ()
18596 static struct nlist ac_aggr;
18597 if (ac_aggr.n_un.n_name)
18598 return 0;
18600 return 0;
18602 _ACEOF
18603 rm -f conftest.$ac_objext
18604 if { (ac_try="$ac_compile"
18605 case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18608 esac
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_compile") 2>conftest.er1
18611 ac_status=$?
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest.$ac_objext; then
18620 ac_cv_member_struct_nlist_n_un_n_name=yes
18621 else
18622 echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h. */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18631 #include <nlist.h>
18634 main ()
18636 static struct nlist ac_aggr;
18637 if (sizeof ac_aggr.n_un.n_name)
18638 return 0;
18640 return 0;
18642 _ACEOF
18643 rm -f conftest.$ac_objext
18644 if { (ac_try="$ac_compile"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_compile") 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest.$ac_objext; then
18660 ac_cv_member_struct_nlist_n_un_n_name=yes
18661 else
18662 echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18665 ac_cv_member_struct_nlist_n_un_n_name=no
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18673 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18674 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18675 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18677 cat >>confdefs.h <<_ACEOF
18678 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18679 _ACEOF
18682 cat >>confdefs.h <<\_ACEOF
18683 #define NLIST_NAME_UNION 1
18684 _ACEOF
18691 done
18694 done
18697 # Some definitions of getloadavg require that the program be installed setgid.
18698 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18699 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18700 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703 cat >conftest.$ac_ext <<_ACEOF
18704 /* confdefs.h. */
18705 _ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18709 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18710 #ifdef LDAV_PRIVILEGED
18711 Yowza Am I SETGID yet
18712 #endif
18713 _ACEOF
18714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18715 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18716 ac_cv_func_getloadavg_setgid=yes
18717 else
18718 ac_cv_func_getloadavg_setgid=no
18720 rm -f conftest*
18723 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18724 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18725 if test $ac_cv_func_getloadavg_setgid = yes; then
18726 NEED_SETGID=true
18728 cat >>confdefs.h <<\_ACEOF
18729 #define GETLOADAVG_PRIVILEGED 1
18730 _ACEOF
18732 else
18733 NEED_SETGID=false
18736 if test $ac_cv_func_getloadavg_setgid = yes; then
18737 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18738 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18739 if test "${ac_cv_group_kmem+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18743 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18744 # If we got an error (system does not support symlinks), try without -L.
18745 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18746 ac_cv_group_kmem=`echo $ac_ls_output \
18747 | sed -ne 's/[ ][ ]*/ /g;
18748 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18749 / /s/.* //;p;'`
18752 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18753 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18754 KMEM_GROUP=$ac_cv_group_kmem
18756 if test "x$ac_save_LIBS" = x; then
18757 GETLOADAVG_LIBS=$LIBS
18758 else
18759 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18761 LIBS=$ac_save_LIBS
18765 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18766 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18767 if test "${ac_cv_sys_largefile_source+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 else
18770 while :; do
18771 cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h. */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18777 #include <sys/types.h> /* for off_t */
18778 #include <stdio.h>
18780 main ()
18782 int (*fp) (FILE *, off_t, int) = fseeko;
18783 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18785 return 0;
18787 _ACEOF
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (ac_try="$ac_link"
18790 case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_link") 2>conftest.er1
18796 ac_status=$?
18797 grep -v '^ *+' conftest.er1 >conftest.err
18798 rm -f conftest.er1
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } && {
18802 test -z "$ac_c_werror_flag" ||
18803 test ! -s conftest.err
18804 } && test -s conftest$ac_exeext &&
18805 $as_test_x conftest$ac_exeext; then
18806 ac_cv_sys_largefile_source=no; break
18807 else
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18815 conftest$ac_exeext conftest.$ac_ext
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h. */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 #define _LARGEFILE_SOURCE 1
18823 #include <sys/types.h> /* for off_t */
18824 #include <stdio.h>
18826 main ()
18828 int (*fp) (FILE *, off_t, int) = fseeko;
18829 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18831 return 0;
18833 _ACEOF
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839 esac
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest$ac_exeext &&
18851 $as_test_x conftest$ac_exeext; then
18852 ac_cv_sys_largefile_source=1; break
18853 else
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18862 ac_cv_sys_largefile_source=unknown
18863 break
18864 done
18866 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18867 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18868 case $ac_cv_sys_largefile_source in #(
18869 no | unknown) ;;
18871 cat >>confdefs.h <<_ACEOF
18872 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18873 _ACEOF
18875 esac
18876 rm -f conftest*
18878 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18879 # in glibc 2.1.3, but that breaks too many other things.
18880 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18881 if test $ac_cv_sys_largefile_source != unknown; then
18883 cat >>confdefs.h <<\_ACEOF
18884 #define HAVE_FSEEKO 1
18885 _ACEOF
18890 # Configure getopt.
18891 # getopt.m4 serial 10
18893 # The getopt module assume you want GNU getopt, with getopt_long etc,
18894 # rather than vanilla POSIX getopt. This means your your code should
18895 # always include <getopt.h> for the getopt prototypes.
18907 # Prerequisites of lib/getopt*.
18912 GETOPT_H=
18914 for ac_header in getopt.h
18916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 ac_res=`eval echo '${'$as_ac_Header'}'`
18924 { echo "$as_me:$LINENO: result: $ac_res" >&5
18925 echo "${ECHO_T}$ac_res" >&6; }
18926 else
18927 # Is the header compilable?
18928 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18930 cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h. */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 $ac_includes_default
18937 #include <$ac_header>
18938 _ACEOF
18939 rm -f conftest.$ac_objext
18940 if { (ac_try="$ac_compile"
18941 case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18944 esac
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_compile") 2>conftest.er1
18947 ac_status=$?
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } && {
18953 test -z "$ac_c_werror_flag" ||
18954 test ! -s conftest.err
18955 } && test -s conftest.$ac_objext; then
18956 ac_header_compiler=yes
18957 else
18958 echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18961 ac_header_compiler=no
18964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18966 echo "${ECHO_T}$ac_header_compiler" >&6; }
18968 # Is the header present?
18969 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h. */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 #include <$ac_header>
18978 _ACEOF
18979 if { (ac_try="$ac_cpp conftest.$ac_ext"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18983 esac
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18986 ac_status=$?
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } >/dev/null && {
18992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18993 test ! -s conftest.err
18994 }; then
18995 ac_header_preproc=yes
18996 else
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 ac_header_preproc=no
19003 rm -f conftest.err conftest.$ac_ext
19004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19005 echo "${ECHO_T}$ac_header_preproc" >&6; }
19007 # So? What about this header?
19008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19009 yes:no: )
19010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19014 ac_header_preproc=yes
19016 no:yes:* )
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19031 esac
19032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037 eval "$as_ac_Header=\$ac_header_preproc"
19039 ac_res=`eval echo '${'$as_ac_Header'}'`
19040 { echo "$as_me:$LINENO: result: $ac_res" >&5
19041 echo "${ECHO_T}$ac_res" >&6; }
19044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19045 cat >>confdefs.h <<_ACEOF
19046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19047 _ACEOF
19049 else
19050 GETOPT_H=getopt.h
19053 done
19055 if test -z "$GETOPT_H"; then
19057 for ac_func in getopt_long_only
19059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065 cat >conftest.$ac_ext <<_ACEOF
19066 /* confdefs.h. */
19067 _ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19073 #define $ac_func innocuous_$ac_func
19075 /* System header to define __stub macros and hopefully few prototypes,
19076 which can conflict with char $ac_func (); below.
19077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19078 <limits.h> exists even on freestanding compilers. */
19080 #ifdef __STDC__
19081 # include <limits.h>
19082 #else
19083 # include <assert.h>
19084 #endif
19086 #undef $ac_func
19088 /* Override any GCC internal prototype to avoid an error.
19089 Use char because int might match the return type of a GCC
19090 builtin and then its argument prototype would still apply. */
19091 #ifdef __cplusplus
19092 extern "C"
19093 #endif
19094 char $ac_func ();
19095 /* The GNU C library defines this for functions which it implements
19096 to always fail with ENOSYS. Some functions are actually named
19097 something starting with __ and the normal name is an alias. */
19098 #if defined __stub_$ac_func || defined __stub___$ac_func
19099 choke me
19100 #endif
19103 main ()
19105 return $ac_func ();
19107 return 0;
19109 _ACEOF
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (ac_try="$ac_link"
19112 case "(($ac_try" in
19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114 *) ac_try_echo=$ac_try;;
19115 esac
19116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19117 (eval "$ac_link") 2>conftest.er1
19118 ac_status=$?
19119 grep -v '^ *+' conftest.er1 >conftest.err
19120 rm -f conftest.er1
19121 cat conftest.err >&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } && {
19124 test -z "$ac_c_werror_flag" ||
19125 test ! -s conftest.err
19126 } && test -s conftest$ac_exeext &&
19127 $as_test_x conftest$ac_exeext; then
19128 eval "$as_ac_var=yes"
19129 else
19130 echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 eval "$as_ac_var=no"
19136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19137 conftest$ac_exeext conftest.$ac_ext
19139 ac_res=`eval echo '${'$as_ac_var'}'`
19140 { echo "$as_me:$LINENO: result: $ac_res" >&5
19141 echo "${ECHO_T}$ac_res" >&6; }
19142 if test `eval echo '${'$as_ac_var'}'` = yes; then
19143 cat >>confdefs.h <<_ACEOF
19144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19145 _ACEOF
19147 else
19148 GETOPT_H=getopt.h
19150 done
19154 if test -z "$GETOPT_H"; then
19155 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19156 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19157 if test "${ac_cv_have_decl_optreset+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160 cat >conftest.$ac_ext <<_ACEOF
19161 /* confdefs.h. */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 #include <getopt.h>
19169 main ()
19171 #ifndef optreset
19172 (void) optreset;
19173 #endif
19176 return 0;
19178 _ACEOF
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_compile") 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest.$ac_objext; then
19196 ac_cv_have_decl_optreset=yes
19197 else
19198 echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19201 ac_cv_have_decl_optreset=no
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19207 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19208 if test $ac_cv_have_decl_optreset = yes; then
19209 GETOPT_H=getopt.h
19214 if test -z "$GETOPT_H"; then
19215 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19216 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19217 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 else
19220 if test "$cross_compiling" = yes; then
19221 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19222 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19223 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19225 else
19226 cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h. */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 #include <getopt.h>
19235 main ()
19237 #ifndef getopt_clip
19238 (void) getopt_clip;
19239 #endif
19242 return 0;
19244 _ACEOF
19245 rm -f conftest.$ac_objext
19246 if { (ac_try="$ac_compile"
19247 case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19250 esac
19251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252 (eval "$ac_compile") 2>conftest.er1
19253 ac_status=$?
19254 grep -v '^ *+' conftest.er1 >conftest.err
19255 rm -f conftest.er1
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } && {
19259 test -z "$ac_c_werror_flag" ||
19260 test ! -s conftest.err
19261 } && test -s conftest.$ac_objext; then
19262 ac_cv_have_decl_getopt_clip=yes
19263 else
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19267 ac_cv_have_decl_getopt_clip=no
19270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19273 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19274 if test $ac_cv_have_decl_getopt_clip = yes; then
19275 gl_cv_func_gnu_getopt=no
19276 else
19277 gl_cv_func_gnu_getopt=yes
19280 else
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 #include <getopt.h>
19289 main ()
19292 char *myargv[3];
19293 myargv[0] = "conftest";
19294 myargv[1] = "-+";
19295 myargv[2] = 0;
19296 return getopt (2, myargv, "+a") != '?';
19299 return 0;
19301 _ACEOF
19302 rm -f conftest$ac_exeext
19303 if { (ac_try="$ac_link"
19304 case "(($ac_try" in
19305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306 *) ac_try_echo=$ac_try;;
19307 esac
19308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19309 (eval "$ac_link") 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19313 { (case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19316 esac
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_try") 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 gl_cv_func_gnu_getopt=yes
19323 else
19324 echo "$as_me: program exited with status $ac_status" >&5
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 ( exit $ac_status )
19329 gl_cv_func_gnu_getopt=no
19331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19336 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19337 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19338 if test "$gl_cv_func_gnu_getopt" = "no"; then
19339 GETOPT_H=getopt.h
19345 if test -n "$GETOPT_H"; then
19348 GETOPT_H=getopt.h
19350 cat >>confdefs.h <<\_ACEOF
19351 #define __GETOPT_PREFIX rpl_
19352 _ACEOF
19357 GETOPTOBJS='getopt.o getopt1.o'
19364 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19365 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19366 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19368 else
19369 # Use it with a single arg.
19370 cat >conftest.$ac_ext <<_ACEOF
19371 /* confdefs.h. */
19372 _ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19376 $ac_includes_default
19378 main ()
19380 getpgrp (0);
19382 return 0;
19384 _ACEOF
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19390 esac
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_compile") 2>conftest.er1
19393 ac_status=$?
19394 grep -v '^ *+' conftest.er1 >conftest.err
19395 rm -f conftest.er1
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } && {
19399 test -z "$ac_c_werror_flag" ||
19400 test ! -s conftest.err
19401 } && test -s conftest.$ac_objext; then
19402 ac_cv_func_getpgrp_void=no
19403 else
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 ac_cv_func_getpgrp_void=yes
19410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19414 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19415 if test $ac_cv_func_getpgrp_void = yes; then
19417 cat >>confdefs.h <<\_ACEOF
19418 #define GETPGRP_VOID 1
19419 _ACEOF
19425 for ac_func in strftime
19427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19428 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19431 echo $ECHO_N "(cached) $ECHO_C" >&6
19432 else
19433 cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h. */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19441 #define $ac_func innocuous_$ac_func
19443 /* System header to define __stub macros and hopefully few prototypes,
19444 which can conflict with char $ac_func (); below.
19445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19446 <limits.h> exists even on freestanding compilers. */
19448 #ifdef __STDC__
19449 # include <limits.h>
19450 #else
19451 # include <assert.h>
19452 #endif
19454 #undef $ac_func
19456 /* Override any GCC internal prototype to avoid an error.
19457 Use char because int might match the return type of a GCC
19458 builtin and then its argument prototype would still apply. */
19459 #ifdef __cplusplus
19460 extern "C"
19461 #endif
19462 char $ac_func ();
19463 /* The GNU C library defines this for functions which it implements
19464 to always fail with ENOSYS. Some functions are actually named
19465 something starting with __ and the normal name is an alias. */
19466 #if defined __stub_$ac_func || defined __stub___$ac_func
19467 choke me
19468 #endif
19471 main ()
19473 return $ac_func ();
19475 return 0;
19477 _ACEOF
19478 rm -f conftest.$ac_objext conftest$ac_exeext
19479 if { (ac_try="$ac_link"
19480 case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19483 esac
19484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485 (eval "$ac_link") 2>conftest.er1
19486 ac_status=$?
19487 grep -v '^ *+' conftest.er1 >conftest.err
19488 rm -f conftest.er1
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } && {
19492 test -z "$ac_c_werror_flag" ||
19493 test ! -s conftest.err
19494 } && test -s conftest$ac_exeext &&
19495 $as_test_x conftest$ac_exeext; then
19496 eval "$as_ac_var=yes"
19497 else
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 eval "$as_ac_var=no"
19504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19505 conftest$ac_exeext conftest.$ac_ext
19507 ac_res=`eval echo '${'$as_ac_var'}'`
19508 { echo "$as_me:$LINENO: result: $ac_res" >&5
19509 echo "${ECHO_T}$ac_res" >&6; }
19510 if test `eval echo '${'$as_ac_var'}'` = yes; then
19511 cat >>confdefs.h <<_ACEOF
19512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19513 _ACEOF
19515 else
19516 # strftime is in -lintl on SCO UNIX.
19517 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19518 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19519 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 else
19522 ac_check_lib_save_LIBS=$LIBS
19523 LIBS="-lintl $LIBS"
19524 cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h. */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19531 /* Override any GCC internal prototype to avoid an error.
19532 Use char because int might match the return type of a GCC
19533 builtin and then its argument prototype would still apply. */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 char strftime ();
19539 main ()
19541 return strftime ();
19543 return 0;
19545 _ACEOF
19546 rm -f conftest.$ac_objext conftest$ac_exeext
19547 if { (ac_try="$ac_link"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_link") 2>conftest.er1
19554 ac_status=$?
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } && {
19560 test -z "$ac_c_werror_flag" ||
19561 test ! -s conftest.err
19562 } && test -s conftest$ac_exeext &&
19563 $as_test_x conftest$ac_exeext; then
19564 ac_cv_lib_intl_strftime=yes
19565 else
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_cv_lib_intl_strftime=no
19572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19573 conftest$ac_exeext conftest.$ac_ext
19574 LIBS=$ac_check_lib_save_LIBS
19576 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19577 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19578 if test $ac_cv_lib_intl_strftime = yes; then
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE_STRFTIME 1
19581 _ACEOF
19583 LIBS="-lintl $LIBS"
19587 done
19590 # UNIX98 PTYs.
19592 for ac_func in grantpt
19594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 else
19600 cat >conftest.$ac_ext <<_ACEOF
19601 /* confdefs.h. */
19602 _ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19608 #define $ac_func innocuous_$ac_func
19610 /* System header to define __stub macros and hopefully few prototypes,
19611 which can conflict with char $ac_func (); below.
19612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19613 <limits.h> exists even on freestanding compilers. */
19615 #ifdef __STDC__
19616 # include <limits.h>
19617 #else
19618 # include <assert.h>
19619 #endif
19621 #undef $ac_func
19623 /* Override any GCC internal prototype to avoid an error.
19624 Use char because int might match the return type of a GCC
19625 builtin and then its argument prototype would still apply. */
19626 #ifdef __cplusplus
19627 extern "C"
19628 #endif
19629 char $ac_func ();
19630 /* The GNU C library defines this for functions which it implements
19631 to always fail with ENOSYS. Some functions are actually named
19632 something starting with __ and the normal name is an alias. */
19633 #if defined __stub_$ac_func || defined __stub___$ac_func
19634 choke me
19635 #endif
19638 main ()
19640 return $ac_func ();
19642 return 0;
19644 _ACEOF
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (ac_try="$ac_link"
19647 case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19650 esac
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_link") 2>conftest.er1
19653 ac_status=$?
19654 grep -v '^ *+' conftest.er1 >conftest.err
19655 rm -f conftest.er1
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } && {
19659 test -z "$ac_c_werror_flag" ||
19660 test ! -s conftest.err
19661 } && test -s conftest$ac_exeext &&
19662 $as_test_x conftest$ac_exeext; then
19663 eval "$as_ac_var=yes"
19664 else
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19668 eval "$as_ac_var=no"
19671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19672 conftest$ac_exeext conftest.$ac_ext
19674 ac_res=`eval echo '${'$as_ac_var'}'`
19675 { echo "$as_me:$LINENO: result: $ac_res" >&5
19676 echo "${ECHO_T}$ac_res" >&6; }
19677 if test `eval echo '${'$as_ac_var'}'` = yes; then
19678 cat >>confdefs.h <<_ACEOF
19679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19680 _ACEOF
19683 done
19686 # PTY-related GNU extensions.
19688 for ac_func in getpt
19690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696 cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h. */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19704 #define $ac_func innocuous_$ac_func
19706 /* System header to define __stub macros and hopefully few prototypes,
19707 which can conflict with char $ac_func (); below.
19708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19709 <limits.h> exists even on freestanding compilers. */
19711 #ifdef __STDC__
19712 # include <limits.h>
19713 #else
19714 # include <assert.h>
19715 #endif
19717 #undef $ac_func
19719 /* Override any GCC internal prototype to avoid an error.
19720 Use char because int might match the return type of a GCC
19721 builtin and then its argument prototype would still apply. */
19722 #ifdef __cplusplus
19723 extern "C"
19724 #endif
19725 char $ac_func ();
19726 /* The GNU C library defines this for functions which it implements
19727 to always fail with ENOSYS. Some functions are actually named
19728 something starting with __ and the normal name is an alias. */
19729 #if defined __stub_$ac_func || defined __stub___$ac_func
19730 choke me
19731 #endif
19734 main ()
19736 return $ac_func ();
19738 return 0;
19740 _ACEOF
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest$ac_exeext &&
19758 $as_test_x conftest$ac_exeext; then
19759 eval "$as_ac_var=yes"
19760 else
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 eval "$as_ac_var=no"
19767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19768 conftest$ac_exeext conftest.$ac_ext
19770 ac_res=`eval echo '${'$as_ac_var'}'`
19771 { echo "$as_me:$LINENO: result: $ac_res" >&5
19772 echo "${ECHO_T}$ac_res" >&6; }
19773 if test `eval echo '${'$as_ac_var'}'` = yes; then
19774 cat >>confdefs.h <<_ACEOF
19775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19776 _ACEOF
19779 done
19782 # Check this now, so that we will NOT find the above functions in ncurses.
19783 # That is because we have not set up to link ncurses in lib-src.
19784 # It's better to believe a function is not available
19785 # than to expect to find it in ncurses.
19787 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19788 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19789 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 else
19792 ac_check_lib_save_LIBS=$LIBS
19793 LIBS="-lncurses $LIBS"
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h. */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19801 /* Override any GCC internal prototype to avoid an error.
19802 Use char because int might match the return type of a GCC
19803 builtin and then its argument prototype would still apply. */
19804 #ifdef __cplusplus
19805 extern "C"
19806 #endif
19807 char tparm ();
19809 main ()
19811 return tparm ();
19813 return 0;
19815 _ACEOF
19816 rm -f conftest.$ac_objext conftest$ac_exeext
19817 if { (ac_try="$ac_link"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_link") 2>conftest.er1
19824 ac_status=$?
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest$ac_exeext &&
19833 $as_test_x conftest$ac_exeext; then
19834 ac_cv_lib_ncurses_tparm=yes
19835 else
19836 echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 ac_cv_lib_ncurses_tparm=no
19842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19843 conftest$ac_exeext conftest.$ac_ext
19844 LIBS=$ac_check_lib_save_LIBS
19846 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19847 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19848 if test $ac_cv_lib_ncurses_tparm = yes; then
19849 cat >>confdefs.h <<_ACEOF
19850 #define HAVE_LIBNCURSES 1
19851 _ACEOF
19853 LIBS="-lncurses $LIBS"
19858 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19860 resolv=no
19861 cat >conftest.$ac_ext <<_ACEOF
19862 /* confdefs.h. */
19863 _ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h. */
19867 #include <netinet/in.h>
19868 #include <arpa/nameser.h>
19869 #include <resolv.h>
19871 main ()
19873 return res_init();
19875 return 0;
19877 _ACEOF
19878 rm -f conftest.$ac_objext conftest$ac_exeext
19879 if { (ac_try="$ac_link"
19880 case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19883 esac
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_link") 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } && {
19892 test -z "$ac_c_werror_flag" ||
19893 test ! -s conftest.err
19894 } && test -s conftest$ac_exeext &&
19895 $as_test_x conftest$ac_exeext; then
19896 have_res_init=yes
19897 else
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19901 have_res_init=no
19904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19905 conftest$ac_exeext conftest.$ac_ext
19906 if test "$have_res_init" = no; then
19907 OLIBS="$LIBS"
19908 LIBS="$LIBS -lresolv"
19909 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19910 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19911 cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h. */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 #include <netinet/in.h>
19918 #include <arpa/nameser.h>
19919 #include <resolv.h>
19921 main ()
19923 return res_init();
19925 return 0;
19927 _ACEOF
19928 rm -f conftest.$ac_objext conftest$ac_exeext
19929 if { (ac_try="$ac_link"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19933 esac
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_link") 2>conftest.er1
19936 ac_status=$?
19937 grep -v '^ *+' conftest.er1 >conftest.err
19938 rm -f conftest.er1
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest$ac_exeext &&
19945 $as_test_x conftest$ac_exeext; then
19946 have_res_init=yes
19947 else
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 have_res_init=no
19954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19955 conftest$ac_exeext conftest.$ac_ext
19956 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19957 echo "${ECHO_T}$have_res_init" >&6; }
19958 if test "$have_res_init" = yes ; then
19959 resolv=yes
19961 LIBS="$OLIBS"
19964 if test "$have_res_init" = yes; then
19966 cat >>confdefs.h <<\_ACEOF
19967 #define HAVE_RES_INIT 1
19968 _ACEOF
19972 # Do we need the Hesiod library to provide the support routines?
19973 if test "$with_hesiod" = yes ; then
19974 # Don't set $LIBS here -- see comments above.
19975 { echo "$as_me:$LINENO: checking for res_send" >&5
19976 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19977 if test "${ac_cv_func_res_send+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980 cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h. */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19988 #define res_send innocuous_res_send
19990 /* System header to define __stub macros and hopefully few prototypes,
19991 which can conflict with char res_send (); below.
19992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19993 <limits.h> exists even on freestanding compilers. */
19995 #ifdef __STDC__
19996 # include <limits.h>
19997 #else
19998 # include <assert.h>
19999 #endif
20001 #undef res_send
20003 /* Override any GCC internal prototype to avoid an error.
20004 Use char because int might match the return type of a GCC
20005 builtin and then its argument prototype would still apply. */
20006 #ifdef __cplusplus
20007 extern "C"
20008 #endif
20009 char res_send ();
20010 /* The GNU C library defines this for functions which it implements
20011 to always fail with ENOSYS. Some functions are actually named
20012 something starting with __ and the normal name is an alias. */
20013 #if defined __stub_res_send || defined __stub___res_send
20014 choke me
20015 #endif
20018 main ()
20020 return res_send ();
20022 return 0;
20024 _ACEOF
20025 rm -f conftest.$ac_objext conftest$ac_exeext
20026 if { (ac_try="$ac_link"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_link") 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } && {
20039 test -z "$ac_c_werror_flag" ||
20040 test ! -s conftest.err
20041 } && test -s conftest$ac_exeext &&
20042 $as_test_x conftest$ac_exeext; then
20043 ac_cv_func_res_send=yes
20044 else
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ac_cv_func_res_send=no
20051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20052 conftest$ac_exeext conftest.$ac_ext
20054 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20055 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20056 if test $ac_cv_func_res_send = yes; then
20058 else
20059 { echo "$as_me:$LINENO: checking for __res_send" >&5
20060 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20061 if test "${ac_cv_func___res_send+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 else
20064 cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h. */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20070 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20072 #define __res_send innocuous___res_send
20074 /* System header to define __stub macros and hopefully few prototypes,
20075 which can conflict with char __res_send (); below.
20076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20077 <limits.h> exists even on freestanding compilers. */
20079 #ifdef __STDC__
20080 # include <limits.h>
20081 #else
20082 # include <assert.h>
20083 #endif
20085 #undef __res_send
20087 /* Override any GCC internal prototype to avoid an error.
20088 Use char because int might match the return type of a GCC
20089 builtin and then its argument prototype would still apply. */
20090 #ifdef __cplusplus
20091 extern "C"
20092 #endif
20093 char __res_send ();
20094 /* The GNU C library defines this for functions which it implements
20095 to always fail with ENOSYS. Some functions are actually named
20096 something starting with __ and the normal name is an alias. */
20097 #if defined __stub___res_send || defined __stub_____res_send
20098 choke me
20099 #endif
20102 main ()
20104 return __res_send ();
20106 return 0;
20108 _ACEOF
20109 rm -f conftest.$ac_objext conftest$ac_exeext
20110 if { (ac_try="$ac_link"
20111 case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20114 esac
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_link") 2>conftest.er1
20117 ac_status=$?
20118 grep -v '^ *+' conftest.er1 >conftest.err
20119 rm -f conftest.er1
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } && {
20123 test -z "$ac_c_werror_flag" ||
20124 test ! -s conftest.err
20125 } && test -s conftest$ac_exeext &&
20126 $as_test_x conftest$ac_exeext; then
20127 ac_cv_func___res_send=yes
20128 else
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 ac_cv_func___res_send=no
20135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20136 conftest$ac_exeext conftest.$ac_ext
20138 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20139 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20140 if test $ac_cv_func___res_send = yes; then
20142 else
20143 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20144 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20145 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148 ac_check_lib_save_LIBS=$LIBS
20149 LIBS="-lresolv $LIBS"
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h. */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20157 /* Override any GCC internal prototype to avoid an error.
20158 Use char because int might match the return type of a GCC
20159 builtin and then its argument prototype would still apply. */
20160 #ifdef __cplusplus
20161 extern "C"
20162 #endif
20163 char res_send ();
20165 main ()
20167 return res_send ();
20169 return 0;
20171 _ACEOF
20172 rm -f conftest.$ac_objext conftest$ac_exeext
20173 if { (ac_try="$ac_link"
20174 case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_link") 2>conftest.er1
20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } && {
20186 test -z "$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20188 } && test -s conftest$ac_exeext &&
20189 $as_test_x conftest$ac_exeext; then
20190 ac_cv_lib_resolv_res_send=yes
20191 else
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_cv_lib_resolv_res_send=no
20198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20199 conftest$ac_exeext conftest.$ac_ext
20200 LIBS=$ac_check_lib_save_LIBS
20202 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20203 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20204 if test $ac_cv_lib_resolv_res_send = yes; then
20205 resolv=yes
20206 else
20207 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20208 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20209 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212 ac_check_lib_save_LIBS=$LIBS
20213 LIBS="-lresolv $LIBS"
20214 cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h. */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20221 /* Override any GCC internal prototype to avoid an error.
20222 Use char because int might match the return type of a GCC
20223 builtin and then its argument prototype would still apply. */
20224 #ifdef __cplusplus
20225 extern "C"
20226 #endif
20227 char __res_send ();
20229 main ()
20231 return __res_send ();
20233 return 0;
20235 _ACEOF
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (ac_try="$ac_link"
20238 case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20241 esac
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_link") 2>conftest.er1
20244 ac_status=$?
20245 grep -v '^ *+' conftest.er1 >conftest.err
20246 rm -f conftest.er1
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } && {
20250 test -z "$ac_c_werror_flag" ||
20251 test ! -s conftest.err
20252 } && test -s conftest$ac_exeext &&
20253 $as_test_x conftest$ac_exeext; then
20254 ac_cv_lib_resolv___res_send=yes
20255 else
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 ac_cv_lib_resolv___res_send=no
20262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20263 conftest$ac_exeext conftest.$ac_ext
20264 LIBS=$ac_check_lib_save_LIBS
20266 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20267 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20268 if test $ac_cv_lib_resolv___res_send = yes; then
20269 resolv=yes
20278 if test "$resolv" = yes ; then
20279 RESOLVLIB=-lresolv
20280 else
20281 RESOLVLIB=
20283 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20284 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20285 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20287 else
20288 cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h. */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20296 #define hes_getmailhost innocuous_hes_getmailhost
20298 /* System header to define __stub macros and hopefully few prototypes,
20299 which can conflict with char hes_getmailhost (); below.
20300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20301 <limits.h> exists even on freestanding compilers. */
20303 #ifdef __STDC__
20304 # include <limits.h>
20305 #else
20306 # include <assert.h>
20307 #endif
20309 #undef hes_getmailhost
20311 /* Override any GCC internal prototype to avoid an error.
20312 Use char because int might match the return type of a GCC
20313 builtin and then its argument prototype would still apply. */
20314 #ifdef __cplusplus
20315 extern "C"
20316 #endif
20317 char hes_getmailhost ();
20318 /* The GNU C library defines this for functions which it implements
20319 to always fail with ENOSYS. Some functions are actually named
20320 something starting with __ and the normal name is an alias. */
20321 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20322 choke me
20323 #endif
20326 main ()
20328 return hes_getmailhost ();
20330 return 0;
20332 _ACEOF
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (ac_try="$ac_link"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_link") 2>conftest.er1
20341 ac_status=$?
20342 grep -v '^ *+' conftest.er1 >conftest.err
20343 rm -f conftest.er1
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest$ac_exeext &&
20350 $as_test_x conftest$ac_exeext; then
20351 ac_cv_func_hes_getmailhost=yes
20352 else
20353 echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20356 ac_cv_func_hes_getmailhost=no
20359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20360 conftest$ac_exeext conftest.$ac_ext
20362 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20363 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20364 if test $ac_cv_func_hes_getmailhost = yes; then
20366 else
20367 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20368 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20369 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372 ac_check_lib_save_LIBS=$LIBS
20373 LIBS="-lhesiod $RESOLVLIB $LIBS"
20374 cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h. */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20381 /* Override any GCC internal prototype to avoid an error.
20382 Use char because int might match the return type of a GCC
20383 builtin and then its argument prototype would still apply. */
20384 #ifdef __cplusplus
20385 extern "C"
20386 #endif
20387 char hes_getmailhost ();
20389 main ()
20391 return hes_getmailhost ();
20393 return 0;
20395 _ACEOF
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_link") 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } && {
20410 test -z "$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 } && test -s conftest$ac_exeext &&
20413 $as_test_x conftest$ac_exeext; then
20414 ac_cv_lib_hesiod_hes_getmailhost=yes
20415 else
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_cv_lib_hesiod_hes_getmailhost=no
20422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20423 conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20427 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20428 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20430 cat >>confdefs.h <<\_ACEOF
20431 #define HAVE_LIBHESIOD 1
20432 _ACEOF
20434 else
20442 # Do we need libresolv (due to res_init or Hesiod)?
20443 if test "$resolv" = yes ; then
20445 cat >>confdefs.h <<\_ACEOF
20446 #define HAVE_LIBRESOLV 1
20447 _ACEOF
20451 # These tell us which Kerberos-related libraries to use.
20452 if test "${with_kerberos+set}" = set; then
20454 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20455 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20456 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 else
20459 ac_check_lib_save_LIBS=$LIBS
20460 LIBS="-lcom_err $LIBS"
20461 cat >conftest.$ac_ext <<_ACEOF
20462 /* confdefs.h. */
20463 _ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20468 /* Override any GCC internal prototype to avoid an error.
20469 Use char because int might match the return type of a GCC
20470 builtin and then its argument prototype would still apply. */
20471 #ifdef __cplusplus
20472 extern "C"
20473 #endif
20474 char com_err ();
20476 main ()
20478 return com_err ();
20480 return 0;
20482 _ACEOF
20483 rm -f conftest.$ac_objext conftest$ac_exeext
20484 if { (ac_try="$ac_link"
20485 case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20488 esac
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_link") 2>conftest.er1
20491 ac_status=$?
20492 grep -v '^ *+' conftest.er1 >conftest.err
20493 rm -f conftest.er1
20494 cat conftest.err >&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); } && {
20497 test -z "$ac_c_werror_flag" ||
20498 test ! -s conftest.err
20499 } && test -s conftest$ac_exeext &&
20500 $as_test_x conftest$ac_exeext; then
20501 ac_cv_lib_com_err_com_err=yes
20502 else
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 ac_cv_lib_com_err_com_err=no
20509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20510 conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20513 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20514 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20515 if test $ac_cv_lib_com_err_com_err = yes; then
20516 cat >>confdefs.h <<_ACEOF
20517 #define HAVE_LIBCOM_ERR 1
20518 _ACEOF
20520 LIBS="-lcom_err $LIBS"
20525 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20526 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20527 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530 ac_check_lib_save_LIBS=$LIBS
20531 LIBS="-lk5crypto $LIBS"
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20539 /* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20542 #ifdef __cplusplus
20543 extern "C"
20544 #endif
20545 char mit_des_cbc_encrypt ();
20547 main ()
20549 return mit_des_cbc_encrypt ();
20551 return 0;
20553 _ACEOF
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (ac_try="$ac_link"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_link") 2>conftest.er1
20562 ac_status=$?
20563 grep -v '^ *+' conftest.er1 >conftest.err
20564 rm -f conftest.er1
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } && {
20568 test -z "$ac_c_werror_flag" ||
20569 test ! -s conftest.err
20570 } && test -s conftest$ac_exeext &&
20571 $as_test_x conftest$ac_exeext; then
20572 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20573 else
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20581 conftest$ac_exeext conftest.$ac_ext
20582 LIBS=$ac_check_lib_save_LIBS
20584 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20585 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20586 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20587 cat >>confdefs.h <<_ACEOF
20588 #define HAVE_LIBK5CRYPTO 1
20589 _ACEOF
20591 LIBS="-lk5crypto $LIBS"
20596 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20597 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20598 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 else
20601 ac_check_lib_save_LIBS=$LIBS
20602 LIBS="-lcrypto $LIBS"
20603 cat >conftest.$ac_ext <<_ACEOF
20604 /* confdefs.h. */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20610 /* Override any GCC internal prototype to avoid an error.
20611 Use char because int might match the return type of a GCC
20612 builtin and then its argument prototype would still apply. */
20613 #ifdef __cplusplus
20614 extern "C"
20615 #endif
20616 char mit_des_cbc_encrypt ();
20618 main ()
20620 return mit_des_cbc_encrypt ();
20622 return 0;
20624 _ACEOF
20625 rm -f conftest.$ac_objext conftest$ac_exeext
20626 if { (ac_try="$ac_link"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_link") 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest$ac_exeext &&
20642 $as_test_x conftest$ac_exeext; then
20643 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20644 else
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20652 conftest$ac_exeext conftest.$ac_ext
20653 LIBS=$ac_check_lib_save_LIBS
20655 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20656 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20657 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define HAVE_LIBCRYPTO 1
20660 _ACEOF
20662 LIBS="-lcrypto $LIBS"
20667 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20668 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20669 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 else
20672 ac_check_lib_save_LIBS=$LIBS
20673 LIBS="-lkrb5 $LIBS"
20674 cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h. */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20681 /* Override any GCC internal prototype to avoid an error.
20682 Use char because int might match the return type of a GCC
20683 builtin and then its argument prototype would still apply. */
20684 #ifdef __cplusplus
20685 extern "C"
20686 #endif
20687 char krb5_init_context ();
20689 main ()
20691 return krb5_init_context ();
20693 return 0;
20695 _ACEOF
20696 rm -f conftest.$ac_objext conftest$ac_exeext
20697 if { (ac_try="$ac_link"
20698 case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_link") 2>conftest.er1
20704 ac_status=$?
20705 grep -v '^ *+' conftest.er1 >conftest.err
20706 rm -f conftest.er1
20707 cat conftest.err >&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } && {
20710 test -z "$ac_c_werror_flag" ||
20711 test ! -s conftest.err
20712 } && test -s conftest$ac_exeext &&
20713 $as_test_x conftest$ac_exeext; then
20714 ac_cv_lib_krb5_krb5_init_context=yes
20715 else
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ac_cv_lib_krb5_krb5_init_context=no
20722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20723 conftest$ac_exeext conftest.$ac_ext
20724 LIBS=$ac_check_lib_save_LIBS
20726 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20727 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20728 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20729 cat >>confdefs.h <<_ACEOF
20730 #define HAVE_LIBKRB5 1
20731 _ACEOF
20733 LIBS="-lkrb5 $LIBS"
20737 if test "${with_kerberos5+set}" != set; then
20739 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20740 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20741 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20743 else
20744 ac_check_lib_save_LIBS=$LIBS
20745 LIBS="-ldes425 $LIBS"
20746 cat >conftest.$ac_ext <<_ACEOF
20747 /* confdefs.h. */
20748 _ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h. */
20753 /* Override any GCC internal prototype to avoid an error.
20754 Use char because int might match the return type of a GCC
20755 builtin and then its argument prototype would still apply. */
20756 #ifdef __cplusplus
20757 extern "C"
20758 #endif
20759 char des_cbc_encrypt ();
20761 main ()
20763 return des_cbc_encrypt ();
20765 return 0;
20767 _ACEOF
20768 rm -f conftest.$ac_objext conftest$ac_exeext
20769 if { (ac_try="$ac_link"
20770 case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20773 esac
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_link") 2>conftest.er1
20776 ac_status=$?
20777 grep -v '^ *+' conftest.er1 >conftest.err
20778 rm -f conftest.er1
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } && {
20782 test -z "$ac_c_werror_flag" ||
20783 test ! -s conftest.err
20784 } && test -s conftest$ac_exeext &&
20785 $as_test_x conftest$ac_exeext; then
20786 ac_cv_lib_des425_des_cbc_encrypt=yes
20787 else
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 ac_cv_lib_des425_des_cbc_encrypt=no
20794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20795 conftest$ac_exeext conftest.$ac_ext
20796 LIBS=$ac_check_lib_save_LIBS
20798 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20799 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20800 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20801 cat >>confdefs.h <<_ACEOF
20802 #define HAVE_LIBDES425 1
20803 _ACEOF
20805 LIBS="-ldes425 $LIBS"
20807 else
20809 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20810 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20811 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 else
20814 ac_check_lib_save_LIBS=$LIBS
20815 LIBS="-ldes $LIBS"
20816 cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h. */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20823 /* Override any GCC internal prototype to avoid an error.
20824 Use char because int might match the return type of a GCC
20825 builtin and then its argument prototype would still apply. */
20826 #ifdef __cplusplus
20827 extern "C"
20828 #endif
20829 char des_cbc_encrypt ();
20831 main ()
20833 return des_cbc_encrypt ();
20835 return 0;
20837 _ACEOF
20838 rm -f conftest.$ac_objext conftest$ac_exeext
20839 if { (ac_try="$ac_link"
20840 case "(($ac_try" in
20841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842 *) ac_try_echo=$ac_try;;
20843 esac
20844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20845 (eval "$ac_link") 2>conftest.er1
20846 ac_status=$?
20847 grep -v '^ *+' conftest.er1 >conftest.err
20848 rm -f conftest.er1
20849 cat conftest.err >&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } && {
20852 test -z "$ac_c_werror_flag" ||
20853 test ! -s conftest.err
20854 } && test -s conftest$ac_exeext &&
20855 $as_test_x conftest$ac_exeext; then
20856 ac_cv_lib_des_des_cbc_encrypt=yes
20857 else
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ac_cv_lib_des_des_cbc_encrypt=no
20864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20865 conftest$ac_exeext conftest.$ac_ext
20866 LIBS=$ac_check_lib_save_LIBS
20868 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20869 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20870 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20871 cat >>confdefs.h <<_ACEOF
20872 #define HAVE_LIBDES 1
20873 _ACEOF
20875 LIBS="-ldes $LIBS"
20882 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20883 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20884 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 else
20887 ac_check_lib_save_LIBS=$LIBS
20888 LIBS="-lkrb4 $LIBS"
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h. */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20896 /* Override any GCC internal prototype to avoid an error.
20897 Use char because int might match the return type of a GCC
20898 builtin and then its argument prototype would still apply. */
20899 #ifdef __cplusplus
20900 extern "C"
20901 #endif
20902 char krb_get_cred ();
20904 main ()
20906 return krb_get_cred ();
20908 return 0;
20910 _ACEOF
20911 rm -f conftest.$ac_objext conftest$ac_exeext
20912 if { (ac_try="$ac_link"
20913 case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20916 esac
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_link") 2>conftest.er1
20919 ac_status=$?
20920 grep -v '^ *+' conftest.er1 >conftest.err
20921 rm -f conftest.er1
20922 cat conftest.err >&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); } && {
20925 test -z "$ac_c_werror_flag" ||
20926 test ! -s conftest.err
20927 } && test -s conftest$ac_exeext &&
20928 $as_test_x conftest$ac_exeext; then
20929 ac_cv_lib_krb4_krb_get_cred=yes
20930 else
20931 echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20934 ac_cv_lib_krb4_krb_get_cred=no
20937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20938 conftest$ac_exeext conftest.$ac_ext
20939 LIBS=$ac_check_lib_save_LIBS
20941 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20942 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20943 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20944 cat >>confdefs.h <<_ACEOF
20945 #define HAVE_LIBKRB4 1
20946 _ACEOF
20948 LIBS="-lkrb4 $LIBS"
20950 else
20952 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20953 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20954 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 else
20957 ac_check_lib_save_LIBS=$LIBS
20958 LIBS="-lkrb $LIBS"
20959 cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h. */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20966 /* Override any GCC internal prototype to avoid an error.
20967 Use char because int might match the return type of a GCC
20968 builtin and then its argument prototype would still apply. */
20969 #ifdef __cplusplus
20970 extern "C"
20971 #endif
20972 char krb_get_cred ();
20974 main ()
20976 return krb_get_cred ();
20978 return 0;
20980 _ACEOF
20981 rm -f conftest.$ac_objext conftest$ac_exeext
20982 if { (ac_try="$ac_link"
20983 case "(($ac_try" in
20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985 *) ac_try_echo=$ac_try;;
20986 esac
20987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988 (eval "$ac_link") 2>conftest.er1
20989 ac_status=$?
20990 grep -v '^ *+' conftest.er1 >conftest.err
20991 rm -f conftest.er1
20992 cat conftest.err >&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } && {
20995 test -z "$ac_c_werror_flag" ||
20996 test ! -s conftest.err
20997 } && test -s conftest$ac_exeext &&
20998 $as_test_x conftest$ac_exeext; then
20999 ac_cv_lib_krb_krb_get_cred=yes
21000 else
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21004 ac_cv_lib_krb_krb_get_cred=no
21007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21008 conftest$ac_exeext conftest.$ac_ext
21009 LIBS=$ac_check_lib_save_LIBS
21011 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21012 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21013 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21014 cat >>confdefs.h <<_ACEOF
21015 #define HAVE_LIBKRB 1
21016 _ACEOF
21018 LIBS="-lkrb $LIBS"
21026 if test "${with_kerberos5+set}" = set; then
21028 for ac_header in krb5.h
21030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 ac_res=`eval echo '${'$as_ac_Header'}'`
21038 { echo "$as_me:$LINENO: result: $ac_res" >&5
21039 echo "${ECHO_T}$ac_res" >&6; }
21040 else
21041 # Is the header compilable?
21042 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21044 cat >conftest.$ac_ext <<_ACEOF
21045 /* confdefs.h. */
21046 _ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h. */
21050 $ac_includes_default
21051 #include <$ac_header>
21052 _ACEOF
21053 rm -f conftest.$ac_objext
21054 if { (ac_try="$ac_compile"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_compile") 2>conftest.er1
21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } && {
21067 test -z "$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest.$ac_objext; then
21070 ac_header_compiler=yes
21071 else
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_header_compiler=no
21078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21080 echo "${ECHO_T}$ac_header_compiler" >&6; }
21082 # Is the header present?
21083 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21085 cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h. */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091 #include <$ac_header>
21092 _ACEOF
21093 if { (ac_try="$ac_cpp conftest.$ac_ext"
21094 case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21097 esac
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21100 ac_status=$?
21101 grep -v '^ *+' conftest.er1 >conftest.err
21102 rm -f conftest.er1
21103 cat conftest.err >&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } >/dev/null && {
21106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21107 test ! -s conftest.err
21108 }; then
21109 ac_header_preproc=yes
21110 else
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ac_header_preproc=no
21117 rm -f conftest.err conftest.$ac_ext
21118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21119 echo "${ECHO_T}$ac_header_preproc" >&6; }
21121 # So? What about this header?
21122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21123 yes:no: )
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21128 ac_header_preproc=yes
21130 no:yes:* )
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21145 esac
21146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151 eval "$as_ac_Header=\$ac_header_preproc"
21153 ac_res=`eval echo '${'$as_ac_Header'}'`
21154 { echo "$as_me:$LINENO: result: $ac_res" >&5
21155 echo "${ECHO_T}$ac_res" >&6; }
21158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21159 cat >>confdefs.h <<_ACEOF
21160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21161 _ACEOF
21165 done
21167 else
21169 for ac_header in des.h
21171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 ac_res=`eval echo '${'$as_ac_Header'}'`
21179 { echo "$as_me:$LINENO: result: $ac_res" >&5
21180 echo "${ECHO_T}$ac_res" >&6; }
21181 else
21182 # Is the header compilable?
21183 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21185 cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h. */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 $ac_includes_default
21192 #include <$ac_header>
21193 _ACEOF
21194 rm -f conftest.$ac_objext
21195 if { (ac_try="$ac_compile"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21199 esac
21200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_compile") 2>conftest.er1
21202 ac_status=$?
21203 grep -v '^ *+' conftest.er1 >conftest.err
21204 rm -f conftest.er1
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } && {
21208 test -z "$ac_c_werror_flag" ||
21209 test ! -s conftest.err
21210 } && test -s conftest.$ac_objext; then
21211 ac_header_compiler=yes
21212 else
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21216 ac_header_compiler=no
21219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21221 echo "${ECHO_T}$ac_header_compiler" >&6; }
21223 # Is the header present?
21224 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <$ac_header>
21233 _ACEOF
21234 if { (ac_try="$ac_cpp conftest.$ac_ext"
21235 case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21241 ac_status=$?
21242 grep -v '^ *+' conftest.er1 >conftest.err
21243 rm -f conftest.er1
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } >/dev/null && {
21247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21249 }; then
21250 ac_header_preproc=yes
21251 else
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 ac_header_preproc=no
21258 rm -f conftest.err conftest.$ac_ext
21259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21260 echo "${ECHO_T}$ac_header_preproc" >&6; }
21262 # So? What about this header?
21263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21264 yes:no: )
21265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21269 ac_header_preproc=yes
21271 no:yes:* )
21272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21286 esac
21287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21291 else
21292 eval "$as_ac_Header=\$ac_header_preproc"
21294 ac_res=`eval echo '${'$as_ac_Header'}'`
21295 { echo "$as_me:$LINENO: result: $ac_res" >&5
21296 echo "${ECHO_T}$ac_res" >&6; }
21299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21300 cat >>confdefs.h <<_ACEOF
21301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21302 _ACEOF
21304 else
21306 for ac_header in kerberosIV/des.h
21308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21315 ac_res=`eval echo '${'$as_ac_Header'}'`
21316 { echo "$as_me:$LINENO: result: $ac_res" >&5
21317 echo "${ECHO_T}$ac_res" >&6; }
21318 else
21319 # Is the header compilable?
21320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21322 cat >conftest.$ac_ext <<_ACEOF
21323 /* confdefs.h. */
21324 _ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21328 $ac_includes_default
21329 #include <$ac_header>
21330 _ACEOF
21331 rm -f conftest.$ac_objext
21332 if { (ac_try="$ac_compile"
21333 case "(($ac_try" in
21334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21335 *) ac_try_echo=$ac_try;;
21336 esac
21337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21338 (eval "$ac_compile") 2>conftest.er1
21339 ac_status=$?
21340 grep -v '^ *+' conftest.er1 >conftest.err
21341 rm -f conftest.er1
21342 cat conftest.err >&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } && {
21345 test -z "$ac_c_werror_flag" ||
21346 test ! -s conftest.err
21347 } && test -s conftest.$ac_objext; then
21348 ac_header_compiler=yes
21349 else
21350 echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21353 ac_header_compiler=no
21356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21358 echo "${ECHO_T}$ac_header_compiler" >&6; }
21360 # Is the header present?
21361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21363 cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h. */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 #include <$ac_header>
21370 _ACEOF
21371 if { (ac_try="$ac_cpp conftest.$ac_ext"
21372 case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21378 ac_status=$?
21379 grep -v '^ *+' conftest.er1 >conftest.err
21380 rm -f conftest.er1
21381 cat conftest.err >&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } >/dev/null && {
21384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21385 test ! -s conftest.err
21386 }; then
21387 ac_header_preproc=yes
21388 else
21389 echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 ac_header_preproc=no
21395 rm -f conftest.err conftest.$ac_ext
21396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21397 echo "${ECHO_T}$ac_header_preproc" >&6; }
21399 # So? What about this header?
21400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21401 yes:no: )
21402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21406 ac_header_preproc=yes
21408 no:yes:* )
21409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21423 esac
21424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 else
21429 eval "$as_ac_Header=\$ac_header_preproc"
21431 ac_res=`eval echo '${'$as_ac_Header'}'`
21432 { echo "$as_me:$LINENO: result: $ac_res" >&5
21433 echo "${ECHO_T}$ac_res" >&6; }
21436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21437 cat >>confdefs.h <<_ACEOF
21438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21439 _ACEOF
21441 else
21443 for ac_header in kerberos/des.h
21445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21452 ac_res=`eval echo '${'$as_ac_Header'}'`
21453 { echo "$as_me:$LINENO: result: $ac_res" >&5
21454 echo "${ECHO_T}$ac_res" >&6; }
21455 else
21456 # Is the header compilable?
21457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h. */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 $ac_includes_default
21466 #include <$ac_header>
21467 _ACEOF
21468 rm -f conftest.$ac_objext
21469 if { (ac_try="$ac_compile"
21470 case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_compile") 2>conftest.er1
21476 ac_status=$?
21477 grep -v '^ *+' conftest.er1 >conftest.err
21478 rm -f conftest.er1
21479 cat conftest.err >&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } && {
21482 test -z "$ac_c_werror_flag" ||
21483 test ! -s conftest.err
21484 } && test -s conftest.$ac_objext; then
21485 ac_header_compiler=yes
21486 else
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 ac_header_compiler=no
21493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21495 echo "${ECHO_T}$ac_header_compiler" >&6; }
21497 # Is the header present?
21498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
21507 _ACEOF
21508 if { (ac_try="$ac_cpp conftest.$ac_ext"
21509 case "(($ac_try" in
21510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511 *) ac_try_echo=$ac_try;;
21512 esac
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21515 ac_status=$?
21516 grep -v '^ *+' conftest.er1 >conftest.err
21517 rm -f conftest.er1
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } >/dev/null && {
21521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21522 test ! -s conftest.err
21523 }; then
21524 ac_header_preproc=yes
21525 else
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 ac_header_preproc=no
21532 rm -f conftest.err conftest.$ac_ext
21533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21534 echo "${ECHO_T}$ac_header_preproc" >&6; }
21536 # So? What about this header?
21537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21538 yes:no: )
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21543 ac_header_preproc=yes
21545 no:yes:* )
21546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21560 esac
21561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 else
21566 eval "$as_ac_Header=\$ac_header_preproc"
21568 ac_res=`eval echo '${'$as_ac_Header'}'`
21569 { echo "$as_me:$LINENO: result: $ac_res" >&5
21570 echo "${ECHO_T}$ac_res" >&6; }
21573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21574 cat >>confdefs.h <<_ACEOF
21575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21576 _ACEOF
21580 done
21584 done
21588 done
21591 for ac_header in krb.h
21593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21600 ac_res=`eval echo '${'$as_ac_Header'}'`
21601 { echo "$as_me:$LINENO: result: $ac_res" >&5
21602 echo "${ECHO_T}$ac_res" >&6; }
21603 else
21604 # Is the header compilable?
21605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21607 cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h. */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 $ac_includes_default
21614 #include <$ac_header>
21615 _ACEOF
21616 rm -f conftest.$ac_objext
21617 if { (ac_try="$ac_compile"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21621 esac
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_compile") 2>conftest.er1
21624 ac_status=$?
21625 grep -v '^ *+' conftest.er1 >conftest.err
21626 rm -f conftest.er1
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest.$ac_objext; then
21633 ac_header_compiler=yes
21634 else
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_header_compiler=no
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21643 echo "${ECHO_T}$ac_header_compiler" >&6; }
21645 # Is the header present?
21646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21648 cat >conftest.$ac_ext <<_ACEOF
21649 /* confdefs.h. */
21650 _ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 #include <$ac_header>
21655 _ACEOF
21656 if { (ac_try="$ac_cpp conftest.$ac_ext"
21657 case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21660 esac
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21663 ac_status=$?
21664 grep -v '^ *+' conftest.er1 >conftest.err
21665 rm -f conftest.er1
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } >/dev/null && {
21669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21670 test ! -s conftest.err
21671 }; then
21672 ac_header_preproc=yes
21673 else
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21677 ac_header_preproc=no
21680 rm -f conftest.err conftest.$ac_ext
21681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21682 echo "${ECHO_T}$ac_header_preproc" >&6; }
21684 # So? What about this header?
21685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21686 yes:no: )
21687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21691 ac_header_preproc=yes
21693 no:yes:* )
21694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21708 esac
21709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 else
21714 eval "$as_ac_Header=\$ac_header_preproc"
21716 ac_res=`eval echo '${'$as_ac_Header'}'`
21717 { echo "$as_me:$LINENO: result: $ac_res" >&5
21718 echo "${ECHO_T}$ac_res" >&6; }
21721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21722 cat >>confdefs.h <<_ACEOF
21723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21724 _ACEOF
21726 else
21728 for ac_header in kerberosIV/krb.h
21730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21735 echo $ECHO_N "(cached) $ECHO_C" >&6
21737 ac_res=`eval echo '${'$as_ac_Header'}'`
21738 { echo "$as_me:$LINENO: result: $ac_res" >&5
21739 echo "${ECHO_T}$ac_res" >&6; }
21740 else
21741 # Is the header compilable?
21742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21744 cat >conftest.$ac_ext <<_ACEOF
21745 /* confdefs.h. */
21746 _ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h. */
21750 $ac_includes_default
21751 #include <$ac_header>
21752 _ACEOF
21753 rm -f conftest.$ac_objext
21754 if { (ac_try="$ac_compile"
21755 case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21758 esac
21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_compile") 2>conftest.er1
21761 ac_status=$?
21762 grep -v '^ *+' conftest.er1 >conftest.err
21763 rm -f conftest.er1
21764 cat conftest.err >&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } && {
21767 test -z "$ac_c_werror_flag" ||
21768 test ! -s conftest.err
21769 } && test -s conftest.$ac_objext; then
21770 ac_header_compiler=yes
21771 else
21772 echo "$as_me: failed program was:" >&5
21773 sed 's/^/| /' conftest.$ac_ext >&5
21775 ac_header_compiler=no
21778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21780 echo "${ECHO_T}$ac_header_compiler" >&6; }
21782 # Is the header present?
21783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21785 cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h. */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 #include <$ac_header>
21792 _ACEOF
21793 if { (ac_try="$ac_cpp conftest.$ac_ext"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21797 esac
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21800 ac_status=$?
21801 grep -v '^ *+' conftest.er1 >conftest.err
21802 rm -f conftest.er1
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } >/dev/null && {
21806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21807 test ! -s conftest.err
21808 }; then
21809 ac_header_preproc=yes
21810 else
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 ac_header_preproc=no
21817 rm -f conftest.err conftest.$ac_ext
21818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21819 echo "${ECHO_T}$ac_header_preproc" >&6; }
21821 # So? What about this header?
21822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21823 yes:no: )
21824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21828 ac_header_preproc=yes
21830 no:yes:* )
21831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21845 esac
21846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 else
21851 eval "$as_ac_Header=\$ac_header_preproc"
21853 ac_res=`eval echo '${'$as_ac_Header'}'`
21854 { echo "$as_me:$LINENO: result: $ac_res" >&5
21855 echo "${ECHO_T}$ac_res" >&6; }
21858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21859 cat >>confdefs.h <<_ACEOF
21860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21861 _ACEOF
21863 else
21865 for ac_header in kerberos/krb.h
21867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21872 echo $ECHO_N "(cached) $ECHO_C" >&6
21874 ac_res=`eval echo '${'$as_ac_Header'}'`
21875 { echo "$as_me:$LINENO: result: $ac_res" >&5
21876 echo "${ECHO_T}$ac_res" >&6; }
21877 else
21878 # Is the header compilable?
21879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21881 cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h. */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 $ac_includes_default
21888 #include <$ac_header>
21889 _ACEOF
21890 rm -f conftest.$ac_objext
21891 if { (ac_try="$ac_compile"
21892 case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21895 esac
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_compile") 2>conftest.er1
21898 ac_status=$?
21899 grep -v '^ *+' conftest.er1 >conftest.err
21900 rm -f conftest.er1
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } && {
21904 test -z "$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 } && test -s conftest.$ac_objext; then
21907 ac_header_compiler=yes
21908 else
21909 echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21912 ac_header_compiler=no
21915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21917 echo "${ECHO_T}$ac_header_compiler" >&6; }
21919 # Is the header present?
21920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21922 cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h. */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21928 #include <$ac_header>
21929 _ACEOF
21930 if { (ac_try="$ac_cpp conftest.$ac_ext"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21934 esac
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21937 ac_status=$?
21938 grep -v '^ *+' conftest.er1 >conftest.err
21939 rm -f conftest.er1
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } >/dev/null && {
21943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21944 test ! -s conftest.err
21945 }; then
21946 ac_header_preproc=yes
21947 else
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21951 ac_header_preproc=no
21954 rm -f conftest.err conftest.$ac_ext
21955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21956 echo "${ECHO_T}$ac_header_preproc" >&6; }
21958 # So? What about this header?
21959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21960 yes:no: )
21961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21965 ac_header_preproc=yes
21967 no:yes:* )
21968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21982 esac
21983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 else
21988 eval "$as_ac_Header=\$ac_header_preproc"
21990 ac_res=`eval echo '${'$as_ac_Header'}'`
21991 { echo "$as_me:$LINENO: result: $ac_res" >&5
21992 echo "${ECHO_T}$ac_res" >&6; }
21995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21996 cat >>confdefs.h <<_ACEOF
21997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21998 _ACEOF
22002 done
22006 done
22010 done
22014 for ac_header in com_err.h
22016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22023 ac_res=`eval echo '${'$as_ac_Header'}'`
22024 { echo "$as_me:$LINENO: result: $ac_res" >&5
22025 echo "${ECHO_T}$ac_res" >&6; }
22026 else
22027 # Is the header compilable?
22028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22030 cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h. */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 $ac_includes_default
22037 #include <$ac_header>
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_compile") 2>conftest.er1
22047 ac_status=$?
22048 grep -v '^ *+' conftest.er1 >conftest.err
22049 rm -f conftest.er1
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && {
22053 test -z "$ac_c_werror_flag" ||
22054 test ! -s conftest.err
22055 } && test -s conftest.$ac_objext; then
22056 ac_header_compiler=yes
22057 else
22058 echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22061 ac_header_compiler=no
22064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22066 echo "${ECHO_T}$ac_header_compiler" >&6; }
22068 # Is the header present?
22069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22071 cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h. */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22077 #include <$ac_header>
22078 _ACEOF
22079 if { (ac_try="$ac_cpp conftest.$ac_ext"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083 esac
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22086 ac_status=$?
22087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } >/dev/null && {
22092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 }; then
22095 ac_header_preproc=yes
22096 else
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ac_header_preproc=no
22103 rm -f conftest.err conftest.$ac_ext
22104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22105 echo "${ECHO_T}$ac_header_preproc" >&6; }
22107 # So? What about this header?
22108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22109 yes:no: )
22110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22114 ac_header_preproc=yes
22116 no:yes:* )
22117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22131 esac
22132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137 eval "$as_ac_Header=\$ac_header_preproc"
22139 ac_res=`eval echo '${'$as_ac_Header'}'`
22140 { echo "$as_me:$LINENO: result: $ac_res" >&5
22141 echo "${ECHO_T}$ac_res" >&6; }
22144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22145 cat >>confdefs.h <<_ACEOF
22146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22147 _ACEOF
22151 done
22155 # Solaris requires -lintl if you want strerror (which calls dgettext)
22156 # to return localized messages.
22158 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22159 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22160 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22161 echo $ECHO_N "(cached) $ECHO_C" >&6
22162 else
22163 ac_check_lib_save_LIBS=$LIBS
22164 LIBS="-lintl $LIBS"
22165 cat >conftest.$ac_ext <<_ACEOF
22166 /* confdefs.h. */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22172 /* Override any GCC internal prototype to avoid an error.
22173 Use char because int might match the return type of a GCC
22174 builtin and then its argument prototype would still apply. */
22175 #ifdef __cplusplus
22176 extern "C"
22177 #endif
22178 char dgettext ();
22180 main ()
22182 return dgettext ();
22184 return 0;
22186 _ACEOF
22187 rm -f conftest.$ac_objext conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22192 esac
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_link") 2>conftest.er1
22195 ac_status=$?
22196 grep -v '^ *+' conftest.er1 >conftest.err
22197 rm -f conftest.er1
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } && {
22201 test -z "$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22203 } && test -s conftest$ac_exeext &&
22204 $as_test_x conftest$ac_exeext; then
22205 ac_cv_lib_intl_dgettext=yes
22206 else
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 ac_cv_lib_intl_dgettext=no
22213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22214 conftest$ac_exeext conftest.$ac_ext
22215 LIBS=$ac_check_lib_save_LIBS
22217 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22218 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22219 if test $ac_cv_lib_intl_dgettext = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 #define HAVE_LIBINTL 1
22222 _ACEOF
22224 LIBS="-lintl $LIBS"
22229 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22230 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22231 if test "${emacs_cv_localtime_cache+set}" = set; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234 if test x$ac_cv_func_tzset = xyes; then
22235 if test "$cross_compiling" = yes; then
22236 # If we have tzset, assume the worst when cross-compiling.
22237 emacs_cv_localtime_cache=yes
22238 else
22239 cat >conftest.$ac_ext <<_ACEOF
22240 /* confdefs.h. */
22241 _ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 #include <time.h>
22246 extern char **environ;
22247 unset_TZ ()
22249 char **from, **to;
22250 for (to = from = environ; (*to = *from); from++)
22251 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22252 to++;
22254 char TZ_GMT0[] = "TZ=GMT0";
22255 char TZ_PST8[] = "TZ=PST8";
22256 main()
22258 time_t now = time ((time_t *) 0);
22259 int hour_GMT0, hour_unset;
22260 if (putenv (TZ_GMT0) != 0)
22261 exit (1);
22262 hour_GMT0 = localtime (&now)->tm_hour;
22263 unset_TZ ();
22264 hour_unset = localtime (&now)->tm_hour;
22265 if (putenv (TZ_PST8) != 0)
22266 exit (1);
22267 if (localtime (&now)->tm_hour == hour_GMT0)
22268 exit (1);
22269 unset_TZ ();
22270 if (localtime (&now)->tm_hour != hour_unset)
22271 exit (1);
22272 exit (0);
22274 _ACEOF
22275 rm -f conftest$ac_exeext
22276 if { (ac_try="$ac_link"
22277 case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22280 esac
22281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22282 (eval "$ac_link") 2>&5
22283 ac_status=$?
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22286 { (case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22289 esac
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_try") 2>&5
22292 ac_status=$?
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); }; }; then
22295 emacs_cv_localtime_cache=no
22296 else
22297 echo "$as_me: program exited with status $ac_status" >&5
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 ( exit $ac_status )
22302 emacs_cv_localtime_cache=yes
22304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22308 else
22309 # If we lack tzset, report that localtime does not cache TZ,
22310 # since we can't invalidate the cache if we don't have tzset.
22311 emacs_cv_localtime_cache=no
22314 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22315 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22316 if test $emacs_cv_localtime_cache = yes; then
22318 cat >>confdefs.h <<\_ACEOF
22319 #define LOCALTIME_CACHE 1
22320 _ACEOF
22324 if test "x$HAVE_TIMEVAL" = xyes; then
22326 for ac_func in gettimeofday
22328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22329 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 else
22334 cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h. */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22342 #define $ac_func innocuous_$ac_func
22344 /* System header to define __stub macros and hopefully few prototypes,
22345 which can conflict with char $ac_func (); below.
22346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22347 <limits.h> exists even on freestanding compilers. */
22349 #ifdef __STDC__
22350 # include <limits.h>
22351 #else
22352 # include <assert.h>
22353 #endif
22355 #undef $ac_func
22357 /* Override any GCC internal prototype to avoid an error.
22358 Use char because int might match the return type of a GCC
22359 builtin and then its argument prototype would still apply. */
22360 #ifdef __cplusplus
22361 extern "C"
22362 #endif
22363 char $ac_func ();
22364 /* The GNU C library defines this for functions which it implements
22365 to always fail with ENOSYS. Some functions are actually named
22366 something starting with __ and the normal name is an alias. */
22367 #if defined __stub_$ac_func || defined __stub___$ac_func
22368 choke me
22369 #endif
22372 main ()
22374 return $ac_func ();
22376 return 0;
22378 _ACEOF
22379 rm -f conftest.$ac_objext conftest$ac_exeext
22380 if { (ac_try="$ac_link"
22381 case "(($ac_try" in
22382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383 *) ac_try_echo=$ac_try;;
22384 esac
22385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22386 (eval "$ac_link") 2>conftest.er1
22387 ac_status=$?
22388 grep -v '^ *+' conftest.er1 >conftest.err
22389 rm -f conftest.er1
22390 cat conftest.err >&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } && {
22393 test -z "$ac_c_werror_flag" ||
22394 test ! -s conftest.err
22395 } && test -s conftest$ac_exeext &&
22396 $as_test_x conftest$ac_exeext; then
22397 eval "$as_ac_var=yes"
22398 else
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 eval "$as_ac_var=no"
22405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22406 conftest$ac_exeext conftest.$ac_ext
22408 ac_res=`eval echo '${'$as_ac_var'}'`
22409 { echo "$as_me:$LINENO: result: $ac_res" >&5
22410 echo "${ECHO_T}$ac_res" >&6; }
22411 if test `eval echo '${'$as_ac_var'}'` = yes; then
22412 cat >>confdefs.h <<_ACEOF
22413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22414 _ACEOF
22417 done
22419 if test $ac_cv_func_gettimeofday = yes; then
22420 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22421 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22422 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22424 else
22425 cat >conftest.$ac_ext <<_ACEOF
22426 /* confdefs.h. */
22427 _ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22432 #ifdef TIME_WITH_SYS_TIME
22433 #include <sys/time.h>
22434 #include <time.h>
22435 #else
22436 #ifdef HAVE_SYS_TIME_H
22437 #include <sys/time.h>
22438 #else
22439 #include <time.h>
22440 #endif
22441 #endif
22443 main ()
22445 struct timeval time;
22446 gettimeofday (&time, 0);
22448 return 0;
22450 _ACEOF
22451 rm -f conftest.$ac_objext
22452 if { (ac_try="$ac_compile"
22453 case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22456 esac
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_compile") 2>conftest.er1
22459 ac_status=$?
22460 grep -v '^ *+' conftest.er1 >conftest.err
22461 rm -f conftest.er1
22462 cat conftest.err >&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); } && {
22465 test -z "$ac_c_werror_flag" ||
22466 test ! -s conftest.err
22467 } && test -s conftest.$ac_objext; then
22468 emacs_cv_gettimeofday_two_arguments=yes
22469 else
22470 echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22473 emacs_cv_gettimeofday_two_arguments=no
22476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22479 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22480 if test $emacs_cv_gettimeofday_two_arguments = no; then
22482 cat >>confdefs.h <<\_ACEOF
22483 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22484 _ACEOF
22490 ok_so_far=yes
22491 { echo "$as_me:$LINENO: checking for socket" >&5
22492 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22493 if test "${ac_cv_func_socket+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22495 else
22496 cat >conftest.$ac_ext <<_ACEOF
22497 /* confdefs.h. */
22498 _ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22502 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22504 #define socket innocuous_socket
22506 /* System header to define __stub macros and hopefully few prototypes,
22507 which can conflict with char socket (); below.
22508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22509 <limits.h> exists even on freestanding compilers. */
22511 #ifdef __STDC__
22512 # include <limits.h>
22513 #else
22514 # include <assert.h>
22515 #endif
22517 #undef socket
22519 /* Override any GCC internal prototype to avoid an error.
22520 Use char because int might match the return type of a GCC
22521 builtin and then its argument prototype would still apply. */
22522 #ifdef __cplusplus
22523 extern "C"
22524 #endif
22525 char socket ();
22526 /* The GNU C library defines this for functions which it implements
22527 to always fail with ENOSYS. Some functions are actually named
22528 something starting with __ and the normal name is an alias. */
22529 #if defined __stub_socket || defined __stub___socket
22530 choke me
22531 #endif
22534 main ()
22536 return socket ();
22538 return 0;
22540 _ACEOF
22541 rm -f conftest.$ac_objext conftest$ac_exeext
22542 if { (ac_try="$ac_link"
22543 case "(($ac_try" in
22544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545 *) ac_try_echo=$ac_try;;
22546 esac
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548 (eval "$ac_link") 2>conftest.er1
22549 ac_status=$?
22550 grep -v '^ *+' conftest.er1 >conftest.err
22551 rm -f conftest.er1
22552 cat conftest.err >&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } && {
22555 test -z "$ac_c_werror_flag" ||
22556 test ! -s conftest.err
22557 } && test -s conftest$ac_exeext &&
22558 $as_test_x conftest$ac_exeext; then
22559 ac_cv_func_socket=yes
22560 else
22561 echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22564 ac_cv_func_socket=no
22567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22568 conftest$ac_exeext conftest.$ac_ext
22570 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22571 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22572 if test $ac_cv_func_socket = yes; then
22574 else
22575 ok_so_far=no
22578 if test $ok_so_far = yes; then
22579 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22580 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22581 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22582 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22585 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22586 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22587 else
22588 # Is the header compilable?
22589 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22590 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22591 cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h. */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 $ac_includes_default
22598 #include <netinet/in.h>
22599 _ACEOF
22600 rm -f conftest.$ac_objext
22601 if { (ac_try="$ac_compile"
22602 case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22605 esac
22606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22607 (eval "$ac_compile") 2>conftest.er1
22608 ac_status=$?
22609 grep -v '^ *+' conftest.er1 >conftest.err
22610 rm -f conftest.er1
22611 cat conftest.err >&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } && {
22614 test -z "$ac_c_werror_flag" ||
22615 test ! -s conftest.err
22616 } && test -s conftest.$ac_objext; then
22617 ac_header_compiler=yes
22618 else
22619 echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22622 ac_header_compiler=no
22625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22627 echo "${ECHO_T}$ac_header_compiler" >&6; }
22629 # Is the header present?
22630 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22631 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22632 cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h. */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22638 #include <netinet/in.h>
22639 _ACEOF
22640 if { (ac_try="$ac_cpp conftest.$ac_ext"
22641 case "(($ac_try" in
22642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22644 esac
22645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22647 ac_status=$?
22648 grep -v '^ *+' conftest.er1 >conftest.err
22649 rm -f conftest.er1
22650 cat conftest.err >&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); } >/dev/null && {
22653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22654 test ! -s conftest.err
22655 }; then
22656 ac_header_preproc=yes
22657 else
22658 echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22661 ac_header_preproc=no
22664 rm -f conftest.err conftest.$ac_ext
22665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22666 echo "${ECHO_T}$ac_header_preproc" >&6; }
22668 # So? What about this header?
22669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22670 yes:no: )
22671 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22672 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22673 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22674 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22675 ac_header_preproc=yes
22677 no:yes:* )
22678 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22679 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22680 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22681 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22682 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22683 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22684 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22685 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22686 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22687 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22688 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22689 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22692 esac
22693 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22694 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22695 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22696 echo $ECHO_N "(cached) $ECHO_C" >&6
22697 else
22698 ac_cv_header_netinet_in_h=$ac_header_preproc
22700 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22701 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22704 if test $ac_cv_header_netinet_in_h = yes; then
22706 else
22707 ok_so_far=no
22712 if test $ok_so_far = yes; then
22713 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22714 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22715 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22716 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22720 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22721 else
22722 # Is the header compilable?
22723 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22724 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22725 cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h. */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 $ac_includes_default
22732 #include <arpa/inet.h>
22733 _ACEOF
22734 rm -f conftest.$ac_objext
22735 if { (ac_try="$ac_compile"
22736 case "(($ac_try" in
22737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738 *) ac_try_echo=$ac_try;;
22739 esac
22740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22741 (eval "$ac_compile") 2>conftest.er1
22742 ac_status=$?
22743 grep -v '^ *+' conftest.er1 >conftest.err
22744 rm -f conftest.er1
22745 cat conftest.err >&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); } && {
22748 test -z "$ac_c_werror_flag" ||
22749 test ! -s conftest.err
22750 } && test -s conftest.$ac_objext; then
22751 ac_header_compiler=yes
22752 else
22753 echo "$as_me: failed program was:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22756 ac_header_compiler=no
22759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22761 echo "${ECHO_T}$ac_header_compiler" >&6; }
22763 # Is the header present?
22764 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22765 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22766 cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h. */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22772 #include <arpa/inet.h>
22773 _ACEOF
22774 if { (ac_try="$ac_cpp conftest.$ac_ext"
22775 case "(($ac_try" in
22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22778 esac
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22781 ac_status=$?
22782 grep -v '^ *+' conftest.er1 >conftest.err
22783 rm -f conftest.er1
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } >/dev/null && {
22787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22789 }; then
22790 ac_header_preproc=yes
22791 else
22792 echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22795 ac_header_preproc=no
22798 rm -f conftest.err conftest.$ac_ext
22799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22800 echo "${ECHO_T}$ac_header_preproc" >&6; }
22802 # So? What about this header?
22803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22804 yes:no: )
22805 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22806 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22807 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22808 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22809 ac_header_preproc=yes
22811 no:yes:* )
22812 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22813 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22814 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22815 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22816 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22817 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22818 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22819 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22820 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22821 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22822 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22823 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22826 esac
22827 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22828 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22829 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22830 echo $ECHO_N "(cached) $ECHO_C" >&6
22831 else
22832 ac_cv_header_arpa_inet_h=$ac_header_preproc
22834 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22835 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22838 if test $ac_cv_header_arpa_inet_h = yes; then
22840 else
22841 ok_so_far=no
22846 if test $ok_so_far = yes; then
22848 cat >>confdefs.h <<\_ACEOF
22849 #define HAVE_INET_SOCKETS 1
22850 _ACEOF
22855 for ac_header in sys/ioctl.h
22857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
22864 ac_res=`eval echo '${'$as_ac_Header'}'`
22865 { echo "$as_me:$LINENO: result: $ac_res" >&5
22866 echo "${ECHO_T}$ac_res" >&6; }
22867 else
22868 # Is the header compilable?
22869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22871 cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h. */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22877 $ac_includes_default
22878 #include <$ac_header>
22879 _ACEOF
22880 rm -f conftest.$ac_objext
22881 if { (ac_try="$ac_compile"
22882 case "(($ac_try" in
22883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884 *) ac_try_echo=$ac_try;;
22885 esac
22886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22887 (eval "$ac_compile") 2>conftest.er1
22888 ac_status=$?
22889 grep -v '^ *+' conftest.er1 >conftest.err
22890 rm -f conftest.er1
22891 cat conftest.err >&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } && {
22894 test -z "$ac_c_werror_flag" ||
22895 test ! -s conftest.err
22896 } && test -s conftest.$ac_objext; then
22897 ac_header_compiler=yes
22898 else
22899 echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22902 ac_header_compiler=no
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22907 echo "${ECHO_T}$ac_header_compiler" >&6; }
22909 # Is the header present?
22910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22912 cat >conftest.$ac_ext <<_ACEOF
22913 /* confdefs.h. */
22914 _ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h. */
22918 #include <$ac_header>
22919 _ACEOF
22920 if { (ac_try="$ac_cpp conftest.$ac_ext"
22921 case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22924 esac
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22927 ac_status=$?
22928 grep -v '^ *+' conftest.er1 >conftest.err
22929 rm -f conftest.er1
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } >/dev/null && {
22933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22934 test ! -s conftest.err
22935 }; then
22936 ac_header_preproc=yes
22937 else
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 ac_header_preproc=no
22944 rm -f conftest.err conftest.$ac_ext
22945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22946 echo "${ECHO_T}$ac_header_preproc" >&6; }
22948 # So? What about this header?
22949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22950 yes:no: )
22951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22955 ac_header_preproc=yes
22957 no:yes:* )
22958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22972 esac
22973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978 eval "$as_ac_Header=\$ac_header_preproc"
22980 ac_res=`eval echo '${'$as_ac_Header'}'`
22981 { echo "$as_me:$LINENO: result: $ac_res" >&5
22982 echo "${ECHO_T}$ac_res" >&6; }
22985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22986 cat >>confdefs.h <<_ACEOF
22987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22988 _ACEOF
22992 done
22995 if test -f /usr/lpp/X11/bin/smt.exp; then
22997 cat >>confdefs.h <<\_ACEOF
22998 #define HAVE_AIX_SMT_EXP 1
22999 _ACEOF
23003 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23004 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23005 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23006 { echo "$as_me:$LINENO: result: yes" >&5
23007 echo "${ECHO_T}yes" >&6; }
23009 cat >>confdefs.h <<\_ACEOF
23010 #define HAVE_DEV_PTMX 1
23011 _ACEOF
23013 else
23014 { echo "$as_me:$LINENO: result: no" >&5
23015 echo "${ECHO_T}no" >&6; }
23018 { echo "$as_me:$LINENO: checking for pid_t" >&5
23019 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23020 if test "${ac_cv_type_pid_t+set}" = set; then
23021 echo $ECHO_N "(cached) $ECHO_C" >&6
23022 else
23023 cat >conftest.$ac_ext <<_ACEOF
23024 /* confdefs.h. */
23025 _ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 $ac_includes_default
23030 typedef pid_t ac__type_new_;
23032 main ()
23034 if ((ac__type_new_ *) 0)
23035 return 0;
23036 if (sizeof (ac__type_new_))
23037 return 0;
23039 return 0;
23041 _ACEOF
23042 rm -f conftest.$ac_objext
23043 if { (ac_try="$ac_compile"
23044 case "(($ac_try" in
23045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23046 *) ac_try_echo=$ac_try;;
23047 esac
23048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23049 (eval "$ac_compile") 2>conftest.er1
23050 ac_status=$?
23051 grep -v '^ *+' conftest.er1 >conftest.err
23052 rm -f conftest.er1
23053 cat conftest.err >&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } && {
23056 test -z "$ac_c_werror_flag" ||
23057 test ! -s conftest.err
23058 } && test -s conftest.$ac_objext; then
23059 ac_cv_type_pid_t=yes
23060 else
23061 echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23064 ac_cv_type_pid_t=no
23067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23069 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23070 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23071 if test $ac_cv_type_pid_t = yes; then
23073 else
23075 cat >>confdefs.h <<_ACEOF
23076 #define pid_t int
23077 _ACEOF
23082 for ac_header in vfork.h
23084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23089 echo $ECHO_N "(cached) $ECHO_C" >&6
23091 ac_res=`eval echo '${'$as_ac_Header'}'`
23092 { echo "$as_me:$LINENO: result: $ac_res" >&5
23093 echo "${ECHO_T}$ac_res" >&6; }
23094 else
23095 # Is the header compilable?
23096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23098 cat >conftest.$ac_ext <<_ACEOF
23099 /* confdefs.h. */
23100 _ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h. */
23104 $ac_includes_default
23105 #include <$ac_header>
23106 _ACEOF
23107 rm -f conftest.$ac_objext
23108 if { (ac_try="$ac_compile"
23109 case "(($ac_try" in
23110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111 *) ac_try_echo=$ac_try;;
23112 esac
23113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23114 (eval "$ac_compile") 2>conftest.er1
23115 ac_status=$?
23116 grep -v '^ *+' conftest.er1 >conftest.err
23117 rm -f conftest.er1
23118 cat conftest.err >&5
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); } && {
23121 test -z "$ac_c_werror_flag" ||
23122 test ! -s conftest.err
23123 } && test -s conftest.$ac_objext; then
23124 ac_header_compiler=yes
23125 else
23126 echo "$as_me: failed program was:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23129 ac_header_compiler=no
23132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23134 echo "${ECHO_T}$ac_header_compiler" >&6; }
23136 # Is the header present?
23137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23139 cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h. */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23145 #include <$ac_header>
23146 _ACEOF
23147 if { (ac_try="$ac_cpp conftest.$ac_ext"
23148 case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23151 esac
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23154 ac_status=$?
23155 grep -v '^ *+' conftest.er1 >conftest.err
23156 rm -f conftest.er1
23157 cat conftest.err >&5
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); } >/dev/null && {
23160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23161 test ! -s conftest.err
23162 }; then
23163 ac_header_preproc=yes
23164 else
23165 echo "$as_me: failed program was:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23168 ac_header_preproc=no
23171 rm -f conftest.err conftest.$ac_ext
23172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23173 echo "${ECHO_T}$ac_header_preproc" >&6; }
23175 # So? What about this header?
23176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23177 yes:no: )
23178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23182 ac_header_preproc=yes
23184 no:yes:* )
23185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23199 esac
23200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23204 else
23205 eval "$as_ac_Header=\$ac_header_preproc"
23207 ac_res=`eval echo '${'$as_ac_Header'}'`
23208 { echo "$as_me:$LINENO: result: $ac_res" >&5
23209 echo "${ECHO_T}$ac_res" >&6; }
23212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23213 cat >>confdefs.h <<_ACEOF
23214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23215 _ACEOF
23219 done
23223 for ac_func in fork vfork
23225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23229 echo $ECHO_N "(cached) $ECHO_C" >&6
23230 else
23231 cat >conftest.$ac_ext <<_ACEOF
23232 /* confdefs.h. */
23233 _ACEOF
23234 cat confdefs.h >>conftest.$ac_ext
23235 cat >>conftest.$ac_ext <<_ACEOF
23236 /* end confdefs.h. */
23237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23239 #define $ac_func innocuous_$ac_func
23241 /* System header to define __stub macros and hopefully few prototypes,
23242 which can conflict with char $ac_func (); below.
23243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23244 <limits.h> exists even on freestanding compilers. */
23246 #ifdef __STDC__
23247 # include <limits.h>
23248 #else
23249 # include <assert.h>
23250 #endif
23252 #undef $ac_func
23254 /* Override any GCC internal prototype to avoid an error.
23255 Use char because int might match the return type of a GCC
23256 builtin and then its argument prototype would still apply. */
23257 #ifdef __cplusplus
23258 extern "C"
23259 #endif
23260 char $ac_func ();
23261 /* The GNU C library defines this for functions which it implements
23262 to always fail with ENOSYS. Some functions are actually named
23263 something starting with __ and the normal name is an alias. */
23264 #if defined __stub_$ac_func || defined __stub___$ac_func
23265 choke me
23266 #endif
23269 main ()
23271 return $ac_func ();
23273 return 0;
23275 _ACEOF
23276 rm -f conftest.$ac_objext conftest$ac_exeext
23277 if { (ac_try="$ac_link"
23278 case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23281 esac
23282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283 (eval "$ac_link") 2>conftest.er1
23284 ac_status=$?
23285 grep -v '^ *+' conftest.er1 >conftest.err
23286 rm -f conftest.er1
23287 cat conftest.err >&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } && {
23290 test -z "$ac_c_werror_flag" ||
23291 test ! -s conftest.err
23292 } && test -s conftest$ac_exeext &&
23293 $as_test_x conftest$ac_exeext; then
23294 eval "$as_ac_var=yes"
23295 else
23296 echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23299 eval "$as_ac_var=no"
23302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23303 conftest$ac_exeext conftest.$ac_ext
23305 ac_res=`eval echo '${'$as_ac_var'}'`
23306 { echo "$as_me:$LINENO: result: $ac_res" >&5
23307 echo "${ECHO_T}$ac_res" >&6; }
23308 if test `eval echo '${'$as_ac_var'}'` = yes; then
23309 cat >>confdefs.h <<_ACEOF
23310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23311 _ACEOF
23314 done
23316 if test "x$ac_cv_func_fork" = xyes; then
23317 { echo "$as_me:$LINENO: checking for working fork" >&5
23318 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23319 if test "${ac_cv_func_fork_works+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23321 else
23322 if test "$cross_compiling" = yes; then
23323 ac_cv_func_fork_works=cross
23324 else
23325 cat >conftest.$ac_ext <<_ACEOF
23326 /* confdefs.h. */
23327 _ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23331 $ac_includes_default
23333 main ()
23336 /* By Ruediger Kuhlmann. */
23337 return fork () < 0;
23340 return 0;
23342 _ACEOF
23343 rm -f conftest$ac_exeext
23344 if { (ac_try="$ac_link"
23345 case "(($ac_try" in
23346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23347 *) ac_try_echo=$ac_try;;
23348 esac
23349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23350 (eval "$ac_link") 2>&5
23351 ac_status=$?
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23354 { (case "(($ac_try" in
23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356 *) ac_try_echo=$ac_try;;
23357 esac
23358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23359 (eval "$ac_try") 2>&5
23360 ac_status=$?
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; }; then
23363 ac_cv_func_fork_works=yes
23364 else
23365 echo "$as_me: program exited with status $ac_status" >&5
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23369 ( exit $ac_status )
23370 ac_cv_func_fork_works=no
23372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23377 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23378 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23380 else
23381 ac_cv_func_fork_works=$ac_cv_func_fork
23383 if test "x$ac_cv_func_fork_works" = xcross; then
23384 case $host in
23385 *-*-amigaos* | *-*-msdosdjgpp*)
23386 # Override, as these systems have only a dummy fork() stub
23387 ac_cv_func_fork_works=no
23390 ac_cv_func_fork_works=yes
23392 esac
23393 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23394 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23396 ac_cv_func_vfork_works=$ac_cv_func_vfork
23397 if test "x$ac_cv_func_vfork" = xyes; then
23398 { echo "$as_me:$LINENO: checking for working vfork" >&5
23399 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23400 if test "${ac_cv_func_vfork_works+set}" = set; then
23401 echo $ECHO_N "(cached) $ECHO_C" >&6
23402 else
23403 if test "$cross_compiling" = yes; then
23404 ac_cv_func_vfork_works=cross
23405 else
23406 cat >conftest.$ac_ext <<_ACEOF
23407 /* confdefs.h. */
23408 _ACEOF
23409 cat confdefs.h >>conftest.$ac_ext
23410 cat >>conftest.$ac_ext <<_ACEOF
23411 /* end confdefs.h. */
23412 /* Thanks to Paul Eggert for this test. */
23413 $ac_includes_default
23414 #include <sys/wait.h>
23415 #ifdef HAVE_VFORK_H
23416 # include <vfork.h>
23417 #endif
23418 /* On some sparc systems, changes by the child to local and incoming
23419 argument registers are propagated back to the parent. The compiler
23420 is told about this with #include <vfork.h>, but some compilers
23421 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23422 static variable whose address is put into a register that is
23423 clobbered by the vfork. */
23424 static void
23425 #ifdef __cplusplus
23426 sparc_address_test (int arg)
23427 # else
23428 sparc_address_test (arg) int arg;
23429 #endif
23431 static pid_t child;
23432 if (!child) {
23433 child = vfork ();
23434 if (child < 0) {
23435 perror ("vfork");
23436 _exit(2);
23438 if (!child) {
23439 arg = getpid();
23440 write(-1, "", 0);
23441 _exit (arg);
23447 main ()
23449 pid_t parent = getpid ();
23450 pid_t child;
23452 sparc_address_test (0);
23454 child = vfork ();
23456 if (child == 0) {
23457 /* Here is another test for sparc vfork register problems. This
23458 test uses lots of local variables, at least as many local
23459 variables as main has allocated so far including compiler
23460 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23461 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23462 reuse the register of parent for one of the local variables,
23463 since it will think that parent can't possibly be used any more
23464 in this routine. Assigning to the local variable will thus
23465 munge parent in the parent process. */
23466 pid_t
23467 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23468 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23469 /* Convince the compiler that p..p7 are live; otherwise, it might
23470 use the same hardware register for all 8 local variables. */
23471 if (p != p1 || p != p2 || p != p3 || p != p4
23472 || p != p5 || p != p6 || p != p7)
23473 _exit(1);
23475 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23476 from child file descriptors. If the child closes a descriptor
23477 before it execs or exits, this munges the parent's descriptor
23478 as well. Test for this by closing stdout in the child. */
23479 _exit(close(fileno(stdout)) != 0);
23480 } else {
23481 int status;
23482 struct stat st;
23484 while (wait(&status) != child)
23486 return (
23487 /* Was there some problem with vforking? */
23488 child < 0
23490 /* Did the child fail? (This shouldn't happen.) */
23491 || status
23493 /* Did the vfork/compiler bug occur? */
23494 || parent != getpid()
23496 /* Did the file descriptor bug occur? */
23497 || fstat(fileno(stdout), &st) != 0
23501 _ACEOF
23502 rm -f conftest$ac_exeext
23503 if { (ac_try="$ac_link"
23504 case "(($ac_try" in
23505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506 *) ac_try_echo=$ac_try;;
23507 esac
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509 (eval "$ac_link") 2>&5
23510 ac_status=$?
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23513 { (case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23516 esac
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_try") 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; }; then
23522 ac_cv_func_vfork_works=yes
23523 else
23524 echo "$as_me: program exited with status $ac_status" >&5
23525 echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ( exit $ac_status )
23529 ac_cv_func_vfork_works=no
23531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23536 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23537 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23540 if test "x$ac_cv_func_fork_works" = xcross; then
23541 ac_cv_func_vfork_works=$ac_cv_func_vfork
23542 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23543 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23546 if test "x$ac_cv_func_vfork_works" = xyes; then
23548 cat >>confdefs.h <<\_ACEOF
23549 #define HAVE_WORKING_VFORK 1
23550 _ACEOF
23552 else
23554 cat >>confdefs.h <<\_ACEOF
23555 #define vfork fork
23556 _ACEOF
23559 if test "x$ac_cv_func_fork_works" = xyes; then
23561 cat >>confdefs.h <<\_ACEOF
23562 #define HAVE_WORKING_FORK 1
23563 _ACEOF
23568 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23569 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23570 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23571 echo $ECHO_N "(cached) $ECHO_C" >&6
23572 else
23573 cat >conftest.$ac_ext <<_ACEOF
23574 /* confdefs.h. */
23575 _ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h. */
23579 #include <langinfo.h>
23581 main ()
23583 char* cs = nl_langinfo(CODESET);
23585 return 0;
23587 _ACEOF
23588 rm -f conftest.$ac_objext conftest$ac_exeext
23589 if { (ac_try="$ac_link"
23590 case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23593 esac
23594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595 (eval "$ac_link") 2>conftest.er1
23596 ac_status=$?
23597 grep -v '^ *+' conftest.er1 >conftest.err
23598 rm -f conftest.er1
23599 cat conftest.err >&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); } && {
23602 test -z "$ac_c_werror_flag" ||
23603 test ! -s conftest.err
23604 } && test -s conftest$ac_exeext &&
23605 $as_test_x conftest$ac_exeext; then
23606 emacs_cv_langinfo_codeset=yes
23607 else
23608 echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23611 emacs_cv_langinfo_codeset=no
23614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23615 conftest$ac_exeext conftest.$ac_ext
23618 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23619 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23620 if test $emacs_cv_langinfo_codeset = yes; then
23622 cat >>confdefs.h <<\_ACEOF
23623 #define HAVE_LANGINFO_CODESET 1
23624 _ACEOF
23628 { echo "$as_me:$LINENO: checking for size_t" >&5
23629 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23630 if test "${ac_cv_type_size_t+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23632 else
23633 cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h. */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 $ac_includes_default
23640 typedef size_t ac__type_new_;
23642 main ()
23644 if ((ac__type_new_ *) 0)
23645 return 0;
23646 if (sizeof (ac__type_new_))
23647 return 0;
23649 return 0;
23651 _ACEOF
23652 rm -f conftest.$ac_objext
23653 if { (ac_try="$ac_compile"
23654 case "(($ac_try" in
23655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23656 *) ac_try_echo=$ac_try;;
23657 esac
23658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23659 (eval "$ac_compile") 2>conftest.er1
23660 ac_status=$?
23661 grep -v '^ *+' conftest.er1 >conftest.err
23662 rm -f conftest.er1
23663 cat conftest.err >&5
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); } && {
23666 test -z "$ac_c_werror_flag" ||
23667 test ! -s conftest.err
23668 } && test -s conftest.$ac_objext; then
23669 ac_cv_type_size_t=yes
23670 else
23671 echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23674 ac_cv_type_size_t=no
23677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23679 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23680 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23681 if test $ac_cv_type_size_t = yes; then
23683 cat >>confdefs.h <<_ACEOF
23684 #define HAVE_SIZE_T 1
23685 _ACEOF
23691 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23692 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23693 if test "${ac_cv_type_mbstate_t+set}" = set; then
23694 echo $ECHO_N "(cached) $ECHO_C" >&6
23695 else
23696 cat >conftest.$ac_ext <<_ACEOF
23697 /* confdefs.h. */
23698 _ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h. */
23702 $ac_includes_default
23703 # include <wchar.h>
23705 main ()
23707 mbstate_t x; return sizeof x;
23709 return 0;
23711 _ACEOF
23712 rm -f conftest.$ac_objext
23713 if { (ac_try="$ac_compile"
23714 case "(($ac_try" in
23715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23716 *) ac_try_echo=$ac_try;;
23717 esac
23718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23719 (eval "$ac_compile") 2>conftest.er1
23720 ac_status=$?
23721 grep -v '^ *+' conftest.er1 >conftest.err
23722 rm -f conftest.er1
23723 cat conftest.err >&5
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); } && {
23726 test -z "$ac_c_werror_flag" ||
23727 test ! -s conftest.err
23728 } && test -s conftest.$ac_objext; then
23729 ac_cv_type_mbstate_t=yes
23730 else
23731 echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23734 ac_cv_type_mbstate_t=no
23737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23739 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23740 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23741 if test $ac_cv_type_mbstate_t = yes; then
23743 cat >>confdefs.h <<\_ACEOF
23744 #define HAVE_MBSTATE_T 1
23745 _ACEOF
23747 else
23749 cat >>confdefs.h <<\_ACEOF
23750 #define mbstate_t int
23751 _ACEOF
23755 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23756 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23757 if test "${emacs_cv_c_restrict+set}" = set; then
23758 echo $ECHO_N "(cached) $ECHO_C" >&6
23759 else
23760 cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h. */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23766 void fred (int *restrict x);
23768 main ()
23772 return 0;
23774 _ACEOF
23775 rm -f conftest.$ac_objext
23776 if { (ac_try="$ac_compile"
23777 case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23780 esac
23781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23782 (eval "$ac_compile") 2>conftest.er1
23783 ac_status=$?
23784 grep -v '^ *+' conftest.er1 >conftest.err
23785 rm -f conftest.er1
23786 cat conftest.err >&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } && {
23789 test -z "$ac_c_werror_flag" ||
23790 test ! -s conftest.err
23791 } && test -s conftest.$ac_objext; then
23792 emacs_cv_c_restrict=yes
23793 else
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23797 cat >conftest.$ac_ext <<_ACEOF
23798 /* confdefs.h. */
23799 _ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h. */
23803 void fred (int *__restrict x);
23805 main ()
23809 return 0;
23811 _ACEOF
23812 rm -f conftest.$ac_objext
23813 if { (ac_try="$ac_compile"
23814 case "(($ac_try" in
23815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816 *) ac_try_echo=$ac_try;;
23817 esac
23818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23819 (eval "$ac_compile") 2>conftest.er1
23820 ac_status=$?
23821 grep -v '^ *+' conftest.er1 >conftest.err
23822 rm -f conftest.er1
23823 cat conftest.err >&5
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); } && {
23826 test -z "$ac_c_werror_flag" ||
23827 test ! -s conftest.err
23828 } && test -s conftest.$ac_objext; then
23829 emacs_cv_c_restrict=__restrict
23830 else
23831 echo "$as_me: failed program was:" >&5
23832 sed 's/^/| /' conftest.$ac_ext >&5
23834 emacs_cv_c_restrict=no
23837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23842 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23843 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23844 case "$emacs_cv_c_restrict" in
23845 yes) emacs_restrict=restrict;;
23846 no) emacs_restrict="";;
23847 *) emacs_restrict="$emacs_cv_c_restrict";;
23848 esac
23849 if test "$emacs_restrict" != __restrict; then
23851 cat >>confdefs.h <<_ACEOF
23852 #define __restrict $emacs_restrict
23853 _ACEOF
23857 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23858 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23859 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23860 echo $ECHO_N "(cached) $ECHO_C" >&6
23861 else
23862 cat >conftest.$ac_ext <<_ACEOF
23863 /* confdefs.h. */
23864 _ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h. */
23868 void fred (int x[__restrict]);
23870 main ()
23874 return 0;
23876 _ACEOF
23877 rm -f conftest.$ac_objext
23878 if { (ac_try="$ac_compile"
23879 case "(($ac_try" in
23880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881 *) ac_try_echo=$ac_try;;
23882 esac
23883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23884 (eval "$ac_compile") 2>conftest.er1
23885 ac_status=$?
23886 grep -v '^ *+' conftest.er1 >conftest.err
23887 rm -f conftest.er1
23888 cat conftest.err >&5
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } && {
23891 test -z "$ac_c_werror_flag" ||
23892 test ! -s conftest.err
23893 } && test -s conftest.$ac_objext; then
23894 emacs_cv_c_restrict_arr=yes
23895 else
23896 echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23899 emacs_cv_c_restrict_arr=no
23902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23905 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23906 if test "$emacs_cv_c_restrict_arr" = yes; then
23908 cat >>confdefs.h <<\_ACEOF
23909 #define __restrict_arr __restrict
23910 _ACEOF
23916 # Set up the CFLAGS for real compilation, so we can substitute it.
23917 CFLAGS="$REAL_CFLAGS"
23918 CPPFLAGS="$REAL_CPPFLAGS"
23920 #### Find out which version of Emacs this is.
23921 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23922 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23923 if test x"${version}" = x; then
23924 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23925 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23926 { (exit 1); exit 1; }; }
23929 ### Specify what sort of things we'll be editing into Makefile and config.h.
23930 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23966 cat >>confdefs.h <<_ACEOF
23967 #define EMACS_CONFIGURATION "${canonical}"
23968 _ACEOF
23971 cat >>confdefs.h <<_ACEOF
23972 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23973 _ACEOF
23976 cat >>confdefs.h <<_ACEOF
23977 #define config_machfile "${machfile}"
23978 _ACEOF
23981 cat >>confdefs.h <<_ACEOF
23982 #define config_opsysfile "${opsysfile}"
23983 _ACEOF
23986 cat >>confdefs.h <<_ACEOF
23987 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23988 _ACEOF
23991 cat >>confdefs.h <<_ACEOF
23992 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23993 _ACEOF
23996 cat >>confdefs.h <<_ACEOF
23997 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23998 _ACEOF
24001 cat >>confdefs.h <<_ACEOF
24002 #define UNEXEC_SRC ${UNEXEC_SRC}
24003 _ACEOF
24006 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24008 cat >>confdefs.h <<\_ACEOF
24009 #define HAVE_X_WINDOWS 1
24010 _ACEOF
24013 if test "${USE_X_TOOLKIT}" != "none" ; then
24015 cat >>confdefs.h <<\_ACEOF
24016 #define USE_X_TOOLKIT 1
24017 _ACEOF
24019 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24021 cat >>confdefs.h <<\_ACEOF
24022 #define USE_LUCID 1
24023 _ACEOF
24025 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24027 cat >>confdefs.h <<\_ACEOF
24028 #define USE_MOTIF 1
24029 _ACEOF
24033 if test "${HAVE_X11}" = "yes" ; then
24035 cat >>confdefs.h <<\_ACEOF
24036 #define HAVE_X11 1
24037 _ACEOF
24040 if test "${HAVE_MENUS}" = "yes" ; then
24042 cat >>confdefs.h <<\_ACEOF
24043 #define HAVE_MENUS 1
24044 _ACEOF
24047 if test "${GNU_MALLOC}" = "yes" ; then
24049 cat >>confdefs.h <<\_ACEOF
24050 #define GNU_MALLOC 1
24051 _ACEOF
24054 if test "${REL_ALLOC}" = "yes" ; then
24056 cat >>confdefs.h <<\_ACEOF
24057 #define REL_ALLOC 1
24058 _ACEOF
24067 #### Report on what we decided to do.
24068 #### Report GTK as a toolkit, even if it doesn't use Xt.
24069 #### It makes printing result more understandable as using GTK sets
24070 #### toolkit_scroll_bars to yes by default.
24071 if test "${HAVE_GTK}" = "yes"; then
24072 USE_X_TOOLKIT=GTK
24075 echo "
24076 Configured for \`${canonical}'.
24078 Where should the build process find the source code? ${srcdir}
24079 What operating system and machine description files should Emacs use?
24080 \`${opsysfile}' and \`${machfile}'
24081 What compiler should emacs be built with? ${CC} ${CFLAGS}
24082 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24083 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24084 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24085 What window system should Emacs use? ${window_system}
24086 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24088 if test -n "${x_includes}"; then
24089 echo " Where do we find X Windows header files? ${x_includes}"
24090 else
24091 echo " Where do we find X Windows header files? Standard dirs"
24093 if test -n "${x_libraries}"; then
24094 echo " Where do we find X Windows libraries? ${x_libraries}"
24095 else
24096 echo " Where do we find X Windows libraries? Standard dirs"
24099 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24100 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24101 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24102 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24103 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24104 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24105 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24106 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24107 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24109 if test "${USE_FONT_BACKEND}" = "yes"; then
24110 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24111 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24112 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24113 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24115 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24116 echo
24118 if test $USE_XASSERTS = yes; then
24119 echo " Compiling with asserts turned on."
24120 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24123 echo
24125 if test "$USE_X_TOOLKIT" = GTK; then
24126 case "$canonical" in
24127 *cygwin*)
24128 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24129 will probably get a crash on startup. If this happens, please use another
24130 toolkit for Emacs. See etc/PROBLEMS for more information."
24132 esac
24136 if test "$HAVE_CARBON" = "yes"; then
24137 echo
24138 echo "Warning: The Mac Carbon port is currently unsupported and has
24139 known problems. It is not recommended for use by non-developers.
24140 Read the emacs-devel archives for more information."
24141 echo
24144 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24145 echo "D-Bus integration has been tested for GNU/Linux only."
24146 echo
24150 # Remove any trailing slashes in these variables.
24151 test "${prefix}" != NONE &&
24152 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24153 test "${exec_prefix}" != NONE &&
24154 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24156 # Now get this: Some word that is part of the ${srcdir} directory name
24157 # or the ${configuration} value might, just might, happen to be an
24158 # identifier like `sun4' or `i386' or something, and be predefined by
24159 # the C preprocessor to some helpful value like 1, or maybe the empty
24160 # string. Needless to say consequent macro substitutions are less
24161 # than conducive to the makefile finding the correct directory.
24162 cpp_undefs="`echo $srcdir $configuration $canonical |
24163 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24164 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24166 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24167 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24168 ## from Makefile.c can correctly provide the arg `-traditional' to the
24169 ## C preprocessor.
24171 cat >conftest.$ac_ext <<_ACEOF
24172 /* confdefs.h. */
24173 _ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h. */
24177 yes..yes
24178 _ACEOF
24179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24180 $EGREP "yes..yes" >/dev/null 2>&1; then
24181 CPP_NEED_TRADITIONAL=no
24182 else
24183 CPP_NEED_TRADITIONAL=yes
24185 rm -f conftest*
24188 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
24190 ac_config_commands="$ac_config_commands default"
24192 cat >confcache <<\_ACEOF
24193 # This file is a shell script that caches the results of configure
24194 # tests run on this system so they can be shared between configure
24195 # scripts and configure runs, see configure's option --config-cache.
24196 # It is not useful on other systems. If it contains results you don't
24197 # want to keep, you may remove or edit it.
24199 # config.status only pays attention to the cache file if you give it
24200 # the --recheck option to rerun configure.
24202 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24203 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24204 # following values.
24206 _ACEOF
24208 # The following way of writing the cache mishandles newlines in values,
24209 # but we know of no workaround that is simple, portable, and efficient.
24210 # So, we kill variables containing newlines.
24211 # Ultrix sh set writes to stderr and can't be redirected directly,
24212 # and sets the high bit in the cache file unless we assign to the vars.
24214 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24215 eval ac_val=\$$ac_var
24216 case $ac_val in #(
24217 *${as_nl}*)
24218 case $ac_var in #(
24219 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24220 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24221 esac
24222 case $ac_var in #(
24223 _ | IFS | as_nl) ;; #(
24224 *) $as_unset $ac_var ;;
24225 esac ;;
24226 esac
24227 done
24229 (set) 2>&1 |
24230 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24231 *${as_nl}ac_space=\ *)
24232 # `set' does not quote correctly, so add quotes (double-quote
24233 # substitution turns \\\\ into \\, and sed turns \\ into \).
24234 sed -n \
24235 "s/'/'\\\\''/g;
24236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24237 ;; #(
24239 # `set' quotes correctly as required by POSIX, so do not add quotes.
24240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24242 esac |
24243 sort
24245 sed '
24246 /^ac_cv_env_/b end
24247 t clear
24248 :clear
24249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24250 t end
24251 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24252 :end' >>confcache
24253 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24254 if test -w "$cache_file"; then
24255 test "x$cache_file" != "x/dev/null" &&
24256 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24257 echo "$as_me: updating cache $cache_file" >&6;}
24258 cat confcache >$cache_file
24259 else
24260 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24261 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24264 rm -f confcache
24266 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24267 # Let make expand exec_prefix.
24268 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24270 DEFS=-DHAVE_CONFIG_H
24272 ac_libobjs=
24273 ac_ltlibobjs=
24274 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24275 # 1. Remove the extension, and $U if already installed.
24276 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24277 ac_i=`echo "$ac_i" | sed "$ac_script"`
24278 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24279 # will be set to the directory where LIBOBJS objects are built.
24280 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24281 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24282 done
24283 LIBOBJS=$ac_libobjs
24285 LTLIBOBJS=$ac_ltlibobjs
24289 : ${CONFIG_STATUS=./config.status}
24290 ac_clean_files_save=$ac_clean_files
24291 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24292 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24293 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24294 cat >$CONFIG_STATUS <<_ACEOF
24295 #! $SHELL
24296 # Generated by $as_me.
24297 # Run this file to recreate the current configuration.
24298 # Compiler output produced by configure, useful for debugging
24299 # configure, is in config.log if it exists.
24301 debug=false
24302 ac_cs_recheck=false
24303 ac_cs_silent=false
24304 SHELL=\${CONFIG_SHELL-$SHELL}
24305 _ACEOF
24307 cat >>$CONFIG_STATUS <<\_ACEOF
24308 ## --------------------- ##
24309 ## M4sh Initialization. ##
24310 ## --------------------- ##
24312 # Be more Bourne compatible
24313 DUALCASE=1; export DUALCASE # for MKS sh
24314 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24315 emulate sh
24316 NULLCMD=:
24317 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24318 # is contrary to our usage. Disable this feature.
24319 alias -g '${1+"$@"}'='"$@"'
24320 setopt NO_GLOB_SUBST
24321 else
24322 case `(set -o) 2>/dev/null` in
24323 *posix*) set -o posix ;;
24324 esac
24331 # PATH needs CR
24332 # Avoid depending upon Character Ranges.
24333 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24334 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24335 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24336 as_cr_digits='0123456789'
24337 as_cr_alnum=$as_cr_Letters$as_cr_digits
24339 # The user is always right.
24340 if test "${PATH_SEPARATOR+set}" != set; then
24341 echo "#! /bin/sh" >conf$$.sh
24342 echo "exit 0" >>conf$$.sh
24343 chmod +x conf$$.sh
24344 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24345 PATH_SEPARATOR=';'
24346 else
24347 PATH_SEPARATOR=:
24349 rm -f conf$$.sh
24352 # Support unset when possible.
24353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24354 as_unset=unset
24355 else
24356 as_unset=false
24360 # IFS
24361 # We need space, tab and new line, in precisely that order. Quoting is
24362 # there to prevent editors from complaining about space-tab.
24363 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24364 # splitting by setting IFS to empty value.)
24365 as_nl='
24367 IFS=" "" $as_nl"
24369 # Find who we are. Look in the path if we contain no directory separator.
24370 case $0 in
24371 *[\\/]* ) as_myself=$0 ;;
24372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24373 for as_dir in $PATH
24375 IFS=$as_save_IFS
24376 test -z "$as_dir" && as_dir=.
24377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24378 done
24379 IFS=$as_save_IFS
24382 esac
24383 # We did not find ourselves, most probably we were run as `sh COMMAND'
24384 # in which case we are not to be found in the path.
24385 if test "x$as_myself" = x; then
24386 as_myself=$0
24388 if test ! -f "$as_myself"; then
24389 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24390 { (exit 1); exit 1; }
24393 # Work around bugs in pre-3.0 UWIN ksh.
24394 for as_var in ENV MAIL MAILPATH
24395 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24396 done
24397 PS1='$ '
24398 PS2='> '
24399 PS4='+ '
24401 # NLS nuisances.
24402 for as_var in \
24403 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24404 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24405 LC_TELEPHONE LC_TIME
24407 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24408 eval $as_var=C; export $as_var
24409 else
24410 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24412 done
24414 # Required to use basename.
24415 if expr a : '\(a\)' >/dev/null 2>&1 &&
24416 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24417 as_expr=expr
24418 else
24419 as_expr=false
24422 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24423 as_basename=basename
24424 else
24425 as_basename=false
24429 # Name of the executable.
24430 as_me=`$as_basename -- "$0" ||
24431 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24432 X"$0" : 'X\(//\)$' \| \
24433 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24434 echo X/"$0" |
24435 sed '/^.*\/\([^/][^/]*\)\/*$/{
24436 s//\1/
24439 /^X\/\(\/\/\)$/{
24440 s//\1/
24443 /^X\/\(\/\).*/{
24444 s//\1/
24447 s/.*/./; q'`
24449 # CDPATH.
24450 $as_unset CDPATH
24454 as_lineno_1=$LINENO
24455 as_lineno_2=$LINENO
24456 test "x$as_lineno_1" != "x$as_lineno_2" &&
24457 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24459 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24460 # uniformly replaced by the line number. The first 'sed' inserts a
24461 # line-number line after each line using $LINENO; the second 'sed'
24462 # does the real work. The second script uses 'N' to pair each
24463 # line-number line with the line containing $LINENO, and appends
24464 # trailing '-' during substitution so that $LINENO is not a special
24465 # case at line end.
24466 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24467 # scripts with optimization help from Paolo Bonzini. Blame Lee
24468 # E. McMahon (1931-1989) for sed's syntax. :-)
24469 sed -n '
24471 /[$]LINENO/=
24472 ' <$as_myself |
24473 sed '
24474 s/[$]LINENO.*/&-/
24475 t lineno
24477 :lineno
24479 :loop
24480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24481 t loop
24482 s/-\n.*//
24483 ' >$as_me.lineno &&
24484 chmod +x "$as_me.lineno" ||
24485 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24486 { (exit 1); exit 1; }; }
24488 # Don't try to exec as it changes $[0], causing all sort of problems
24489 # (the dirname of $[0] is not the place where we might find the
24490 # original and so on. Autoconf is especially sensitive to this).
24491 . "./$as_me.lineno"
24492 # Exit status is that of the last command.
24493 exit
24497 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24498 as_dirname=dirname
24499 else
24500 as_dirname=false
24503 ECHO_C= ECHO_N= ECHO_T=
24504 case `echo -n x` in
24505 -n*)
24506 case `echo 'x\c'` in
24507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24508 *) ECHO_C='\c';;
24509 esac;;
24511 ECHO_N='-n';;
24512 esac
24514 if expr a : '\(a\)' >/dev/null 2>&1 &&
24515 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24516 as_expr=expr
24517 else
24518 as_expr=false
24521 rm -f conf$$ conf$$.exe conf$$.file
24522 if test -d conf$$.dir; then
24523 rm -f conf$$.dir/conf$$.file
24524 else
24525 rm -f conf$$.dir
24526 mkdir conf$$.dir
24528 echo >conf$$.file
24529 if ln -s conf$$.file conf$$ 2>/dev/null; then
24530 as_ln_s='ln -s'
24531 # ... but there are two gotchas:
24532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24534 # In both cases, we have to default to `cp -p'.
24535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24536 as_ln_s='cp -p'
24537 elif ln conf$$.file conf$$ 2>/dev/null; then
24538 as_ln_s=ln
24539 else
24540 as_ln_s='cp -p'
24542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24543 rmdir conf$$.dir 2>/dev/null
24545 if mkdir -p . 2>/dev/null; then
24546 as_mkdir_p=:
24547 else
24548 test -d ./-p && rmdir ./-p
24549 as_mkdir_p=false
24552 if test -x / >/dev/null 2>&1; then
24553 as_test_x='test -x'
24554 else
24555 if ls -dL / >/dev/null 2>&1; then
24556 as_ls_L_option=L
24557 else
24558 as_ls_L_option=
24560 as_test_x='
24561 eval sh -c '\''
24562 if test -d "$1"; then
24563 test -d "$1/.";
24564 else
24565 case $1 in
24566 -*)set "./$1";;
24567 esac;
24568 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24569 ???[sx]*):;;*)false;;esac;fi
24570 '\'' sh
24573 as_executable_p=$as_test_x
24575 # Sed expression to map a string onto a valid CPP name.
24576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24578 # Sed expression to map a string onto a valid variable name.
24579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24582 exec 6>&1
24584 # Save the log message, to keep $[0] and so on meaningful, and to
24585 # report actual input values of CONFIG_FILES etc. instead of their
24586 # values after options handling.
24587 ac_log="
24588 This file was extended by emacs $as_me 23.0.60, which was
24589 generated by GNU Autoconf 2.61. Invocation command line was
24591 CONFIG_FILES = $CONFIG_FILES
24592 CONFIG_HEADERS = $CONFIG_HEADERS
24593 CONFIG_LINKS = $CONFIG_LINKS
24594 CONFIG_COMMANDS = $CONFIG_COMMANDS
24595 $ $0 $@
24597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24600 _ACEOF
24602 cat >>$CONFIG_STATUS <<_ACEOF
24603 # Files that config.status was made for.
24604 config_files="$ac_config_files"
24605 config_headers="$ac_config_headers"
24606 config_commands="$ac_config_commands"
24608 _ACEOF
24610 cat >>$CONFIG_STATUS <<\_ACEOF
24611 ac_cs_usage="\
24612 \`$as_me' instantiates files from templates according to the
24613 current configuration.
24615 Usage: $0 [OPTIONS] [FILE]...
24617 -h, --help print this help, then exit
24618 -V, --version print version number and configuration settings, then exit
24619 -q, --quiet do not print progress messages
24620 -d, --debug don't remove temporary files
24621 --recheck update $as_me by reconfiguring in the same conditions
24622 --file=FILE[:TEMPLATE]
24623 instantiate the configuration file FILE
24624 --header=FILE[:TEMPLATE]
24625 instantiate the configuration header FILE
24627 Configuration files:
24628 $config_files
24630 Configuration headers:
24631 $config_headers
24633 Configuration commands:
24634 $config_commands
24636 Report bugs to <bug-autoconf@gnu.org>."
24638 _ACEOF
24639 cat >>$CONFIG_STATUS <<_ACEOF
24640 ac_cs_version="\\
24641 emacs config.status 23.0.60
24642 configured by $0, generated by GNU Autoconf 2.61,
24643 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24645 Copyright (C) 2006 Free Software Foundation, Inc.
24646 This config.status script is free software; the Free Software Foundation
24647 gives unlimited permission to copy, distribute and modify it."
24649 ac_pwd='$ac_pwd'
24650 srcdir='$srcdir'
24651 INSTALL='$INSTALL'
24652 _ACEOF
24654 cat >>$CONFIG_STATUS <<\_ACEOF
24655 # If no file are specified by the user, then we need to provide default
24656 # value. By we need to know if files were specified by the user.
24657 ac_need_defaults=:
24658 while test $# != 0
24660 case $1 in
24661 --*=*)
24662 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24663 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24664 ac_shift=:
24667 ac_option=$1
24668 ac_optarg=$2
24669 ac_shift=shift
24671 esac
24673 case $ac_option in
24674 # Handling of the options.
24675 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24676 ac_cs_recheck=: ;;
24677 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24678 echo "$ac_cs_version"; exit ;;
24679 --debug | --debu | --deb | --de | --d | -d )
24680 debug=: ;;
24681 --file | --fil | --fi | --f )
24682 $ac_shift
24683 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24684 ac_need_defaults=false;;
24685 --header | --heade | --head | --hea )
24686 $ac_shift
24687 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24688 ac_need_defaults=false;;
24689 --he | --h)
24690 # Conflict between --help and --header
24691 { echo "$as_me: error: ambiguous option: $1
24692 Try \`$0 --help' for more information." >&2
24693 { (exit 1); exit 1; }; };;
24694 --help | --hel | -h )
24695 echo "$ac_cs_usage"; exit ;;
24696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24698 ac_cs_silent=: ;;
24700 # This is an error.
24701 -*) { echo "$as_me: error: unrecognized option: $1
24702 Try \`$0 --help' for more information." >&2
24703 { (exit 1); exit 1; }; } ;;
24705 *) ac_config_targets="$ac_config_targets $1"
24706 ac_need_defaults=false ;;
24708 esac
24709 shift
24710 done
24712 ac_configure_extra_args=
24714 if $ac_cs_silent; then
24715 exec 6>/dev/null
24716 ac_configure_extra_args="$ac_configure_extra_args --silent"
24719 _ACEOF
24720 cat >>$CONFIG_STATUS <<_ACEOF
24721 if \$ac_cs_recheck; then
24722 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24723 CONFIG_SHELL=$SHELL
24724 export CONFIG_SHELL
24725 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24728 _ACEOF
24729 cat >>$CONFIG_STATUS <<\_ACEOF
24730 exec 5>>config.log
24732 echo
24733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24734 ## Running $as_me. ##
24735 _ASBOX
24736 echo "$ac_log"
24737 } >&5
24739 _ACEOF
24740 cat >>$CONFIG_STATUS <<_ACEOF
24742 # INIT-COMMANDS
24744 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24746 _ACEOF
24748 cat >>$CONFIG_STATUS <<\_ACEOF
24750 # Handling of arguments.
24751 for ac_config_target in $ac_config_targets
24753 case $ac_config_target in
24754 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24755 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24756 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24757 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24758 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24759 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24760 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24761 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24762 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24763 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24764 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24765 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24766 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24770 { (exit 1); exit 1; }; };;
24771 esac
24772 done
24775 # If the user did not use the arguments to specify the items to instantiate,
24776 # then the envvar interface is used. Set only those that are not.
24777 # We use the long form for the default assignment because of an extremely
24778 # bizarre bug on SunOS 4.1.3.
24779 if $ac_need_defaults; then
24780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24785 # Have a temporary directory for convenience. Make it in the build tree
24786 # simply because there is no reason against having it here, and in addition,
24787 # creating and moving files from /tmp can sometimes cause problems.
24788 # Hook for its removal unless debugging.
24789 # Note that there is a small window in which the directory will not be cleaned:
24790 # after its creation but before its name has been assigned to `$tmp'.
24791 $debug ||
24793 tmp=
24794 trap 'exit_status=$?
24795 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24797 trap '{ (exit 1); exit 1; }' 1 2 13 15
24799 # Create a (secure) tmp directory for tmp files.
24802 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24803 test -n "$tmp" && test -d "$tmp"
24804 } ||
24806 tmp=./conf$$-$RANDOM
24807 (umask 077 && mkdir "$tmp")
24808 } ||
24810 echo "$me: cannot create a temporary directory in ." >&2
24811 { (exit 1); exit 1; }
24815 # Set up the sed scripts for CONFIG_FILES section.
24818 # No need to generate the scripts if there are no CONFIG_FILES.
24819 # This happens for instance when ./config.status config.h
24820 if test -n "$CONFIG_FILES"; then
24822 _ACEOF
24826 ac_delim='%!_!# '
24827 for ac_last_try in false false false false false :; do
24828 cat >conf$$subs.sed <<_ACEOF
24829 SHELL!$SHELL$ac_delim
24830 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24831 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24832 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24833 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24834 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24835 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24836 exec_prefix!$exec_prefix$ac_delim
24837 prefix!$prefix$ac_delim
24838 program_transform_name!$program_transform_name$ac_delim
24839 bindir!$bindir$ac_delim
24840 sbindir!$sbindir$ac_delim
24841 libexecdir!$libexecdir$ac_delim
24842 datarootdir!$datarootdir$ac_delim
24843 datadir!$datadir$ac_delim
24844 sysconfdir!$sysconfdir$ac_delim
24845 sharedstatedir!$sharedstatedir$ac_delim
24846 localstatedir!$localstatedir$ac_delim
24847 includedir!$includedir$ac_delim
24848 oldincludedir!$oldincludedir$ac_delim
24849 docdir!$docdir$ac_delim
24850 infodir!$infodir$ac_delim
24851 htmldir!$htmldir$ac_delim
24852 dvidir!$dvidir$ac_delim
24853 pdfdir!$pdfdir$ac_delim
24854 psdir!$psdir$ac_delim
24855 libdir!$libdir$ac_delim
24856 localedir!$localedir$ac_delim
24857 mandir!$mandir$ac_delim
24858 DEFS!$DEFS$ac_delim
24859 ECHO_C!$ECHO_C$ac_delim
24860 ECHO_N!$ECHO_N$ac_delim
24861 ECHO_T!$ECHO_T$ac_delim
24862 LIBS!$LIBS$ac_delim
24863 build_alias!$build_alias$ac_delim
24864 host_alias!$host_alias$ac_delim
24865 target_alias!$target_alias$ac_delim
24866 MAINT!$MAINT$ac_delim
24867 build!$build$ac_delim
24868 build_cpu!$build_cpu$ac_delim
24869 build_vendor!$build_vendor$ac_delim
24870 build_os!$build_os$ac_delim
24871 host!$host$ac_delim
24872 host_cpu!$host_cpu$ac_delim
24873 host_vendor!$host_vendor$ac_delim
24874 host_os!$host_os$ac_delim
24875 CC!$CC$ac_delim
24876 CFLAGS!$CFLAGS$ac_delim
24877 LDFLAGS!$LDFLAGS$ac_delim
24878 CPPFLAGS!$CPPFLAGS$ac_delim
24879 ac_ct_CC!$ac_ct_CC$ac_delim
24880 EXEEXT!$EXEEXT$ac_delim
24881 OBJEXT!$OBJEXT$ac_delim
24882 CPP!$CPP$ac_delim
24883 GREP!$GREP$ac_delim
24884 EGREP!$EGREP$ac_delim
24885 LN_S!$LN_S$ac_delim
24886 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24887 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24888 INSTALL_DATA!$INSTALL_DATA$ac_delim
24889 RANLIB!$RANLIB$ac_delim
24890 INSTALL_INFO!$INSTALL_INFO$ac_delim
24891 GZIP_PROG!$GZIP_PROG$ac_delim
24892 MAKEINFO!$MAKEINFO$ac_delim
24893 LIBSOUND!$LIBSOUND$ac_delim
24894 PKG_CONFIG!$PKG_CONFIG$ac_delim
24895 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24896 ALSA_LIBS!$ALSA_LIBS$ac_delim
24897 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24898 SET_MAKE!$SET_MAKE$ac_delim
24899 XMKMF!$XMKMF$ac_delim
24900 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24901 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24902 RSVG_LIBS!$RSVG_LIBS$ac_delim
24903 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24904 GTK_LIBS!$GTK_LIBS$ac_delim
24905 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24906 DBUS_LIBS!$DBUS_LIBS$ac_delim
24907 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24908 XFT_LIBS!$XFT_LIBS$ac_delim
24909 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24910 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24911 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24912 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24913 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24914 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24915 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24916 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24917 ALLOCA!$ALLOCA$ac_delim
24918 liblockfile!$liblockfile$ac_delim
24919 LIBOBJS!$LIBOBJS$ac_delim
24920 NEED_SETGID!$NEED_SETGID$ac_delim
24921 KMEM_GROUP!$KMEM_GROUP$ac_delim
24922 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24923 GETOPT_H!$GETOPT_H$ac_delim
24924 GETOPTOBJS!$GETOPTOBJS$ac_delim
24925 version!$version$ac_delim
24926 _ACEOF
24928 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24929 break
24930 elif $ac_last_try; then
24931 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24932 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24933 { (exit 1); exit 1; }; }
24934 else
24935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24937 done
24939 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24940 if test -n "$ac_eof"; then
24941 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24942 ac_eof=`expr $ac_eof + 1`
24945 cat >>$CONFIG_STATUS <<_ACEOF
24946 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24948 _ACEOF
24949 sed '
24950 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24951 s/^/s,@/; s/!/@,|#_!!_#|/
24954 s/'"$ac_delim"'$/,g/; t
24955 s/$/\\/; p
24956 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24957 ' >>$CONFIG_STATUS <conf$$subs.sed
24958 rm -f conf$$subs.sed
24959 cat >>$CONFIG_STATUS <<_ACEOF
24960 CEOF$ac_eof
24961 _ACEOF
24964 ac_delim='%!_!# '
24965 for ac_last_try in false false false false false :; do
24966 cat >conf$$subs.sed <<_ACEOF
24967 configuration!$configuration$ac_delim
24968 canonical!$canonical$ac_delim
24969 srcdir!$srcdir$ac_delim
24970 lispdir!$lispdir$ac_delim
24971 locallisppath!$locallisppath$ac_delim
24972 lisppath!$lisppath$ac_delim
24973 x_default_search_path!$x_default_search_path$ac_delim
24974 etcdir!$etcdir$ac_delim
24975 archlibdir!$archlibdir$ac_delim
24976 bitmapdir!$bitmapdir$ac_delim
24977 gamedir!$gamedir$ac_delim
24978 gameuser!$gameuser$ac_delim
24979 c_switch_system!$c_switch_system$ac_delim
24980 c_switch_machine!$c_switch_machine$ac_delim
24981 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24982 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24983 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24984 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24985 machfile!$machfile$ac_delim
24986 opsysfile!$opsysfile$ac_delim
24987 carbon_appdir!$carbon_appdir$ac_delim
24988 LTLIBOBJS!$LTLIBOBJS$ac_delim
24989 _ACEOF
24991 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24992 break
24993 elif $ac_last_try; then
24994 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24995 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24996 { (exit 1); exit 1; }; }
24997 else
24998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25000 done
25002 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25003 if test -n "$ac_eof"; then
25004 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25005 ac_eof=`expr $ac_eof + 1`
25008 cat >>$CONFIG_STATUS <<_ACEOF
25009 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25010 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25011 _ACEOF
25012 sed '
25013 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25014 s/^/s,@/; s/!/@,|#_!!_#|/
25017 s/'"$ac_delim"'$/,g/; t
25018 s/$/\\/; p
25019 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25020 ' >>$CONFIG_STATUS <conf$$subs.sed
25021 rm -f conf$$subs.sed
25022 cat >>$CONFIG_STATUS <<_ACEOF
25023 :end
25024 s/|#_!!_#|//g
25025 CEOF$ac_eof
25026 _ACEOF
25029 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25030 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25031 # trailing colons and then remove the whole line if VPATH becomes empty
25032 # (actually we leave an empty line to preserve line numbers).
25033 if test "x$srcdir" = x.; then
25034 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25035 s/:*\$(srcdir):*/:/
25036 s/:*\${srcdir}:*/:/
25037 s/:*@srcdir@:*/:/
25038 s/^\([^=]*=[ ]*\):*/\1/
25039 s/:*$//
25040 s/^[^=]*=[ ]*$//
25044 cat >>$CONFIG_STATUS <<\_ACEOF
25045 fi # test -n "$CONFIG_FILES"
25048 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25050 case $ac_tag in
25051 :[FHLC]) ac_mode=$ac_tag; continue;;
25052 esac
25053 case $ac_mode$ac_tag in
25054 :[FHL]*:*);;
25055 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25056 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25057 { (exit 1); exit 1; }; };;
25058 :[FH]-) ac_tag=-:-;;
25059 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25060 esac
25061 ac_save_IFS=$IFS
25062 IFS=:
25063 set x $ac_tag
25064 IFS=$ac_save_IFS
25065 shift
25066 ac_file=$1
25067 shift
25069 case $ac_mode in
25070 :L) ac_source=$1;;
25071 :[FH])
25072 ac_file_inputs=
25073 for ac_f
25075 case $ac_f in
25076 -) ac_f="$tmp/stdin";;
25077 *) # Look for the file first in the build tree, then in the source tree
25078 # (if the path is not absolute). The absolute path cannot be DOS-style,
25079 # because $ac_f cannot contain `:'.
25080 test -f "$ac_f" ||
25081 case $ac_f in
25082 [\\/$]*) false;;
25083 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25084 esac ||
25085 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25086 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25087 { (exit 1); exit 1; }; };;
25088 esac
25089 ac_file_inputs="$ac_file_inputs $ac_f"
25090 done
25092 # Let's still pretend it is `configure' which instantiates (i.e., don't
25093 # use $as_me), people would be surprised to read:
25094 # /* config.h. Generated by config.status. */
25095 configure_input="Generated from "`IFS=:
25096 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25097 if test x"$ac_file" != x-; then
25098 configure_input="$ac_file. $configure_input"
25099 { echo "$as_me:$LINENO: creating $ac_file" >&5
25100 echo "$as_me: creating $ac_file" >&6;}
25103 case $ac_tag in
25104 *:-:* | *:-) cat >"$tmp/stdin";;
25105 esac
25107 esac
25109 ac_dir=`$as_dirname -- "$ac_file" ||
25110 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25111 X"$ac_file" : 'X\(//\)[^/]' \| \
25112 X"$ac_file" : 'X\(//\)$' \| \
25113 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25114 echo X"$ac_file" |
25115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25116 s//\1/
25119 /^X\(\/\/\)[^/].*/{
25120 s//\1/
25123 /^X\(\/\/\)$/{
25124 s//\1/
25127 /^X\(\/\).*/{
25128 s//\1/
25131 s/.*/./; q'`
25132 { as_dir="$ac_dir"
25133 case $as_dir in #(
25134 -*) as_dir=./$as_dir;;
25135 esac
25136 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25137 as_dirs=
25138 while :; do
25139 case $as_dir in #(
25140 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25141 *) as_qdir=$as_dir;;
25142 esac
25143 as_dirs="'$as_qdir' $as_dirs"
25144 as_dir=`$as_dirname -- "$as_dir" ||
25145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25146 X"$as_dir" : 'X\(//\)[^/]' \| \
25147 X"$as_dir" : 'X\(//\)$' \| \
25148 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25149 echo X"$as_dir" |
25150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25151 s//\1/
25154 /^X\(\/\/\)[^/].*/{
25155 s//\1/
25158 /^X\(\/\/\)$/{
25159 s//\1/
25162 /^X\(\/\).*/{
25163 s//\1/
25166 s/.*/./; q'`
25167 test -d "$as_dir" && break
25168 done
25169 test -z "$as_dirs" || eval "mkdir $as_dirs"
25170 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25171 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25172 { (exit 1); exit 1; }; }; }
25173 ac_builddir=.
25175 case "$ac_dir" in
25176 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25178 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25179 # A ".." for each directory in $ac_dir_suffix.
25180 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25181 case $ac_top_builddir_sub in
25182 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25183 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25184 esac ;;
25185 esac
25186 ac_abs_top_builddir=$ac_pwd
25187 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25188 # for backward compatibility:
25189 ac_top_builddir=$ac_top_build_prefix
25191 case $srcdir in
25192 .) # We are building in place.
25193 ac_srcdir=.
25194 ac_top_srcdir=$ac_top_builddir_sub
25195 ac_abs_top_srcdir=$ac_pwd ;;
25196 [\\/]* | ?:[\\/]* ) # Absolute name.
25197 ac_srcdir=$srcdir$ac_dir_suffix;
25198 ac_top_srcdir=$srcdir
25199 ac_abs_top_srcdir=$srcdir ;;
25200 *) # Relative name.
25201 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25202 ac_top_srcdir=$ac_top_build_prefix$srcdir
25203 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25204 esac
25205 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25208 case $ac_mode in
25211 # CONFIG_FILE
25214 case $INSTALL in
25215 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25216 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25217 esac
25218 _ACEOF
25220 cat >>$CONFIG_STATUS <<\_ACEOF
25221 # If the template does not know about datarootdir, expand it.
25222 # FIXME: This hack should be removed a few years after 2.60.
25223 ac_datarootdir_hack=; ac_datarootdir_seen=
25225 case `sed -n '/datarootdir/ {
25229 /@datadir@/p
25230 /@docdir@/p
25231 /@infodir@/p
25232 /@localedir@/p
25233 /@mandir@/p
25234 ' $ac_file_inputs` in
25235 *datarootdir*) ac_datarootdir_seen=yes;;
25236 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25237 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25238 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25239 _ACEOF
25240 cat >>$CONFIG_STATUS <<_ACEOF
25241 ac_datarootdir_hack='
25242 s&@datadir@&$datadir&g
25243 s&@docdir@&$docdir&g
25244 s&@infodir@&$infodir&g
25245 s&@localedir@&$localedir&g
25246 s&@mandir@&$mandir&g
25247 s&\\\${datarootdir}&$datarootdir&g' ;;
25248 esac
25249 _ACEOF
25251 # Neutralize VPATH when `$srcdir' = `.'.
25252 # Shell code in configure.ac might set extrasub.
25253 # FIXME: do we really want to maintain this feature?
25254 cat >>$CONFIG_STATUS <<_ACEOF
25255 sed "$ac_vpsub
25256 $extrasub
25257 _ACEOF
25258 cat >>$CONFIG_STATUS <<\_ACEOF
25260 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25261 s&@configure_input@&$configure_input&;t t
25262 s&@top_builddir@&$ac_top_builddir_sub&;t t
25263 s&@srcdir@&$ac_srcdir&;t t
25264 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25265 s&@top_srcdir@&$ac_top_srcdir&;t t
25266 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25267 s&@builddir@&$ac_builddir&;t t
25268 s&@abs_builddir@&$ac_abs_builddir&;t t
25269 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25270 s&@INSTALL@&$ac_INSTALL&;t t
25271 $ac_datarootdir_hack
25272 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25274 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25275 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25276 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25277 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25278 which seems to be undefined. Please make sure it is defined." >&5
25279 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25280 which seems to be undefined. Please make sure it is defined." >&2;}
25282 rm -f "$tmp/stdin"
25283 case $ac_file in
25284 -) cat "$tmp/out"; rm -f "$tmp/out";;
25285 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25286 esac
25290 # CONFIG_HEADER
25292 _ACEOF
25294 # Transform confdefs.h into a sed script `conftest.defines', that
25295 # substitutes the proper values into config.h.in to produce config.h.
25296 rm -f conftest.defines conftest.tail
25297 # First, append a space to every undef/define line, to ease matching.
25298 echo 's/$/ /' >conftest.defines
25299 # Then, protect against being on the right side of a sed subst, or in
25300 # an unquoted here document, in config.status. If some macros were
25301 # called several times there might be several #defines for the same
25302 # symbol, which is useless. But do not sort them, since the last
25303 # AC_DEFINE must be honored.
25304 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25305 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25306 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25307 # PARAMS is the parameter list in the macro definition--in most cases, it's
25308 # just an empty string.
25309 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25310 ac_dB='\\)[ (].*,\\1define\\2'
25311 ac_dC=' '
25312 ac_dD=' ,'
25314 uniq confdefs.h |
25315 sed -n '
25316 t rset
25317 :rset
25318 s/^[ ]*#[ ]*define[ ][ ]*//
25319 t ok
25322 s/[\\&,]/\\&/g
25323 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25324 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25325 ' >>conftest.defines
25327 # Remove the space that was appended to ease matching.
25328 # Then replace #undef with comments. This is necessary, for
25329 # example, in the case of _POSIX_SOURCE, which is predefined and required
25330 # on some systems where configure will not decide to define it.
25331 # (The regexp can be short, since the line contains either #define or #undef.)
25332 echo 's/ $//
25333 s,^[ #]*u.*,/* & */,' >>conftest.defines
25335 # Break up conftest.defines:
25336 ac_max_sed_lines=50
25338 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25339 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25340 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25341 # et cetera.
25342 ac_in='$ac_file_inputs'
25343 ac_out='"$tmp/out1"'
25344 ac_nxt='"$tmp/out2"'
25346 while :
25348 # Write a here document:
25349 cat >>$CONFIG_STATUS <<_ACEOF
25350 # First, check the format of the line:
25351 cat >"\$tmp/defines.sed" <<\\CEOF
25352 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25353 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25355 :def
25356 _ACEOF
25357 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25358 echo 'CEOF
25359 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25360 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25361 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25362 grep . conftest.tail >/dev/null || break
25363 rm -f conftest.defines
25364 mv conftest.tail conftest.defines
25365 done
25366 rm -f conftest.defines conftest.tail
25368 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25369 cat >>$CONFIG_STATUS <<\_ACEOF
25370 if test x"$ac_file" != x-; then
25371 echo "/* $configure_input */" >"$tmp/config.h"
25372 cat "$ac_result" >>"$tmp/config.h"
25373 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25374 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25375 echo "$as_me: $ac_file is unchanged" >&6;}
25376 else
25377 rm -f $ac_file
25378 mv "$tmp/config.h" $ac_file
25380 else
25381 echo "/* $configure_input */"
25382 cat "$ac_result"
25384 rm -f "$tmp/out12"
25387 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25388 echo "$as_me: executing $ac_file commands" >&6;}
25390 esac
25393 case $ac_file$ac_mode in
25394 "default":C)
25396 ### Make the necessary directories, if they don't exist.
25397 for dir in etc lisp ; do
25398 test -d ${dir} || mkdir ${dir}
25399 done
25401 # Build src/Makefile from ${srcdir}/src/Makefile.c
25402 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25403 # This must be done after src/config.h is built, since we rely on that file.
25405 echo creating src/epaths.h
25406 ${MAKE-make} epaths-force
25408 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25409 # `..' to `. .' unless invoked with -traditional
25411 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25412 CPPFLAGS="$CPPFLAGS -traditional"
25415 echo creating lib-src/Makefile
25416 ( cd lib-src
25417 rm -f junk.c junk1.c junk2.c
25418 sed -e '/start of cpp stuff/q' \
25419 < Makefile.c > junk1.c
25420 sed -e '1,/start of cpp stuff/d'\
25421 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25422 < Makefile.c > junk.c
25423 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25424 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25425 cat junk1.c junk2.c > Makefile.new
25426 rm -f junk.c junk1.c junk2.c
25427 chmod 444 Makefile.new
25428 mv -f Makefile.new Makefile
25431 echo creating src/Makefile
25432 ( cd src
25433 rm -f junk.c junk1.c junk2.c
25434 sed -e '/start of cpp stuff/q' \
25435 < Makefile.c > junk1.c
25436 sed -e '1,/start of cpp stuff/d'\
25437 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25438 < Makefile.c > junk.c
25439 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25440 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25441 cat junk1.c junk2.c > Makefile.new
25442 rm -f junk.c junk1.c junk2.c
25443 chmod 444 Makefile.new
25444 mv -f Makefile.new Makefile
25447 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25448 echo creating src/.gdbinit
25449 echo source $srcdir/src/.gdbinit > src/.gdbinit
25452 # This is how we know whether to re-run configure in certain cases.
25453 touch src/config.stamp
25457 esac
25458 done # for ac_tag
25461 { (exit 0); exit 0; }
25462 _ACEOF
25463 chmod +x $CONFIG_STATUS
25464 ac_clean_files=$ac_clean_files_save
25467 # configure is writing to config.log, and then calls config.status.
25468 # config.status does its own redirection, appending to config.log.
25469 # Unfortunately, on DOS this fails, as config.log is still kept open
25470 # by configure, so config.status won't be able to write to it; its
25471 # output is simply discarded. So we exec the FD to /dev/null,
25472 # effectively closing config.log, so it can be properly (re)opened and
25473 # appended to by config.status. When coming back to configure, we
25474 # need to make the FD available again.
25475 if test "$no_create" != yes; then
25476 ac_cs_success=:
25477 ac_config_status_args=
25478 test "$silent" = yes &&
25479 ac_config_status_args="$ac_config_status_args --quiet"
25480 exec 5>/dev/null
25481 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25482 exec 5>>config.log
25483 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25484 # would make configure fail if this is the last instruction.
25485 $ac_cs_success || { (exit 1); exit 1; }