(Choosing Window, Deleting Windows)
[emacs.git] / configure
blobc78ee2cf5dc739ffab4677166501e6f4fa85a467
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 ns_appdir
737 ns_appbindir
738 ns_appresdir
739 ns_appsrc
740 GNUSTEP_MAKEFILES
741 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
743 GNU_OBJC_CFLAGS
744 LIB_SRC_EXTRA_INSTALLABLES
745 LTLIBOBJS'
746 ac_subst_files=''
747 ac_precious_vars='build_alias
748 host_alias
749 target_alias
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
756 XMKMF'
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
805 ac_prev=
806 ac_dashdash=
807 for ac_option
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
816 case $ac_option in
817 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *) ac_optarg=yes ;;
819 esac
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
825 ac_dashdash=yes ;;
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
844 --config-cache | -C)
845 cache_file=config.cache ;;
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
859 -disable-* | --disable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=no ;;
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
878 -enable-* | --enable-*)
879 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_$ac_feature=\$ac_optarg ;;
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1075 -with-* | --with-*)
1076 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=\$ac_optarg ;;
1084 -without-* | --without-*)
1085 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_$ac_package=no ;;
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1116 *=*)
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1133 esac
1134 done
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1142 # Be sure to have absolute directory names.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val=\$$ac_var
1149 case $ac_val in
1150 [\\/$]* | ?:[\\/]* ) continue;;
1151 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 esac
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1155 done
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1160 build=$build_alias
1161 host=$host_alias
1162 target=$target_alias
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1175 ac_tool_prefix=
1176 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1178 test "$silent" = yes && exec 6>/dev/null
1181 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di=`ls -di .` &&
1183 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1200 echo X"$0" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1209 /^X\(\/\/\)$/{
1210 s//\1/
1213 /^X\(\/\).*/{
1214 s//\1/
1217 s/.*/./; q'`
1218 srcdir=$ac_confdir
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 srcdir=..
1222 else
1223 ac_srcdir_defaulted=no
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1314 cat <<\_ACEOF
1316 Program names:
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1321 X features:
1322 --x-includes=DIR X include files are in DIR
1323 --x-libraries=DIR X library files are in DIR
1325 System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 _ACEOF
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1334 esac
1335 cat <<\_ACEOF
1337 Optional Features:
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --enable-cocoa-experimental-ctrl-g
1341 enable experimental improved ctrl-g recognition
1342 --disable-ns-self-contained
1343 disable self contained build under NeXTstep
1344 --enable-asserts compile code with asserts enabled
1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful (and
1347 sometimes confusing) to the casual installer
1348 --enable-locallisppath=PATH
1349 directories Emacs should search for lisp files
1350 specific to this site
1351 --disable-largefile omit support for large files
1353 Optional Packages:
1354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1356 --without-pop don't support POP mail retrieval with movemail
1357 --with-kerberos support Kerberos-authenticated POP
1358 --with-kerberos5 support Kerberos version 5 authenticated POP
1359 --with-hesiod support Hesiod to get the POP server host
1360 --without-sound don't compile with sound support
1361 --without-sync-input Process async input synchronously
1362 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1363 motif, gtk, no)
1364 --without-xpm don't compile with XPM image support
1365 --without-jpeg don't compile with JPEG image support
1366 --without-tiff don't compile with TIFF image support
1367 --without-gif don't compile with GIF image support
1368 --without-png don't compile with PNG image support
1369 --without-rsvg don't compile with SVG image support
1370 --without-freetype don't use Freetype for local font support
1371 --without-xft don't use XFT for anti aliased fonts
1372 --without-libotf don't use libotf for OpenType font support
1373 --without-m17n-flt don't use m17n-flt for text shaping
1374 --without-toolkit-scroll-bars
1375 don't use Motif or Xaw3d scroll bars
1376 --without-xaw3d don't use Xaw3d
1377 --without-xim don't use X11 XIM
1378 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1379 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1380 console
1381 --without-dbus don't compile with D-Bus support
1382 --without-makeinfo don't require makeinfo for building manuals
1384 --with-pkg-config-prog=PATH
1385 Path to pkg-config for finding GTK and librsvg
1386 --with-x use the X Window System
1388 Some influential environment variables:
1389 CC C compiler command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1396 CPP C preprocessor
1397 XMKMF Path to xmkmf, Makefile generator for X Window System
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1402 _ACEOF
1403 ac_status=$?
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" || continue
1410 ac_builddir=.
1412 case "$ac_dir" in
1413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1416 # A ".." for each directory in $ac_dir_suffix.
1417 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1418 case $ac_top_builddir_sub in
1419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421 esac ;;
1422 esac
1423 ac_abs_top_builddir=$ac_pwd
1424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425 # for backward compatibility:
1426 ac_top_builddir=$ac_top_build_prefix
1428 case $srcdir in
1429 .) # We are building in place.
1430 ac_srcdir=.
1431 ac_top_srcdir=$ac_top_builddir_sub
1432 ac_abs_top_srcdir=$ac_pwd ;;
1433 [\\/]* | ?:[\\/]* ) # Absolute name.
1434 ac_srcdir=$srcdir$ac_dir_suffix;
1435 ac_top_srcdir=$srcdir
1436 ac_abs_top_srcdir=$srcdir ;;
1437 *) # Relative name.
1438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439 ac_top_srcdir=$ac_top_build_prefix$srcdir
1440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441 esac
1442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444 cd "$ac_dir" || { ac_status=$?; continue; }
1445 # Check for guested configure.
1446 if test -f "$ac_srcdir/configure.gnu"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449 elif test -f "$ac_srcdir/configure"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure" --help=recursive
1452 else
1453 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454 fi || ac_status=$?
1455 cd "$ac_pwd" || { ac_status=$?; break; }
1456 done
1459 test -n "$ac_init_help" && exit $ac_status
1460 if $ac_init_version; then
1461 cat <<\_ACEOF
1462 emacs configure 23.0.60
1463 generated by GNU Autoconf 2.61
1465 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1466 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1469 _ACEOF
1470 exit
1472 cat >config.log <<_ACEOF
1473 This file contains any messages produced by compilers while
1474 running configure, to aid debugging if configure makes a mistake.
1476 It was created by emacs $as_me 23.0.60, which was
1477 generated by GNU Autoconf 2.61. Invocation command line was
1479 $ $0 $@
1481 _ACEOF
1482 exec 5>>config.log
1484 cat <<_ASUNAME
1485 ## --------- ##
1486 ## Platform. ##
1487 ## --------- ##
1489 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1490 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1491 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1492 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1493 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1495 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1496 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1498 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1499 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1500 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1501 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1502 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1503 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1504 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1506 _ASUNAME
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509 for as_dir in $PATH
1511 IFS=$as_save_IFS
1512 test -z "$as_dir" && as_dir=.
1513 echo "PATH: $as_dir"
1514 done
1515 IFS=$as_save_IFS
1517 } >&5
1519 cat >&5 <<_ACEOF
1522 ## ----------- ##
1523 ## Core tests. ##
1524 ## ----------- ##
1526 _ACEOF
1529 # Keep a trace of the command line.
1530 # Strip out --no-create and --no-recursion so they do not pile up.
1531 # Strip out --silent because we don't want to record it for future runs.
1532 # Also quote any args containing shell meta-characters.
1533 # Make two passes to allow for proper duplicate-argument suppression.
1534 ac_configure_args=
1535 ac_configure_args0=
1536 ac_configure_args1=
1537 ac_must_keep_next=false
1538 for ac_pass in 1 2
1540 for ac_arg
1542 case $ac_arg in
1543 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1545 | -silent | --silent | --silen | --sile | --sil)
1546 continue ;;
1547 *\'*)
1548 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1549 esac
1550 case $ac_pass in
1551 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1553 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1554 if test $ac_must_keep_next = true; then
1555 ac_must_keep_next=false # Got value, back to normal.
1556 else
1557 case $ac_arg in
1558 *=* | --config-cache | -C | -disable-* | --disable-* \
1559 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1560 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1561 | -with-* | --with-* | -without-* | --without-* | --x)
1562 case "$ac_configure_args0 " in
1563 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1564 esac
1566 -* ) ac_must_keep_next=true ;;
1567 esac
1569 ac_configure_args="$ac_configure_args '$ac_arg'"
1571 esac
1572 done
1573 done
1574 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1575 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1577 # When interrupted or exit'd, cleanup temporary files, and complete
1578 # config.log. We remove comments because anyway the quotes in there
1579 # would cause problems or look ugly.
1580 # WARNING: Use '\'' to represent an apostrophe within the trap.
1581 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1582 trap 'exit_status=$?
1583 # Save into config.log some information that might help in debugging.
1585 echo
1587 cat <<\_ASBOX
1588 ## ---------------- ##
1589 ## Cache variables. ##
1590 ## ---------------- ##
1591 _ASBOX
1592 echo
1593 # The following way of writing the cache mishandles newlines in values,
1595 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1596 eval ac_val=\$$ac_var
1597 case $ac_val in #(
1598 *${as_nl}*)
1599 case $ac_var in #(
1600 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1601 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1602 esac
1603 case $ac_var in #(
1604 _ | IFS | as_nl) ;; #(
1605 *) $as_unset $ac_var ;;
1606 esac ;;
1607 esac
1608 done
1609 (set) 2>&1 |
1610 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1611 *${as_nl}ac_space=\ *)
1612 sed -n \
1613 "s/'\''/'\''\\\\'\'''\''/g;
1614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1615 ;; #(
1617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1619 esac |
1620 sort
1622 echo
1624 cat <<\_ASBOX
1625 ## ----------------- ##
1626 ## Output variables. ##
1627 ## ----------------- ##
1628 _ASBOX
1629 echo
1630 for ac_var in $ac_subst_vars
1632 eval ac_val=\$$ac_var
1633 case $ac_val in
1634 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 esac
1636 echo "$ac_var='\''$ac_val'\''"
1637 done | sort
1638 echo
1640 if test -n "$ac_subst_files"; then
1641 cat <<\_ASBOX
1642 ## ------------------- ##
1643 ## File substitutions. ##
1644 ## ------------------- ##
1645 _ASBOX
1646 echo
1647 for ac_var in $ac_subst_files
1649 eval ac_val=\$$ac_var
1650 case $ac_val in
1651 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652 esac
1653 echo "$ac_var='\''$ac_val'\''"
1654 done | sort
1655 echo
1658 if test -s confdefs.h; then
1659 cat <<\_ASBOX
1660 ## ----------- ##
1661 ## confdefs.h. ##
1662 ## ----------- ##
1663 _ASBOX
1664 echo
1665 cat confdefs.h
1666 echo
1668 test "$ac_signal" != 0 &&
1669 echo "$as_me: caught signal $ac_signal"
1670 echo "$as_me: exit $exit_status"
1671 } >&5
1672 rm -f core *.core core.conftest.* &&
1673 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1674 exit $exit_status
1676 for ac_signal in 1 2 13 15; do
1677 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1678 done
1679 ac_signal=0
1681 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1682 rm -f -r conftest* confdefs.h
1684 # Predefined preprocessor variables.
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_NAME "$PACKAGE_NAME"
1688 _ACEOF
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1693 _ACEOF
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1698 _ACEOF
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_STRING "$PACKAGE_STRING"
1703 _ACEOF
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1708 _ACEOF
1711 # Let the site file select an alternate cache file if it wants to.
1712 # Prefer explicitly selected file to automatically selected ones.
1713 if test -n "$CONFIG_SITE"; then
1714 set x "$CONFIG_SITE"
1715 elif test "x$prefix" != xNONE; then
1716 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1717 else
1718 set x "$ac_default_prefix/share/config.site" \
1719 "$ac_default_prefix/etc/config.site"
1721 shift
1722 for ac_site_file
1724 if test -r "$ac_site_file"; then
1725 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1726 echo "$as_me: loading site script $ac_site_file" >&6;}
1727 sed 's/^/| /' "$ac_site_file" >&5
1728 . "$ac_site_file"
1730 done
1732 if test -r "$cache_file"; then
1733 # Some versions of bash will fail to source /dev/null (special
1734 # files actually), so we avoid doing that.
1735 if test -f "$cache_file"; then
1736 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1737 echo "$as_me: loading cache $cache_file" >&6;}
1738 case $cache_file in
1739 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1740 *) . "./$cache_file";;
1741 esac
1743 else
1744 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1745 echo "$as_me: creating cache $cache_file" >&6;}
1746 >$cache_file
1749 ac_header_list="$ac_header_list sys/time.h"
1750 ac_header_list="$ac_header_list unistd.h"
1751 ac_func_list="$ac_func_list alarm"
1752 # Check that the precious variables saved in the cache have kept the same
1753 # value.
1754 ac_cache_corrupted=false
1755 for ac_var in $ac_precious_vars; do
1756 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1757 eval ac_new_set=\$ac_env_${ac_var}_set
1758 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1759 eval ac_new_val=\$ac_env_${ac_var}_value
1760 case $ac_old_set,$ac_new_set in
1761 set,)
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1763 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1765 ,set)
1766 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1767 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1768 ac_cache_corrupted=: ;;
1769 ,);;
1771 if test "x$ac_old_val" != "x$ac_new_val"; then
1772 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1773 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1774 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1775 echo "$as_me: former value: $ac_old_val" >&2;}
1776 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1777 echo "$as_me: current value: $ac_new_val" >&2;}
1778 ac_cache_corrupted=:
1779 fi;;
1780 esac
1781 # Pass precious variables to config.status.
1782 if test "$ac_new_set" = set; then
1783 case $ac_new_val in
1784 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1785 *) ac_arg=$ac_var=$ac_new_val ;;
1786 esac
1787 case " $ac_configure_args " in
1788 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1789 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1790 esac
1792 done
1793 if $ac_cache_corrupted; then
1794 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1795 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1796 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1797 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1798 { (exit 1); exit 1; }; }
1825 ac_ext=c
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1836 test "$program_prefix" != NONE &&
1837 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1838 # Use a double $ so make ignores it.
1839 test "$program_suffix" != NONE &&
1840 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1841 # Double any \ or $. echo might interpret backslashes.
1842 # By default was `s,x,x', remove it if useless.
1843 cat <<\_ACEOF >conftest.sed
1844 s/[\\$]/&&/g;s/;s,x,x,$//
1845 _ACEOF
1846 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1847 rm -f conftest.sed
1850 lispdir='${datadir}/emacs/${version}/lisp'
1851 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1852 '${datadir}/emacs/site-lisp'
1853 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1854 etcdir='${datadir}/emacs/${version}/etc'
1855 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1856 docdir='${datadir}/emacs/${version}/etc'
1857 gamedir='${localstatedir}/games/emacs'
1859 gameuser=games
1864 # Check whether --with-pop was given.
1865 if test "${with_pop+set}" = set; then
1866 withval=$with_pop;
1867 else
1868 with_pop=yes
1871 if test "$with_pop" = yes; then
1872 cat >>confdefs.h <<\_ACEOF
1873 #define MAIL_USE_POP 1
1874 _ACEOF
1880 # Check whether --with-kerberos was given.
1881 if test "${with_kerberos+set}" = set; then
1882 withval=$with_kerberos;
1883 else
1884 with_kerberos=no
1887 if test "$with_kerberos" != no; then
1888 cat >>confdefs.h <<\_ACEOF
1889 #define KERBEROS 1
1890 _ACEOF
1896 # Check whether --with-kerberos5 was given.
1897 if test "${with_kerberos5+set}" = set; then
1898 withval=$with_kerberos5;
1899 else
1900 with_kerberos5=no
1903 if test "${with_kerberos5}" != no; then
1904 if test "${with_kerberos}" = no; then
1905 with_kerberos=yes
1906 cat >>confdefs.h <<\_ACEOF
1907 #define KERBEROS 1
1908 _ACEOF
1912 cat >>confdefs.h <<\_ACEOF
1913 #define KERBEROS5 1
1914 _ACEOF
1919 # Check whether --with-hesiod was given.
1920 if test "${with_hesiod+set}" = set; then
1921 withval=$with_hesiod;
1922 else
1923 with_hesiod=no
1926 if test "$with_hesiod" != no; then
1928 cat >>confdefs.h <<\_ACEOF
1929 #define HESIOD 1
1930 _ACEOF
1935 # Check whether --with-sound was given.
1936 if test "${with_sound+set}" = set; then
1937 withval=$with_sound;
1938 else
1939 with_sound=yes
1944 # Check whether --with-sync-input was given.
1945 if test "${with_sync_input+set}" = set; then
1946 withval=$with_sync_input;
1947 else
1948 with_sync_input=yes
1951 if test "$with_sync_input" = yes; then
1953 cat >>confdefs.h <<\_ACEOF
1954 #define SYNC_INPUT 1
1955 _ACEOF
1960 # Check whether --with-x-toolkit was given.
1961 if test "${with_x_toolkit+set}" = set; then
1962 withval=$with_x_toolkit; case "${withval}" in
1963 y | ye | yes ) val=gtk ;;
1964 n | no ) val=no ;;
1965 l | lu | luc | luci | lucid ) val=lucid ;;
1966 a | at | ath | athe | athen | athena ) val=athena ;;
1967 m | mo | mot | moti | motif ) val=motif ;;
1968 g | gt | gtk ) val=gtk ;;
1970 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1971 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1972 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1973 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1974 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1975 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1976 { (exit 1); exit 1; }; }
1978 esac
1979 with_x_toolkit=$val
1985 # Check whether --with-xpm was given.
1986 if test "${with_xpm+set}" = set; then
1987 withval=$with_xpm;
1988 else
1989 with_xpm=yes
1993 # Check whether --with-jpeg was given.
1994 if test "${with_jpeg+set}" = set; then
1995 withval=$with_jpeg;
1996 else
1997 with_jpeg=yes
2001 # Check whether --with-tiff was given.
2002 if test "${with_tiff+set}" = set; then
2003 withval=$with_tiff;
2004 else
2005 with_tiff=yes
2009 # Check whether --with-gif was given.
2010 if test "${with_gif+set}" = set; then
2011 withval=$with_gif;
2012 else
2013 with_gif=yes
2017 # Check whether --with-png was given.
2018 if test "${with_png+set}" = set; then
2019 withval=$with_png;
2020 else
2021 with_png=yes
2025 # Check whether --with-rsvg was given.
2026 if test "${with_rsvg+set}" = set; then
2027 withval=$with_rsvg;
2028 else
2029 with_rsvg=yes
2034 # Check whether --with-freetype was given.
2035 if test "${with_freetype+set}" = set; then
2036 withval=$with_freetype;
2037 else
2038 with_freetype=yes
2042 # Check whether --with-xft was given.
2043 if test "${with_xft+set}" = set; then
2044 withval=$with_xft;
2045 else
2046 with_xft=yes
2050 # Check whether --with-libotf was given.
2051 if test "${with_libotf+set}" = set; then
2052 withval=$with_libotf;
2053 else
2054 with_libotf=yes
2058 # Check whether --with-m17n-flt was given.
2059 if test "${with_m17n_flt+set}" = set; then
2060 withval=$with_m17n_flt;
2061 else
2062 with_m17n_flt=yes
2067 # Check whether --with-toolkit-scroll-bars was given.
2068 if test "${with_toolkit_scroll_bars+set}" = set; then
2069 withval=$with_toolkit_scroll_bars;
2070 else
2071 with_toolkit_scroll_bars=yes
2075 # Check whether --with-xaw3d was given.
2076 if test "${with_xaw3d+set}" = set; then
2077 withval=$with_xaw3d;
2078 else
2079 with_xaw3d=yes
2083 # Check whether --with-xim was given.
2084 if test "${with_xim+set}" = set; then
2085 withval=$with_xim;
2086 else
2087 with_xim=yes
2091 # Check whether --with-ns was given.
2092 if test "${with_ns+set}" = set; then
2093 withval=$with_ns;
2094 else
2095 with_ns=no
2100 # Check whether --with-gpm was given.
2101 if test "${with_gpm+set}" = set; then
2102 withval=$with_gpm;
2103 else
2104 with_gpm=yes
2108 # Check whether --with-dbus was given.
2109 if test "${with_dbus+set}" = set; then
2110 withval=$with_dbus;
2111 else
2112 with_dbus=yes
2116 ## For the times when you want to build Emacs but don't have
2117 ## a suitable makeinfo, and can live without the manuals.
2119 # Check whether --with-makeinfo was given.
2120 if test "${with_makeinfo+set}" = set; then
2121 withval=$with_makeinfo;
2122 else
2123 with_makeinfo=yes
2128 # Check whether --with-gtk was given.
2129 if test "${with_gtk+set}" = set; then
2130 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2131 specify a toolkit." >&5
2132 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2133 specify a toolkit." >&2;}
2134 { (exit 1); exit 1; }; }
2139 # Check whether --with-gcc was given.
2140 if test "${with_gcc+set}" = set; then
2141 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2142 variable to specify a compiler." >&5
2143 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2144 variable to specify a compiler." >&2;}
2145 { (exit 1); exit 1; }; }
2150 # Check whether --with-pkg-config-prog was given.
2151 if test "${with_pkg_config_prog+set}" = set; then
2152 withval=$with_pkg_config_prog;
2155 if test "X${with_pkg_config_prog}" != X; then
2156 if test "${with_pkg_config_prog}" != yes; then
2157 PKG_CONFIG="${with_pkg_config_prog}"
2161 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2162 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2163 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=$enableval
2164 else
2165 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2169 # Check whether --enable-ns-self-contained was given.
2170 if test "${enable_ns_self_contained+set}" = set; then
2171 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2172 else
2173 EN_NS_SELF_CONTAINED=yes
2177 # Check whether --enable-asserts was given.
2178 if test "${enable_asserts+set}" = set; then
2179 enableval=$enable_asserts; USE_XASSERTS=$enableval
2180 else
2181 USE_XASSERTS=no
2185 # Check whether --enable-maintainer-mode was given.
2186 if test "${enable_maintainer_mode+set}" = set; then
2187 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2188 else
2189 USE_MAINTAINER_MODE=no
2192 if test $USE_MAINTAINER_MODE = yes; then
2193 MAINT=
2194 else
2195 MAINT=#
2199 # Check whether --enable-locallisppath was given.
2200 if test "${enable_locallisppath+set}" = set; then
2201 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2202 locallisppath=
2203 elif test "${enableval}" != "yes"; then
2204 locallisppath=${enableval}
2209 #### Make srcdir absolute, if it isn't already. It's important to
2210 #### avoid running the path through pwd unnecessarily, since pwd can
2211 #### give you automounter prefixes, which can go away. We do all this
2212 #### so Emacs can find its files when run uninstalled.
2213 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2214 unset CDPATH
2215 case "${srcdir}" in
2216 /* ) ;;
2218 ## We may be able to use the $PWD environment variable to make this
2219 ## absolute. But sometimes PWD is inaccurate.
2220 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2221 ## but that tested only for a well-formed and valid PWD,
2222 ## it did not object when PWD was well-formed and valid but just wrong.
2223 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2224 then
2225 srcdir="$PWD"
2226 else
2227 srcdir="`(cd ${srcdir}; pwd)`"
2230 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2231 esac
2233 #### Check if the source directory already has a configured system in it.
2234 if test `pwd` != `(cd ${srcdir} && pwd)` \
2235 && test -f "${srcdir}/src/config.h" ; then
2236 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2237 as a build directory right now; it has been configured in its own
2238 right. To configure in another directory as well, you MUST
2239 use GNU make. If you do not have GNU make, then you must
2240 now do \`make distclean' in ${srcdir},
2241 and then run $0 again." >&5
2242 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2243 as a build directory right now; it has been configured in its own
2244 right. To configure in another directory as well, you MUST
2245 use GNU make. If you do not have GNU make, then you must
2246 now do \`make distclean' in ${srcdir},
2247 and then run $0 again." >&2;}
2250 #### Given the configuration name, set machfile and opsysfile to the
2251 #### names of the m/*.h and s/*.h files we should use.
2253 ### Canonicalize the configuration name.
2255 ac_aux_dir=
2256 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2257 if test -f "$ac_dir/install-sh"; then
2258 ac_aux_dir=$ac_dir
2259 ac_install_sh="$ac_aux_dir/install-sh -c"
2260 break
2261 elif test -f "$ac_dir/install.sh"; then
2262 ac_aux_dir=$ac_dir
2263 ac_install_sh="$ac_aux_dir/install.sh -c"
2264 break
2265 elif test -f "$ac_dir/shtool"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/shtool install -c"
2268 break
2270 done
2271 if test -z "$ac_aux_dir"; then
2272 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2273 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2274 { (exit 1); exit 1; }; }
2277 # These three variables are undocumented and unsupported,
2278 # and are intended to be withdrawn in a future Autoconf release.
2279 # They can cause serious problems if a builder's source tree is in a directory
2280 # whose full name contains unusual characters.
2281 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2282 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2283 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2286 # Make sure we can run config.sub.
2287 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2288 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2289 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2290 { (exit 1); exit 1; }; }
2292 { echo "$as_me:$LINENO: checking build system type" >&5
2293 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2294 if test "${ac_cv_build+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 ac_build_alias=$build_alias
2298 test "x$ac_build_alias" = x &&
2299 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2300 test "x$ac_build_alias" = x &&
2301 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2302 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2303 { (exit 1); exit 1; }; }
2304 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2305 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2306 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2307 { (exit 1); exit 1; }; }
2310 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2311 echo "${ECHO_T}$ac_cv_build" >&6; }
2312 case $ac_cv_build in
2313 *-*-*) ;;
2314 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2315 echo "$as_me: error: invalid value of canonical build" >&2;}
2316 { (exit 1); exit 1; }; };;
2317 esac
2318 build=$ac_cv_build
2319 ac_save_IFS=$IFS; IFS='-'
2320 set x $ac_cv_build
2321 shift
2322 build_cpu=$1
2323 build_vendor=$2
2324 shift; shift
2325 # Remember, the first character of IFS is used to create $*,
2326 # except with old shells:
2327 build_os=$*
2328 IFS=$ac_save_IFS
2329 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2332 { echo "$as_me:$LINENO: checking host system type" >&5
2333 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2334 if test "${ac_cv_host+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if test "x$host_alias" = x; then
2338 ac_cv_host=$ac_cv_build
2339 else
2340 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2341 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2342 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2343 { (exit 1); exit 1; }; }
2347 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2348 echo "${ECHO_T}$ac_cv_host" >&6; }
2349 case $ac_cv_host in
2350 *-*-*) ;;
2351 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2352 echo "$as_me: error: invalid value of canonical host" >&2;}
2353 { (exit 1); exit 1; }; };;
2354 esac
2355 host=$ac_cv_host
2356 ac_save_IFS=$IFS; IFS='-'
2357 set x $ac_cv_host
2358 shift
2359 host_cpu=$1
2360 host_vendor=$2
2361 shift; shift
2362 # Remember, the first character of IFS is used to create $*,
2363 # except with old shells:
2364 host_os=$*
2365 IFS=$ac_save_IFS
2366 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2369 canonical=$host
2370 configuration=${host_alias-${build_alias-$host}}
2374 ### If you add support for a new configuration, add code to this
2375 ### switch statement to recognize your configuration name and select
2376 ### the appropriate operating system and machine description files.
2378 ### You would hope that you could choose an m/*.h file pretty much
2379 ### based on the machine portion of the configuration name, and an s-
2380 ### file based on the operating system portion. However, it turns out
2381 ### that each m/*.h file is pretty manufacturer-specific - for
2382 ### example mips.h is MIPS
2383 ### So we basically have to have a special case for each
2384 ### configuration name.
2386 ### As far as handling version numbers on operating systems is
2387 ### concerned, make sure things will fail in a fixable way. If
2388 ### /etc/MACHINES doesn't say anything about version numbers, be
2389 ### prepared to handle anything reasonably. If version numbers
2390 ### matter, be sure /etc/MACHINES says something about it.
2392 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2393 ### "System V Release 4"; he writes, "The old convention encouraged
2394 ### confusion between `system' and `release' levels'."
2396 machine='' opsys='' unported=no
2397 case "${canonical}" in
2399 ## FreeBSD ports
2400 *-*-freebsd* )
2401 opsys=freebsd
2402 case "${canonical}" in
2403 alpha*-*-freebsd*) machine=alpha ;;
2404 arm*-*-freebsd*) machine=arm ;;
2405 ia64-*-freebsd*) machine=ia64 ;;
2406 sparc-*-freebsd*) machine=sparc ;;
2407 sparc64-*-freebsd*) machine=sparc ;;
2408 powerpc-*-freebsd*) machine=macppc ;;
2409 i[3456]86-*-freebsd*) machine=intel386 ;;
2410 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2411 esac
2414 ## FreeBSD kernel + glibc based userland
2415 *-*-kfreebsd*gnu* )
2416 opsys=gnu-kfreebsd
2417 case "${canonical}" in
2418 alpha*-*-kfreebsd*) machine=alpha ;;
2419 ia64-*-kfreebsd*) machine=ia64 ;;
2420 sparc-*-kfreebsd*) machine=sparc ;;
2421 sparc64-*-kfreebsd*) machine=sparc ;;
2422 powerpc-*-kfreebsd*) machine=macppc ;;
2423 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2424 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2425 esac
2428 ## NetBSD ports
2429 *-*-netbsd* )
2430 opsys=netbsd
2431 if test -f /usr/lib/crti.o; then
2433 cat >>confdefs.h <<\_ACEOF
2434 #define HAVE_CRTIN
2435 _ACEOF
2439 case "${canonical}" in
2440 alpha*-*-netbsd*) machine=alpha ;;
2441 i[3456]86-*-netbsd*) machine=intel386 ;;
2442 powerpc-*-netbsd*) machine=macppc ;;
2443 sparc*-*-netbsd*) machine=sparc ;;
2444 vax-*-netbsd*) machine=vax ;;
2445 arm-*-netbsd*) machine=arm ;;
2446 x86_64-*-netbsd*) machine=amdx86-64 ;;
2447 hppa-*-netbsd*) machine=hp800 ;;
2448 esac
2451 ## OpenBSD ports
2452 *-*-openbsd* )
2453 opsys=openbsd
2454 case "${canonical}" in
2455 alpha*-*-openbsd*) machine=alpha ;;
2456 arm-*-openbsd*) machine=arm ;;
2457 i386-*-openbsd*) machine=intel386 ;;
2458 powerpc-*-openbsd*) machine=macppc ;;
2459 sparc*-*-openbsd*) machine=sparc ;;
2460 vax-*-openbsd*) machine=vax ;;
2461 x86_64-*-openbsd*) machine=amdx86-64 ;;
2462 esac
2465 ## LynxOS ports
2466 *-*-lynxos* )
2467 opsys=lynxos
2468 case "${canonical}" in
2469 i[3456]86-*-lynxos*) machine=intel386 ;;
2470 powerpc-*-lynxos*) machine=powerpc ;;
2471 esac
2474 alpha*-*-linux-gnu* )
2475 machine=alpha opsys=gnu-linux
2478 arm*-*-linux-gnu* )
2479 machine=arm opsys=gnu-linux
2482 ## Apple Darwin / Mac OS X
2483 *-apple-darwin* )
2484 case "${canonical}" in
2485 i[3456]86-* ) machine=intel386 ;;
2486 powerpc-* ) machine=macppc ;;
2487 * ) unported=yes ;;
2488 esac
2489 opsys=darwin
2490 # Define CPP as follows to make autoconf work correctly.
2491 CPP="${CC-cc} -E -no-cpp-precomp"
2492 # Use fink packages if available.
2493 if test -d /sw/include && test -d /sw/lib; then
2494 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2495 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2496 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2500 ## HP 9000 series 700 and 800, running HP/UX
2501 hppa*-hp-hpux10.2* )
2502 machine=hp800 opsys=hpux10-20
2504 hppa*-hp-hpux1[1-9]* )
2505 machine=hp800 opsys=hpux11
2506 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2509 hppa*-*-linux-gnu* )
2510 machine=hp800 opsys=gnu-linux
2513 ## IBM machines
2514 s390-*-linux-gnu* )
2515 machine=ibms390 opsys=gnu-linux
2517 s390x-*-linux-gnu* )
2518 machine=ibms390x opsys=gnu-linux
2520 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2521 machine=ibmrs6000 opsys=aix4-2
2523 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2524 machine=ibmrs6000 opsys=aix4-2
2526 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2527 machine=ibmrs6000 opsys=aix4-2
2529 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2530 machine=ibmrs6000 opsys=aix4-2
2533 ## Macintosh PowerPC
2534 powerpc*-*-linux-gnu* )
2535 machine=macppc opsys=gnu-linux
2538 ## Silicon Graphics machines
2539 ## Iris 4D
2540 mips-sgi-irix6.5 )
2541 machine=iris4d opsys=irix6-5
2542 # Without defining _LANGUAGE_C, things get masked out in the headers
2543 # so that, for instance, grepping for `free' in stdlib.h fails and
2544 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2545 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2546 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2549 ## Suns
2550 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2551 machine=sparc opsys=gnu-linux
2554 *-sun-solaris* \
2555 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2556 | rs6000-*-solaris2*)
2557 case "${canonical}" in
2558 i[3456]86-*-* ) machine=intel386 ;;
2559 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2560 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2561 sparc* ) machine=sparc ;;
2562 * ) unported=yes ;;
2563 esac
2564 case "${canonical}" in
2565 *-sunos5.3* | *-solaris2.3* )
2566 opsys=sol2-3
2567 NON_GNU_CPP=/usr/ccs/lib/cpp
2569 *-sunos5.4* | *-solaris2.4* )
2570 opsys=sol2-4
2571 NON_GNU_CPP=/usr/ccs/lib/cpp
2572 RANLIB="ar -ts"
2574 *-sunos5.5* | *-solaris2.5* )
2575 opsys=sol2-5
2576 NON_GNU_CPP=/usr/ccs/lib/cpp
2577 RANLIB="ar -ts"
2579 *-sunos5.6* | *-solaris2.6* )
2580 opsys=sol2-6
2581 NON_GNU_CPP=/usr/ccs/lib/cpp
2582 RANLIB="ar -ts"
2584 *-sunos5* | *-solaris* )
2585 opsys=sol2-6
2586 emacs_check_sunpro_c=yes
2587 NON_GNU_CPP=/usr/ccs/lib/cpp
2589 esac
2590 ## Watch out for a compiler that we know will not work.
2591 case "${canonical}" in
2592 *-solaris* | *-sunos5* )
2593 if [ "x$CC" = x/usr/ucb/cc ]; then
2594 ## /usr/ucb/cc doesn't work;
2595 ## we should find some other compiler that does work.
2596 unset CC
2599 *) ;;
2600 esac
2603 ## Vaxen.
2604 vax-dec-* )
2605 machine=vax
2606 case "${canonical}" in
2607 *-vms* ) opsys=vms ;;
2608 * ) unported=yes
2609 esac
2612 ## IA-64
2613 ia64*-*-linux* )
2614 machine=ia64 opsys=gnu-linux
2617 ## Intel 386 machines where we don't care about the manufacturer
2618 i[3456]86-*-* )
2619 machine=intel386
2620 case "${canonical}" in
2621 *-cygwin ) opsys=cygwin ;;
2622 *-darwin* ) opsys=darwin
2623 CPP="${CC-cc} -E -no-cpp-precomp"
2625 *-linux-gnu* ) opsys=gnu-linux ;;
2626 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2627 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2628 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2629 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2630 esac
2633 ## m68k Linux-based GNU system
2634 m68k-*-linux-gnu* )
2635 machine=m68k opsys=gnu-linux
2638 ## Mips Linux-based GNU system
2639 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2640 machine=mips opsys=gnu-linux
2643 ## AMD x86-64 Linux-based GNU system
2644 x86_64-*-linux-gnu* )
2645 machine=amdx86-64 opsys=gnu-linux
2648 ## Tensilica Xtensa Linux-based GNU system
2649 xtensa*-*-linux-gnu* )
2650 machine=xtensa opsys=gnu-linux
2653 ## SuperH Linux-based GNU system
2654 sh[34]*-*-linux-gnu* )
2655 machine=sh3 opsys=gnu-linux
2659 unported=yes
2661 esac
2663 ### If the code above didn't choose an operating system, just choose
2664 ### an operating system based on the configuration name. You really
2665 ### only want to use this when you have no idea what the right
2666 ### operating system is; if you know what operating systems a machine
2667 ### runs, it's cleaner to make it explicit in the case statement
2668 ### above.
2669 if test x"${opsys}" = x; then
2670 case "${canonical}" in
2671 *-gnu* ) opsys=gnu ;;
2672 *-sysv4.2uw* ) opsys=unixware ;;
2673 *-sysv5uw* ) opsys=unixware ;;
2674 *-sysv5OpenUNIX* ) opsys=unixware ;;
2675 *-sysv4.1* | *-sysvr4.1* )
2676 NON_GNU_CPP=/usr/lib/cpp
2677 opsys=usg5-4 ;;
2678 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2679 if [ x$NON_GNU_CPP = x ]; then
2680 if [ -f /usr/ccs/lib/cpp ]; then
2681 NON_GNU_CPP=/usr/ccs/lib/cpp
2682 else
2683 NON_GNU_CPP=/lib/cpp
2686 opsys=usg5-4-2 ;;
2687 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2689 unported=yes
2691 esac
2696 if test $unported = yes; then
2697 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2698 Check \`etc/MACHINES' for recognized configuration names." >&5
2699 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2700 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2701 { (exit 1); exit 1; }; }
2704 machfile="m/${machine}.h"
2705 opsysfile="s/${opsys}.h"
2708 #### Choose a compiler.
2709 test -n "$CC" && cc_specified=yes
2711 # Save the value of CFLAGS that the user specified.
2712 SPECIFIED_CFLAGS="$CFLAGS"
2714 ac_ext=c
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749 { echo "$as_me:$LINENO: result: $CC" >&5
2750 echo "${ECHO_T}$CC" >&6; }
2751 else
2752 { echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6; }
2758 if test -z "$ac_cv_prog_CC"; then
2759 ac_ct_CC=$CC
2760 # Extract the first word of "gcc", so it can be a program name with args.
2761 set dummy gcc; ac_word=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_ac_ct_CC="gcc"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2781 done
2782 done
2783 IFS=$as_save_IFS
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 echo "${ECHO_T}$ac_ct_CC" >&6; }
2791 else
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2796 if test "x$ac_ct_CC" = x; then
2797 CC=""
2798 else
2799 case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2802 whose name does not start with the host triplet. If you think this
2803 configuration is useful to you, please write to autoconf@gnu.org." >&5
2804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet. If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2807 ac_tool_warned=yes ;;
2808 esac
2809 CC=$ac_ct_CC
2811 else
2812 CC="$ac_cv_prog_CC"
2815 if test -z "$CC"; then
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2818 set dummy ${ac_tool_prefix}cc; ac_word=$2
2819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2821 if test "${ac_cv_prog_CC+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_CC="${ac_tool_prefix}cc"
2835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2838 done
2839 done
2840 IFS=$as_save_IFS
2844 CC=$ac_cv_prog_CC
2845 if test -n "$CC"; then
2846 { echo "$as_me:$LINENO: result: $CC" >&5
2847 echo "${ECHO_T}$CC" >&6; }
2848 else
2849 { echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6; }
2856 if test -z "$CC"; then
2857 # Extract the first word of "cc", so it can be a program name with args.
2858 set dummy cc; ac_word=$2
2859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_CC+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867 ac_prog_rejected=no
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2876 ac_prog_rejected=yes
2877 continue
2879 ac_cv_prog_CC="cc"
2880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2885 IFS=$as_save_IFS
2887 if test $ac_prog_rejected = yes; then
2888 # We found a bogon in the path, so make sure we never use it.
2889 set dummy $ac_cv_prog_CC
2890 shift
2891 if test $# != 0; then
2892 # We chose a different compiler from the bogus one.
2893 # However, it has the same basename, so the bogon will be chosen
2894 # first if we set CC to just the basename; use the full file name.
2895 shift
2896 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903 { echo "$as_me:$LINENO: result: $CC" >&5
2904 echo "${ECHO_T}$CC" >&6; }
2905 else
2906 { echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6; }
2912 if test -z "$CC"; then
2913 if test -n "$ac_tool_prefix"; then
2914 for ac_prog in cl.exe
2916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2920 if test "${ac_cv_prog_CC+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2937 done
2938 done
2939 IFS=$as_save_IFS
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945 { echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6; }
2947 else
2948 { echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6; }
2953 test -n "$CC" && break
2954 done
2956 if test -z "$CC"; then
2957 ac_ct_CC=$CC
2958 for ac_prog in cl.exe
2960 # Extract the first word of "$ac_prog", so it can be a program name with args.
2961 set dummy $ac_prog; ac_word=$2
2962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_ac_ct_CC="$ac_prog"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2981 done
2982 done
2983 IFS=$as_save_IFS
2987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2990 echo "${ECHO_T}$ac_ct_CC" >&6; }
2991 else
2992 { echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6; }
2997 test -n "$ac_ct_CC" && break
2998 done
3000 if test "x$ac_ct_CC" = x; then
3001 CC=""
3002 else
3003 case $cross_compiling:$ac_tool_warned in
3004 yes:)
3005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3006 whose name does not start with the host triplet. If you think this
3007 configuration is useful to you, please write to autoconf@gnu.org." >&5
3008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3009 whose name does not start with the host triplet. If you think this
3010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3011 ac_tool_warned=yes ;;
3012 esac
3013 CC=$ac_ct_CC
3020 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3021 See \`config.log' for more details." >&5
3022 echo "$as_me: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&2;}
3024 { (exit 1); exit 1; }; }
3026 # Provide some information about the compiler.
3027 echo "$as_me:$LINENO: checking for C compiler version" >&5
3028 ac_compiler=`set X $ac_compile; echo $2`
3029 { (ac_try="$ac_compiler --version >&5"
3030 case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_compiler --version >&5") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }
3039 { (ac_try="$ac_compiler -v >&5"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compiler -v >&5") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }
3049 { (ac_try="$ac_compiler -V >&5"
3050 case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compiler -V >&5") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3068 main ()
3072 return 0;
3074 _ACEOF
3075 ac_clean_files_save=$ac_clean_files
3076 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3077 # Try to create an executable without -o first, disregard a.out.
3078 # It will help us diagnose broken compilers, and finding out an intuition
3079 # of exeext.
3080 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3081 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3082 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3084 # List of possible output files, starting from the most likely.
3085 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3086 # only as a last resort. b.out is created by i960 compilers.
3087 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3089 # The IRIX 6 linker writes into existing files which may not be
3090 # executable, retaining their permissions. Remove them first so a
3091 # subsequent execution test works.
3092 ac_rmfiles=
3093 for ac_file in $ac_files
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3098 esac
3099 done
3100 rm -f $ac_rmfiles
3102 if { (ac_try="$ac_link_default"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_link_default") 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; then
3112 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3113 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3114 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3115 # so that the user can short-circuit this test for compilers unknown to
3116 # Autoconf.
3117 for ac_file in $ac_files ''
3119 test -f "$ac_file" || continue
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3123 [ab].out )
3124 # We found the default executable, but exeext='' is most
3125 # certainly right.
3126 break;;
3127 *.* )
3128 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3129 then :; else
3130 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 # We set ac_cv_exeext here because the later test for it is not
3133 # safe: cross compilers may not add the suffix if given an `-o'
3134 # argument, so we may need to know it at that point already.
3135 # Even if this section looks crufty: it has the advantage of
3136 # actually working.
3137 break;;
3139 break;;
3140 esac
3141 done
3142 test "$ac_cv_exeext" = no && ac_cv_exeext=
3144 else
3145 ac_file=''
3148 { echo "$as_me:$LINENO: result: $ac_file" >&5
3149 echo "${ECHO_T}$ac_file" >&6; }
3150 if test -z "$ac_file"; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C compiler cannot create executables
3157 See \`config.log' for more details." >&2;}
3158 { (exit 77); exit 77; }; }
3161 ac_exeext=$ac_cv_exeext
3163 # Check that the compiler produces executables we can run. If not, either
3164 # the compiler is broken, or we cross compile.
3165 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3166 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3167 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3168 # If not cross compiling, check that we can run a simple program.
3169 if test "$cross_compiling" != yes; then
3170 if { ac_try='./$ac_file'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3180 cross_compiling=no
3181 else
3182 if test "$cross_compiling" = maybe; then
3183 cross_compiling=yes
3184 else
3185 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3186 If you meant to cross compile, use \`--host'.
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot run C compiled programs.
3189 If you meant to cross compile, use \`--host'.
3190 See \`config.log' for more details." >&2;}
3191 { (exit 1); exit 1; }; }
3195 { echo "$as_me:$LINENO: result: yes" >&5
3196 echo "${ECHO_T}yes" >&6; }
3198 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3199 ac_clean_files=$ac_clean_files_save
3200 # Check that the compiler produces executables we can run. If not, either
3201 # the compiler is broken, or we cross compile.
3202 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3203 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3204 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3205 echo "${ECHO_T}$cross_compiling" >&6; }
3207 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3208 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3209 if { (ac_try="$ac_link"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_link") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; then
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3222 # `rm'.
3223 for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3225 case $ac_file in
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228 break;;
3229 * ) break;;
3230 esac
3231 done
3232 else
3233 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }
3240 rm -f conftest$ac_cv_exeext
3241 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3242 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3244 rm -f conftest.$ac_ext
3245 EXEEXT=$ac_cv_exeext
3246 ac_exeext=$EXEEXT
3247 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3248 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3249 if test "${ac_cv_objext+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3260 main ()
3264 return 0;
3266 _ACEOF
3267 rm -f conftest.o conftest.obj
3268 if { (ac_try="$ac_compile"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compile") 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; then
3278 for ac_file in conftest.o conftest.obj conftest.*; do
3279 test -f "$ac_file" || continue;
3280 case $ac_file in
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3283 break;;
3284 esac
3285 done
3286 else
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3291 See \`config.log' for more details." >&5
3292 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3293 See \`config.log' for more details." >&2;}
3294 { (exit 1); exit 1; }; }
3297 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3299 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3300 echo "${ECHO_T}$ac_cv_objext" >&6; }
3301 OBJEXT=$ac_cv_objext
3302 ac_objext=$OBJEXT
3303 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3304 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3305 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h. */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3316 main ()
3318 #ifndef __GNUC__
3319 choke me
3320 #endif
3323 return 0;
3325 _ACEOF
3326 rm -f conftest.$ac_objext
3327 if { (ac_try="$ac_compile"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_compile") 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } && {
3340 test -z "$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 } && test -s conftest.$ac_objext; then
3343 ac_compiler_gnu=yes
3344 else
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 ac_compiler_gnu=no
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3355 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3357 GCC=`test $ac_compiler_gnu = yes && echo yes`
3358 ac_test_CFLAGS=${CFLAGS+set}
3359 ac_save_CFLAGS=$CFLAGS
3360 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3361 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3362 if test "${ac_cv_prog_cc_g+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 ac_save_c_werror_flag=$ac_c_werror_flag
3366 ac_c_werror_flag=yes
3367 ac_cv_prog_cc_g=no
3368 CFLAGS="-g"
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3377 main ()
3381 return 0;
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3386 case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compile") 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } && {
3398 test -z "$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 } && test -s conftest.$ac_objext; then
3401 ac_cv_prog_cc_g=yes
3402 else
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 CFLAGS=""
3407 cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h. */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3415 main ()
3419 return 0;
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3424 case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_compile") 2>conftest.er1
3430 ac_status=$?
3431 grep -v '^ *+' conftest.er1 >conftest.err
3432 rm -f conftest.er1
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } && {
3436 test -z "$ac_c_werror_flag" ||
3437 test ! -s conftest.err
3438 } && test -s conftest.$ac_objext; then
3440 else
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 ac_c_werror_flag=$ac_save_c_werror_flag
3445 CFLAGS="-g"
3446 cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3454 main ()
3458 return 0;
3460 _ACEOF
3461 rm -f conftest.$ac_objext
3462 if { (ac_try="$ac_compile"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_compile") 2>conftest.er1
3469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } && {
3475 test -z "$ac_c_werror_flag" ||
3476 test ! -s conftest.err
3477 } && test -s conftest.$ac_objext; then
3478 ac_cv_prog_cc_g=yes
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 ac_c_werror_flag=$ac_save_c_werror_flag
3495 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3496 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3497 if test "$ac_test_CFLAGS" = set; then
3498 CFLAGS=$ac_save_CFLAGS
3499 elif test $ac_cv_prog_cc_g = yes; then
3500 if test "$GCC" = yes; then
3501 CFLAGS="-g -O2"
3502 else
3503 CFLAGS="-g"
3505 else
3506 if test "$GCC" = yes; then
3507 CFLAGS="-O2"
3508 else
3509 CFLAGS=
3512 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3513 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3514 if test "${ac_cv_prog_cc_c89+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517 ac_cv_prog_cc_c89=no
3518 ac_save_CC=$CC
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525 #include <stdarg.h>
3526 #include <stdio.h>
3527 #include <sys/types.h>
3528 #include <sys/stat.h>
3529 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3530 struct buf { int x; };
3531 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3532 static char *e (p, i)
3533 char **p;
3534 int i;
3536 return p[i];
3538 static char *f (char * (*g) (char **, int), char **p, ...)
3540 char *s;
3541 va_list v;
3542 va_start (v,p);
3543 s = g (p, va_arg (v,int));
3544 va_end (v);
3545 return s;
3548 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3549 function prototypes and stuff, but not '\xHH' hex character constants.
3550 These don't provoke an error unfortunately, instead are silently treated
3551 as 'x'. The following induces an error, until -std is added to get
3552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3553 array size at least. It's necessary to write '\x00'==0 to get something
3554 that's true only with -std. */
3555 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3558 inside strings and character constants. */
3559 #define FOO(x) 'x'
3560 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562 int test (int i, double x);
3563 struct s1 {int (*f) (int a);};
3564 struct s2 {int (*f) (double a);};
3565 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3566 int argc;
3567 char **argv;
3569 main ()
3571 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3573 return 0;
3575 _ACEOF
3576 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3579 CC="$ac_save_CC $ac_arg"
3580 rm -f conftest.$ac_objext
3581 if { (ac_try="$ac_compile"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_compile") 2>conftest.er1
3588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } && {
3594 test -z "$ac_c_werror_flag" ||
3595 test ! -s conftest.err
3596 } && test -s conftest.$ac_objext; then
3597 ac_cv_prog_cc_c89=$ac_arg
3598 else
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3605 rm -f core conftest.err conftest.$ac_objext
3606 test "x$ac_cv_prog_cc_c89" != "xno" && break
3607 done
3608 rm -f conftest.$ac_ext
3609 CC=$ac_save_CC
3612 # AC_CACHE_VAL
3613 case "x$ac_cv_prog_cc_c89" in
3615 { echo "$as_me:$LINENO: result: none needed" >&5
3616 echo "${ECHO_T}none needed" >&6; } ;;
3617 xno)
3618 { echo "$as_me:$LINENO: result: unsupported" >&5
3619 echo "${ECHO_T}unsupported" >&6; } ;;
3621 CC="$CC $ac_cv_prog_cc_c89"
3622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3623 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3624 esac
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 # On Suns, sometimes $CPP names a directory.
3635 if test -n "$CPP" && test -d "$CPP"; then
3636 CPP=
3639 ## If not using gcc, and on Solaris, and no CPP specified, see if
3640 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3641 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3642 test x"$CPP" = x; then
3643 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3644 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3646 if test "${emacs_cv_sunpro_c+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h. */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3657 main ()
3659 #ifndef __SUNPRO_C
3660 fail;
3661 #endif
3664 return 0;
3666 _ACEOF
3667 rm -f conftest.$ac_objext conftest$ac_exeext
3668 if { (ac_try="$ac_link"
3669 case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_link") 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } && {
3681 test -z "$ac_c_werror_flag" ||
3682 test ! -s conftest.err
3683 } && test -s conftest$ac_exeext &&
3684 $as_test_x conftest$ac_exeext; then
3685 emacs_cv_sunpro_c=yes
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 emacs_cv_sunpro_c=no
3693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3694 conftest$ac_exeext conftest.$ac_ext
3697 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3698 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3700 if test x"$emacs_cv_sunpro_c" = xyes; then
3701 NON_GNU_CPP="$CC -E -Xs"
3705 #### Some systems specify a CPP to use unless we are using GCC.
3706 #### Now that we know whether we are using GCC, we can decide whether
3707 #### to use that one.
3708 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3709 then
3710 CPP="$NON_GNU_CPP"
3713 #### Some systems specify a CC to use unless we are using GCC.
3714 #### Now that we know whether we are using GCC, we can decide whether
3715 #### to use that one.
3716 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3717 test x$cc_specified != xyes
3718 then
3719 CC="$NON_GNU_CC"
3722 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3723 then
3724 CC="$CC $GCC_TEST_OPTIONS"
3727 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3728 then
3729 CC="$CC $NON_GCC_TEST_OPTIONS"
3733 cat >>confdefs.h <<\_ACEOF
3734 #define _GNU_SOURCE 1
3735 _ACEOF
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3744 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3745 # On Suns, sometimes $CPP names a directory.
3746 if test -n "$CPP" && test -d "$CPP"; then
3747 CPP=
3749 if test -z "$CPP"; then
3750 if test "${ac_cv_prog_CPP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753 # Double quotes because CPP needs to be expanded
3754 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3756 ac_preproc_ok=false
3757 for ac_c_preproc_warn_flag in '' yes
3759 # Use a header file that comes with gcc, so configuring glibc
3760 # with a fresh cross-compiler works.
3761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3762 # <limits.h> exists even on freestanding compilers.
3763 # On the NeXT, cc -E runs the code through the compiler's parser,
3764 # not just through cpp. "Syntax error" is here to catch this case.
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h. */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 #ifdef __STDC__
3772 # include <limits.h>
3773 #else
3774 # include <assert.h>
3775 #endif
3776 Syntax error
3777 _ACEOF
3778 if { (ac_try="$ac_cpp conftest.$ac_ext"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev/null && {
3791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3792 test ! -s conftest.err
3793 }; then
3795 else
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 # Broken: fails on valid input.
3800 continue
3803 rm -f conftest.err conftest.$ac_ext
3805 # OK, works on sane cases. Now check whether nonexistent headers
3806 # can be detected and how.
3807 cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h. */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3813 #include <ac_nonexistent.h>
3814 _ACEOF
3815 if { (ac_try="$ac_cpp conftest.$ac_ext"
3816 case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819 esac
3820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3822 ac_status=$?
3823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } >/dev/null && {
3828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3830 }; then
3831 # Broken: success on invalid input.
3832 continue
3833 else
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 # Passes both tests.
3838 ac_preproc_ok=:
3839 break
3842 rm -f conftest.err conftest.$ac_ext
3844 done
3845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3846 rm -f conftest.err conftest.$ac_ext
3847 if $ac_preproc_ok; then
3848 break
3851 done
3852 ac_cv_prog_CPP=$CPP
3855 CPP=$ac_cv_prog_CPP
3856 else
3857 ac_cv_prog_CPP=$CPP
3859 { echo "$as_me:$LINENO: result: $CPP" >&5
3860 echo "${ECHO_T}$CPP" >&6; }
3861 ac_preproc_ok=false
3862 for ac_c_preproc_warn_flag in '' yes
3864 # Use a header file that comes with gcc, so configuring glibc
3865 # with a fresh cross-compiler works.
3866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3867 # <limits.h> exists even on freestanding compilers.
3868 # On the NeXT, cc -E runs the code through the compiler's parser,
3869 # not just through cpp. "Syntax error" is here to catch this case.
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 #ifdef __STDC__
3877 # include <limits.h>
3878 #else
3879 # include <assert.h>
3880 #endif
3881 Syntax error
3882 _ACEOF
3883 if { (ac_try="$ac_cpp conftest.$ac_ext"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } >/dev/null && {
3896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3897 test ! -s conftest.err
3898 }; then
3900 else
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3904 # Broken: fails on valid input.
3905 continue
3908 rm -f conftest.err conftest.$ac_ext
3910 # OK, works on sane cases. Now check whether nonexistent headers
3911 # can be detected and how.
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <ac_nonexistent.h>
3919 _ACEOF
3920 if { (ac_try="$ac_cpp conftest.$ac_ext"
3921 case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924 esac
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } >/dev/null && {
3933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3935 }; then
3936 # Broken: success on invalid input.
3937 continue
3938 else
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 # Passes both tests.
3943 ac_preproc_ok=:
3944 break
3947 rm -f conftest.err conftest.$ac_ext
3949 done
3950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951 rm -f conftest.err conftest.$ac_ext
3952 if $ac_preproc_ok; then
3954 else
3955 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3956 See \`config.log' for more details." >&5
3957 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3958 See \`config.log' for more details." >&2;}
3959 { (exit 1); exit 1; }; }
3962 ac_ext=c
3963 ac_cpp='$CPP $CPPFLAGS'
3964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3970 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3971 if test "${ac_cv_path_GREP+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974 # Extract the first word of "grep ggrep" to use in msg output
3975 if test -z "$GREP"; then
3976 set dummy grep ggrep; ac_prog_name=$2
3977 if test "${ac_cv_path_GREP+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 ac_path_GREP_found=false
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in grep ggrep; do
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3990 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3991 # Check for GNU ac_path_GREP and select it if it is found.
3992 # Check for GNU $ac_path_GREP
3993 case `"$ac_path_GREP" --version 2>&1` in
3994 *GNU*)
3995 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3997 ac_count=0
3998 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3999 while :
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
4004 echo 'GREP' >> "conftest.nl"
4005 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007 ac_count=`expr $ac_count + 1`
4008 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4009 # Best one so far, save it but keep looking for a better one
4010 ac_cv_path_GREP="$ac_path_GREP"
4011 ac_path_GREP_max=$ac_count
4013 # 10*(2^10) chars as input seems more than enough
4014 test $ac_count -gt 10 && break
4015 done
4016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017 esac
4020 $ac_path_GREP_found && break 3
4021 done
4022 done
4024 done
4025 IFS=$as_save_IFS
4030 GREP="$ac_cv_path_GREP"
4031 if test -z "$GREP"; then
4032 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4034 { (exit 1); exit 1; }; }
4037 else
4038 ac_cv_path_GREP=$GREP
4043 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4044 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4045 GREP="$ac_cv_path_GREP"
4048 { echo "$as_me:$LINENO: checking for egrep" >&5
4049 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4050 if test "${ac_cv_path_EGREP+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4054 then ac_cv_path_EGREP="$GREP -E"
4055 else
4056 # Extract the first word of "egrep" to use in msg output
4057 if test -z "$EGREP"; then
4058 set dummy egrep; ac_prog_name=$2
4059 if test "${ac_cv_path_EGREP+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 ac_path_EGREP_found=false
4063 # Loop through the user's path and test for each of PROGNAME-LIST
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_prog in egrep; do
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4072 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4073 # Check for GNU ac_path_EGREP and select it if it is found.
4074 # Check for GNU $ac_path_EGREP
4075 case `"$ac_path_EGREP" --version 2>&1` in
4076 *GNU*)
4077 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4079 ac_count=0
4080 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4081 while :
4083 cat "conftest.in" "conftest.in" >"conftest.tmp"
4084 mv "conftest.tmp" "conftest.in"
4085 cp "conftest.in" "conftest.nl"
4086 echo 'EGREP' >> "conftest.nl"
4087 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4089 ac_count=`expr $ac_count + 1`
4090 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4091 # Best one so far, save it but keep looking for a better one
4092 ac_cv_path_EGREP="$ac_path_EGREP"
4093 ac_path_EGREP_max=$ac_count
4095 # 10*(2^10) chars as input seems more than enough
4096 test $ac_count -gt 10 && break
4097 done
4098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4099 esac
4102 $ac_path_EGREP_found && break 3
4103 done
4104 done
4106 done
4107 IFS=$as_save_IFS
4112 EGREP="$ac_cv_path_EGREP"
4113 if test -z "$EGREP"; then
4114 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4115 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4116 { (exit 1); exit 1; }; }
4119 else
4120 ac_cv_path_EGREP=$EGREP
4126 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4127 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4128 EGREP="$ac_cv_path_EGREP"
4132 { echo "$as_me:$LINENO: checking for AIX" >&5
4133 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #ifdef _AIX
4142 #endif
4144 _ACEOF
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 $EGREP "yes" >/dev/null 2>&1; then
4147 { echo "$as_me:$LINENO: result: yes" >&5
4148 echo "${ECHO_T}yes" >&6; }
4149 cat >>confdefs.h <<\_ACEOF
4150 #define _ALL_SOURCE 1
4151 _ACEOF
4153 else
4154 { echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6; }
4157 rm -f conftest*
4160 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4161 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4162 if test "${ac_cv_header_stdc+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #include <stdlib.h>
4172 #include <stdarg.h>
4173 #include <string.h>
4174 #include <float.h>
4177 main ()
4181 return 0;
4183 _ACEOF
4184 rm -f conftest.$ac_objext
4185 if { (ac_try="$ac_compile"
4186 case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_compile") 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } && {
4198 test -z "$ac_c_werror_flag" ||
4199 test ! -s conftest.err
4200 } && test -s conftest.$ac_objext; then
4201 ac_cv_header_stdc=yes
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_header_stdc=no
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 if test $ac_cv_header_stdc = yes; then
4212 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h. */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 #include <string.h>
4221 _ACEOF
4222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223 $EGREP "memchr" >/dev/null 2>&1; then
4225 else
4226 ac_cv_header_stdc=no
4228 rm -f conftest*
4232 if test $ac_cv_header_stdc = yes; then
4233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4234 cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h. */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 #include <stdlib.h>
4242 _ACEOF
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 $EGREP "free" >/dev/null 2>&1; then
4246 else
4247 ac_cv_header_stdc=no
4249 rm -f conftest*
4253 if test $ac_cv_header_stdc = yes; then
4254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4255 if test "$cross_compiling" = yes; then
4257 else
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h. */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 #include <ctype.h>
4265 #include <stdlib.h>
4266 #if ((' ' & 0x0FF) == 0x020)
4267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4269 #else
4270 # define ISLOWER(c) \
4271 (('a' <= (c) && (c) <= 'i') \
4272 || ('j' <= (c) && (c) <= 'r') \
4273 || ('s' <= (c) && (c) <= 'z'))
4274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4275 #endif
4277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4279 main ()
4281 int i;
4282 for (i = 0; i < 256; i++)
4283 if (XOR (islower (i), ISLOWER (i))
4284 || toupper (i) != TOUPPER (i))
4285 return 2;
4286 return 0;
4288 _ACEOF
4289 rm -f conftest$ac_exeext
4290 if { (ac_try="$ac_link"
4291 case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_link") 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4310 else
4311 echo "$as_me: program exited with status $ac_status" >&5
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ( exit $ac_status )
4316 ac_cv_header_stdc=no
4318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4324 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4325 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4326 if test $ac_cv_header_stdc = yes; then
4328 cat >>confdefs.h <<\_ACEOF
4329 #define STDC_HEADERS 1
4330 _ACEOF
4334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4345 inttypes.h stdint.h unistd.h
4347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 $ac_includes_default
4361 #include <$ac_header>
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (ac_try="$ac_compile"
4365 case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368 esac
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_compile") 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } && {
4377 test -z "$ac_c_werror_flag" ||
4378 test ! -s conftest.err
4379 } && test -s conftest.$ac_objext; then
4380 eval "$as_ac_Header=yes"
4381 else
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 eval "$as_ac_Header=no"
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 ac_res=`eval echo '${'$as_ac_Header'}'`
4391 { echo "$as_me:$LINENO: result: $ac_res" >&5
4392 echo "${ECHO_T}$ac_res" >&6; }
4393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4394 cat >>confdefs.h <<_ACEOF
4395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4396 _ACEOF
4400 done
4403 if test "${ac_cv_header_minix_config_h+set}" = set; then
4404 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4405 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4406 if test "${ac_cv_header_minix_config_h+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4410 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4411 else
4412 # Is the header compilable?
4413 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4414 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4415 cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h. */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4421 $ac_includes_default
4422 #include <minix/config.h>
4423 _ACEOF
4424 rm -f conftest.$ac_objext
4425 if { (ac_try="$ac_compile"
4426 case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4429 esac
4430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431 (eval "$ac_compile") 2>conftest.er1
4432 ac_status=$?
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } && {
4438 test -z "$ac_c_werror_flag" ||
4439 test ! -s conftest.err
4440 } && test -s conftest.$ac_objext; then
4441 ac_header_compiler=yes
4442 else
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 ac_header_compiler=no
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4451 echo "${ECHO_T}$ac_header_compiler" >&6; }
4453 # Is the header present?
4454 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4455 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <minix/config.h>
4463 _ACEOF
4464 if { (ac_try="$ac_cpp conftest.$ac_ext"
4465 case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468 esac
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } >/dev/null && {
4477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4478 test ! -s conftest.err
4479 }; then
4480 ac_header_preproc=yes
4481 else
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 ac_header_preproc=no
4488 rm -f conftest.err conftest.$ac_ext
4489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4490 echo "${ECHO_T}$ac_header_preproc" >&6; }
4492 # So? What about this header?
4493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4494 yes:no: )
4495 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4496 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4498 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4499 ac_header_preproc=yes
4501 no:yes:* )
4502 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4503 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4505 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4507 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4509 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4511 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4513 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4516 esac
4517 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4518 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4519 if test "${ac_cv_header_minix_config_h+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 ac_cv_header_minix_config_h=$ac_header_preproc
4524 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4525 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4528 if test $ac_cv_header_minix_config_h = yes; then
4529 MINIX=yes
4530 else
4531 MINIX=
4535 if test "$MINIX" = yes; then
4537 cat >>confdefs.h <<\_ACEOF
4538 #define _POSIX_SOURCE 1
4539 _ACEOF
4542 cat >>confdefs.h <<\_ACEOF
4543 #define _POSIX_1_SOURCE 2
4544 _ACEOF
4547 cat >>confdefs.h <<\_ACEOF
4548 #define _MINIX 1
4549 _ACEOF
4563 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4564 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4565 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h. */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4575 # define __EXTENSIONS__ 1
4576 $ac_includes_default
4578 main ()
4582 return 0;
4584 _ACEOF
4585 rm -f conftest.$ac_objext
4586 if { (ac_try="$ac_compile"
4587 case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590 esac
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_compile") 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } && {
4599 test -z "$ac_c_werror_flag" ||
4600 test ! -s conftest.err
4601 } && test -s conftest.$ac_objext; then
4602 ac_cv_safe_to_define___extensions__=yes
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_cv_safe_to_define___extensions__=no
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4613 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4614 test $ac_cv_safe_to_define___extensions__ = yes &&
4615 cat >>confdefs.h <<\_ACEOF
4616 #define __EXTENSIONS__ 1
4617 _ACEOF
4619 cat >>confdefs.h <<\_ACEOF
4620 #define _POSIX_PTHREAD_SEMANTICS 1
4621 _ACEOF
4623 cat >>confdefs.h <<\_ACEOF
4624 #define _TANDEM_SOURCE 1
4625 _ACEOF
4629 ### Use -Wno-pointer-sign if the compiler supports it
4630 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4631 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4632 SAVE_CFLAGS="$CFLAGS"
4633 CFLAGS="$CFLAGS -Wno-pointer-sign"
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4642 main ()
4646 return 0;
4648 _ACEOF
4649 rm -f conftest.$ac_objext
4650 if { (ac_try="$ac_compile"
4651 case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654 esac
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_compile") 2>conftest.er1
4657 ac_status=$?
4658 grep -v '^ *+' conftest.er1 >conftest.err
4659 rm -f conftest.er1
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } && {
4663 test -z "$ac_c_werror_flag" ||
4664 test ! -s conftest.err
4665 } && test -s conftest.$ac_objext; then
4666 has_option=yes
4667 else
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4671 has_option=no
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 if test $has_option = yes; then
4676 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4678 { echo "$as_me:$LINENO: result: $has_option" >&5
4679 echo "${ECHO_T}$has_option" >&6; }
4680 CFLAGS="$SAVE_CFLAGS"
4681 unset has_option
4682 unset SAVE_CFLAGS
4684 #### Some other nice autoconf tests.
4686 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4687 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4688 LN_S=$as_ln_s
4689 if test "$LN_S" = "ln -s"; then
4690 { echo "$as_me:$LINENO: result: yes" >&5
4691 echo "${ECHO_T}yes" >&6; }
4692 else
4693 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4694 echo "${ECHO_T}no, using $LN_S" >&6; }
4697 ac_ext=c
4698 ac_cpp='$CPP $CPPFLAGS'
4699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4703 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4704 # On Suns, sometimes $CPP names a directory.
4705 if test -n "$CPP" && test -d "$CPP"; then
4706 CPP=
4708 if test -z "$CPP"; then
4709 if test "${ac_cv_prog_CPP+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712 # Double quotes because CPP needs to be expanded
4713 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4715 ac_preproc_ok=false
4716 for ac_c_preproc_warn_flag in '' yes
4718 # Use a header file that comes with gcc, so configuring glibc
4719 # with a fresh cross-compiler works.
4720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4721 # <limits.h> exists even on freestanding compilers.
4722 # On the NeXT, cc -E runs the code through the compiler's parser,
4723 # not just through cpp. "Syntax error" is here to catch this case.
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h. */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 #ifdef __STDC__
4731 # include <limits.h>
4732 #else
4733 # include <assert.h>
4734 #endif
4735 Syntax error
4736 _ACEOF
4737 if { (ac_try="$ac_cpp conftest.$ac_ext"
4738 case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } >/dev/null && {
4750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 }; then
4754 else
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4758 # Broken: fails on valid input.
4759 continue
4762 rm -f conftest.err conftest.$ac_ext
4764 # OK, works on sane cases. Now check whether nonexistent headers
4765 # can be detected and how.
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 #include <ac_nonexistent.h>
4773 _ACEOF
4774 if { (ac_try="$ac_cpp conftest.$ac_ext"
4775 case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778 esac
4779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4781 ac_status=$?
4782 grep -v '^ *+' conftest.er1 >conftest.err
4783 rm -f conftest.er1
4784 cat conftest.err >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } >/dev/null && {
4787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4788 test ! -s conftest.err
4789 }; then
4790 # Broken: success on invalid input.
4791 continue
4792 else
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 # Passes both tests.
4797 ac_preproc_ok=:
4798 break
4801 rm -f conftest.err conftest.$ac_ext
4803 done
4804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4805 rm -f conftest.err conftest.$ac_ext
4806 if $ac_preproc_ok; then
4807 break
4810 done
4811 ac_cv_prog_CPP=$CPP
4814 CPP=$ac_cv_prog_CPP
4815 else
4816 ac_cv_prog_CPP=$CPP
4818 { echo "$as_me:$LINENO: result: $CPP" >&5
4819 echo "${ECHO_T}$CPP" >&6; }
4820 ac_preproc_ok=false
4821 for ac_c_preproc_warn_flag in '' yes
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h. */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 #ifdef __STDC__
4836 # include <limits.h>
4837 #else
4838 # include <assert.h>
4839 #endif
4840 Syntax error
4841 _ACEOF
4842 if { (ac_try="$ac_cpp conftest.$ac_ext"
4843 case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846 esac
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null && {
4855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 }; then
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 # Broken: fails on valid input.
4864 continue
4867 rm -f conftest.err conftest.$ac_ext
4869 # OK, works on sane cases. Now check whether nonexistent headers
4870 # can be detected and how.
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #include <ac_nonexistent.h>
4878 _ACEOF
4879 if { (ac_try="$ac_cpp conftest.$ac_ext"
4880 case "(($ac_try" in
4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4883 esac
4884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4886 ac_status=$?
4887 grep -v '^ *+' conftest.er1 >conftest.err
4888 rm -f conftest.er1
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } >/dev/null && {
4892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4893 test ! -s conftest.err
4894 }; then
4895 # Broken: success on invalid input.
4896 continue
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 # Passes both tests.
4902 ac_preproc_ok=:
4903 break
4906 rm -f conftest.err conftest.$ac_ext
4908 done
4909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4910 rm -f conftest.err conftest.$ac_ext
4911 if $ac_preproc_ok; then
4913 else
4914 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4915 See \`config.log' for more details." >&5
4916 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4917 See \`config.log' for more details." >&2;}
4918 { (exit 1); exit 1; }; }
4921 ac_ext=c
4922 ac_cpp='$CPP $CPPFLAGS'
4923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927 # Find a good install program. We prefer a C program (faster),
4928 # so one script is as good as another. But avoid the broken or
4929 # incompatible versions:
4930 # SysV /etc/install, /usr/sbin/install
4931 # SunOS /usr/etc/install
4932 # IRIX /sbin/install
4933 # AIX /bin/install
4934 # AmigaOS /C/install, which installs bootblocks on floppy discs
4935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4938 # OS/2's system install, which has a completely different semantic
4939 # ./install, which can be erroneously created by make from ./install.sh.
4940 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4941 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4942 if test -z "$INSTALL"; then
4943 if test "${ac_cv_path_install+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 # Account for people who put trailing slashes in PATH elements.
4952 case $as_dir/ in
4953 ./ | .// | /cC/* | \
4954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4955 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4956 /usr/ucb/* ) ;;
4958 # OSF1 and SCO ODT 3.0 have their own names for install.
4959 # Don't use installbsd from OSF since it installs stuff as root
4960 # by default.
4961 for ac_prog in ginstall scoinst install; do
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4964 if test $ac_prog = install &&
4965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4966 # AIX install. It has an incompatible calling convention.
4968 elif test $ac_prog = install &&
4969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4970 # program-specific install script used by HP pwplus--don't use.
4972 else
4973 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4974 break 3
4977 done
4978 done
4980 esac
4981 done
4982 IFS=$as_save_IFS
4986 if test "${ac_cv_path_install+set}" = set; then
4987 INSTALL=$ac_cv_path_install
4988 else
4989 # As a last resort, use the slow shell script. Don't cache a
4990 # value for INSTALL within a source directory, because that will
4991 # break other packages using the cache if that directory is
4992 # removed, or if the value is a relative name.
4993 INSTALL=$ac_install_sh
4996 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4997 echo "${ECHO_T}$INSTALL" >&6; }
4999 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5000 # It thinks the first close brace ends the variable substitution.
5001 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5003 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5005 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5007 if test "x$RANLIB" = x; then
5008 if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5010 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_prog_RANLIB+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 if test -n "$RANLIB"; then
5017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5030 done
5031 done
5032 IFS=$as_save_IFS
5036 RANLIB=$ac_cv_prog_RANLIB
5037 if test -n "$RANLIB"; then
5038 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5039 echo "${ECHO_T}$RANLIB" >&6; }
5040 else
5041 { echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6; }
5047 if test -z "$ac_cv_prog_RANLIB"; then
5048 ac_ct_RANLIB=$RANLIB
5049 # Extract the first word of "ranlib", so it can be a program name with args.
5050 set dummy ranlib; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 if test -n "$ac_ct_RANLIB"; then
5057 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_prog_ac_ct_RANLIB="ranlib"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5070 done
5071 done
5072 IFS=$as_save_IFS
5076 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5077 if test -n "$ac_ct_RANLIB"; then
5078 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5079 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5080 else
5081 { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5085 if test "x$ac_ct_RANLIB" = x; then
5086 RANLIB=":"
5087 else
5088 case $cross_compiling:$ac_tool_warned in
5089 yes:)
5090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5091 whose name does not start with the host triplet. If you think this
5092 configuration is useful to you, please write to autoconf@gnu.org." >&5
5093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5094 whose name does not start with the host triplet. If you think this
5095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5096 ac_tool_warned=yes ;;
5097 esac
5098 RANLIB=$ac_ct_RANLIB
5100 else
5101 RANLIB="$ac_cv_prog_RANLIB"
5105 # Extract the first word of "install-info", so it can be a program name with args.
5106 set dummy install-info; ac_word=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 case $INSTALL_INFO in
5113 [\\/]* | ?:[\\/]*)
5114 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5128 done
5129 done
5130 IFS=$as_save_IFS
5133 esac
5135 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5136 if test -n "$INSTALL_INFO"; then
5137 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5138 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5139 else
5140 { echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6; }
5145 # Extract the first word of "install-info", so it can be a program name with args.
5146 set dummy install-info; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152 case $INSTALL_INFO in
5153 [\\/]* | ?:[\\/]*)
5154 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in /usr/sbin
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5168 done
5169 done
5170 IFS=$as_save_IFS
5173 esac
5175 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5176 if test -n "$INSTALL_INFO"; then
5177 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5178 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5179 else
5180 { echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6; }
5185 # Extract the first word of "install-info", so it can be a program name with args.
5186 set dummy install-info; ac_word=$2
5187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5189 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192 case $INSTALL_INFO in
5193 [\\/]* | ?:[\\/]*)
5194 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in /sbin
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5208 done
5209 done
5210 IFS=$as_save_IFS
5212 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5214 esac
5216 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5217 if test -n "$INSTALL_INFO"; then
5218 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5219 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5220 else
5221 { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5226 # Extract the first word of "gzip", so it can be a program name with args.
5227 set dummy gzip; ac_word=$2
5228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5230 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233 case $GZIP_PROG in
5234 [\\/]* | ?:[\\/]*)
5235 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5249 done
5250 done
5251 IFS=$as_save_IFS
5254 esac
5256 GZIP_PROG=$ac_cv_path_GZIP_PROG
5257 if test -n "$GZIP_PROG"; then
5258 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5259 echo "${ECHO_T}$GZIP_PROG" >&6; }
5260 else
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5268 ## Need makeinfo >= 4.6 (?) to build the manuals.
5269 # Extract the first word of "makeinfo", so it can be a program name with args.
5270 set dummy makeinfo; ac_word=$2
5271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5273 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276 case $MAKEINFO in
5277 [\\/]* | ?:[\\/]*)
5278 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5292 done
5293 done
5294 IFS=$as_save_IFS
5296 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5298 esac
5300 MAKEINFO=$ac_cv_path_MAKEINFO
5301 if test -n "$MAKEINFO"; then
5302 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5303 echo "${ECHO_T}$MAKEINFO" >&6; }
5304 else
5305 { echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6; }
5310 if test "$MAKEINFO" != "no" && \
5311 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
5312 MAKEINFO=no
5315 ## Makeinfo is unusual. For a released Emacs, the manuals are
5316 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5317 ## therefore in the category of "special tools" not normally required, which
5318 ## configure does not have to check for (eg autoconf itself).
5319 ## In a CVS checkout on the other hand, the manuals are not included.
5320 ## So makeinfo is a requirement to build from CVS, and configure
5321 ## should test for it as it does for any other build requirement.
5322 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5323 ## with pre-built manuals, from a CVS checkout.
5324 if test "$MAKEINFO" = "no"; then
5325 if test "x${with_makeinfo}" = "xno"; then
5326 MAKEINFO=off
5327 elif ! test -e $srcdir/info/emacs; then
5328 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5329 source tree does not seem to have pre-built manuals in the \`info' directory.
5330 Either install a suitable version of makeinfo, or re-run configure
5331 with the \`--without-makeinfo' option to build without the manuals. " >&5
5332 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5333 source tree does not seem to have pre-built manuals in the \`info' directory.
5334 Either install a suitable version of makeinfo, or re-run configure
5335 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5336 { (exit 1); exit 1; }; }
5341 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5342 then
5343 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5346 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5347 then
5348 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5352 late_LDFLAGS=$LDFLAGS
5353 if test "$GCC" = yes; then
5354 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5355 else
5356 LDFLAGS="$LDFLAGS -znocombreloc"
5359 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5360 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5361 cat >conftest.$ac_ext <<_ACEOF
5362 main(){return 0;}
5363 _ACEOF
5364 rm -f conftest.$ac_objext conftest$ac_exeext
5365 if { (ac_try="$ac_link"
5366 case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369 esac
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_link") 2>conftest.er1
5372 ac_status=$?
5373 grep -v '^ *+' conftest.er1 >conftest.err
5374 rm -f conftest.er1
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } && {
5378 test -z "$ac_c_werror_flag" ||
5379 test ! -s conftest.err
5380 } && test -s conftest$ac_exeext &&
5381 $as_test_x conftest$ac_exeext; then
5382 { echo "$as_me:$LINENO: result: yes" >&5
5383 echo "${ECHO_T}yes" >&6; }
5384 else
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 LDFLAGS=$late_LDFLAGS
5389 { echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6; }
5393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5394 conftest$ac_exeext conftest.$ac_ext
5396 #### Extract some information from the operating system and machine files.
5398 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5399 - which libraries the lib-src programs will want, and
5400 - whether the GNU malloc routines are usable..." >&5
5401 echo "$as_me: checking the machine- and system-dependent files to find out
5402 - which libraries the lib-src programs will want, and
5403 - whether the GNU malloc routines are usable..." >&6;}
5405 ### First figure out CFLAGS (which we use for running the compiler here)
5406 ### and REAL_CFLAGS (which we use for real compilation).
5407 ### The two are the same except on a few systems, where they are made
5408 ### different to work around various lossages. For example,
5409 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5410 ### as implying static linking.
5412 ### If the CFLAGS env var is specified, we use that value
5413 ### instead of the default.
5415 ### It's not important that this name contain the PID; you can't run
5416 ### two configures in the same directory and have anything work
5417 ### anyway.
5418 tempcname="conftest.c"
5420 echo '
5421 #include "'${srcdir}'/src/'${opsysfile}'"
5422 #include "'${srcdir}'/src/'${machfile}'"
5423 #ifndef LIBS_MACHINE
5424 #define LIBS_MACHINE
5425 #endif
5426 #ifndef LIBS_SYSTEM
5427 #define LIBS_SYSTEM
5428 #endif
5429 #ifndef C_SWITCH_SYSTEM
5430 #define C_SWITCH_SYSTEM
5431 #endif
5432 #ifndef C_SWITCH_MACHINE
5433 #define C_SWITCH_MACHINE
5434 #endif
5435 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5436 configure___ c_switch_system=C_SWITCH_SYSTEM
5437 configure___ c_switch_machine=C_SWITCH_MACHINE
5439 #ifndef LIB_X11_LIB
5440 #define LIB_X11_LIB -lX11
5441 #endif
5443 #ifndef LIBX11_SYSTEM
5444 #define LIBX11_SYSTEM
5445 #endif
5446 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5448 #ifdef UNEXEC
5449 configure___ unexec=UNEXEC
5450 #else
5451 configure___ unexec=unexec.o
5452 #endif
5454 #ifdef SYSTEM_MALLOC
5455 configure___ system_malloc=yes
5456 #else
5457 configure___ system_malloc=no
5458 #endif
5460 #ifdef USE_MMAP_FOR_BUFFERS
5461 configure___ use_mmap_for_buffers=yes
5462 #else
5463 configure___ use_mmap_for_buffers=no
5464 #endif
5466 #ifndef C_DEBUG_SWITCH
5467 #define C_DEBUG_SWITCH -g
5468 #endif
5470 #ifndef C_OPTIMIZE_SWITCH
5471 #ifdef __GNUC__
5472 #define C_OPTIMIZE_SWITCH -O2
5473 #else
5474 #define C_OPTIMIZE_SWITCH -O
5475 #endif
5476 #endif
5478 #ifndef C_WARNINGS_SWITCH
5479 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5480 #endif
5482 #ifndef LD_SWITCH_MACHINE
5483 #define LD_SWITCH_MACHINE
5484 #endif
5486 #ifndef LD_SWITCH_SYSTEM
5487 #define LD_SWITCH_SYSTEM
5488 #endif
5490 #ifndef LD_SWITCH_X_SITE_AUX
5491 #define LD_SWITCH_X_SITE_AUX
5492 #endif
5494 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5495 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5497 #ifdef THIS_IS_CONFIGURE
5499 /* Get the CFLAGS for tests in configure. */
5500 #ifdef __GNUC__
5501 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5502 #else
5503 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5504 #endif
5506 #else /* not THIS_IS_CONFIGURE */
5508 /* Get the CFLAGS for real compilation. */
5509 #ifdef __GNUC__
5510 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5511 #else
5512 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5513 #endif
5515 #endif /* not THIS_IS_CONFIGURE */
5516 ' > ${tempcname}
5518 # The value of CPP is a quoted variable reference, so we need to do this
5519 # to get its actual value...
5520 CPP=`eval "echo $CPP"`
5521 eval `${CPP} -Isrc ${tempcname} \
5522 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5523 if test "x$SPECIFIED_CFLAGS" = x; then
5524 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5525 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5526 else
5527 REAL_CFLAGS="$CFLAGS"
5529 rm ${tempcname}
5531 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5533 ### Make sure subsequent tests use flags consistent with the build flags.
5535 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5536 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5537 else
5538 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5543 # Check whether --enable-largefile was given.
5544 if test "${enable_largefile+set}" = set; then
5545 enableval=$enable_largefile;
5548 if test "$enable_largefile" != no; then
5550 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5551 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5552 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555 ac_cv_sys_largefile_CC=no
5556 if test "$GCC" != yes; then
5557 ac_save_CC=$CC
5558 while :; do
5559 # IRIX 6.2 and later do not support large files by default,
5560 # so use the C compiler's -n32 option if that helps.
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <sys/types.h>
5568 /* Check that off_t can represent 2**63 - 1 correctly.
5569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5570 since some C++ compilers masquerading as C compilers
5571 incorrectly reject 9223372036854775807. */
5572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5574 && LARGE_OFF_T % 2147483647 == 1)
5575 ? 1 : -1];
5577 main ()
5581 return 0;
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_c_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.$ac_objext; then
5601 break
5602 else
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5609 rm -f core conftest.err conftest.$ac_objext
5610 CC="$CC -n32"
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5613 case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_compile") 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.$ac_objext; then
5628 ac_cv_sys_largefile_CC=' -n32'; break
5629 else
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5636 rm -f core conftest.err conftest.$ac_objext
5637 break
5638 done
5639 CC=$ac_save_CC
5640 rm -f conftest.$ac_ext
5643 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5644 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5645 if test "$ac_cv_sys_largefile_CC" != no; then
5646 CC=$CC$ac_cv_sys_largefile_CC
5649 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5650 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5651 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 while :; do
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5662 /* Check that off_t can represent 2**63 - 1 correctly.
5663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5664 since some C++ compilers masquerading as C compilers
5665 incorrectly reject 9223372036854775807. */
5666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5668 && LARGE_OFF_T % 2147483647 == 1)
5669 ? 1 : -1];
5671 main ()
5675 return 0;
5677 _ACEOF
5678 rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5680 case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && {
5692 test -z "$ac_c_werror_flag" ||
5693 test ! -s conftest.err
5694 } && test -s conftest.$ac_objext; then
5695 ac_cv_sys_file_offset_bits=no; break
5696 else
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #define _FILE_OFFSET_BITS 64
5711 #include <sys/types.h>
5712 /* Check that off_t can represent 2**63 - 1 correctly.
5713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5714 since some C++ compilers masquerading as C compilers
5715 incorrectly reject 9223372036854775807. */
5716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5718 && LARGE_OFF_T % 2147483647 == 1)
5719 ? 1 : -1];
5721 main ()
5725 return 0;
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (ac_try="$ac_compile"
5730 case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_compile") 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } && {
5742 test -z "$ac_c_werror_flag" ||
5743 test ! -s conftest.err
5744 } && test -s conftest.$ac_objext; then
5745 ac_cv_sys_file_offset_bits=64; break
5746 else
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754 ac_cv_sys_file_offset_bits=unknown
5755 break
5756 done
5758 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5759 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5760 case $ac_cv_sys_file_offset_bits in #(
5761 no | unknown) ;;
5763 cat >>confdefs.h <<_ACEOF
5764 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5765 _ACEOF
5767 esac
5768 rm -f conftest*
5769 if test $ac_cv_sys_file_offset_bits = unknown; then
5770 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5771 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5772 if test "${ac_cv_sys_large_files+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775 while :; do
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #include <sys/types.h>
5783 /* Check that off_t can represent 2**63 - 1 correctly.
5784 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5785 since some C++ compilers masquerading as C compilers
5786 incorrectly reject 9223372036854775807. */
5787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5789 && LARGE_OFF_T % 2147483647 == 1)
5790 ? 1 : -1];
5792 main ()
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (ac_try="$ac_compile"
5801 case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804 esac
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_compile") 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } && {
5813 test -z "$ac_c_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest.$ac_objext; then
5816 ac_cv_sys_large_files=no; break
5817 else
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #define _LARGE_FILES 1
5832 #include <sys/types.h>
5833 /* Check that off_t can represent 2**63 - 1 correctly.
5834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5835 since some C++ compilers masquerading as C compilers
5836 incorrectly reject 9223372036854775807. */
5837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5839 && LARGE_OFF_T % 2147483647 == 1)
5840 ? 1 : -1];
5842 main ()
5846 return 0;
5848 _ACEOF
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest.$ac_objext; then
5866 ac_cv_sys_large_files=1; break
5867 else
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ac_cv_sys_large_files=unknown
5876 break
5877 done
5879 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5880 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5881 case $ac_cv_sys_large_files in #(
5882 no | unknown) ;;
5884 cat >>confdefs.h <<_ACEOF
5885 #define _LARGE_FILES $ac_cv_sys_large_files
5886 _ACEOF
5888 esac
5889 rm -f conftest*
5895 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5896 ### be located in either /usr/lib64 or /usr/lib.
5897 case "${canonical}" in
5898 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5899 if test -d /usr/lib64; then
5901 cat >>confdefs.h <<\_ACEOF
5902 #define HAVE_LIB64_DIR 1
5903 _ACEOF
5906 esac
5911 if test "${with_sound}" != "no"; then
5912 # Sound support for GNU/Linux and the free BSDs.
5916 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 ac_res=`eval echo '${'$as_ac_Header'}'`
5926 { echo "$as_me:$LINENO: result: $ac_res" >&5
5927 echo "${ECHO_T}$ac_res" >&6; }
5928 else
5929 # Is the header compilable?
5930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5932 cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h. */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 $ac_includes_default
5939 #include <$ac_header>
5940 _ACEOF
5941 rm -f conftest.$ac_objext
5942 if { (ac_try="$ac_compile"
5943 case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compile") 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && {
5955 test -z "$ac_c_werror_flag" ||
5956 test ! -s conftest.err
5957 } && test -s conftest.$ac_objext; then
5958 ac_header_compiler=yes
5959 else
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_header_compiler=no
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5968 echo "${ECHO_T}$ac_header_compiler" >&6; }
5970 # Is the header present?
5971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #include <$ac_header>
5980 _ACEOF
5981 if { (ac_try="$ac_cpp conftest.$ac_ext"
5982 case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985 esac
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } >/dev/null && {
5994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5996 }; then
5997 ac_header_preproc=yes
5998 else
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 ac_header_preproc=no
6005 rm -f conftest.err conftest.$ac_ext
6006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6007 echo "${ECHO_T}$ac_header_preproc" >&6; }
6009 # So? What about this header?
6010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6011 yes:no: )
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6016 ac_header_preproc=yes
6018 no:yes:* )
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6033 esac
6034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039 eval "$as_ac_Header=\$ac_header_preproc"
6041 ac_res=`eval echo '${'$as_ac_Header'}'`
6042 { echo "$as_me:$LINENO: result: $ac_res" >&5
6043 echo "${ECHO_T}$ac_res" >&6; }
6046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6049 _ACEOF
6053 done
6055 # Emulation library used on NetBSD.
6056 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6057 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6058 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 ac_check_lib_save_LIBS=$LIBS
6062 LIBS="-lossaudio $LIBS"
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6070 /* Override any GCC internal prototype to avoid an error.
6071 Use char because int might match the return type of a GCC
6072 builtin and then its argument prototype would still apply. */
6073 #ifdef __cplusplus
6074 extern "C"
6075 #endif
6076 char _oss_ioctl ();
6078 main ()
6080 return _oss_ioctl ();
6082 return 0;
6084 _ACEOF
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (ac_try="$ac_link"
6087 case "(($ac_try" in
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6090 esac
6091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092 (eval "$ac_link") 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } && {
6099 test -z "$ac_c_werror_flag" ||
6100 test ! -s conftest.err
6101 } && test -s conftest$ac_exeext &&
6102 $as_test_x conftest$ac_exeext; then
6103 ac_cv_lib_ossaudio__oss_ioctl=yes
6104 else
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_cv_lib_ossaudio__oss_ioctl=no
6111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6112 conftest$ac_exeext conftest.$ac_ext
6113 LIBS=$ac_check_lib_save_LIBS
6115 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6116 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6117 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6118 LIBSOUND=-lossaudio
6119 else
6120 LIBSOUND=
6125 ALSA_REQUIRED=1.0.0
6126 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6128 succeeded=no
6130 # Extract the first word of "pkg-config", so it can be a program name with args.
6131 set dummy pkg-config; ac_word=$2
6132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6134 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 case $PKG_CONFIG in
6138 [\\/]* | ?:[\\/]*)
6139 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6153 done
6154 done
6155 IFS=$as_save_IFS
6157 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6159 esac
6161 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6162 if test -n "$PKG_CONFIG"; then
6163 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6164 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6165 else
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6172 if test "$PKG_CONFIG" = "no" ; then
6173 HAVE_ALSA=no
6174 else
6175 PKG_CONFIG_MIN_VERSION=0.9.0
6176 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6177 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6178 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6180 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6181 { echo "$as_me:$LINENO: result: yes" >&5
6182 echo "${ECHO_T}yes" >&6; }
6183 succeeded=yes
6185 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6186 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6187 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6188 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6189 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6191 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6192 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6193 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6194 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6195 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6196 else
6197 { echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6; }
6199 ALSA_CFLAGS=""
6200 ALSA_LIBS=""
6201 ## If we have a custom action on failure, don't print errors, but
6202 ## do set a variable so people can do so.
6203 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6209 else
6210 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6211 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6215 if test $succeeded = yes; then
6216 HAVE_ALSA=yes
6217 else
6218 HAVE_ALSA=no
6221 if test $HAVE_ALSA = yes; then
6222 SAVE_CFLAGS="$CFLAGS"
6223 SAVE_LDFLAGS="$LDFLAGS"
6224 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6225 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6226 cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h. */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 #include <asoundlib.h>
6234 main ()
6236 snd_lib_error_set_handler (0);
6238 return 0;
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (ac_try="$ac_compile"
6243 case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6246 esac
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_compile") 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } && {
6255 test -z "$ac_c_werror_flag" ||
6256 test ! -s conftest.err
6257 } && test -s conftest.$ac_objext; then
6258 emacs_alsa_normal=yes
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 emacs_alsa_normal=no
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 if test "$emacs_alsa_normal" != yes; then
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <alsa/asoundlib.h>
6276 main ()
6278 snd_lib_error_set_handler (0);
6280 return 0;
6282 _ACEOF
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6285 case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6288 esac
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6291 ac_status=$?
6292 grep -v '^ *+' conftest.er1 >conftest.err
6293 rm -f conftest.er1
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } && {
6297 test -z "$ac_c_werror_flag" ||
6298 test ! -s conftest.err
6299 } && test -s conftest.$ac_objext; then
6300 emacs_alsa_subdir=yes
6301 else
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 emacs_alsa_subdir=no
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 if test "$emacs_alsa_subdir" != yes; then
6310 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6311 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6312 { (exit 1); exit 1; }; }
6314 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6317 CFLAGS="$SAVE_CFLAGS"
6318 LDFLAGS="$SAVE_LDFLAGS"
6319 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6320 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6322 cat >>confdefs.h <<\_ACEOF
6323 #define HAVE_ALSA 1
6324 _ACEOF
6355 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6356 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6357 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6358 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6359 sys/utsname.h pwd.h
6361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 ac_res=`eval echo '${'$as_ac_Header'}'`
6369 { echo "$as_me:$LINENO: result: $ac_res" >&5
6370 echo "${ECHO_T}$ac_res" >&6; }
6371 else
6372 # Is the header compilable?
6373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h. */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 $ac_includes_default
6382 #include <$ac_header>
6383 _ACEOF
6384 rm -f conftest.$ac_objext
6385 if { (ac_try="$ac_compile"
6386 case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389 esac
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_compile") 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.$ac_objext; then
6401 ac_header_compiler=yes
6402 else
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 ac_header_compiler=no
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6411 echo "${ECHO_T}$ac_header_compiler" >&6; }
6413 # Is the header present?
6414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 #include <$ac_header>
6423 _ACEOF
6424 if { (ac_try="$ac_cpp conftest.$ac_ext"
6425 case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } >/dev/null && {
6437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 }; then
6440 ac_header_preproc=yes
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 ac_header_preproc=no
6448 rm -f conftest.err conftest.$ac_ext
6449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6450 echo "${ECHO_T}$ac_header_preproc" >&6; }
6452 # So? What about this header?
6453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6454 yes:no: )
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6459 ac_header_preproc=yes
6461 no:yes:* )
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6476 esac
6477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 eval "$as_ac_Header=\$ac_header_preproc"
6484 ac_res=`eval echo '${'$as_ac_Header'}'`
6485 { echo "$as_me:$LINENO: result: $ac_res" >&5
6486 echo "${ECHO_T}$ac_res" >&6; }
6489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6490 cat >>confdefs.h <<_ACEOF
6491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6492 _ACEOF
6496 done
6499 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6500 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6501 cat >conftest.$ac_ext <<_ACEOF
6502 /* confdefs.h. */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6507 #include <sys/personality.h>
6509 main ()
6511 personality (PER_LINUX32)
6513 return 0;
6515 _ACEOF
6516 rm -f conftest.$ac_objext
6517 if { (ac_try="$ac_compile"
6518 case "(($ac_try" in
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6521 esac
6522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523 (eval "$ac_compile") 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } && {
6530 test -z "$ac_c_werror_flag" ||
6531 test ! -s conftest.err
6532 } && test -s conftest.$ac_objext; then
6533 emacs_cv_personality_linux32=yes
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 emacs_cv_personality_linux32=no
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6543 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6545 if test $emacs_cv_personality_linux32 = yes; then
6547 cat >>confdefs.h <<\_ACEOF
6548 #define HAVE_PERSONALITY_LINUX32 1
6549 _ACEOF
6554 for ac_header in term.h
6556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <$ac_header>
6569 _ACEOF
6570 if { (ac_try="$ac_cpp conftest.$ac_ext"
6571 case "(($ac_try" in
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6574 esac
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } >/dev/null && {
6583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 }; then
6586 eval "$as_ac_Header=yes"
6587 else
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 eval "$as_ac_Header=no"
6594 rm -f conftest.err conftest.$ac_ext
6596 ac_res=`eval echo '${'$as_ac_Header'}'`
6597 { echo "$as_me:$LINENO: result: $ac_res" >&5
6598 echo "${ECHO_T}$ac_res" >&6; }
6599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600 cat >>confdefs.h <<_ACEOF
6601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602 _ACEOF
6606 done
6608 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6609 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6610 if test "${ac_cv_header_stdc+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h. */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 #include <stdlib.h>
6620 #include <stdarg.h>
6621 #include <string.h>
6622 #include <float.h>
6625 main ()
6629 return 0;
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6634 case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && {
6646 test -z "$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 } && test -s conftest.$ac_objext; then
6649 ac_cv_header_stdc=yes
6650 else
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 ac_cv_header_stdc=no
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 if test $ac_cv_header_stdc = yes; then
6660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6661 cat >conftest.$ac_ext <<_ACEOF
6662 /* confdefs.h. */
6663 _ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6667 #include <string.h>
6669 _ACEOF
6670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6671 $EGREP "memchr" >/dev/null 2>&1; then
6673 else
6674 ac_cv_header_stdc=no
6676 rm -f conftest*
6680 if test $ac_cv_header_stdc = yes; then
6681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h. */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 #include <stdlib.h>
6690 _ACEOF
6691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6692 $EGREP "free" >/dev/null 2>&1; then
6694 else
6695 ac_cv_header_stdc=no
6697 rm -f conftest*
6701 if test $ac_cv_header_stdc = yes; then
6702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6703 if test "$cross_compiling" = yes; then
6705 else
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <ctype.h>
6713 #include <stdlib.h>
6714 #if ((' ' & 0x0FF) == 0x020)
6715 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6716 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6717 #else
6718 # define ISLOWER(c) \
6719 (('a' <= (c) && (c) <= 'i') \
6720 || ('j' <= (c) && (c) <= 'r') \
6721 || ('s' <= (c) && (c) <= 'z'))
6722 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6723 #endif
6725 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6727 main ()
6729 int i;
6730 for (i = 0; i < 256; i++)
6731 if (XOR (islower (i), ISLOWER (i))
6732 || toupper (i) != TOUPPER (i))
6733 return 2;
6734 return 0;
6736 _ACEOF
6737 rm -f conftest$ac_exeext
6738 if { (ac_try="$ac_link"
6739 case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_link") 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6748 { (case "(($ac_try" in
6749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6751 esac
6752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753 (eval "$ac_try") 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6758 else
6759 echo "$as_me: program exited with status $ac_status" >&5
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 ( exit $ac_status )
6764 ac_cv_header_stdc=no
6766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6772 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6773 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6774 if test $ac_cv_header_stdc = yes; then
6776 cat >>confdefs.h <<\_ACEOF
6777 #define STDC_HEADERS 1
6778 _ACEOF
6782 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6783 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6784 if test "${ac_cv_header_time+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787 cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h. */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 #include <sys/types.h>
6794 #include <sys/time.h>
6795 #include <time.h>
6798 main ()
6800 if ((struct tm *) 0)
6801 return 0;
6803 return 0;
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6808 case "(($ac_try" in
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6811 esac
6812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6813 (eval "$ac_compile") 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } && {
6820 test -z "$ac_c_werror_flag" ||
6821 test ! -s conftest.err
6822 } && test -s conftest.$ac_objext; then
6823 ac_cv_header_time=yes
6824 else
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6828 ac_cv_header_time=no
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6834 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6835 if test $ac_cv_header_time = yes; then
6837 cat >>confdefs.h <<\_ACEOF
6838 #define TIME_WITH_SYS_TIME 1
6839 _ACEOF
6843 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6844 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6845 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 $ac_includes_default
6856 main ()
6858 #ifndef sys_siglist
6859 (void) sys_siglist;
6860 #endif
6863 return 0;
6865 _ACEOF
6866 rm -f conftest.$ac_objext
6867 if { (ac_try="$ac_compile"
6868 case "(($ac_try" in
6869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6871 esac
6872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6873 (eval "$ac_compile") 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } && {
6880 test -z "$ac_c_werror_flag" ||
6881 test ! -s conftest.err
6882 } && test -s conftest.$ac_objext; then
6883 ac_cv_have_decl_sys_siglist=yes
6884 else
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6888 ac_cv_have_decl_sys_siglist=no
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6894 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6895 if test $ac_cv_have_decl_sys_siglist = yes; then
6897 cat >>confdefs.h <<_ACEOF
6898 #define HAVE_DECL_SYS_SIGLIST 1
6899 _ACEOF
6902 else
6903 cat >>confdefs.h <<_ACEOF
6904 #define HAVE_DECL_SYS_SIGLIST 0
6905 _ACEOF
6911 if test $ac_cv_have_decl_sys_siglist != yes; then
6912 # For Tru64, at least:
6913 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6914 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6915 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 $ac_includes_default
6926 main ()
6928 #ifndef __sys_siglist
6929 (void) __sys_siglist;
6930 #endif
6933 return 0;
6935 _ACEOF
6936 rm -f conftest.$ac_objext
6937 if { (ac_try="$ac_compile"
6938 case "(($ac_try" in
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6941 esac
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_compile") 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_c_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.$ac_objext; then
6953 ac_cv_have_decl___sys_siglist=yes
6954 else
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 ac_cv_have_decl___sys_siglist=no
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6964 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6965 if test $ac_cv_have_decl___sys_siglist = yes; then
6967 cat >>confdefs.h <<_ACEOF
6968 #define HAVE_DECL___SYS_SIGLIST 1
6969 _ACEOF
6972 else
6973 cat >>confdefs.h <<_ACEOF
6974 #define HAVE_DECL___SYS_SIGLIST 0
6975 _ACEOF
6981 if test $ac_cv_have_decl___sys_siglist = yes; then
6983 cat >>confdefs.h <<\_ACEOF
6984 #define sys_siglist __sys_siglist
6985 _ACEOF
6989 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6990 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6991 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 #include <sys/types.h>
7001 #include <sys/wait.h>
7002 #ifndef WEXITSTATUS
7003 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7004 #endif
7005 #ifndef WIFEXITED
7006 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7007 #endif
7010 main ()
7012 int s;
7013 wait (&s);
7014 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7016 return 0;
7018 _ACEOF
7019 rm -f conftest.$ac_objext
7020 if { (ac_try="$ac_compile"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_compile") 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest.$ac_objext; then
7036 ac_cv_header_sys_wait_h=yes
7037 else
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7041 ac_cv_header_sys_wait_h=no
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7047 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7048 if test $ac_cv_header_sys_wait_h = yes; then
7050 cat >>confdefs.h <<\_ACEOF
7051 #define HAVE_SYS_WAIT_H 1
7052 _ACEOF
7057 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7058 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7059 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062 cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h. */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 #ifdef TIME_WITH_SYS_TIME
7069 #include <sys/time.h>
7070 #include <time.h>
7071 #else
7072 #ifdef HAVE_SYS_TIME_H
7073 #include <sys/time.h>
7074 #else
7075 #include <time.h>
7076 #endif
7077 #endif
7078 #ifdef HAVE_UTIME_H
7079 #include <utime.h>
7080 #endif
7082 main ()
7084 static struct utimbuf x; x.actime = x.modtime;
7086 return 0;
7088 _ACEOF
7089 rm -f conftest.$ac_objext
7090 if { (ac_try="$ac_compile"
7091 case "(($ac_try" in
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7094 esac
7095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7096 (eval "$ac_compile") 2>conftest.er1
7097 ac_status=$?
7098 grep -v '^ *+' conftest.er1 >conftest.err
7099 rm -f conftest.er1
7100 cat conftest.err >&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && {
7103 test -z "$ac_c_werror_flag" ||
7104 test ! -s conftest.err
7105 } && test -s conftest.$ac_objext; then
7106 emacs_cv_struct_utimbuf=yes
7107 else
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 emacs_cv_struct_utimbuf=no
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7117 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7118 if test $emacs_cv_struct_utimbuf = yes; then
7120 cat >>confdefs.h <<\_ACEOF
7121 #define HAVE_STRUCT_UTIMBUF 1
7122 _ACEOF
7126 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7127 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7128 if test "${ac_cv_type_signal+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 cat >conftest.$ac_ext <<_ACEOF
7132 /* confdefs.h. */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7137 #include <sys/types.h>
7138 #include <signal.h>
7141 main ()
7143 return *(signal (0, 0)) (0) == 1;
7145 return 0;
7147 _ACEOF
7148 rm -f conftest.$ac_objext
7149 if { (ac_try="$ac_compile"
7150 case "(($ac_try" in
7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7153 esac
7154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155 (eval "$ac_compile") 2>conftest.er1
7156 ac_status=$?
7157 grep -v '^ *+' conftest.er1 >conftest.err
7158 rm -f conftest.er1
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } && {
7162 test -z "$ac_c_werror_flag" ||
7163 test ! -s conftest.err
7164 } && test -s conftest.$ac_objext; then
7165 ac_cv_type_signal=int
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7170 ac_cv_type_signal=void
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7176 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7178 cat >>confdefs.h <<_ACEOF
7179 #define RETSIGTYPE $ac_cv_type_signal
7180 _ACEOF
7184 { echo "$as_me:$LINENO: checking for speed_t" >&5
7185 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7186 if test "${emacs_cv_speed_t+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189 cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h. */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7195 #include <termios.h>
7197 main ()
7199 speed_t x = 1;
7201 return 0;
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (ac_try="$ac_compile"
7206 case "(($ac_try" in
7207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7209 esac
7210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211 (eval "$ac_compile") 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } && {
7218 test -z "$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7220 } && test -s conftest.$ac_objext; then
7221 emacs_cv_speed_t=yes
7222 else
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7226 emacs_cv_speed_t=no
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7232 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7233 if test $emacs_cv_speed_t = yes; then
7235 cat >>confdefs.h <<\_ACEOF
7236 #define HAVE_SPEED_T 1
7237 _ACEOF
7241 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7242 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7243 if test "${emacs_cv_struct_timeval+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 #ifdef TIME_WITH_SYS_TIME
7253 #include <sys/time.h>
7254 #include <time.h>
7255 #else
7256 #ifdef HAVE_SYS_TIME_H
7257 #include <sys/time.h>
7258 #else
7259 #include <time.h>
7260 #endif
7261 #endif
7263 main ()
7265 static struct timeval x; x.tv_sec = x.tv_usec;
7267 return 0;
7269 _ACEOF
7270 rm -f conftest.$ac_objext
7271 if { (ac_try="$ac_compile"
7272 case "(($ac_try" in
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7275 esac
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_compile") 2>conftest.er1
7278 ac_status=$?
7279 grep -v '^ *+' conftest.er1 >conftest.err
7280 rm -f conftest.er1
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_c_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest.$ac_objext; then
7287 emacs_cv_struct_timeval=yes
7288 else
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 emacs_cv_struct_timeval=no
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7298 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7299 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7300 if test $emacs_cv_struct_timeval = yes; then
7302 cat >>confdefs.h <<\_ACEOF
7303 #define HAVE_TIMEVAL 1
7304 _ACEOF
7308 { echo "$as_me:$LINENO: checking for struct exception" >&5
7309 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7310 if test "${emacs_cv_struct_exception+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 #include <math.h>
7321 main ()
7323 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7325 return 0;
7327 _ACEOF
7328 rm -f conftest.$ac_objext
7329 if { (ac_try="$ac_compile"
7330 case "(($ac_try" in
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7333 esac
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335 (eval "$ac_compile") 2>conftest.er1
7336 ac_status=$?
7337 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -f conftest.er1
7339 cat conftest.err >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } && {
7342 test -z "$ac_c_werror_flag" ||
7343 test ! -s conftest.err
7344 } && test -s conftest.$ac_objext; then
7345 emacs_cv_struct_exception=yes
7346 else
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7350 emacs_cv_struct_exception=no
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7356 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7357 HAVE_EXCEPTION=$emacs_cv_struct_exception
7358 if test $emacs_cv_struct_exception != yes; then
7360 cat >>confdefs.h <<\_ACEOF
7361 #define NO_MATHERR 1
7362 _ACEOF
7367 for ac_header in sys/socket.h
7369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 ac_res=`eval echo '${'$as_ac_Header'}'`
7377 { echo "$as_me:$LINENO: result: $ac_res" >&5
7378 echo "${ECHO_T}$ac_res" >&6; }
7379 else
7380 # Is the header compilable?
7381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7383 cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h. */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7389 $ac_includes_default
7390 #include <$ac_header>
7391 _ACEOF
7392 rm -f conftest.$ac_objext
7393 if { (ac_try="$ac_compile"
7394 case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397 esac
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7409 ac_header_compiler=yes
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 ac_header_compiler=no
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7419 echo "${ECHO_T}$ac_header_compiler" >&6; }
7421 # Is the header present?
7422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 #include <$ac_header>
7431 _ACEOF
7432 if { (ac_try="$ac_cpp conftest.$ac_ext"
7433 case "(($ac_try" in
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7436 esac
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } >/dev/null && {
7445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7446 test ! -s conftest.err
7447 }; then
7448 ac_header_preproc=yes
7449 else
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7453 ac_header_preproc=no
7456 rm -f conftest.err conftest.$ac_ext
7457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7458 echo "${ECHO_T}$ac_header_preproc" >&6; }
7460 # So? What about this header?
7461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7462 yes:no: )
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7467 ac_header_preproc=yes
7469 no:yes:* )
7470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7484 esac
7485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490 eval "$as_ac_Header=\$ac_header_preproc"
7492 ac_res=`eval echo '${'$as_ac_Header'}'`
7493 { echo "$as_me:$LINENO: result: $ac_res" >&5
7494 echo "${ECHO_T}$ac_res" >&6; }
7497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7498 cat >>confdefs.h <<_ACEOF
7499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7500 _ACEOF
7504 done
7507 for ac_header in net/if.h
7509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515 cat >conftest.$ac_ext <<_ACEOF
7516 /* confdefs.h. */
7517 _ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 $ac_includes_default
7522 #if HAVE_SYS_SOCKET_H
7523 #include <sys/socket.h>
7524 #endif
7526 #include <$ac_header>
7527 _ACEOF
7528 rm -f conftest.$ac_objext
7529 if { (ac_try="$ac_compile"
7530 case "(($ac_try" in
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7533 esac
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_compile") 2>conftest.er1
7536 ac_status=$?
7537 grep -v '^ *+' conftest.er1 >conftest.err
7538 rm -f conftest.er1
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.$ac_objext; then
7545 eval "$as_ac_Header=yes"
7546 else
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7550 eval "$as_ac_Header=no"
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555 ac_res=`eval echo '${'$as_ac_Header'}'`
7556 { echo "$as_me:$LINENO: result: $ac_res" >&5
7557 echo "${ECHO_T}$ac_res" >&6; }
7558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7559 cat >>confdefs.h <<_ACEOF
7560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7561 _ACEOF
7565 done
7568 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7569 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7570 if test "${ac_cv_struct_tm+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573 cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h. */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 #include <sys/types.h>
7580 #include <time.h>
7583 main ()
7585 struct tm tm;
7586 int *p = &tm.tm_sec;
7587 return !p;
7589 return 0;
7591 _ACEOF
7592 rm -f conftest.$ac_objext
7593 if { (ac_try="$ac_compile"
7594 case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597 esac
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
7609 ac_cv_struct_tm=time.h
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_cv_struct_tm=sys/time.h
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7620 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7621 if test $ac_cv_struct_tm = sys/time.h; then
7623 cat >>confdefs.h <<\_ACEOF
7624 #define TM_IN_SYS_TIME 1
7625 _ACEOF
7629 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7630 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7631 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634 cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h. */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 #include <sys/types.h>
7641 #include <$ac_cv_struct_tm>
7645 main ()
7647 static struct tm ac_aggr;
7648 if (ac_aggr.tm_zone)
7649 return 0;
7651 return 0;
7653 _ACEOF
7654 rm -f conftest.$ac_objext
7655 if { (ac_try="$ac_compile"
7656 case "(($ac_try" in
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7659 esac
7660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661 (eval "$ac_compile") 2>conftest.er1
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } && {
7668 test -z "$ac_c_werror_flag" ||
7669 test ! -s conftest.err
7670 } && test -s conftest.$ac_objext; then
7671 ac_cv_member_struct_tm_tm_zone=yes
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h. */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 #include <sys/types.h>
7683 #include <$ac_cv_struct_tm>
7687 main ()
7689 static struct tm ac_aggr;
7690 if (sizeof ac_aggr.tm_zone)
7691 return 0;
7693 return 0;
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then
7713 ac_cv_member_struct_tm_tm_zone=yes
7714 else
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 ac_cv_member_struct_tm_tm_zone=no
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7727 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7728 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7730 cat >>confdefs.h <<_ACEOF
7731 #define HAVE_STRUCT_TM_TM_ZONE 1
7732 _ACEOF
7737 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7739 cat >>confdefs.h <<\_ACEOF
7740 #define HAVE_TM_ZONE 1
7741 _ACEOF
7743 else
7744 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7745 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7746 if test "${ac_cv_have_decl_tzname+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <time.h>
7758 main ()
7760 #ifndef tzname
7761 (void) tzname;
7762 #endif
7765 return 0;
7767 _ACEOF
7768 rm -f conftest.$ac_objext
7769 if { (ac_try="$ac_compile"
7770 case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7773 esac
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_compile") 2>conftest.er1
7776 ac_status=$?
7777 grep -v '^ *+' conftest.er1 >conftest.err
7778 rm -f conftest.er1
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } && {
7782 test -z "$ac_c_werror_flag" ||
7783 test ! -s conftest.err
7784 } && test -s conftest.$ac_objext; then
7785 ac_cv_have_decl_tzname=yes
7786 else
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_cv_have_decl_tzname=no
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7796 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7797 if test $ac_cv_have_decl_tzname = yes; then
7799 cat >>confdefs.h <<_ACEOF
7800 #define HAVE_DECL_TZNAME 1
7801 _ACEOF
7804 else
7805 cat >>confdefs.h <<_ACEOF
7806 #define HAVE_DECL_TZNAME 0
7807 _ACEOF
7813 { echo "$as_me:$LINENO: checking for tzname" >&5
7814 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7815 if test "${ac_cv_var_tzname+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818 cat >conftest.$ac_ext <<_ACEOF
7819 /* confdefs.h. */
7820 _ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 #include <time.h>
7825 #if !HAVE_DECL_TZNAME
7826 extern char *tzname[];
7827 #endif
7830 main ()
7832 return tzname[0][0];
7834 return 0;
7836 _ACEOF
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (ac_try="$ac_link"
7839 case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842 esac
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_link") 2>conftest.er1
7845 ac_status=$?
7846 grep -v '^ *+' conftest.er1 >conftest.err
7847 rm -f conftest.er1
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && {
7851 test -z "$ac_c_werror_flag" ||
7852 test ! -s conftest.err
7853 } && test -s conftest$ac_exeext &&
7854 $as_test_x conftest$ac_exeext; then
7855 ac_cv_var_tzname=yes
7856 else
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_cv_var_tzname=no
7863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7864 conftest$ac_exeext conftest.$ac_ext
7866 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7867 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7868 if test $ac_cv_var_tzname = yes; then
7870 cat >>confdefs.h <<\_ACEOF
7871 #define HAVE_TZNAME 1
7872 _ACEOF
7877 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7878 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7879 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h. */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 #include <time.h>
7891 main ()
7893 static struct tm ac_aggr;
7894 if (ac_aggr.tm_gmtoff)
7895 return 0;
7897 return 0;
7899 _ACEOF
7900 rm -f conftest.$ac_objext
7901 if { (ac_try="$ac_compile"
7902 case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7905 esac
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_compile") 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && {
7914 test -z "$ac_c_werror_flag" ||
7915 test ! -s conftest.err
7916 } && test -s conftest.$ac_objext; then
7917 ac_cv_member_struct_tm_tm_gmtoff=yes
7918 else
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 #include <time.h>
7931 main ()
7933 static struct tm ac_aggr;
7934 if (sizeof ac_aggr.tm_gmtoff)
7935 return 0;
7937 return 0;
7939 _ACEOF
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7942 case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.$ac_objext; then
7957 ac_cv_member_struct_tm_tm_gmtoff=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_member_struct_tm_tm_gmtoff=no
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7971 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7972 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7974 cat >>confdefs.h <<\_ACEOF
7975 #define HAVE_TM_GMTOFF 1
7976 _ACEOF
7980 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7981 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7982 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985 cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h. */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 $ac_includes_default
7992 #if HAVE_SYS_SOCKET_H
7993 #include <sys/socket.h>
7994 #endif
7995 #if HAVE_NET_IF_H
7996 #include <net/if.h>
7997 #endif
8000 main ()
8002 static struct ifreq ac_aggr;
8003 if (ac_aggr.ifr_flags)
8004 return 0;
8006 return 0;
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (ac_try="$ac_compile"
8011 case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_compile") 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest.$ac_objext; then
8026 ac_cv_member_struct_ifreq_ifr_flags=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h. */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 $ac_includes_default
8038 #if HAVE_SYS_SOCKET_H
8039 #include <sys/socket.h>
8040 #endif
8041 #if HAVE_NET_IF_H
8042 #include <net/if.h>
8043 #endif
8046 main ()
8048 static struct ifreq ac_aggr;
8049 if (sizeof ac_aggr.ifr_flags)
8050 return 0;
8052 return 0;
8054 _ACEOF
8055 rm -f conftest.$ac_objext
8056 if { (ac_try="$ac_compile"
8057 case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060 esac
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_compile") 2>conftest.er1
8063 ac_status=$?
8064 grep -v '^ *+' conftest.er1 >conftest.err
8065 rm -f conftest.er1
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } && {
8069 test -z "$ac_c_werror_flag" ||
8070 test ! -s conftest.err
8071 } && test -s conftest.$ac_objext; then
8072 ac_cv_member_struct_ifreq_ifr_flags=yes
8073 else
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8077 ac_cv_member_struct_ifreq_ifr_flags=no
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8086 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8087 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8089 cat >>confdefs.h <<_ACEOF
8090 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8091 _ACEOF
8095 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8096 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8097 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h. */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 $ac_includes_default
8107 #if HAVE_SYS_SOCKET_H
8108 #include <sys/socket.h>
8109 #endif
8110 #if HAVE_NET_IF_H
8111 #include <net/if.h>
8112 #endif
8115 main ()
8117 static struct ifreq ac_aggr;
8118 if (ac_aggr.ifr_hwaddr)
8119 return 0;
8121 return 0;
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (ac_try="$ac_compile"
8126 case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8129 esac
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_compile") 2>conftest.er1
8132 ac_status=$?
8133 grep -v '^ *+' conftest.er1 >conftest.err
8134 rm -f conftest.er1
8135 cat conftest.err >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } && {
8138 test -z "$ac_c_werror_flag" ||
8139 test ! -s conftest.err
8140 } && test -s conftest.$ac_objext; then
8141 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8142 else
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h. */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 $ac_includes_default
8153 #if HAVE_SYS_SOCKET_H
8154 #include <sys/socket.h>
8155 #endif
8156 #if HAVE_NET_IF_H
8157 #include <net/if.h>
8158 #endif
8161 main ()
8163 static struct ifreq ac_aggr;
8164 if (sizeof ac_aggr.ifr_hwaddr)
8165 return 0;
8167 return 0;
8169 _ACEOF
8170 rm -f conftest.$ac_objext
8171 if { (ac_try="$ac_compile"
8172 case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_compile") 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest.$ac_objext; then
8187 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8188 else
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8201 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8202 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8206 _ACEOF
8210 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8211 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8212 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215 cat >conftest.$ac_ext <<_ACEOF
8216 /* confdefs.h. */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8221 $ac_includes_default
8222 #if HAVE_SYS_SOCKET_H
8223 #include <sys/socket.h>
8224 #endif
8225 #if HAVE_NET_IF_H
8226 #include <net/if.h>
8227 #endif
8230 main ()
8232 static struct ifreq ac_aggr;
8233 if (ac_aggr.ifr_netmask)
8234 return 0;
8236 return 0;
8238 _ACEOF
8239 rm -f conftest.$ac_objext
8240 if { (ac_try="$ac_compile"
8241 case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_compile") 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest.$ac_objext; then
8256 ac_cv_member_struct_ifreq_ifr_netmask=yes
8257 else
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h. */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 $ac_includes_default
8268 #if HAVE_SYS_SOCKET_H
8269 #include <sys/socket.h>
8270 #endif
8271 #if HAVE_NET_IF_H
8272 #include <net/if.h>
8273 #endif
8276 main ()
8278 static struct ifreq ac_aggr;
8279 if (sizeof ac_aggr.ifr_netmask)
8280 return 0;
8282 return 0;
8284 _ACEOF
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8287 case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8293 ac_status=$?
8294 grep -v '^ *+' conftest.er1 >conftest.err
8295 rm -f conftest.er1
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_c_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest.$ac_objext; then
8302 ac_cv_member_struct_ifreq_ifr_netmask=yes
8303 else
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_cv_member_struct_ifreq_ifr_netmask=no
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8316 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8317 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8319 cat >>confdefs.h <<_ACEOF
8320 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8321 _ACEOF
8325 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8326 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8327 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330 cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h. */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 $ac_includes_default
8337 #if HAVE_SYS_SOCKET_H
8338 #include <sys/socket.h>
8339 #endif
8340 #if HAVE_NET_IF_H
8341 #include <net/if.h>
8342 #endif
8345 main ()
8347 static struct ifreq ac_aggr;
8348 if (ac_aggr.ifr_broadaddr)
8349 return 0;
8351 return 0;
8353 _ACEOF
8354 rm -f conftest.$ac_objext
8355 if { (ac_try="$ac_compile"
8356 case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8359 esac
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_compile") 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && {
8368 test -z "$ac_c_werror_flag" ||
8369 test ! -s conftest.err
8370 } && test -s conftest.$ac_objext; then
8371 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8372 else
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 #if HAVE_SYS_SOCKET_H
8384 #include <sys/socket.h>
8385 #endif
8386 #if HAVE_NET_IF_H
8387 #include <net/if.h>
8388 #endif
8391 main ()
8393 static struct ifreq ac_aggr;
8394 if (sizeof ac_aggr.ifr_broadaddr)
8395 return 0;
8397 return 0;
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (ac_try="$ac_compile"
8402 case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_compile") 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } && {
8414 test -z "$ac_c_werror_flag" ||
8415 test ! -s conftest.err
8416 } && test -s conftest.$ac_objext; then
8417 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8418 else
8419 echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8422 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8431 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8432 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8434 cat >>confdefs.h <<_ACEOF
8435 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8436 _ACEOF
8440 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8441 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8442 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h. */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 $ac_includes_default
8452 #if HAVE_SYS_SOCKET_H
8453 #include <sys/socket.h>
8454 #endif
8455 #if HAVE_NET_IF_H
8456 #include <net/if.h>
8457 #endif
8460 main ()
8462 static struct ifreq ac_aggr;
8463 if (ac_aggr.ifr_addr)
8464 return 0;
8466 return 0;
8468 _ACEOF
8469 rm -f conftest.$ac_objext
8470 if { (ac_try="$ac_compile"
8471 case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_compile") 2>conftest.er1
8477 ac_status=$?
8478 grep -v '^ *+' conftest.er1 >conftest.err
8479 rm -f conftest.er1
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && {
8483 test -z "$ac_c_werror_flag" ||
8484 test ! -s conftest.err
8485 } && test -s conftest.$ac_objext; then
8486 ac_cv_member_struct_ifreq_ifr_addr=yes
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h. */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8497 $ac_includes_default
8498 #if HAVE_SYS_SOCKET_H
8499 #include <sys/socket.h>
8500 #endif
8501 #if HAVE_NET_IF_H
8502 #include <net/if.h>
8503 #endif
8506 main ()
8508 static struct ifreq ac_aggr;
8509 if (sizeof ac_aggr.ifr_addr)
8510 return 0;
8512 return 0;
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (ac_try="$ac_compile"
8517 case "(($ac_try" in
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8520 esac
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_compile") 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } && {
8529 test -z "$ac_c_werror_flag" ||
8530 test ! -s conftest.err
8531 } && test -s conftest.$ac_objext; then
8532 ac_cv_member_struct_ifreq_ifr_addr=yes
8533 else
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8537 ac_cv_member_struct_ifreq_ifr_addr=no
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8546 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8547 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8549 cat >>confdefs.h <<_ACEOF
8550 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8551 _ACEOF
8558 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8559 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8560 if test "$ac_cv_prog_cc_c89" != no; then
8561 { echo "$as_me:$LINENO: result: yes" >&5
8562 echo "${ECHO_T}yes" >&6; }
8564 cat >>confdefs.h <<\_ACEOF
8565 #define PROTOTYPES 1
8566 _ACEOF
8569 cat >>confdefs.h <<\_ACEOF
8570 #define __PROTOTYPES 1
8571 _ACEOF
8573 else
8574 { echo "$as_me:$LINENO: result: no" >&5
8575 echo "${ECHO_T}no" >&6; }
8578 { echo "$as_me:$LINENO: checking for working volatile" >&5
8579 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8580 if test "${ac_cv_c_volatile+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583 cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h. */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8591 main ()
8594 volatile int x;
8595 int * volatile y = (int *) 0;
8596 return !x && !y;
8598 return 0;
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8609 ac_status=$?
8610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } && {
8615 test -z "$ac_c_werror_flag" ||
8616 test ! -s conftest.err
8617 } && test -s conftest.$ac_objext; then
8618 ac_cv_c_volatile=yes
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cv_c_volatile=no
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8629 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8630 if test $ac_cv_c_volatile = no; then
8632 cat >>confdefs.h <<\_ACEOF
8633 #define volatile
8634 _ACEOF
8638 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8639 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8640 if test "${ac_cv_c_const+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h. */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8651 main ()
8653 /* FIXME: Include the comments suggested by Paul. */
8654 #ifndef __cplusplus
8655 /* Ultrix mips cc rejects this. */
8656 typedef int charset[2];
8657 const charset cs;
8658 /* SunOS 4.1.1 cc rejects this. */
8659 char const *const *pcpcc;
8660 char **ppc;
8661 /* NEC SVR4.0.2 mips cc rejects this. */
8662 struct point {int x, y;};
8663 static struct point const zero = {0,0};
8664 /* AIX XL C 1.02.0.0 rejects this.
8665 It does not let you subtract one const X* pointer from another in
8666 an arm of an if-expression whose if-part is not a constant
8667 expression */
8668 const char *g = "string";
8669 pcpcc = &g + (g ? g-g : 0);
8670 /* HPUX 7.0 cc rejects these. */
8671 ++pcpcc;
8672 ppc = (char**) pcpcc;
8673 pcpcc = (char const *const *) ppc;
8674 { /* SCO 3.2v4 cc rejects this. */
8675 char *t;
8676 char const *s = 0 ? (char *) 0 : (char const *) 0;
8678 *t++ = 0;
8679 if (s) return 0;
8681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8682 int x[] = {25, 17};
8683 const int *foo = &x[0];
8684 ++foo;
8686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8687 typedef const int *iptr;
8688 iptr p = 0;
8689 ++p;
8691 { /* AIX XL C 1.02.0.0 rejects this saying
8692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8693 struct s { int j; const int *ap[3]; };
8694 struct s *b; b->j = 5;
8696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8697 const int foo = 10;
8698 if (!foo) return 0;
8700 return !cs[0] && !zero.x;
8701 #endif
8704 return 0;
8706 _ACEOF
8707 rm -f conftest.$ac_objext
8708 if { (ac_try="$ac_compile"
8709 case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712 esac
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_compile") 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } && {
8721 test -z "$ac_c_werror_flag" ||
8722 test ! -s conftest.err
8723 } && test -s conftest.$ac_objext; then
8724 ac_cv_c_const=yes
8725 else
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 ac_cv_c_const=no
8732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8735 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8736 if test $ac_cv_c_const = no; then
8738 cat >>confdefs.h <<\_ACEOF
8739 #define const
8740 _ACEOF
8744 { echo "$as_me:$LINENO: checking for void * support" >&5
8745 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8746 if test "${emacs_cv_void_star+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h. */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8757 main ()
8759 void * foo;
8761 return 0;
8763 _ACEOF
8764 rm -f conftest.$ac_objext
8765 if { (ac_try="$ac_compile"
8766 case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8769 esac
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_compile") 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && {
8778 test -z "$ac_c_werror_flag" ||
8779 test ! -s conftest.err
8780 } && test -s conftest.$ac_objext; then
8781 emacs_cv_void_star=yes
8782 else
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 emacs_cv_void_star=no
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8792 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8793 if test $emacs_cv_void_star = yes; then
8794 cat >>confdefs.h <<\_ACEOF
8795 #define POINTER_TYPE void
8796 _ACEOF
8798 else
8799 cat >>confdefs.h <<\_ACEOF
8800 #define POINTER_TYPE char
8801 _ACEOF
8809 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8810 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8811 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8812 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815 cat >conftest.make <<\_ACEOF
8816 SHELL = /bin/sh
8817 all:
8818 @echo '@@@%%%=$(MAKE)=@@@%%%'
8819 _ACEOF
8820 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8821 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8822 *@@@%%%=?*=@@@%%%*)
8823 eval ac_cv_prog_make_${ac_make}_set=yes;;
8825 eval ac_cv_prog_make_${ac_make}_set=no;;
8826 esac
8827 rm -f conftest.make
8829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8830 { echo "$as_me:$LINENO: result: yes" >&5
8831 echo "${ECHO_T}yes" >&6; }
8832 SET_MAKE=
8833 else
8834 { echo "$as_me:$LINENO: result: no" >&5
8835 echo "${ECHO_T}no" >&6; }
8836 SET_MAKE="MAKE=${MAKE-make}"
8840 { echo "$as_me:$LINENO: checking for long file names" >&5
8841 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8842 if test "${ac_cv_sys_long_file_names+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 else
8845 ac_cv_sys_long_file_names=yes
8846 # Test for long file names in all the places we know might matter:
8847 # . the current directory, where building will happen
8848 # $prefix/lib where we will be installing things
8849 # $exec_prefix/lib likewise
8850 # $TMPDIR if set, where it might want to write temporary files
8851 # /tmp where it might want to write temporary files
8852 # /var/tmp likewise
8853 # /usr/tmp likewise
8854 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8855 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8856 # in the usual case where exec_prefix is '${prefix}'.
8857 case $ac_dir in #(
8858 . | /* | ?:[\\/]*) ;; #(
8859 *) continue;;
8860 esac
8861 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8862 ac_xdir=$ac_dir/cf$$
8863 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8864 ac_tf1=$ac_xdir/conftest9012345
8865 ac_tf2=$ac_xdir/conftest9012346
8866 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8867 ac_cv_sys_long_file_names=no
8868 rm -f -r "$ac_xdir" 2>/dev/null
8869 test $ac_cv_sys_long_file_names = no && break
8870 done
8872 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8873 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8874 if test $ac_cv_sys_long_file_names = yes; then
8876 cat >>confdefs.h <<\_ACEOF
8877 #define HAVE_LONG_FILE_NAMES 1
8878 _ACEOF
8883 #### Choose a window system.
8885 { echo "$as_me:$LINENO: checking for X" >&5
8886 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8889 # Check whether --with-x was given.
8890 if test "${with_x+set}" = set; then
8891 withval=$with_x;
8894 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8895 if test "x$with_x" = xno; then
8896 # The user explicitly disabled X.
8897 have_x=disabled
8898 else
8899 case $x_includes,$x_libraries in #(
8900 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8901 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8902 { (exit 1); exit 1; }; };; #(
8903 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906 # One or both of the vars are not set, and there is no cached value.
8907 ac_x_includes=no ac_x_libraries=no
8908 rm -f -r conftest.dir
8909 if mkdir conftest.dir; then
8910 cd conftest.dir
8911 cat >Imakefile <<'_ACEOF'
8912 incroot:
8913 @echo incroot='${INCROOT}'
8914 usrlibdir:
8915 @echo usrlibdir='${USRLIBDIR}'
8916 libdir:
8917 @echo libdir='${LIBDIR}'
8918 _ACEOF
8919 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8921 for ac_var in incroot usrlibdir libdir; do
8922 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8923 done
8924 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8925 for ac_extension in a so sl; do
8926 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8927 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8928 ac_im_usrlibdir=$ac_im_libdir; break
8930 done
8931 # Screen out bogus values from the imake configuration. They are
8932 # bogus both because they are the default anyway, and because
8933 # using them would break gcc on systems where it needs fixed includes.
8934 case $ac_im_incroot in
8935 /usr/include) ac_x_includes= ;;
8936 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8937 esac
8938 case $ac_im_usrlibdir in
8939 /usr/lib | /lib) ;;
8940 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8941 esac
8943 cd ..
8944 rm -f -r conftest.dir
8947 # Standard set of common directories for X headers.
8948 # Check X11 before X11Rn because it is often a symlink to the current release.
8949 ac_x_header_dirs='
8950 /usr/X11/include
8951 /usr/X11R6/include
8952 /usr/X11R5/include
8953 /usr/X11R4/include
8955 /usr/include/X11
8956 /usr/include/X11R6
8957 /usr/include/X11R5
8958 /usr/include/X11R4
8960 /usr/local/X11/include
8961 /usr/local/X11R6/include
8962 /usr/local/X11R5/include
8963 /usr/local/X11R4/include
8965 /usr/local/include/X11
8966 /usr/local/include/X11R6
8967 /usr/local/include/X11R5
8968 /usr/local/include/X11R4
8970 /usr/X386/include
8971 /usr/x386/include
8972 /usr/XFree86/include/X11
8974 /usr/include
8975 /usr/local/include
8976 /usr/unsupported/include
8977 /usr/athena/include
8978 /usr/local/x11r5/include
8979 /usr/lpp/Xamples/include
8981 /usr/openwin/include
8982 /usr/openwin/share/include'
8984 if test "$ac_x_includes" = no; then
8985 # Guess where to find include files, by looking for Xlib.h.
8986 # First, try using that file with no special directory specified.
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h. */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 #include <X11/Xlib.h>
8994 _ACEOF
8995 if { (ac_try="$ac_cpp conftest.$ac_ext"
8996 case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
8999 esac
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } >/dev/null && {
9008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9009 test ! -s conftest.err
9010 }; then
9011 # We can compile using X headers with no special include directory.
9012 ac_x_includes=
9013 else
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9017 for ac_dir in $ac_x_header_dirs; do
9018 if test -r "$ac_dir/X11/Xlib.h"; then
9019 ac_x_includes=$ac_dir
9020 break
9022 done
9025 rm -f conftest.err conftest.$ac_ext
9026 fi # $ac_x_includes = no
9028 if test "$ac_x_libraries" = no; then
9029 # Check for the libraries.
9030 # See if we find them without any special options.
9031 # Don't add to $LIBS permanently.
9032 ac_save_LIBS=$LIBS
9033 LIBS="-lX11 $LIBS"
9034 cat >conftest.$ac_ext <<_ACEOF
9035 /* confdefs.h. */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9040 #include <X11/Xlib.h>
9042 main ()
9044 XrmInitialize ()
9046 return 0;
9048 _ACEOF
9049 rm -f conftest.$ac_objext conftest$ac_exeext
9050 if { (ac_try="$ac_link"
9051 case "(($ac_try" in
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9054 esac
9055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9056 (eval "$ac_link") 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && {
9063 test -z "$ac_c_werror_flag" ||
9064 test ! -s conftest.err
9065 } && test -s conftest$ac_exeext &&
9066 $as_test_x conftest$ac_exeext; then
9067 LIBS=$ac_save_LIBS
9068 # We can link X programs with no special library path.
9069 ac_x_libraries=
9070 else
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9074 LIBS=$ac_save_LIBS
9075 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9077 # Don't even attempt the hair of trying to link an X program!
9078 for ac_extension in a so sl; do
9079 if test -r "$ac_dir/libX11.$ac_extension"; then
9080 ac_x_libraries=$ac_dir
9081 break 2
9083 done
9084 done
9087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9088 conftest$ac_exeext conftest.$ac_ext
9089 fi # $ac_x_libraries = no
9091 case $ac_x_includes,$ac_x_libraries in #(
9092 no,* | *,no | *\'*)
9093 # Didn't find X, or a directory has "'" in its name.
9094 ac_cv_have_x="have_x=no";; #(
9096 # Record where we found X for the cache.
9097 ac_cv_have_x="have_x=yes\
9098 ac_x_includes='$ac_x_includes'\
9099 ac_x_libraries='$ac_x_libraries'"
9100 esac
9102 ;; #(
9103 *) have_x=yes;;
9104 esac
9105 eval "$ac_cv_have_x"
9106 fi # $with_x != no
9108 if test "$have_x" != yes; then
9109 { echo "$as_me:$LINENO: result: $have_x" >&5
9110 echo "${ECHO_T}$have_x" >&6; }
9111 no_x=yes
9112 else
9113 # If each of the values was on the command line, it overrides each guess.
9114 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9115 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9116 # Update the cache value to reflect the command line values.
9117 ac_cv_have_x="have_x=yes\
9118 ac_x_includes='$x_includes'\
9119 ac_x_libraries='$x_libraries'"
9120 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9121 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9124 if test "$no_x" = yes; then
9125 window_system=none
9126 else
9127 window_system=x11
9130 ## Workaround for bug in autoconf <= 2.62.
9131 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9132 ## No need to do anything special for these standard directories.
9133 ## This is an experiment, take it out if it causes problems.
9134 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9136 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9140 if test "${x_libraries}" != NONE; then
9141 if test -n "${x_libraries}"; then
9142 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9143 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9145 x_default_search_path=""
9146 x_search_path=${x_libraries}
9147 if test -z "${x_search_path}"; then
9148 x_search_path=/usr/lib
9150 for x_library in `echo ${x_search_path}: | \
9151 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9152 x_search_path="\
9153 ${x_library}/X11/%L/%T/%N%C%S:\
9154 ${x_library}/X11/%l/%T/%N%C%S:\
9155 ${x_library}/X11/%T/%N%C%S:\
9156 ${x_library}/X11/%L/%T/%N%S:\
9157 ${x_library}/X11/%l/%T/%N%S:\
9158 ${x_library}/X11/%T/%N%S"
9159 if test x"${x_default_search_path}" = x; then
9160 x_default_search_path=${x_search_path}
9161 else
9162 x_default_search_path="${x_search_path}:${x_default_search_path}"
9164 done
9166 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9167 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9170 if test x"${x_includes}" = x; then
9171 bitmapdir=/usr/include/X11/bitmaps
9172 else
9173 # accumulate include directories that have X11 bitmap subdirectories
9174 bmd_acc="dummyval"
9175 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9176 if test -d "${bmd}/X11/bitmaps"; then
9177 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9179 if test -d "${bmd}/bitmaps"; then
9180 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9182 done
9183 if test ${bmd_acc} != "dummyval"; then
9184 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9188 HAVE_NS=no
9189 NS_IMPL_COCOA=no
9190 NS_IMPL_GNUSTEP=no
9191 tmp_CPPFLAGS="$CPPFLAGS"
9192 tmp_CFLAGS="$CFLAGS"
9193 CPPFLAGS="$CPPFLAGS -x objective-c"
9194 CFLAGS="$CFLAGS -x objective-c"
9195 if test "${with_ns}" != no; then
9196 if test "${opsys}" = darwin; then
9197 NS_IMPL_COCOA=yes
9198 ns_appdir=`pwd`/nextstep/Emacs.app
9199 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9200 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9201 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9202 elif test -f /etc/GNUstep/GNUstep.conf; then
9203 NS_IMPL_GNUSTEP=yes
9204 ns_appdir=`pwd`/nextstep/Emacs.app
9205 ns_appbindir=`pwd`/nextstep/Emacs.app
9206 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9207 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9208 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9209 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9210 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9211 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9212 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9213 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9214 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9216 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9217 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9218 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9219 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9223 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9224 else
9225 # Is the header compilable?
9226 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9227 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9228 cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h. */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 $ac_includes_default
9235 #include <AppKit/AppKit.h>
9236 _ACEOF
9237 rm -f conftest.$ac_objext
9238 if { (ac_try="$ac_compile"
9239 case "(($ac_try" in
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9242 esac
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_compile") 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest.$ac_objext; then
9254 ac_header_compiler=yes
9255 else
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 ac_header_compiler=no
9262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9264 echo "${ECHO_T}$ac_header_compiler" >&6; }
9266 # Is the header present?
9267 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9268 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 #include <AppKit/AppKit.h>
9276 _ACEOF
9277 if { (ac_try="$ac_cpp conftest.$ac_ext"
9278 case "(($ac_try" in
9279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9281 esac
9282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } >/dev/null && {
9290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9291 test ! -s conftest.err
9292 }; then
9293 ac_header_preproc=yes
9294 else
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_header_preproc=no
9301 rm -f conftest.err conftest.$ac_ext
9302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9303 echo "${ECHO_T}$ac_header_preproc" >&6; }
9305 # So? What about this header?
9306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9307 yes:no: )
9308 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9309 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9312 ac_header_preproc=yes
9314 no:yes:* )
9315 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9316 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9318 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9320 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9322 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9324 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9326 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9329 esac
9330 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9331 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9332 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 else
9335 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9337 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9338 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9341 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9342 HAVE_NS=yes
9346 NS_HAVE_NSINTEGER=yes
9347 cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h. */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 #include <Foundation/NSObjCRuntime.h>
9355 main ()
9357 NSInteger i;
9359 return 0;
9361 _ACEOF
9362 rm -f conftest.$ac_objext
9363 if { (ac_try="$ac_compile"
9364 case "(($ac_try" in
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9367 esac
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_compile") 2>conftest.er1
9370 ac_status=$?
9371 grep -v '^ *+' conftest.er1 >conftest.err
9372 rm -f conftest.er1
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } && {
9376 test -z "$ac_c_werror_flag" ||
9377 test ! -s conftest.err
9378 } && test -s conftest.$ac_objext; then
9379 ns_have_nsinteger=yes
9380 else
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9384 ns_have_nsinteger=no
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388 if test $ns_have_nsinteger = no; then
9389 NS_HAVE_NSINTEGER=no
9392 if test "${HAVE_NS}" = yes; then
9393 window_system=nextstep
9394 with_xft=no
9395 with_freetype=no
9396 # set up packaging dirs
9397 exec_prefix=${ns_appbindir}
9398 libexecdir=${ns_appbindir}/libexec
9399 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9400 prefix=${ns_appresdir}
9403 CFLAGS="$tmp_CFLAGS"
9404 CPPFLAGS="$tmp_CPPFLAGS"
9406 case "${window_system}" in
9407 x11 )
9408 HAVE_X_WINDOWS=yes
9409 HAVE_X11=yes
9410 case "${with_x_toolkit}" in
9411 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9412 motif ) USE_X_TOOLKIT=MOTIF ;;
9413 gtk ) with_gtk=yes
9414 USE_X_TOOLKIT=none ;;
9415 no ) USE_X_TOOLKIT=none ;;
9416 * ) USE_X_TOOLKIT=maybe ;;
9417 esac
9419 nextstep | none )
9420 HAVE_X_WINDOWS=no
9421 HAVE_X11=no
9422 USE_X_TOOLKIT=none
9424 esac
9426 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9427 # Extract the first word of "X", so it can be a program name with args.
9428 set dummy X; ac_word=$2
9429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9431 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434 if test -n "$HAVE_XSERVER"; then
9435 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9436 else
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 for as_dir in $PATH
9440 IFS=$as_save_IFS
9441 test -z "$as_dir" && as_dir=.
9442 for ac_exec_ext in '' $ac_executable_extensions; do
9443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9444 ac_cv_prog_HAVE_XSERVER="true"
9445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 break 2
9448 done
9449 done
9450 IFS=$as_save_IFS
9452 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9455 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9456 if test -n "$HAVE_XSERVER"; then
9457 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9458 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9459 else
9460 { echo "$as_me:$LINENO: result: no" >&5
9461 echo "${ECHO_T}no" >&6; }
9465 if test "$HAVE_XSERVER" = true ||
9466 test -n "$DISPLAY" ||
9467 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9468 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9469 were found. You should install the relevant development files for X
9470 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9471 sure you have development files for image handling, i.e.
9472 tiff, gif, jpeg, png and xpm.
9473 If you are sure you want Emacs compiled without X window support, pass
9474 --without-x
9475 to configure." >&5
9476 echo "$as_me: error: You seem to be running X, but no X development libraries
9477 were found. You should install the relevant development files for X
9478 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9479 sure you have development files for image handling, i.e.
9480 tiff, gif, jpeg, png and xpm.
9481 If you are sure you want Emacs compiled without X window support, pass
9482 --without-x
9483 to configure." >&2;}
9484 { (exit 1); exit 1; }; }
9488 ### If we're using X11, we should use the X menu package.
9489 HAVE_MENUS=no
9490 case ${HAVE_X11} in
9491 yes ) HAVE_MENUS=yes ;;
9492 esac
9494 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9495 # Assume not, until told otherwise.
9496 GNU_MALLOC=yes
9497 doug_lea_malloc=yes
9498 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9499 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9500 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9511 #define malloc_get_state innocuous_malloc_get_state
9513 /* System header to define __stub macros and hopefully few prototypes,
9514 which can conflict with char malloc_get_state (); below.
9515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516 <limits.h> exists even on freestanding compilers. */
9518 #ifdef __STDC__
9519 # include <limits.h>
9520 #else
9521 # include <assert.h>
9522 #endif
9524 #undef malloc_get_state
9526 /* Override any GCC internal prototype to avoid an error.
9527 Use char because int might match the return type of a GCC
9528 builtin and then its argument prototype would still apply. */
9529 #ifdef __cplusplus
9530 extern "C"
9531 #endif
9532 char malloc_get_state ();
9533 /* The GNU C library defines this for functions which it implements
9534 to always fail with ENOSYS. Some functions are actually named
9535 something starting with __ and the normal name is an alias. */
9536 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9537 choke me
9538 #endif
9541 main ()
9543 return malloc_get_state ();
9545 return 0;
9547 _ACEOF
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (ac_try="$ac_link"
9550 case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9553 esac
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_link") 2>conftest.er1
9556 ac_status=$?
9557 grep -v '^ *+' conftest.er1 >conftest.err
9558 rm -f conftest.er1
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } && {
9562 test -z "$ac_c_werror_flag" ||
9563 test ! -s conftest.err
9564 } && test -s conftest$ac_exeext &&
9565 $as_test_x conftest$ac_exeext; then
9566 ac_cv_func_malloc_get_state=yes
9567 else
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ac_cv_func_malloc_get_state=no
9574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9575 conftest$ac_exeext conftest.$ac_ext
9577 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9578 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9579 if test $ac_cv_func_malloc_get_state = yes; then
9581 else
9582 doug_lea_malloc=no
9585 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9586 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9587 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 else
9590 cat >conftest.$ac_ext <<_ACEOF
9591 /* confdefs.h. */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9596 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9598 #define malloc_set_state innocuous_malloc_set_state
9600 /* System header to define __stub macros and hopefully few prototypes,
9601 which can conflict with char malloc_set_state (); below.
9602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9603 <limits.h> exists even on freestanding compilers. */
9605 #ifdef __STDC__
9606 # include <limits.h>
9607 #else
9608 # include <assert.h>
9609 #endif
9611 #undef malloc_set_state
9613 /* Override any GCC internal prototype to avoid an error.
9614 Use char because int might match the return type of a GCC
9615 builtin and then its argument prototype would still apply. */
9616 #ifdef __cplusplus
9617 extern "C"
9618 #endif
9619 char malloc_set_state ();
9620 /* The GNU C library defines this for functions which it implements
9621 to always fail with ENOSYS. Some functions are actually named
9622 something starting with __ and the normal name is an alias. */
9623 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9624 choke me
9625 #endif
9628 main ()
9630 return malloc_set_state ();
9632 return 0;
9634 _ACEOF
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (ac_try="$ac_link"
9637 case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9640 esac
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_link") 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && {
9649 test -z "$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 } && test -s conftest$ac_exeext &&
9652 $as_test_x conftest$ac_exeext; then
9653 ac_cv_func_malloc_set_state=yes
9654 else
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 ac_cv_func_malloc_set_state=no
9661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9662 conftest$ac_exeext conftest.$ac_ext
9664 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9665 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9666 if test $ac_cv_func_malloc_set_state = yes; then
9668 else
9669 doug_lea_malloc=no
9672 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9673 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9674 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9683 extern void (* __after_morecore_hook)();
9685 main ()
9687 __after_morecore_hook = 0
9689 return 0;
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9694 case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697 esac
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } && {
9706 test -z "$ac_c_werror_flag" ||
9707 test ! -s conftest.err
9708 } && test -s conftest$ac_exeext &&
9709 $as_test_x conftest$ac_exeext; then
9710 emacs_cv_var___after_morecore_hook=yes
9711 else
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9715 emacs_cv_var___after_morecore_hook=no
9718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9719 conftest$ac_exeext conftest.$ac_ext
9721 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9722 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9723 if test $emacs_cv_var___after_morecore_hook = no; then
9724 doug_lea_malloc=no
9726 if test "${system_malloc}" = "yes"; then
9727 GNU_MALLOC=no
9728 GNU_MALLOC_reason="
9729 (The GNU allocators don't work with this system configuration.)"
9731 if test "$doug_lea_malloc" = "yes" ; then
9732 if test "$GNU_MALLOC" = yes ; then
9733 GNU_MALLOC_reason="
9734 (Using Doug Lea's new malloc from the GNU C Library.)"
9737 cat >>confdefs.h <<\_ACEOF
9738 #define DOUG_LEA_MALLOC 1
9739 _ACEOF
9743 if test x"${REL_ALLOC}" = x; then
9744 REL_ALLOC=${GNU_MALLOC}
9750 for ac_header in stdlib.h unistd.h
9752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 ac_res=`eval echo '${'$as_ac_Header'}'`
9760 { echo "$as_me:$LINENO: result: $ac_res" >&5
9761 echo "${ECHO_T}$ac_res" >&6; }
9762 else
9763 # Is the header compilable?
9764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9766 cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h. */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 $ac_includes_default
9773 #include <$ac_header>
9774 _ACEOF
9775 rm -f conftest.$ac_objext
9776 if { (ac_try="$ac_compile"
9777 case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_compile") 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest.$ac_objext; then
9792 ac_header_compiler=yes
9793 else
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9797 ac_header_compiler=no
9800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9802 echo "${ECHO_T}$ac_header_compiler" >&6; }
9804 # Is the header present?
9805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9807 cat >conftest.$ac_ext <<_ACEOF
9808 /* confdefs.h. */
9809 _ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 #include <$ac_header>
9814 _ACEOF
9815 if { (ac_try="$ac_cpp conftest.$ac_ext"
9816 case "(($ac_try" in
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9819 esac
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } >/dev/null && {
9828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9829 test ! -s conftest.err
9830 }; then
9831 ac_header_preproc=yes
9832 else
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9836 ac_header_preproc=no
9839 rm -f conftest.err conftest.$ac_ext
9840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9841 echo "${ECHO_T}$ac_header_preproc" >&6; }
9843 # So? What about this header?
9844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9845 yes:no: )
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9850 ac_header_preproc=yes
9852 no:yes:* )
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9867 esac
9868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873 eval "$as_ac_Header=\$ac_header_preproc"
9875 ac_res=`eval echo '${'$as_ac_Header'}'`
9876 { echo "$as_me:$LINENO: result: $ac_res" >&5
9877 echo "${ECHO_T}$ac_res" >&6; }
9880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9881 cat >>confdefs.h <<_ACEOF
9882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9883 _ACEOF
9887 done
9890 for ac_func in getpagesize
9892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h. */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9906 #define $ac_func innocuous_$ac_func
9908 /* System header to define __stub macros and hopefully few prototypes,
9909 which can conflict with char $ac_func (); below.
9910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9911 <limits.h> exists even on freestanding compilers. */
9913 #ifdef __STDC__
9914 # include <limits.h>
9915 #else
9916 # include <assert.h>
9917 #endif
9919 #undef $ac_func
9921 /* Override any GCC internal prototype to avoid an error.
9922 Use char because int might match the return type of a GCC
9923 builtin and then its argument prototype would still apply. */
9924 #ifdef __cplusplus
9925 extern "C"
9926 #endif
9927 char $ac_func ();
9928 /* The GNU C library defines this for functions which it implements
9929 to always fail with ENOSYS. Some functions are actually named
9930 something starting with __ and the normal name is an alias. */
9931 #if defined __stub_$ac_func || defined __stub___$ac_func
9932 choke me
9933 #endif
9936 main ()
9938 return $ac_func ();
9940 return 0;
9942 _ACEOF
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (ac_try="$ac_link"
9945 case "(($ac_try" in
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9948 esac
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_link") 2>conftest.er1
9951 ac_status=$?
9952 grep -v '^ *+' conftest.er1 >conftest.err
9953 rm -f conftest.er1
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && {
9957 test -z "$ac_c_werror_flag" ||
9958 test ! -s conftest.err
9959 } && test -s conftest$ac_exeext &&
9960 $as_test_x conftest$ac_exeext; then
9961 eval "$as_ac_var=yes"
9962 else
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9966 eval "$as_ac_var=no"
9969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9970 conftest$ac_exeext conftest.$ac_ext
9972 ac_res=`eval echo '${'$as_ac_var'}'`
9973 { echo "$as_me:$LINENO: result: $ac_res" >&5
9974 echo "${ECHO_T}$ac_res" >&6; }
9975 if test `eval echo '${'$as_ac_var'}'` = yes; then
9976 cat >>confdefs.h <<_ACEOF
9977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9978 _ACEOF
9981 done
9983 { echo "$as_me:$LINENO: checking for working mmap" >&5
9984 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9985 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988 if test "$cross_compiling" = yes; then
9989 ac_cv_func_mmap_fixed_mapped=no
9990 else
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h. */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997 $ac_includes_default
9998 /* malloc might have been renamed as rpl_malloc. */
9999 #undef malloc
10001 /* Thanks to Mike Haertel and Jim Avera for this test.
10002 Here is a matrix of mmap possibilities:
10003 mmap private not fixed
10004 mmap private fixed at somewhere currently unmapped
10005 mmap private fixed at somewhere already mapped
10006 mmap shared not fixed
10007 mmap shared fixed at somewhere currently unmapped
10008 mmap shared fixed at somewhere already mapped
10009 For private mappings, we should verify that changes cannot be read()
10010 back from the file, nor mmap's back from the file at a different
10011 address. (There have been systems where private was not correctly
10012 implemented like the infamous i386 svr4.0, and systems where the
10013 VM page cache was not coherent with the file system buffer cache
10014 like early versions of FreeBSD and possibly contemporary NetBSD.)
10015 For shared mappings, we should conversely verify that changes get
10016 propagated back to all the places they're supposed to be.
10018 Grep wants private fixed already mapped.
10019 The main things grep needs to know about mmap are:
10020 * does it exist and is it safe to write into the mmap'd area
10021 * how to use it (BSD variants) */
10023 #include <fcntl.h>
10024 #include <sys/mman.h>
10026 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10027 char *malloc ();
10028 #endif
10030 /* This mess was copied from the GNU getpagesize.h. */
10031 #ifndef HAVE_GETPAGESIZE
10032 /* Assume that all systems that can run configure have sys/param.h. */
10033 # ifndef HAVE_SYS_PARAM_H
10034 # define HAVE_SYS_PARAM_H 1
10035 # endif
10037 # ifdef _SC_PAGESIZE
10038 # define getpagesize() sysconf(_SC_PAGESIZE)
10039 # else /* no _SC_PAGESIZE */
10040 # ifdef HAVE_SYS_PARAM_H
10041 # include <sys/param.h>
10042 # ifdef EXEC_PAGESIZE
10043 # define getpagesize() EXEC_PAGESIZE
10044 # else /* no EXEC_PAGESIZE */
10045 # ifdef NBPG
10046 # define getpagesize() NBPG * CLSIZE
10047 # ifndef CLSIZE
10048 # define CLSIZE 1
10049 # endif /* no CLSIZE */
10050 # else /* no NBPG */
10051 # ifdef NBPC
10052 # define getpagesize() NBPC
10053 # else /* no NBPC */
10054 # ifdef PAGESIZE
10055 # define getpagesize() PAGESIZE
10056 # endif /* PAGESIZE */
10057 # endif /* no NBPC */
10058 # endif /* no NBPG */
10059 # endif /* no EXEC_PAGESIZE */
10060 # else /* no HAVE_SYS_PARAM_H */
10061 # define getpagesize() 8192 /* punt totally */
10062 # endif /* no HAVE_SYS_PARAM_H */
10063 # endif /* no _SC_PAGESIZE */
10065 #endif /* no HAVE_GETPAGESIZE */
10068 main ()
10070 char *data, *data2, *data3;
10071 int i, pagesize;
10072 int fd;
10074 pagesize = getpagesize ();
10076 /* First, make a file with some known garbage in it. */
10077 data = (char *) malloc (pagesize);
10078 if (!data)
10079 return 1;
10080 for (i = 0; i < pagesize; ++i)
10081 *(data + i) = rand ();
10082 umask (0);
10083 fd = creat ("conftest.mmap", 0600);
10084 if (fd < 0)
10085 return 1;
10086 if (write (fd, data, pagesize) != pagesize)
10087 return 1;
10088 close (fd);
10090 /* Next, try to mmap the file at a fixed address which already has
10091 something else allocated at it. If we can, also make sure that
10092 we see the same garbage. */
10093 fd = open ("conftest.mmap", O_RDWR);
10094 if (fd < 0)
10095 return 1;
10096 data2 = (char *) malloc (2 * pagesize);
10097 if (!data2)
10098 return 1;
10099 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10100 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10101 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10102 return 1;
10103 for (i = 0; i < pagesize; ++i)
10104 if (*(data + i) != *(data2 + i))
10105 return 1;
10107 /* Finally, make sure that changes to the mapped area do not
10108 percolate back to the file as seen by read(). (This is a bug on
10109 some variants of i386 svr4.0.) */
10110 for (i = 0; i < pagesize; ++i)
10111 *(data2 + i) = *(data2 + i) + 1;
10112 data3 = (char *) malloc (pagesize);
10113 if (!data3)
10114 return 1;
10115 if (read (fd, data3, pagesize) != pagesize)
10116 return 1;
10117 for (i = 0; i < pagesize; ++i)
10118 if (*(data + i) != *(data3 + i))
10119 return 1;
10120 close (fd);
10121 return 0;
10123 _ACEOF
10124 rm -f conftest$ac_exeext
10125 if { (ac_try="$ac_link"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10135 { (case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_try") 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_func_mmap_fixed_mapped=yes
10145 else
10146 echo "$as_me: program exited with status $ac_status" >&5
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 ( exit $ac_status )
10151 ac_cv_func_mmap_fixed_mapped=no
10153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10158 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10159 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10160 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10162 cat >>confdefs.h <<\_ACEOF
10163 #define HAVE_MMAP 1
10164 _ACEOF
10167 rm -f conftest.mmap
10169 if test $use_mmap_for_buffers = yes; then
10170 REL_ALLOC=no
10173 LIBS="$libsrc_libs $LIBS"
10176 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10177 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10178 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181 ac_check_lib_save_LIBS=$LIBS
10182 LIBS="-ldnet $LIBS"
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10190 /* Override any GCC internal prototype to avoid an error.
10191 Use char because int might match the return type of a GCC
10192 builtin and then its argument prototype would still apply. */
10193 #ifdef __cplusplus
10194 extern "C"
10195 #endif
10196 char dnet_ntoa ();
10198 main ()
10200 return dnet_ntoa ();
10202 return 0;
10204 _ACEOF
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>conftest.er1
10213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest$ac_exeext &&
10222 $as_test_x conftest$ac_exeext; then
10223 ac_cv_lib_dnet_dnet_ntoa=yes
10224 else
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 ac_cv_lib_dnet_dnet_ntoa=no
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LIBS=$ac_check_lib_save_LIBS
10235 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10236 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10237 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239 #define HAVE_LIBDNET 1
10240 _ACEOF
10242 LIBS="-ldnet $LIBS"
10247 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10248 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10249 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252 ac_check_lib_save_LIBS=$LIBS
10253 LIBS="-lXbsd $LIBS"
10254 cat >conftest.$ac_ext <<_ACEOF
10255 /* confdefs.h. */
10256 _ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h. */
10263 main ()
10265 return main ();
10267 return 0;
10269 _ACEOF
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (ac_try="$ac_link"
10272 case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10275 esac
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_link") 2>conftest.er1
10278 ac_status=$?
10279 grep -v '^ *+' conftest.er1 >conftest.err
10280 rm -f conftest.er1
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } && {
10284 test -z "$ac_c_werror_flag" ||
10285 test ! -s conftest.err
10286 } && test -s conftest$ac_exeext &&
10287 $as_test_x conftest$ac_exeext; then
10288 ac_cv_lib_Xbsd_main=yes
10289 else
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 ac_cv_lib_Xbsd_main=no
10296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10297 conftest$ac_exeext conftest.$ac_ext
10298 LIBS=$ac_check_lib_save_LIBS
10300 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10301 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10302 if test $ac_cv_lib_Xbsd_main = yes; then
10303 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10308 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10309 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10310 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10313 ac_check_lib_save_LIBS=$LIBS
10314 LIBS="-lpthreads $LIBS"
10315 cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h. */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10322 /* Override any GCC internal prototype to avoid an error.
10323 Use char because int might match the return type of a GCC
10324 builtin and then its argument prototype would still apply. */
10325 #ifdef __cplusplus
10326 extern "C"
10327 #endif
10328 char cma_open ();
10330 main ()
10332 return cma_open ();
10334 return 0;
10336 _ACEOF
10337 rm -f conftest.$ac_objext conftest$ac_exeext
10338 if { (ac_try="$ac_link"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_link") 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest$ac_exeext &&
10354 $as_test_x conftest$ac_exeext; then
10355 ac_cv_lib_pthreads_cma_open=yes
10356 else
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10360 ac_cv_lib_pthreads_cma_open=no
10363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10364 conftest$ac_exeext conftest.$ac_ext
10365 LIBS=$ac_check_lib_save_LIBS
10367 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10368 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10369 if test $ac_cv_lib_pthreads_cma_open = yes; then
10370 cat >>confdefs.h <<_ACEOF
10371 #define HAVE_LIBPTHREADS 1
10372 _ACEOF
10374 LIBS="-lpthreads $LIBS"
10380 case ${host_os} in
10381 aix*)
10382 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10383 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10384 if test "${gdb_cv_bigtoc+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10388 case $GCC in
10389 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10390 *) gdb_cv_bigtoc=-bbigtoc ;;
10391 esac
10393 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10402 main ()
10404 int i;
10406 return 0;
10408 _ACEOF
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (ac_try="$ac_link"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414 esac
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_link") 2>conftest.er1
10417 ac_status=$?
10418 grep -v '^ *+' conftest.er1 >conftest.err
10419 rm -f conftest.er1
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } && {
10423 test -z "$ac_c_werror_flag" ||
10424 test ! -s conftest.err
10425 } && test -s conftest$ac_exeext &&
10426 $as_test_x conftest$ac_exeext; then
10428 else
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 gdb_cv_bigtoc=
10435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10436 conftest$ac_exeext conftest.$ac_ext
10439 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10440 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10442 esac
10444 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10445 # used for the tests that follow. We set them back to REAL_CFLAGS and
10446 # REAL_CPPFLAGS later on.
10448 REAL_CPPFLAGS="$CPPFLAGS"
10450 if test "${HAVE_X11}" = "yes"; then
10451 DEFS="$C_SWITCH_X_SITE $DEFS"
10452 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10453 LIBS="$LIBX $LIBS"
10454 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10455 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10457 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10458 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10459 # but it's more convenient here to set LD_RUN_PATH
10460 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10461 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10462 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10463 export LD_RUN_PATH
10466 if test "${opsys}" = "gnu-linux"; then
10467 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10468 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h. */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10477 main ()
10479 XOpenDisplay ("foo");
10481 return 0;
10483 _ACEOF
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (ac_try="$ac_link"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_link") 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && {
10498 test -z "$ac_c_werror_flag" ||
10499 test ! -s conftest.err
10500 } && test -s conftest$ac_exeext &&
10501 $as_test_x conftest$ac_exeext; then
10502 xlinux_first_failure=no
10503 else
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 xlinux_first_failure=yes
10510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511 conftest$ac_exeext conftest.$ac_ext
10512 if test "${xlinux_first_failure}" = "yes"; then
10513 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10514 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10515 OLD_CPPFLAGS="$CPPFLAGS"
10516 OLD_LIBS="$LIBS"
10517 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10518 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10519 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10520 LIBS="$LIBS -b i486-linuxaout"
10521 cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h. */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10529 main ()
10531 XOpenDisplay ("foo");
10533 return 0;
10535 _ACEOF
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_link") 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && {
10550 test -z "$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10552 } && test -s conftest$ac_exeext &&
10553 $as_test_x conftest$ac_exeext; then
10554 xlinux_second_failure=no
10555 else
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10559 xlinux_second_failure=yes
10562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10563 conftest$ac_exeext conftest.$ac_ext
10564 if test "${xlinux_second_failure}" = "yes"; then
10565 # If we get the same failure with -b, there is no use adding -b.
10566 # So take it out. This plays safe.
10567 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10568 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10569 CPPFLAGS="$OLD_CPPFLAGS"
10570 LIBS="$OLD_LIBS"
10571 { echo "$as_me:$LINENO: result: no" >&5
10572 echo "${ECHO_T}no" >&6; }
10573 else
10574 { echo "$as_me:$LINENO: result: yes" >&5
10575 echo "${ECHO_T}yes" >&6; }
10577 else
10578 { echo "$as_me:$LINENO: result: no" >&5
10579 echo "${ECHO_T}no" >&6; }
10583 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10584 # header files included from there.
10585 { echo "$as_me:$LINENO: checking for Xkb" >&5
10586 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593 #include <X11/Xlib.h>
10594 #include <X11/XKBlib.h>
10596 main ()
10598 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10600 return 0;
10602 _ACEOF
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (ac_try="$ac_link"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10608 esac
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_link") 2>conftest.er1
10611 ac_status=$?
10612 grep -v '^ *+' conftest.er1 >conftest.err
10613 rm -f conftest.er1
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } && {
10617 test -z "$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10619 } && test -s conftest$ac_exeext &&
10620 $as_test_x conftest$ac_exeext; then
10621 emacs_xkb=yes
10622 else
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 emacs_xkb=no
10629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630 conftest$ac_exeext conftest.$ac_ext
10631 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10632 echo "${ECHO_T}$emacs_xkb" >&6; }
10633 if test $emacs_xkb = yes; then
10635 cat >>confdefs.h <<\_ACEOF
10636 #define HAVE_XKBGETKEYBOARD 1
10637 _ACEOF
10645 for ac_func in XrmSetDatabase XScreenResourceString \
10646 XScreenNumberOfScreen XSetWMProtocols
10648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654 cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h. */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10662 #define $ac_func innocuous_$ac_func
10664 /* System header to define __stub macros and hopefully few prototypes,
10665 which can conflict with char $ac_func (); below.
10666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10667 <limits.h> exists even on freestanding compilers. */
10669 #ifdef __STDC__
10670 # include <limits.h>
10671 #else
10672 # include <assert.h>
10673 #endif
10675 #undef $ac_func
10677 /* Override any GCC internal prototype to avoid an error.
10678 Use char because int might match the return type of a GCC
10679 builtin and then its argument prototype would still apply. */
10680 #ifdef __cplusplus
10681 extern "C"
10682 #endif
10683 char $ac_func ();
10684 /* The GNU C library defines this for functions which it implements
10685 to always fail with ENOSYS. Some functions are actually named
10686 something starting with __ and the normal name is an alias. */
10687 #if defined __stub_$ac_func || defined __stub___$ac_func
10688 choke me
10689 #endif
10692 main ()
10694 return $ac_func ();
10696 return 0;
10698 _ACEOF
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (ac_try="$ac_link"
10701 case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704 esac
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_link") 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } && {
10713 test -z "$ac_c_werror_flag" ||
10714 test ! -s conftest.err
10715 } && test -s conftest$ac_exeext &&
10716 $as_test_x conftest$ac_exeext; then
10717 eval "$as_ac_var=yes"
10718 else
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 eval "$as_ac_var=no"
10725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10726 conftest$ac_exeext conftest.$ac_ext
10728 ac_res=`eval echo '${'$as_ac_var'}'`
10729 { echo "$as_me:$LINENO: result: $ac_res" >&5
10730 echo "${ECHO_T}$ac_res" >&6; }
10731 if test `eval echo '${'$as_ac_var'}'` = yes; then
10732 cat >>confdefs.h <<_ACEOF
10733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10734 _ACEOF
10737 done
10741 if test "${window_system}" = "x11"; then
10742 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10743 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10744 if test "${emacs_cv_x11_version_6+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 #include <X11/Xlib.h>
10755 main ()
10757 #if XlibSpecificationRelease < 6
10758 fail;
10759 #endif
10762 return 0;
10764 _ACEOF
10765 rm -f conftest.$ac_objext conftest$ac_exeext
10766 if { (ac_try="$ac_link"
10767 case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10770 esac
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_link") 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && {
10779 test -z "$ac_c_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest$ac_exeext &&
10782 $as_test_x conftest$ac_exeext; then
10783 emacs_cv_x11_version_6=yes
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 emacs_cv_x11_version_6=no
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10795 if test $emacs_cv_x11_version_6 = yes; then
10796 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10797 echo "${ECHO_T}6 or newer" >&6; }
10799 cat >>confdefs.h <<\_ACEOF
10800 #define HAVE_X11R6 1
10801 _ACEOF
10803 else
10804 { echo "$as_me:$LINENO: result: before 6" >&5
10805 echo "${ECHO_T}before 6" >&6; }
10810 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10811 HAVE_RSVG=no
10812 if test "${HAVE_X11}" = "yes"; then
10813 if test "${with_rsvg}" != "no"; then
10814 RSVG_REQUIRED=2.0.0
10815 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10818 succeeded=no
10820 # Extract the first word of "pkg-config", so it can be a program name with args.
10821 set dummy pkg-config; ac_word=$2
10822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10824 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827 case $PKG_CONFIG in
10828 [\\/]* | ?:[\\/]*)
10829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833 for as_dir in $PATH
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10839 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 break 2
10843 done
10844 done
10845 IFS=$as_save_IFS
10847 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10849 esac
10851 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10852 if test -n "$PKG_CONFIG"; then
10853 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10854 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10855 else
10856 { echo "$as_me:$LINENO: result: no" >&5
10857 echo "${ECHO_T}no" >&6; }
10862 if test "$PKG_CONFIG" = "no" ; then
10864 else
10865 PKG_CONFIG_MIN_VERSION=0.9.0
10866 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10867 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10868 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10870 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10871 { echo "$as_me:$LINENO: result: yes" >&5
10872 echo "${ECHO_T}yes" >&6; }
10873 succeeded=yes
10875 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10876 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10877 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10878 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10879 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10881 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10882 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10883 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10884 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10885 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10886 else
10887 { echo "$as_me:$LINENO: result: no" >&5
10888 echo "${ECHO_T}no" >&6; }
10889 RSVG_CFLAGS=""
10890 RSVG_LIBS=""
10891 ## If we have a custom action on failure, don't print errors, but
10892 ## do set a variable so people can do so.
10893 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10899 else
10900 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10901 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10905 if test $succeeded = yes; then
10907 else
10914 if test ".${RSVG_CFLAGS}" != "."; then
10915 HAVE_RSVG=yes
10917 cat >>confdefs.h <<\_ACEOF
10918 #define HAVE_RSVG 1
10919 _ACEOF
10921 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10922 LIBS="$RSVG_LIBS $LIBS"
10928 HAVE_GTK=no
10929 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10930 GLIB_REQUIRED=2.6
10931 GTK_REQUIRED=2.6
10932 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10935 succeeded=no
10937 # Extract the first word of "pkg-config", so it can be a program name with args.
10938 set dummy pkg-config; ac_word=$2
10939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10941 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 else
10944 case $PKG_CONFIG in
10945 [\\/]* | ?:[\\/]*)
10946 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950 for as_dir in $PATH
10952 IFS=$as_save_IFS
10953 test -z "$as_dir" && as_dir=.
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10956 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10958 break 2
10960 done
10961 done
10962 IFS=$as_save_IFS
10964 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10966 esac
10968 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10969 if test -n "$PKG_CONFIG"; then
10970 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10971 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10972 else
10973 { echo "$as_me:$LINENO: result: no" >&5
10974 echo "${ECHO_T}no" >&6; }
10979 if test "$PKG_CONFIG" = "no" ; then
10980 pkg_check_gtk=no
10981 else
10982 PKG_CONFIG_MIN_VERSION=0.9.0
10983 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10984 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10985 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10987 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10988 { echo "$as_me:$LINENO: result: yes" >&5
10989 echo "${ECHO_T}yes" >&6; }
10990 succeeded=yes
10992 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10993 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10994 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10995 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10996 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10998 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10999 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11000 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11001 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11002 echo "${ECHO_T}$GTK_LIBS" >&6; }
11003 else
11004 { echo "$as_me:$LINENO: result: no" >&5
11005 echo "${ECHO_T}no" >&6; }
11006 GTK_CFLAGS=""
11007 GTK_LIBS=""
11008 ## If we have a custom action on failure, don't print errors, but
11009 ## do set a variable so people can do so.
11010 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11016 else
11017 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11018 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11022 if test $succeeded = yes; then
11023 pkg_check_gtk=yes
11024 else
11025 pkg_check_gtk=no
11028 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11029 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11030 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11031 { (exit 1); exit 1; }; }
11036 if test x"$pkg_check_gtk" = xyes; then
11040 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11041 CFLAGS="$CFLAGS $GTK_CFLAGS"
11042 LIBS="$GTK_LIBS $LIBS"
11043 GTK_COMPILES=no
11045 for ac_func in gtk_main
11047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h. */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11061 #define $ac_func innocuous_$ac_func
11063 /* System header to define __stub macros and hopefully few prototypes,
11064 which can conflict with char $ac_func (); below.
11065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11066 <limits.h> exists even on freestanding compilers. */
11068 #ifdef __STDC__
11069 # include <limits.h>
11070 #else
11071 # include <assert.h>
11072 #endif
11074 #undef $ac_func
11076 /* Override any GCC internal prototype to avoid an error.
11077 Use char because int might match the return type of a GCC
11078 builtin and then its argument prototype would still apply. */
11079 #ifdef __cplusplus
11080 extern "C"
11081 #endif
11082 char $ac_func ();
11083 /* The GNU C library defines this for functions which it implements
11084 to always fail with ENOSYS. Some functions are actually named
11085 something starting with __ and the normal name is an alias. */
11086 #if defined __stub_$ac_func || defined __stub___$ac_func
11087 choke me
11088 #endif
11091 main ()
11093 return $ac_func ();
11095 return 0;
11097 _ACEOF
11098 rm -f conftest.$ac_objext conftest$ac_exeext
11099 if { (ac_try="$ac_link"
11100 case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11103 esac
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_link") 2>conftest.er1
11106 ac_status=$?
11107 grep -v '^ *+' conftest.er1 >conftest.err
11108 rm -f conftest.er1
11109 cat conftest.err >&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } && {
11112 test -z "$ac_c_werror_flag" ||
11113 test ! -s conftest.err
11114 } && test -s conftest$ac_exeext &&
11115 $as_test_x conftest$ac_exeext; then
11116 eval "$as_ac_var=yes"
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 eval "$as_ac_var=no"
11124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11125 conftest$ac_exeext conftest.$ac_ext
11127 ac_res=`eval echo '${'$as_ac_var'}'`
11128 { echo "$as_me:$LINENO: result: $ac_res" >&5
11129 echo "${ECHO_T}$ac_res" >&6; }
11130 if test `eval echo '${'$as_ac_var'}'` = yes; then
11131 cat >>confdefs.h <<_ACEOF
11132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11133 _ACEOF
11134 GTK_COMPILES=yes
11136 done
11138 if test "${GTK_COMPILES}" != "yes"; then
11139 if test "$USE_X_TOOLKIT" != "maybe"; then
11140 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11141 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11142 { (exit 1); exit 1; }; };
11144 else
11145 HAVE_GTK=yes
11147 cat >>confdefs.h <<\_ACEOF
11148 #define USE_GTK 1
11149 _ACEOF
11151 USE_X_TOOLKIT=none
11152 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11154 else
11155 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11156 closing open displays. This is no problem if you just use
11157 one display, but if you use more than one and close one of them
11158 Emacs may crash." >&5
11159 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11160 closing open displays. This is no problem if you just use
11161 one display, but if you use more than one and close one of them
11162 Emacs may crash." >&2;}
11163 sleep 3
11170 if test "${HAVE_GTK}" = "yes"; then
11172 if test "$with_toolkit_scroll_bars" != no; then
11173 with_toolkit_scroll_bars=yes
11176 HAVE_GTK_MULTIDISPLAY=no
11178 for ac_func in gdk_display_open
11180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11194 #define $ac_func innocuous_$ac_func
11196 /* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func (); below.
11198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 <limits.h> exists even on freestanding compilers. */
11201 #ifdef __STDC__
11202 # include <limits.h>
11203 #else
11204 # include <assert.h>
11205 #endif
11207 #undef $ac_func
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11212 #ifdef __cplusplus
11213 extern "C"
11214 #endif
11215 char $ac_func ();
11216 /* The GNU C library defines this for functions which it implements
11217 to always fail with ENOSYS. Some functions are actually named
11218 something starting with __ and the normal name is an alias. */
11219 #if defined __stub_$ac_func || defined __stub___$ac_func
11220 choke me
11221 #endif
11224 main ()
11226 return $ac_func ();
11228 return 0;
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (ac_try="$ac_link"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_link") 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest$ac_exeext &&
11248 $as_test_x conftest$ac_exeext; then
11249 eval "$as_ac_var=yes"
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 eval "$as_ac_var=no"
11257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11258 conftest$ac_exeext conftest.$ac_ext
11260 ac_res=`eval echo '${'$as_ac_var'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11263 if test `eval echo '${'$as_ac_var'}'` = yes; then
11264 cat >>confdefs.h <<_ACEOF
11265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11266 _ACEOF
11267 HAVE_GTK_MULTIDISPLAY=yes
11269 done
11271 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11273 cat >>confdefs.h <<\_ACEOF
11274 #define HAVE_GTK_MULTIDISPLAY 1
11275 _ACEOF
11279 HAVE_GTK_FILE_SELECTION=no
11281 for ac_func in gtk_file_selection_new
11283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h. */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11297 #define $ac_func innocuous_$ac_func
11299 /* System header to define __stub macros and hopefully few prototypes,
11300 which can conflict with char $ac_func (); below.
11301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11302 <limits.h> exists even on freestanding compilers. */
11304 #ifdef __STDC__
11305 # include <limits.h>
11306 #else
11307 # include <assert.h>
11308 #endif
11310 #undef $ac_func
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11315 #ifdef __cplusplus
11316 extern "C"
11317 #endif
11318 char $ac_func ();
11319 /* The GNU C library defines this for functions which it implements
11320 to always fail with ENOSYS. Some functions are actually named
11321 something starting with __ and the normal name is an alias. */
11322 #if defined __stub_$ac_func || defined __stub___$ac_func
11323 choke me
11324 #endif
11327 main ()
11329 return $ac_func ();
11331 return 0;
11333 _ACEOF
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (ac_try="$ac_link"
11336 case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_link") 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest$ac_exeext &&
11351 $as_test_x conftest$ac_exeext; then
11352 eval "$as_ac_var=yes"
11353 else
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11357 eval "$as_ac_var=no"
11360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11361 conftest$ac_exeext conftest.$ac_ext
11363 ac_res=`eval echo '${'$as_ac_var'}'`
11364 { echo "$as_me:$LINENO: result: $ac_res" >&5
11365 echo "${ECHO_T}$ac_res" >&6; }
11366 if test `eval echo '${'$as_ac_var'}'` = yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11369 _ACEOF
11370 HAVE_GTK_FILE_SELECTION=yes
11372 done
11375 HAVE_GTK_FILE_CHOOSER=no
11377 for ac_func in gtk_file_chooser_dialog_new
11379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11393 #define $ac_func innocuous_$ac_func
11395 /* System header to define __stub macros and hopefully few prototypes,
11396 which can conflict with char $ac_func (); below.
11397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11398 <limits.h> exists even on freestanding compilers. */
11400 #ifdef __STDC__
11401 # include <limits.h>
11402 #else
11403 # include <assert.h>
11404 #endif
11406 #undef $ac_func
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char $ac_func ();
11415 /* The GNU C library defines this for functions which it implements
11416 to always fail with ENOSYS. Some functions are actually named
11417 something starting with __ and the normal name is an alias. */
11418 #if defined __stub_$ac_func || defined __stub___$ac_func
11419 choke me
11420 #endif
11423 main ()
11425 return $ac_func ();
11427 return 0;
11429 _ACEOF
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (ac_try="$ac_link"
11432 case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435 esac
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_link") 2>conftest.er1
11438 ac_status=$?
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest$ac_exeext &&
11447 $as_test_x conftest$ac_exeext; then
11448 eval "$as_ac_var=yes"
11449 else
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 eval "$as_ac_var=no"
11456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11457 conftest$ac_exeext conftest.$ac_ext
11459 ac_res=`eval echo '${'$as_ac_var'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11462 if test `eval echo '${'$as_ac_var'}'` = yes; then
11463 cat >>confdefs.h <<_ACEOF
11464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11465 _ACEOF
11466 HAVE_GTK_FILE_CHOOSER=yes
11468 done
11471 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11472 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11474 cat >>confdefs.h <<\_ACEOF
11475 #define HAVE_GTK_FILE_BOTH 1
11476 _ACEOF
11480 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11481 HAVE_GTK_AND_PTHREAD=no
11483 for ac_header in pthread.h
11485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 ac_res=`eval echo '${'$as_ac_Header'}'`
11493 { echo "$as_me:$LINENO: result: $ac_res" >&5
11494 echo "${ECHO_T}$ac_res" >&6; }
11495 else
11496 # Is the header compilable?
11497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h. */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 #include <$ac_header>
11507 _ACEOF
11508 rm -f conftest.$ac_objext
11509 if { (ac_try="$ac_compile"
11510 case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11513 esac
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_compile") 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest.$ac_objext; then
11525 ac_header_compiler=yes
11526 else
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11530 ac_header_compiler=no
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11535 echo "${ECHO_T}$ac_header_compiler" >&6; }
11537 # Is the header present?
11538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #include <$ac_header>
11547 _ACEOF
11548 if { (ac_try="$ac_cpp conftest.$ac_ext"
11549 case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11552 esac
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11555 ac_status=$?
11556 grep -v '^ *+' conftest.er1 >conftest.err
11557 rm -f conftest.er1
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } >/dev/null && {
11561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11562 test ! -s conftest.err
11563 }; then
11564 ac_header_preproc=yes
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 ac_header_preproc=no
11572 rm -f conftest.err conftest.$ac_ext
11573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11574 echo "${ECHO_T}$ac_header_preproc" >&6; }
11576 # So? What about this header?
11577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11578 yes:no: )
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11583 ac_header_preproc=yes
11585 no:yes:* )
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11600 esac
11601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 else
11606 eval "$as_ac_Header=\$ac_header_preproc"
11608 ac_res=`eval echo '${'$as_ac_Header'}'`
11609 { echo "$as_me:$LINENO: result: $ac_res" >&5
11610 echo "${ECHO_T}$ac_res" >&6; }
11613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11614 cat >>confdefs.h <<_ACEOF
11615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11616 _ACEOF
11620 done
11622 if test "$ac_cv_header_pthread_h"; then
11623 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11624 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11625 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628 ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-lpthread $LIBS"
11630 cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h. */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11637 /* Override any GCC internal prototype to avoid an error.
11638 Use char because int might match the return type of a GCC
11639 builtin and then its argument prototype would still apply. */
11640 #ifdef __cplusplus
11641 extern "C"
11642 #endif
11643 char pthread_self ();
11645 main ()
11647 return pthread_self ();
11649 return 0;
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (ac_try="$ac_link"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_link") 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest$ac_exeext &&
11669 $as_test_x conftest$ac_exeext; then
11670 ac_cv_lib_pthread_pthread_self=yes
11671 else
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 ac_cv_lib_pthread_pthread_self=no
11678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11679 conftest$ac_exeext conftest.$ac_ext
11680 LIBS=$ac_check_lib_save_LIBS
11682 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11683 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11684 if test $ac_cv_lib_pthread_pthread_self = yes; then
11685 HAVE_GTK_AND_PTHREAD=yes
11689 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11690 case "${canonical}" in
11691 *-hpux*) ;;
11692 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11693 esac
11695 cat >>confdefs.h <<\_ACEOF
11696 #define HAVE_GTK_AND_PTHREAD 1
11697 _ACEOF
11703 HAVE_DBUS=no
11704 if test "${with_dbus}" = "yes"; then
11706 succeeded=no
11708 # Extract the first word of "pkg-config", so it can be a program name with args.
11709 set dummy pkg-config; ac_word=$2
11710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11712 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715 case $PKG_CONFIG in
11716 [\\/]* | ?:[\\/]*)
11717 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11723 IFS=$as_save_IFS
11724 test -z "$as_dir" && as_dir=.
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11727 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 break 2
11731 done
11732 done
11733 IFS=$as_save_IFS
11735 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11737 esac
11739 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11740 if test -n "$PKG_CONFIG"; then
11741 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11742 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11743 else
11744 { echo "$as_me:$LINENO: result: no" >&5
11745 echo "${ECHO_T}no" >&6; }
11750 if test "$PKG_CONFIG" = "no" ; then
11751 HAVE_DBUS=no
11752 else
11753 PKG_CONFIG_MIN_VERSION=0.9.0
11754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11755 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11756 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11758 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11759 { echo "$as_me:$LINENO: result: yes" >&5
11760 echo "${ECHO_T}yes" >&6; }
11761 succeeded=yes
11763 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11764 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11765 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11766 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11767 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11769 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11770 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11771 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11772 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11773 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11774 else
11775 { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11777 DBUS_CFLAGS=""
11778 DBUS_LIBS=""
11779 ## If we have a custom action on failure, don't print errors, but
11780 ## do set a variable so people can do so.
11781 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11787 else
11788 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11789 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11793 if test $succeeded = yes; then
11794 HAVE_DBUS=yes
11795 else
11796 HAVE_DBUS=no
11799 if test "$HAVE_DBUS" = yes; then
11801 cat >>confdefs.h <<\_ACEOF
11802 #define HAVE_DBUS 1
11803 _ACEOF
11808 HAVE_XAW3D=no
11809 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11810 if test "$with_xaw3d" != no; then
11811 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11812 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11813 if test "${emacs_cv_xaw3d+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 else
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h. */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11823 #include <X11/Intrinsic.h>
11824 #include <X11/Xaw3d/Simple.h>
11826 main ()
11830 return 0;
11832 _ACEOF
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (ac_try="$ac_link"
11835 case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_link") 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } && {
11847 test -z "$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 } && test -s conftest$ac_exeext &&
11850 $as_test_x conftest$ac_exeext; then
11851 emacs_cv_xaw3d=yes
11852 else
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 emacs_cv_xaw3d=no
11859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11860 conftest$ac_exeext conftest.$ac_ext
11863 else
11864 emacs_cv_xaw3d=no
11866 if test $emacs_cv_xaw3d = yes; then
11867 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11868 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11869 USE_X_TOOLKIT=LUCID
11870 HAVE_XAW3D=yes
11872 cat >>confdefs.h <<\_ACEOF
11873 #define HAVE_XAW3D 1
11874 _ACEOF
11876 else
11877 { echo "$as_me:$LINENO: result: no" >&5
11878 echo "${ECHO_T}no" >&6; }
11879 { echo "$as_me:$LINENO: checking for libXaw" >&5
11880 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11881 if test "${emacs_cv_xaw+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h. */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11891 #include <X11/Intrinsic.h>
11892 #include <X11/Xaw/Simple.h>
11894 main ()
11898 return 0;
11900 _ACEOF
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (ac_try="$ac_link"
11903 case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_link") 2>conftest.er1
11909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } && {
11915 test -z "$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 } && test -s conftest$ac_exeext &&
11918 $as_test_x conftest$ac_exeext; then
11919 emacs_cv_xaw=yes
11920 else
11921 echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11924 emacs_cv_xaw=no
11927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11928 conftest$ac_exeext conftest.$ac_ext
11931 if test $emacs_cv_xaw = yes; then
11932 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11933 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11934 USE_X_TOOLKIT=LUCID
11935 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11936 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11937 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11938 { (exit 1); exit 1; }; }
11939 else
11940 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11941 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11942 USE_X_TOOLKIT=none
11947 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11949 if test "${USE_X_TOOLKIT}" != "none"; then
11950 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11951 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11952 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 else
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 #include <X11/Intrinsic.h>
11963 main ()
11965 #if XtSpecificationRelease < 6
11966 fail;
11967 #endif
11970 return 0;
11972 _ACEOF
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (ac_try="$ac_link"
11975 case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11978 esac
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_link") 2>conftest.er1
11981 ac_status=$?
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_c_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest$ac_exeext &&
11990 $as_test_x conftest$ac_exeext; then
11991 emacs_cv_x11_toolkit_version_6=yes
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 emacs_cv_x11_toolkit_version_6=no
11999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12000 conftest$ac_exeext conftest.$ac_ext
12003 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12004 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12005 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12006 echo "${ECHO_T}6 or newer" >&6; }
12008 cat >>confdefs.h <<\_ACEOF
12009 #define HAVE_X11XTR6 1
12010 _ACEOF
12012 else
12013 { echo "$as_me:$LINENO: result: before 6" >&5
12014 echo "${ECHO_T}before 6" >&6; }
12017 OLDLIBS="$LIBS"
12018 if test x$HAVE_X11XTR6 = xyes; then
12019 LIBS="-lXt -lSM -lICE $LIBS"
12020 else
12021 LIBS="-lXt $LIBS"
12024 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12025 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12026 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029 ac_check_lib_save_LIBS=$LIBS
12030 LIBS="-lXmu $LIBS"
12031 cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h. */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char XmuConvertStandardSelection ();
12046 main ()
12048 return XmuConvertStandardSelection ();
12050 return 0;
12052 _ACEOF
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_link") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest$ac_exeext &&
12070 $as_test_x conftest$ac_exeext; then
12071 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12072 else
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12080 conftest$ac_exeext conftest.$ac_ext
12081 LIBS=$ac_check_lib_save_LIBS
12083 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12084 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12085 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12086 cat >>confdefs.h <<_ACEOF
12087 #define HAVE_LIBXMU 1
12088 _ACEOF
12090 LIBS="-lXmu $LIBS"
12094 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12097 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12098 if test "${HAVE_X11}" = "yes"; then
12099 if test "${USE_X_TOOLKIT}" != "none"; then
12101 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12102 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12103 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106 ac_check_lib_save_LIBS=$LIBS
12107 LIBS="-lXext $LIBS"
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12115 /* Override any GCC internal prototype to avoid an error.
12116 Use char because int might match the return type of a GCC
12117 builtin and then its argument prototype would still apply. */
12118 #ifdef __cplusplus
12119 extern "C"
12120 #endif
12121 char XShapeQueryExtension ();
12123 main ()
12125 return XShapeQueryExtension ();
12127 return 0;
12129 _ACEOF
12130 rm -f conftest.$ac_objext conftest$ac_exeext
12131 if { (ac_try="$ac_link"
12132 case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12135 esac
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_link") 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } && {
12144 test -z "$ac_c_werror_flag" ||
12145 test ! -s conftest.err
12146 } && test -s conftest$ac_exeext &&
12147 $as_test_x conftest$ac_exeext; then
12148 ac_cv_lib_Xext_XShapeQueryExtension=yes
12149 else
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ac_cv_lib_Xext_XShapeQueryExtension=no
12156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12157 conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12160 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12161 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12162 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12163 cat >>confdefs.h <<_ACEOF
12164 #define HAVE_LIBXEXT 1
12165 _ACEOF
12167 LIBS="-lXext $LIBS"
12174 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12175 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12176 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12177 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 #include <Xm/Xm.h>
12188 main ()
12190 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12191 int x = 5;
12192 #else
12193 Motif version prior to 2.1.
12194 #endif
12196 return 0;
12198 _ACEOF
12199 rm -f conftest.$ac_objext
12200 if { (ac_try="$ac_compile"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_compile") 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest.$ac_objext; then
12216 emacs_cv_motif_version_2_1=yes
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 emacs_cv_motif_version_2_1=no
12224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12227 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12228 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12229 if test $emacs_cv_motif_version_2_1 = yes; then
12230 HAVE_LIBXP=no
12232 cat >>confdefs.h <<\_ACEOF
12233 #define HAVE_MOTIF_2_1 1
12234 _ACEOF
12236 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12237 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12238 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241 ac_check_lib_save_LIBS=$LIBS
12242 LIBS="-lXp $LIBS"
12243 cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12250 /* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
12253 #ifdef __cplusplus
12254 extern "C"
12255 #endif
12256 char XpCreateContext ();
12258 main ()
12260 return XpCreateContext ();
12262 return 0;
12264 _ACEOF
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest$ac_exeext &&
12282 $as_test_x conftest$ac_exeext; then
12283 ac_cv_lib_Xp_XpCreateContext=yes
12284 else
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_cv_lib_Xp_XpCreateContext=no
12291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12295 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12296 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12297 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12298 HAVE_LIBXP=yes
12301 if test ${HAVE_LIBXP} = yes; then
12303 cat >>confdefs.h <<\_ACEOF
12304 #define HAVE_LIBXP 1
12305 _ACEOF
12308 else
12309 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12310 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12311 if test "${emacs_cv_lesstif+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314 # We put this in CFLAGS temporarily to precede other -I options
12315 # that might be in CFLAGS temporarily.
12316 # We put this in CPPFLAGS where it precedes the other -I options.
12317 OLD_CPPFLAGS=$CPPFLAGS
12318 OLD_CFLAGS=$CFLAGS
12319 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12320 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12329 main ()
12331 int x = 5;
12333 return 0;
12335 _ACEOF
12336 rm -f conftest.$ac_objext
12337 if { (ac_try="$ac_compile"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_compile") 2>conftest.er1
12344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest.$ac_objext; then
12353 emacs_cv_lesstif=yes
12354 else
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12358 emacs_cv_lesstif=no
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12364 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12365 if test $emacs_cv_lesstif = yes; then
12366 # Make sure this -I option remains in CPPFLAGS after it is set
12367 # back to REAL_CPPFLAGS.
12368 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12369 # have those other -I options anyway. Ultimately, having this
12370 # directory ultimately in CPPFLAGS will be enough.
12371 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12372 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12373 else
12374 CFLAGS=$OLD_CFLAGS
12375 CPPFLAGS=$OLD_CPPFLAGS
12382 USE_TOOLKIT_SCROLL_BARS=no
12383 if test "${with_toolkit_scroll_bars}" != "no"; then
12384 if test "${USE_X_TOOLKIT}" != "none"; then
12385 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12386 cat >>confdefs.h <<\_ACEOF
12387 #define USE_TOOLKIT_SCROLL_BARS 1
12388 _ACEOF
12390 HAVE_XAW3D=no
12391 USE_TOOLKIT_SCROLL_BARS=yes
12392 elif test "${HAVE_XAW3D}" = "yes"; then
12393 cat >>confdefs.h <<\_ACEOF
12394 #define USE_TOOLKIT_SCROLL_BARS 1
12395 _ACEOF
12397 USE_TOOLKIT_SCROLL_BARS=yes
12399 elif test "${HAVE_GTK}" = "yes"; then
12400 cat >>confdefs.h <<\_ACEOF
12401 #define USE_TOOLKIT_SCROLL_BARS 1
12402 _ACEOF
12404 USE_TOOLKIT_SCROLL_BARS=yes
12405 elif test "${HAVE_NS}" = "yes"; then
12406 cat >>confdefs.h <<\_ACEOF
12407 #define USE_TOOLKIT_SCROLL_BARS 1
12408 _ACEOF
12410 USE_TOOLKIT_SCROLL_BARS=yes
12414 cat >conftest.$ac_ext <<_ACEOF
12415 /* confdefs.h. */
12416 _ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12421 #include <X11/Xlib.h>
12422 #include <X11/Xresource.h>
12424 main ()
12426 XIMProc callback;
12428 return 0;
12430 _ACEOF
12431 rm -f conftest.$ac_objext
12432 if { (ac_try="$ac_compile"
12433 case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_compile") 2>conftest.er1
12439 ac_status=$?
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } && {
12445 test -z "$ac_c_werror_flag" ||
12446 test ! -s conftest.err
12447 } && test -s conftest.$ac_objext; then
12448 HAVE_XIM=yes
12450 cat >>confdefs.h <<\_ACEOF
12451 #define HAVE_XIM 1
12452 _ACEOF
12454 else
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 HAVE_XIM=no
12461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12464 if test "${with_xim}" != "no"; then
12466 cat >>confdefs.h <<\_ACEOF
12467 #define USE_XIM 1
12468 _ACEOF
12473 if test "${HAVE_XIM}" != "no"; then
12474 late_CFLAGS=$CFLAGS
12475 if test "$GCC" = yes; then
12476 CFLAGS="$CFLAGS --pedantic-errors"
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h. */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12485 #include <X11/Xlib.h>
12486 #include <X11/Xresource.h>
12488 main ()
12490 Display *display;
12491 XrmDatabase db;
12492 char *res_name;
12493 char *res_class;
12494 XIMProc callback;
12495 XPointer *client_data;
12496 #ifndef __GNUC__
12497 /* If we're not using GCC, it's probably not XFree86, and this is
12498 probably right, but we can't use something like --pedantic-errors. */
12499 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12500 char*, XIMProc, XPointer*);
12501 #endif
12502 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12503 client_data);
12505 return 0;
12507 _ACEOF
12508 rm -f conftest.$ac_objext
12509 if { (ac_try="$ac_compile"
12510 case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12513 esac
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_compile") 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && {
12522 test -z "$ac_c_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest.$ac_objext; then
12525 emacs_cv_arg6_star=yes
12526 else
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12535 if test "$emacs_cv_arg6_star" = yes; then
12536 cat >>confdefs.h <<\_ACEOF
12537 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12538 _ACEOF
12540 else
12541 cat >>confdefs.h <<\_ACEOF
12542 #define XRegisterIMInstantiateCallback_arg6 XPointer
12543 _ACEOF
12546 CFLAGS=$late_CFLAGS
12549 ### Start of font-backend section.
12551 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12552 HAVE_XFT=maybe
12553 if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then
12554 with_xft="no";
12556 if test "x${with_xft}" != "xno"; then
12559 succeeded=no
12561 # Extract the first word of "pkg-config", so it can be a program name with args.
12562 set dummy pkg-config; ac_word=$2
12563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12565 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 else
12568 case $PKG_CONFIG in
12569 [\\/]* | ?:[\\/]*)
12570 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
12578 for ac_exec_ext in '' $ac_executable_extensions; do
12579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12580 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12582 break 2
12584 done
12585 done
12586 IFS=$as_save_IFS
12588 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12590 esac
12592 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12593 if test -n "$PKG_CONFIG"; then
12594 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12595 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12596 else
12597 { echo "$as_me:$LINENO: result: no" >&5
12598 echo "${ECHO_T}no" >&6; }
12603 if test "$PKG_CONFIG" = "no" ; then
12604 HAVE_XFT=no
12605 else
12606 PKG_CONFIG_MIN_VERSION=0.9.0
12607 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12608 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12609 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12611 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12612 { echo "$as_me:$LINENO: result: yes" >&5
12613 echo "${ECHO_T}yes" >&6; }
12614 succeeded=yes
12616 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12617 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12618 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12619 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12620 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12622 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12623 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12624 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12625 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12626 echo "${ECHO_T}$XFT_LIBS" >&6; }
12627 else
12628 { echo "$as_me:$LINENO: result: no" >&5
12629 echo "${ECHO_T}no" >&6; }
12630 XFT_CFLAGS=""
12631 XFT_LIBS=""
12632 ## If we have a custom action on failure, don't print errors, but
12633 ## do set a variable so people can do so.
12634 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12640 else
12641 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12642 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12646 if test $succeeded = yes; then
12648 else
12649 HAVE_XFT=no
12652 if test "$HAVE_XFT" != no; then
12653 OLD_CPPFLAGS="$CPPFLAGS"
12654 OLD_CFLAGS="$CFLAGS"
12655 OLD_LIBS="$LIBS"
12656 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12657 CFLAGS="$CFLAGS $XFT_CFLAGS"
12658 LIBS="$XFT_LIBS $LIBS"
12659 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12660 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12661 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12662 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12666 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12667 else
12668 # Is the header compilable?
12669 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12670 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12671 cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 $ac_includes_default
12678 #include <X11/Xft/Xft.h>
12679 _ACEOF
12680 rm -f conftest.$ac_objext
12681 if { (ac_try="$ac_compile"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_compile") 2>conftest.er1
12688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest.$ac_objext; then
12697 ac_header_compiler=yes
12698 else
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12702 ac_header_compiler=no
12705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12707 echo "${ECHO_T}$ac_header_compiler" >&6; }
12709 # Is the header present?
12710 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12711 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h. */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 #include <X11/Xft/Xft.h>
12719 _ACEOF
12720 if { (ac_try="$ac_cpp conftest.$ac_ext"
12721 case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } >/dev/null && {
12733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12735 }; then
12736 ac_header_preproc=yes
12737 else
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 ac_header_preproc=no
12744 rm -f conftest.err conftest.$ac_ext
12745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12746 echo "${ECHO_T}$ac_header_preproc" >&6; }
12748 # So? What about this header?
12749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12750 yes:no: )
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12755 ac_header_preproc=yes
12757 no:yes:* )
12758 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12759 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12761 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12763 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12764 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12765 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12767 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12769 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12772 esac
12773 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12774 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12775 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12780 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12781 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12784 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12785 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12786 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12787 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790 ac_check_lib_save_LIBS=$LIBS
12791 LIBS="-lXft $XFT_LIBS $LIBS"
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h. */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12799 /* Override any GCC internal prototype to avoid an error.
12800 Use char because int might match the return type of a GCC
12801 builtin and then its argument prototype would still apply. */
12802 #ifdef __cplusplus
12803 extern "C"
12804 #endif
12805 char XftFontOpen ();
12807 main ()
12809 return XftFontOpen ();
12811 return 0;
12813 _ACEOF
12814 rm -f conftest.$ac_objext conftest$ac_exeext
12815 if { (ac_try="$ac_link"
12816 case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_link") 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && {
12828 test -z "$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 } && test -s conftest$ac_exeext &&
12831 $as_test_x conftest$ac_exeext; then
12832 ac_cv_lib_Xft_XftFontOpen=yes
12833 else
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_cv_lib_Xft_XftFontOpen=no
12840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12841 conftest$ac_exeext conftest.$ac_ext
12842 LIBS=$ac_check_lib_save_LIBS
12844 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12845 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12846 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12847 HAVE_XFT=yes
12854 if test "${HAVE_XFT}" = "yes"; then
12856 cat >>confdefs.h <<\_ACEOF
12857 #define HAVE_XFT 1
12858 _ACEOF
12861 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12862 else
12863 CPPFLAGS="$OLD_CPPFLAGS"
12864 CFLAGS="$OLD_CFLAGS"
12865 LIBS="$OLD_LIBS"
12866 fi # "${HAVE_XFT}" = "yes"
12867 fi # "$HAVE_XFT" != no
12868 fi # "x${with_xft}" != "xno"
12870 if test "$HAVE_XFT" != "yes"; then
12871 HAVE_XFT=no
12875 HAVE_FREETYPE=no
12876 ### Use -lfreetype if available, unless `--with-freetype=no'.
12877 if test "${HAVE_XFT}" = "yes"; then
12878 HAVE_FREETYPE=yes
12879 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
12882 succeeded=no
12884 # Extract the first word of "pkg-config", so it can be a program name with args.
12885 set dummy pkg-config; ac_word=$2
12886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12888 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891 case $PKG_CONFIG in
12892 [\\/]* | ?:[\\/]*)
12893 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897 for as_dir in $PATH
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12903 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12905 break 2
12907 done
12908 done
12909 IFS=$as_save_IFS
12911 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12913 esac
12915 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12916 if test -n "$PKG_CONFIG"; then
12917 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12918 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12919 else
12920 { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12926 if test "$PKG_CONFIG" = "no" ; then
12927 HAVE_FREETYPE=no
12928 else
12929 PKG_CONFIG_MIN_VERSION=0.9.0
12930 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12931 { echo "$as_me:$LINENO: checking for freetype2" >&5
12932 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12934 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12935 { echo "$as_me:$LINENO: result: yes" >&5
12936 echo "${ECHO_T}yes" >&6; }
12937 succeeded=yes
12939 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12940 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12941 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12942 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12943 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12945 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12946 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12947 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12948 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12949 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12950 else
12951 { echo "$as_me:$LINENO: result: no" >&5
12952 echo "${ECHO_T}no" >&6; }
12953 FREETYPE_CFLAGS=""
12954 FREETYPE_LIBS=""
12955 ## If we have a custom action on failure, don't print errors, but
12956 ## do set a variable so people can do so.
12957 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12963 else
12964 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12965 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12969 if test $succeeded = yes; then
12970 HAVE_FREETYPE=yes
12971 else
12972 HAVE_FREETYPE=no
12975 if test "${HAVE_FREETYPE}" = "yes"; then
12977 succeeded=no
12979 # Extract the first word of "pkg-config", so it can be a program name with args.
12980 set dummy pkg-config; ac_word=$2
12981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12983 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986 case $PKG_CONFIG in
12987 [\\/]* | ?:[\\/]*)
12988 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12998 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 break 2
13002 done
13003 done
13004 IFS=$as_save_IFS
13006 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13008 esac
13010 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13011 if test -n "$PKG_CONFIG"; then
13012 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13013 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13014 else
13015 { echo "$as_me:$LINENO: result: no" >&5
13016 echo "${ECHO_T}no" >&6; }
13021 if test "$PKG_CONFIG" = "no" ; then
13022 HAVE_FC=no
13023 else
13024 PKG_CONFIG_MIN_VERSION=0.9.0
13025 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13026 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13027 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13029 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13030 { echo "$as_me:$LINENO: result: yes" >&5
13031 echo "${ECHO_T}yes" >&6; }
13032 succeeded=yes
13034 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13035 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13036 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13037 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13038 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13040 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13041 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13042 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13043 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13044 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13045 else
13046 { echo "$as_me:$LINENO: result: no" >&5
13047 echo "${ECHO_T}no" >&6; }
13048 FONTCONFIG_CFLAGS=""
13049 FONTCONFIG_LIBS=""
13050 ## If we have a custom action on failure, don't print errors, but
13051 ## do set a variable so people can do so.
13052 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13058 else
13059 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13060 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13064 if test $succeeded = yes; then
13065 HAVE_FC=yes
13066 else
13067 HAVE_FC=no
13070 if test "${HAVE_FC}" = "no"; then
13071 HAVE_FREETYPE=no
13076 HAVE_LIBOTF=no
13077 if test "${HAVE_FREETYPE}" = "yes"; then
13079 cat >>confdefs.h <<\_ACEOF
13080 #define HAVE_FREETYPE 1
13081 _ACEOF
13083 if test "${with_libotf}" != "no"; then
13085 succeeded=no
13087 # Extract the first word of "pkg-config", so it can be a program name with args.
13088 set dummy pkg-config; ac_word=$2
13089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13091 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094 case $PKG_CONFIG in
13095 [\\/]* | ?:[\\/]*)
13096 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $PATH
13102 IFS=$as_save_IFS
13103 test -z "$as_dir" && as_dir=.
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13106 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13108 break 2
13110 done
13111 done
13112 IFS=$as_save_IFS
13114 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13116 esac
13118 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13119 if test -n "$PKG_CONFIG"; then
13120 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13121 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13122 else
13123 { echo "$as_me:$LINENO: result: no" >&5
13124 echo "${ECHO_T}no" >&6; }
13129 if test "$PKG_CONFIG" = "no" ; then
13130 HAVE_LIBOTF=no
13131 else
13132 PKG_CONFIG_MIN_VERSION=0.9.0
13133 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13134 { echo "$as_me:$LINENO: checking for libotf" >&5
13135 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13137 if $PKG_CONFIG --exists "libotf" 2>&5; then
13138 { echo "$as_me:$LINENO: result: yes" >&5
13139 echo "${ECHO_T}yes" >&6; }
13140 succeeded=yes
13142 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13143 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13144 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13145 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13146 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13148 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13149 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13150 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13151 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13152 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13153 else
13154 { echo "$as_me:$LINENO: result: no" >&5
13155 echo "${ECHO_T}no" >&6; }
13156 LIBOTF_CFLAGS=""
13157 LIBOTF_LIBS=""
13158 ## If we have a custom action on failure, don't print errors, but
13159 ## do set a variable so people can do so.
13160 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13166 else
13167 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13168 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13172 if test $succeeded = yes; then
13173 HAVE_LIBOTF=yes
13174 else
13175 HAVE_LIBOTF=no
13178 if test "$HAVE_LIBOTF" = "yes"; then
13180 cat >>confdefs.h <<\_ACEOF
13181 #define HAVE_LIBOTF 1
13182 _ACEOF
13188 HAVE_M17N_FLT=no
13189 if test "${HAVE_LIBOTF}" = yes; then
13190 if test "${with_m17n_flt}" != "no"; then
13192 succeeded=no
13194 # Extract the first word of "pkg-config", so it can be a program name with args.
13195 set dummy pkg-config; ac_word=$2
13196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201 case $PKG_CONFIG in
13202 [\\/]* | ?:[\\/]*)
13203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13209 IFS=$as_save_IFS
13210 test -z "$as_dir" && as_dir=.
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13215 break 2
13217 done
13218 done
13219 IFS=$as_save_IFS
13221 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13223 esac
13225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13226 if test -n "$PKG_CONFIG"; then
13227 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13228 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13229 else
13230 { echo "$as_me:$LINENO: result: no" >&5
13231 echo "${ECHO_T}no" >&6; }
13236 if test "$PKG_CONFIG" = "no" ; then
13237 HAVE_M17N_FLT=no
13238 else
13239 PKG_CONFIG_MIN_VERSION=0.9.0
13240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13241 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13242 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13244 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13245 { echo "$as_me:$LINENO: result: yes" >&5
13246 echo "${ECHO_T}yes" >&6; }
13247 succeeded=yes
13249 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13250 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13251 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13252 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13253 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13255 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13256 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13257 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13258 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13259 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13260 else
13261 { echo "$as_me:$LINENO: result: no" >&5
13262 echo "${ECHO_T}no" >&6; }
13263 M17N_FLT_CFLAGS=""
13264 M17N_FLT_LIBS=""
13265 ## If we have a custom action on failure, don't print errors, but
13266 ## do set a variable so people can do so.
13267 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13273 else
13274 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13275 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13279 if test $succeeded = yes; then
13280 HAVE_M17N_FLT=yes
13281 else
13282 HAVE_M17N_FLT=no
13285 if test "$HAVE_M17N_FLT" = "yes"; then
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_M17N_FLT 1
13289 _ACEOF
13304 ### End of font-backend section.
13306 ### Use -lXpm if available, unless `--with-xpm=no'.
13307 HAVE_XPM=no
13308 if test "${HAVE_X11}" = "yes"; then
13309 if test "${with_xpm}" != "no"; then
13310 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13311 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13312 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13313 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13317 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13318 else
13319 # Is the header compilable?
13320 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13321 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13322 cat >conftest.$ac_ext <<_ACEOF
13323 /* confdefs.h. */
13324 _ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13328 $ac_includes_default
13329 #include <X11/xpm.h>
13330 _ACEOF
13331 rm -f conftest.$ac_objext
13332 if { (ac_try="$ac_compile"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_compile") 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } && {
13345 test -z "$ac_c_werror_flag" ||
13346 test ! -s conftest.err
13347 } && test -s conftest.$ac_objext; then
13348 ac_header_compiler=yes
13349 else
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 ac_header_compiler=no
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13358 echo "${ECHO_T}$ac_header_compiler" >&6; }
13360 # Is the header present?
13361 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13362 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h. */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 #include <X11/xpm.h>
13370 _ACEOF
13371 if { (ac_try="$ac_cpp conftest.$ac_ext"
13372 case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } >/dev/null && {
13384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13385 test ! -s conftest.err
13386 }; then
13387 ac_header_preproc=yes
13388 else
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_header_preproc=no
13395 rm -f conftest.err conftest.$ac_ext
13396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13397 echo "${ECHO_T}$ac_header_preproc" >&6; }
13399 # So? What about this header?
13400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13401 yes:no: )
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13406 ac_header_preproc=yes
13408 no:yes:* )
13409 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13410 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13412 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13414 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13416 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13418 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13420 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13423 esac
13424 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13425 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13426 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 else
13429 ac_cv_header_X11_xpm_h=$ac_header_preproc
13431 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13432 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13435 if test $ac_cv_header_X11_xpm_h = yes; then
13436 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13437 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13438 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441 ac_check_lib_save_LIBS=$LIBS
13442 LIBS="-lXpm -lX11 $LIBS"
13443 cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h. */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13450 /* Override any GCC internal prototype to avoid an error.
13451 Use char because int might match the return type of a GCC
13452 builtin and then its argument prototype would still apply. */
13453 #ifdef __cplusplus
13454 extern "C"
13455 #endif
13456 char XpmReadFileToPixmap ();
13458 main ()
13460 return XpmReadFileToPixmap ();
13462 return 0;
13464 _ACEOF
13465 rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (ac_try="$ac_link"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_link") 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && {
13479 test -z "$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest$ac_exeext &&
13482 $as_test_x conftest$ac_exeext; then
13483 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13484 else
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13492 conftest$ac_exeext conftest.$ac_ext
13493 LIBS=$ac_check_lib_save_LIBS
13495 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13496 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13497 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13498 HAVE_XPM=yes
13504 if test "${HAVE_XPM}" = "yes"; then
13505 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13506 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13507 cat >conftest.$ac_ext <<_ACEOF
13508 /* confdefs.h. */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 #include "X11/xpm.h"
13514 #ifndef XpmReturnAllocPixels
13515 no_return_alloc_pixels
13516 #endif
13518 _ACEOF
13519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13520 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13521 HAVE_XPM=no
13522 else
13523 HAVE_XPM=yes
13525 rm -f conftest*
13528 if test "${HAVE_XPM}" = "yes"; then
13529 { echo "$as_me:$LINENO: result: yes" >&5
13530 echo "${ECHO_T}yes" >&6; }
13531 else
13532 { echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6; }
13538 if test "${HAVE_XPM}" = "yes"; then
13540 cat >>confdefs.h <<\_ACEOF
13541 #define HAVE_XPM 1
13542 _ACEOF
13547 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13548 HAVE_JPEG=no
13549 if test "${HAVE_X11}" = "yes"; then
13550 if test "${with_jpeg}" != "no"; then
13551 if test "${ac_cv_header_jerror_h+set}" = set; then
13552 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13553 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13554 if test "${ac_cv_header_jerror_h+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13558 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13559 else
13560 # Is the header compilable?
13561 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13562 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13563 cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h. */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13569 $ac_includes_default
13570 #include <jerror.h>
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (ac_try="$ac_compile"
13574 case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13577 esac
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_compile") 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest.$ac_objext; then
13589 ac_header_compiler=yes
13590 else
13591 echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13594 ac_header_compiler=no
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13599 echo "${ECHO_T}$ac_header_compiler" >&6; }
13601 # Is the header present?
13602 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13603 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13604 cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h. */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 #include <jerror.h>
13611 _ACEOF
13612 if { (ac_try="$ac_cpp conftest.$ac_ext"
13613 case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13616 esac
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } >/dev/null && {
13625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13626 test ! -s conftest.err
13627 }; then
13628 ac_header_preproc=yes
13629 else
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 ac_header_preproc=no
13636 rm -f conftest.err conftest.$ac_ext
13637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13638 echo "${ECHO_T}$ac_header_preproc" >&6; }
13640 # So? What about this header?
13641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13642 yes:no: )
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13644 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13646 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13647 ac_header_preproc=yes
13649 no:yes:* )
13650 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13651 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13653 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13655 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13657 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13659 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13661 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13664 esac
13665 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13666 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13667 if test "${ac_cv_header_jerror_h+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 ac_cv_header_jerror_h=$ac_header_preproc
13672 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13673 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13676 if test $ac_cv_header_jerror_h = yes; then
13677 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13678 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13679 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13681 else
13682 ac_check_lib_save_LIBS=$LIBS
13683 LIBS="-ljpeg $LIBS"
13684 cat >conftest.$ac_ext <<_ACEOF
13685 /* confdefs.h. */
13686 _ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13691 /* Override any GCC internal prototype to avoid an error.
13692 Use char because int might match the return type of a GCC
13693 builtin and then its argument prototype would still apply. */
13694 #ifdef __cplusplus
13695 extern "C"
13696 #endif
13697 char jpeg_destroy_compress ();
13699 main ()
13701 return jpeg_destroy_compress ();
13703 return 0;
13705 _ACEOF
13706 rm -f conftest.$ac_objext conftest$ac_exeext
13707 if { (ac_try="$ac_link"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13711 esac
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_link") 2>conftest.er1
13714 ac_status=$?
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } && {
13720 test -z "$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13722 } && test -s conftest$ac_exeext &&
13723 $as_test_x conftest$ac_exeext; then
13724 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13725 else
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13729 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13733 conftest$ac_exeext conftest.$ac_ext
13734 LIBS=$ac_check_lib_save_LIBS
13736 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13737 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13738 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13739 HAVE_JPEG=yes
13748 if test "${HAVE_JPEG}" = "yes"; then
13749 cat >>confdefs.h <<\_ACEOF
13750 #define HAVE_JPEG 1
13751 _ACEOF
13753 cat >conftest.$ac_ext <<_ACEOF
13754 /* confdefs.h. */
13755 _ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 #include <jpeglib.h>
13760 version=JPEG_LIB_VERSION
13762 _ACEOF
13763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13764 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13765 cat >>confdefs.h <<\_ACEOF
13766 #define HAVE_JPEG 1
13767 _ACEOF
13769 else
13770 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13771 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13772 HAVE_JPEG=no
13774 rm -f conftest*
13779 ### Use -lpng if available, unless `--with-png=no'.
13780 HAVE_PNG=no
13781 if test "${HAVE_X11}" = "yes"; then
13782 if test "${with_png}" != "no"; then
13783 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13784 # in /usr/include/libpng.
13787 for ac_header in png.h libpng/png.h
13789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 ac_res=`eval echo '${'$as_ac_Header'}'`
13797 { echo "$as_me:$LINENO: result: $ac_res" >&5
13798 echo "${ECHO_T}$ac_res" >&6; }
13799 else
13800 # Is the header compilable?
13801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13803 cat >conftest.$ac_ext <<_ACEOF
13804 /* confdefs.h. */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 $ac_includes_default
13810 #include <$ac_header>
13811 _ACEOF
13812 rm -f conftest.$ac_objext
13813 if { (ac_try="$ac_compile"
13814 case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13817 esac
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_compile") 2>conftest.er1
13820 ac_status=$?
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } && {
13826 test -z "$ac_c_werror_flag" ||
13827 test ! -s conftest.err
13828 } && test -s conftest.$ac_objext; then
13829 ac_header_compiler=yes
13830 else
13831 echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13834 ac_header_compiler=no
13837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13839 echo "${ECHO_T}$ac_header_compiler" >&6; }
13841 # Is the header present?
13842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13844 cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h. */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13850 #include <$ac_header>
13851 _ACEOF
13852 if { (ac_try="$ac_cpp conftest.$ac_ext"
13853 case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } >/dev/null && {
13865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13866 test ! -s conftest.err
13867 }; then
13868 ac_header_preproc=yes
13869 else
13870 echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873 ac_header_preproc=no
13876 rm -f conftest.err conftest.$ac_ext
13877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13878 echo "${ECHO_T}$ac_header_preproc" >&6; }
13880 # So? What about this header?
13881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13882 yes:no: )
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13887 ac_header_preproc=yes
13889 no:yes:* )
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13904 esac
13905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910 eval "$as_ac_Header=\$ac_header_preproc"
13912 ac_res=`eval echo '${'$as_ac_Header'}'`
13913 { echo "$as_me:$LINENO: result: $ac_res" >&5
13914 echo "${ECHO_T}$ac_res" >&6; }
13917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13918 cat >>confdefs.h <<_ACEOF
13919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13920 _ACEOF
13924 done
13926 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13927 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13928 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13929 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932 ac_check_lib_save_LIBS=$LIBS
13933 LIBS="-lpng -lz -lm $LIBS"
13934 cat >conftest.$ac_ext <<_ACEOF
13935 /* confdefs.h. */
13936 _ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13941 /* Override any GCC internal prototype to avoid an error.
13942 Use char because int might match the return type of a GCC
13943 builtin and then its argument prototype would still apply. */
13944 #ifdef __cplusplus
13945 extern "C"
13946 #endif
13947 char png_get_channels ();
13949 main ()
13951 return png_get_channels ();
13953 return 0;
13955 _ACEOF
13956 rm -f conftest.$ac_objext conftest$ac_exeext
13957 if { (ac_try="$ac_link"
13958 case "(($ac_try" in
13959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13961 esac
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963 (eval "$ac_link") 2>conftest.er1
13964 ac_status=$?
13965 grep -v '^ *+' conftest.er1 >conftest.err
13966 rm -f conftest.er1
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } && {
13970 test -z "$ac_c_werror_flag" ||
13971 test ! -s conftest.err
13972 } && test -s conftest$ac_exeext &&
13973 $as_test_x conftest$ac_exeext; then
13974 ac_cv_lib_png_png_get_channels=yes
13975 else
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_cv_lib_png_png_get_channels=no
13982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13983 conftest$ac_exeext conftest.$ac_ext
13984 LIBS=$ac_check_lib_save_LIBS
13986 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13987 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13988 if test $ac_cv_lib_png_png_get_channels = yes; then
13989 HAVE_PNG=yes
13995 if test "${HAVE_PNG}" = "yes"; then
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_PNG 1
13999 _ACEOF
14004 ### Use -ltiff if available, unless `--with-tiff=no'.
14005 HAVE_TIFF=no
14006 if test "${HAVE_X11}" = "yes"; then
14007 if test "${with_tiff}" != "no"; then
14008 if test "${ac_cv_header_tiffio_h+set}" = set; then
14009 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14010 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14011 if test "${ac_cv_header_tiffio_h+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14015 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14016 else
14017 # Is the header compilable?
14018 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14019 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h. */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14026 $ac_includes_default
14027 #include <tiffio.h>
14028 _ACEOF
14029 rm -f conftest.$ac_objext
14030 if { (ac_try="$ac_compile"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_compile") 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest.$ac_objext; then
14046 ac_header_compiler=yes
14047 else
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14051 ac_header_compiler=no
14054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14056 echo "${ECHO_T}$ac_header_compiler" >&6; }
14058 # Is the header present?
14059 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14060 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14061 cat >conftest.$ac_ext <<_ACEOF
14062 /* confdefs.h. */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14067 #include <tiffio.h>
14068 _ACEOF
14069 if { (ac_try="$ac_cpp conftest.$ac_ext"
14070 case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14073 esac
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14076 ac_status=$?
14077 grep -v '^ *+' conftest.er1 >conftest.err
14078 rm -f conftest.er1
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } >/dev/null && {
14082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14083 test ! -s conftest.err
14084 }; then
14085 ac_header_preproc=yes
14086 else
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ac_header_preproc=no
14093 rm -f conftest.err conftest.$ac_ext
14094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14095 echo "${ECHO_T}$ac_header_preproc" >&6; }
14097 # So? What about this header?
14098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14099 yes:no: )
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14101 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14103 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14104 ac_header_preproc=yes
14106 no:yes:* )
14107 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14108 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14110 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14111 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14112 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14114 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14116 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14118 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14121 esac
14122 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14123 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14124 if test "${ac_cv_header_tiffio_h+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127 ac_cv_header_tiffio_h=$ac_header_preproc
14129 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14130 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14133 if test $ac_cv_header_tiffio_h = yes; then
14134 tifflibs="-lz -lm"
14135 # At least one tiff package requires the jpeg library.
14136 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14137 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14138 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14139 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142 ac_check_lib_save_LIBS=$LIBS
14143 LIBS="-ltiff $tifflibs $LIBS"
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h. */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14151 /* Override any GCC internal prototype to avoid an error.
14152 Use char because int might match the return type of a GCC
14153 builtin and then its argument prototype would still apply. */
14154 #ifdef __cplusplus
14155 extern "C"
14156 #endif
14157 char TIFFGetVersion ();
14159 main ()
14161 return TIFFGetVersion ();
14163 return 0;
14165 _ACEOF
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (ac_try="$ac_link"
14168 case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14171 esac
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_link") 2>conftest.er1
14174 ac_status=$?
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } && {
14180 test -z "$ac_c_werror_flag" ||
14181 test ! -s conftest.err
14182 } && test -s conftest$ac_exeext &&
14183 $as_test_x conftest$ac_exeext; then
14184 ac_cv_lib_tiff_TIFFGetVersion=yes
14185 else
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ac_cv_lib_tiff_TIFFGetVersion=no
14192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14193 conftest$ac_exeext conftest.$ac_ext
14194 LIBS=$ac_check_lib_save_LIBS
14196 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14197 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14198 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14199 HAVE_TIFF=yes
14207 if test "${HAVE_TIFF}" = "yes"; then
14209 cat >>confdefs.h <<\_ACEOF
14210 #define HAVE_TIFF 1
14211 _ACEOF
14216 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14217 HAVE_GIF=no
14218 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14219 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14220 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14221 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14222 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14226 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14227 else
14228 # Is the header compilable?
14229 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14230 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14231 cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h. */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 $ac_includes_default
14238 #include <gif_lib.h>
14239 _ACEOF
14240 rm -f conftest.$ac_objext
14241 if { (ac_try="$ac_compile"
14242 case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245 esac
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_compile") 2>conftest.er1
14248 ac_status=$?
14249 grep -v '^ *+' conftest.er1 >conftest.err
14250 rm -f conftest.er1
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } && {
14254 test -z "$ac_c_werror_flag" ||
14255 test ! -s conftest.err
14256 } && test -s conftest.$ac_objext; then
14257 ac_header_compiler=yes
14258 else
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 ac_header_compiler=no
14265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14267 echo "${ECHO_T}$ac_header_compiler" >&6; }
14269 # Is the header present?
14270 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14271 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14272 cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h. */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 #include <gif_lib.h>
14279 _ACEOF
14280 if { (ac_try="$ac_cpp conftest.$ac_ext"
14281 case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14287 ac_status=$?
14288 grep -v '^ *+' conftest.er1 >conftest.err
14289 rm -f conftest.er1
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } >/dev/null && {
14293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14294 test ! -s conftest.err
14295 }; then
14296 ac_header_preproc=yes
14297 else
14298 echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14301 ac_header_preproc=no
14304 rm -f conftest.err conftest.$ac_ext
14305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14306 echo "${ECHO_T}$ac_header_preproc" >&6; }
14308 # So? What about this header?
14309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14310 yes:no: )
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14312 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14314 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14315 ac_header_preproc=yes
14317 no:yes:* )
14318 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14319 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14321 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14323 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14325 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14327 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14329 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14332 esac
14333 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14334 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14335 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338 ac_cv_header_gif_lib_h=$ac_header_preproc
14340 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14341 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14344 if test $ac_cv_header_gif_lib_h = yes; then
14345 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14346 # Earlier versions can crash Emacs.
14347 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14348 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14349 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352 ac_check_lib_save_LIBS=$LIBS
14353 LIBS="-lgif $LIBS"
14354 cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h. */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14361 /* Override any GCC internal prototype to avoid an error.
14362 Use char because int might match the return type of a GCC
14363 builtin and then its argument prototype would still apply. */
14364 #ifdef __cplusplus
14365 extern "C"
14366 #endif
14367 char EGifPutExtensionLast ();
14369 main ()
14371 return EGifPutExtensionLast ();
14373 return 0;
14375 _ACEOF
14376 rm -f conftest.$ac_objext conftest$ac_exeext
14377 if { (ac_try="$ac_link"
14378 case "(($ac_try" in
14379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14381 esac
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_link") 2>conftest.er1
14384 ac_status=$?
14385 grep -v '^ *+' conftest.er1 >conftest.err
14386 rm -f conftest.er1
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } && {
14390 test -z "$ac_c_werror_flag" ||
14391 test ! -s conftest.err
14392 } && test -s conftest$ac_exeext &&
14393 $as_test_x conftest$ac_exeext; then
14394 ac_cv_lib_gif_EGifPutExtensionLast=yes
14395 else
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 ac_cv_lib_gif_EGifPutExtensionLast=no
14402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14403 conftest$ac_exeext conftest.$ac_ext
14404 LIBS=$ac_check_lib_save_LIBS
14406 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14407 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14408 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14409 HAVE_GIF=yes
14410 else
14411 try_libungif=yes
14418 if test "$HAVE_GIF" = yes; then
14419 ac_gif_lib_name="-lgif"
14422 # If gif_lib.h but no libgif, try libungif.
14423 if test x"$try_libungif" = xyes; then
14424 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14425 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14426 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429 ac_check_lib_save_LIBS=$LIBS
14430 LIBS="-lungif $LIBS"
14431 cat >conftest.$ac_ext <<_ACEOF
14432 /* confdefs.h. */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14438 /* Override any GCC internal prototype to avoid an error.
14439 Use char because int might match the return type of a GCC
14440 builtin and then its argument prototype would still apply. */
14441 #ifdef __cplusplus
14442 extern "C"
14443 #endif
14444 char EGifPutExtensionLast ();
14446 main ()
14448 return EGifPutExtensionLast ();
14450 return 0;
14452 _ACEOF
14453 rm -f conftest.$ac_objext conftest$ac_exeext
14454 if { (ac_try="$ac_link"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_link") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest$ac_exeext &&
14470 $as_test_x conftest$ac_exeext; then
14471 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14472 else
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14476 ac_cv_lib_ungif_EGifPutExtensionLast=no
14479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14480 conftest$ac_exeext conftest.$ac_ext
14481 LIBS=$ac_check_lib_save_LIBS
14483 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14484 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14485 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14486 HAVE_GIF=yes
14490 if test "$HAVE_GIF" = yes; then
14492 cat >>confdefs.h <<\_ACEOF
14493 #define LIBGIF -lungif
14494 _ACEOF
14496 ac_gif_lib_name="-lungif"
14500 if test "${HAVE_GIF}" = "yes"; then
14502 cat >>confdefs.h <<\_ACEOF
14503 #define HAVE_GIF 1
14504 _ACEOF
14509 if test "${HAVE_X11}" = "yes"; then
14510 MISSING=""
14511 WITH_NO=""
14512 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14513 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14514 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14515 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14516 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14517 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14518 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14519 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14520 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14521 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14523 if test "X${MISSING}" != X; then
14524 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14525 $MISSING
14526 Maybe some development libraries/packages are missing?
14527 If you don't want to link with them give
14528 $WITH_NO
14529 as options to configure" >&5
14530 echo "$as_me: error: The following required libraries were not found:
14531 $MISSING
14532 Maybe some development libraries/packages are missing?
14533 If you don't want to link with them give
14534 $WITH_NO
14535 as options to configure" >&2;}
14536 { (exit 1); exit 1; }; }
14540 ### Use -lgpm if available, unless `--with-gpm=no'.
14541 HAVE_GPM=no
14542 if test "${with_gpm}" != "no"; then
14543 if test "${ac_cv_header_gpm_h+set}" = set; then
14544 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14545 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14546 if test "${ac_cv_header_gpm_h+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14550 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14551 else
14552 # Is the header compilable?
14553 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14554 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14555 cat >conftest.$ac_ext <<_ACEOF
14556 /* confdefs.h. */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 $ac_includes_default
14562 #include <gpm.h>
14563 _ACEOF
14564 rm -f conftest.$ac_objext
14565 if { (ac_try="$ac_compile"
14566 case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_compile") 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest.$ac_objext; then
14581 ac_header_compiler=yes
14582 else
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 ac_header_compiler=no
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14591 echo "${ECHO_T}$ac_header_compiler" >&6; }
14593 # Is the header present?
14594 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14595 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h. */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 #include <gpm.h>
14603 _ACEOF
14604 if { (ac_try="$ac_cpp conftest.$ac_ext"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14608 esac
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } >/dev/null && {
14617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 }; then
14620 ac_header_preproc=yes
14621 else
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ac_header_preproc=no
14628 rm -f conftest.err conftest.$ac_ext
14629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14630 echo "${ECHO_T}$ac_header_preproc" >&6; }
14632 # So? What about this header?
14633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14634 yes:no: )
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14636 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14638 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14639 ac_header_preproc=yes
14641 no:yes:* )
14642 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14643 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14645 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14647 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14649 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14651 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14653 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14656 esac
14657 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14658 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14659 if test "${ac_cv_header_gpm_h+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 else
14662 ac_cv_header_gpm_h=$ac_header_preproc
14664 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14665 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14668 if test $ac_cv_header_gpm_h = yes; then
14669 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14670 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14671 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674 ac_check_lib_save_LIBS=$LIBS
14675 LIBS="-lgpm $LIBS"
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h. */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14683 /* Override any GCC internal prototype to avoid an error.
14684 Use char because int might match the return type of a GCC
14685 builtin and then its argument prototype would still apply. */
14686 #ifdef __cplusplus
14687 extern "C"
14688 #endif
14689 char Gpm_Open ();
14691 main ()
14693 return Gpm_Open ();
14695 return 0;
14697 _ACEOF
14698 rm -f conftest.$ac_objext conftest$ac_exeext
14699 if { (ac_try="$ac_link"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_link") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest$ac_exeext &&
14715 $as_test_x conftest$ac_exeext; then
14716 ac_cv_lib_gpm_Gpm_Open=yes
14717 else
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_cv_lib_gpm_Gpm_Open=no
14724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14725 conftest$ac_exeext conftest.$ac_ext
14726 LIBS=$ac_check_lib_save_LIBS
14728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14729 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14730 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14731 HAVE_GPM=yes
14739 if test "${HAVE_GPM}" = "yes"; then
14741 cat >>confdefs.h <<\_ACEOF
14742 #define HAVE_GPM 1
14743 _ACEOF
14747 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14748 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14749 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14750 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14754 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14755 else
14756 # Is the header compilable?
14757 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14758 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14759 cat >conftest.$ac_ext <<_ACEOF
14760 /* confdefs.h. */
14761 _ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h. */
14765 $ac_includes_default
14766 #include <malloc/malloc.h>
14767 _ACEOF
14768 rm -f conftest.$ac_objext
14769 if { (ac_try="$ac_compile"
14770 case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14773 esac
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_compile") 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest.$ac_objext; then
14785 ac_header_compiler=yes
14786 else
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14790 ac_header_compiler=no
14793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14795 echo "${ECHO_T}$ac_header_compiler" >&6; }
14797 # Is the header present?
14798 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14799 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14800 cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h. */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 #include <malloc/malloc.h>
14807 _ACEOF
14808 if { (ac_try="$ac_cpp conftest.$ac_ext"
14809 case "(($ac_try" in
14810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811 *) ac_try_echo=$ac_try;;
14812 esac
14813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14815 ac_status=$?
14816 grep -v '^ *+' conftest.er1 >conftest.err
14817 rm -f conftest.er1
14818 cat conftest.err >&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } >/dev/null && {
14821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14822 test ! -s conftest.err
14823 }; then
14824 ac_header_preproc=yes
14825 else
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 ac_header_preproc=no
14832 rm -f conftest.err conftest.$ac_ext
14833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14834 echo "${ECHO_T}$ac_header_preproc" >&6; }
14836 # So? What about this header?
14837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14838 yes:no: )
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14843 ac_header_preproc=yes
14845 no:yes:* )
14846 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14847 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14849 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14850 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14851 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14853 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14855 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14857 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14860 esac
14861 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14862 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14863 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 else
14866 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14868 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14869 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14872 if test $ac_cv_header_malloc_malloc_h = yes; then
14874 cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_MALLOC_MALLOC_H 1
14876 _ACEOF
14882 ### Use NeXTstep API to implement GUI.
14883 if test "${HAVE_NS}" = "yes"; then
14885 cat >>confdefs.h <<\_ACEOF
14886 #define HAVE_NS 1
14887 _ACEOF
14889 if test "${NS_IMPL_COCOA}" = "yes"; then
14891 cat >>confdefs.h <<\_ACEOF
14892 #define NS_IMPL_COCOA 1
14893 _ACEOF
14895 GNU_OBJC_CFLAGS=
14896 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14898 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14900 cat >>confdefs.h <<\_ACEOF
14901 #define COCOA_EXPERIMENTAL_CTRL_G 1
14902 _ACEOF
14905 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14907 cat >>confdefs.h <<\_ACEOF
14908 #define NS_IMPL_GNUSTEP 1
14909 _ACEOF
14911 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14913 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define NS_HAVE_NSINTEGER 1
14917 _ACEOF
14920 # We also have mouse menus.
14921 HAVE_MENUS=yes
14925 ### Use session management (-lSM -lICE) if available
14926 HAVE_X_SM=no
14927 if test "${HAVE_X11}" = "yes"; then
14928 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14929 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14930 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14931 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14935 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14936 else
14937 # Is the header compilable?
14938 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14939 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14940 cat >conftest.$ac_ext <<_ACEOF
14941 /* confdefs.h. */
14942 _ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14946 $ac_includes_default
14947 #include <X11/SM/SMlib.h>
14948 _ACEOF
14949 rm -f conftest.$ac_objext
14950 if { (ac_try="$ac_compile"
14951 case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14954 esac
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_compile") 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && {
14963 test -z "$ac_c_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest.$ac_objext; then
14966 ac_header_compiler=yes
14967 else
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14971 ac_header_compiler=no
14974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14976 echo "${ECHO_T}$ac_header_compiler" >&6; }
14978 # Is the header present?
14979 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14980 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14981 cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h. */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 #include <X11/SM/SMlib.h>
14988 _ACEOF
14989 if { (ac_try="$ac_cpp conftest.$ac_ext"
14990 case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993 esac
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } >/dev/null && {
15002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15004 }; then
15005 ac_header_preproc=yes
15006 else
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 ac_header_preproc=no
15013 rm -f conftest.err conftest.$ac_ext
15014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15015 echo "${ECHO_T}$ac_header_preproc" >&6; }
15017 # So? What about this header?
15018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15019 yes:no: )
15020 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15021 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15022 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15023 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15024 ac_header_preproc=yes
15026 no:yes:* )
15027 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15028 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15030 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15032 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15034 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15036 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15038 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15041 esac
15042 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15043 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15044 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 else
15047 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15049 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15050 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15053 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15054 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15055 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15056 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059 ac_check_lib_save_LIBS=$LIBS
15060 LIBS="-lSM -lICE $LIBS"
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h. */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15068 /* Override any GCC internal prototype to avoid an error.
15069 Use char because int might match the return type of a GCC
15070 builtin and then its argument prototype would still apply. */
15071 #ifdef __cplusplus
15072 extern "C"
15073 #endif
15074 char SmcOpenConnection ();
15076 main ()
15078 return SmcOpenConnection ();
15080 return 0;
15082 _ACEOF
15083 rm -f conftest.$ac_objext conftest$ac_exeext
15084 if { (ac_try="$ac_link"
15085 case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15088 esac
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_link") 2>conftest.er1
15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } && {
15097 test -z "$ac_c_werror_flag" ||
15098 test ! -s conftest.err
15099 } && test -s conftest$ac_exeext &&
15100 $as_test_x conftest$ac_exeext; then
15101 ac_cv_lib_SM_SmcOpenConnection=yes
15102 else
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_cv_lib_SM_SmcOpenConnection=no
15109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15110 conftest$ac_exeext conftest.$ac_ext
15111 LIBS=$ac_check_lib_save_LIBS
15113 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15114 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15115 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15116 HAVE_X_SM=yes
15123 if test "${HAVE_X_SM}" = "yes"; then
15125 cat >>confdefs.h <<\_ACEOF
15126 #define HAVE_X_SM 1
15127 _ACEOF
15129 case "$LIBS" in
15130 *-lSM*) ;;
15131 *) LIBS="-lSM -lICE $LIBS" ;;
15132 esac
15136 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15137 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15138 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15139 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142 cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h. */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 #include <netdb.h>
15150 main ()
15152 return h_errno;
15154 return 0;
15156 _ACEOF
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (ac_try="$ac_link"
15159 case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15162 esac
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_link") 2>conftest.er1
15165 ac_status=$?
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } && {
15171 test -z "$ac_c_werror_flag" ||
15172 test ! -s conftest.err
15173 } && test -s conftest$ac_exeext &&
15174 $as_test_x conftest$ac_exeext; then
15175 emacs_cv_netdb_declares_h_errno=yes
15176 else
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15180 emacs_cv_netdb_declares_h_errno=no
15183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15184 conftest$ac_exeext conftest.$ac_ext
15186 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15187 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15188 if test $emacs_cv_netdb_declares_h_errno = yes; then
15190 cat >>confdefs.h <<\_ACEOF
15191 #define HAVE_H_ERRNO 1
15192 _ACEOF
15196 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15197 # for constant arguments. Useless!
15198 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15199 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15200 if test "${ac_cv_working_alloca_h+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h. */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 #include <alloca.h>
15211 main ()
15213 char *p = (char *) alloca (2 * sizeof (int));
15214 if (p) return 0;
15216 return 0;
15218 _ACEOF
15219 rm -f conftest.$ac_objext conftest$ac_exeext
15220 if { (ac_try="$ac_link"
15221 case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15224 esac
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_link") 2>conftest.er1
15227 ac_status=$?
15228 grep -v '^ *+' conftest.er1 >conftest.err
15229 rm -f conftest.er1
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } && {
15233 test -z "$ac_c_werror_flag" ||
15234 test ! -s conftest.err
15235 } && test -s conftest$ac_exeext &&
15236 $as_test_x conftest$ac_exeext; then
15237 ac_cv_working_alloca_h=yes
15238 else
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15242 ac_cv_working_alloca_h=no
15245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15246 conftest$ac_exeext conftest.$ac_ext
15248 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15249 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15250 if test $ac_cv_working_alloca_h = yes; then
15252 cat >>confdefs.h <<\_ACEOF
15253 #define HAVE_ALLOCA_H 1
15254 _ACEOF
15258 { echo "$as_me:$LINENO: checking for alloca" >&5
15259 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15260 if test "${ac_cv_func_alloca_works+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 else
15263 cat >conftest.$ac_ext <<_ACEOF
15264 /* confdefs.h. */
15265 _ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15269 #ifdef __GNUC__
15270 # define alloca __builtin_alloca
15271 #else
15272 # ifdef _MSC_VER
15273 # include <malloc.h>
15274 # define alloca _alloca
15275 # else
15276 # ifdef HAVE_ALLOCA_H
15277 # include <alloca.h>
15278 # else
15279 # ifdef _AIX
15280 #pragma alloca
15281 # else
15282 # ifndef alloca /* predefined by HP cc +Olibcalls */
15283 char *alloca ();
15284 # endif
15285 # endif
15286 # endif
15287 # endif
15288 #endif
15291 main ()
15293 char *p = (char *) alloca (1);
15294 if (p) return 0;
15296 return 0;
15298 _ACEOF
15299 rm -f conftest.$ac_objext conftest$ac_exeext
15300 if { (ac_try="$ac_link"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304 esac
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_link") 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } && {
15313 test -z "$ac_c_werror_flag" ||
15314 test ! -s conftest.err
15315 } && test -s conftest$ac_exeext &&
15316 $as_test_x conftest$ac_exeext; then
15317 ac_cv_func_alloca_works=yes
15318 else
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_cv_func_alloca_works=no
15325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15326 conftest$ac_exeext conftest.$ac_ext
15328 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15329 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15331 if test $ac_cv_func_alloca_works = yes; then
15333 cat >>confdefs.h <<\_ACEOF
15334 #define HAVE_ALLOCA 1
15335 _ACEOF
15337 else
15338 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15339 # that cause trouble. Some versions do not even contain alloca or
15340 # contain a buggy version. If you still want to use their alloca,
15341 # use ar to extract alloca.o from them instead of compiling alloca.c.
15343 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15345 cat >>confdefs.h <<\_ACEOF
15346 #define C_ALLOCA 1
15347 _ACEOF
15350 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15351 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15352 if test "${ac_cv_os_cray+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355 cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h. */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 #if defined CRAY && ! defined CRAY2
15362 webecray
15363 #else
15364 wenotbecray
15365 #endif
15367 _ACEOF
15368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15369 $EGREP "webecray" >/dev/null 2>&1; then
15370 ac_cv_os_cray=yes
15371 else
15372 ac_cv_os_cray=no
15374 rm -f conftest*
15377 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15378 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15379 if test $ac_cv_os_cray = yes; then
15380 for ac_func in _getb67 GETB67 getb67; do
15381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387 cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h. */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15395 #define $ac_func innocuous_$ac_func
15397 /* System header to define __stub macros and hopefully few prototypes,
15398 which can conflict with char $ac_func (); below.
15399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15400 <limits.h> exists even on freestanding compilers. */
15402 #ifdef __STDC__
15403 # include <limits.h>
15404 #else
15405 # include <assert.h>
15406 #endif
15408 #undef $ac_func
15410 /* Override any GCC internal prototype to avoid an error.
15411 Use char because int might match the return type of a GCC
15412 builtin and then its argument prototype would still apply. */
15413 #ifdef __cplusplus
15414 extern "C"
15415 #endif
15416 char $ac_func ();
15417 /* The GNU C library defines this for functions which it implements
15418 to always fail with ENOSYS. Some functions are actually named
15419 something starting with __ and the normal name is an alias. */
15420 #if defined __stub_$ac_func || defined __stub___$ac_func
15421 choke me
15422 #endif
15425 main ()
15427 return $ac_func ();
15429 return 0;
15431 _ACEOF
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (ac_try="$ac_link"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_link") 2>conftest.er1
15440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } && {
15446 test -z "$ac_c_werror_flag" ||
15447 test ! -s conftest.err
15448 } && test -s conftest$ac_exeext &&
15449 $as_test_x conftest$ac_exeext; then
15450 eval "$as_ac_var=yes"
15451 else
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 eval "$as_ac_var=no"
15458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15459 conftest$ac_exeext conftest.$ac_ext
15461 ac_res=`eval echo '${'$as_ac_var'}'`
15462 { echo "$as_me:$LINENO: result: $ac_res" >&5
15463 echo "${ECHO_T}$ac_res" >&6; }
15464 if test `eval echo '${'$as_ac_var'}'` = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define CRAY_STACKSEG_END $ac_func
15468 _ACEOF
15470 break
15473 done
15476 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15477 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15478 if test "${ac_cv_c_stack_direction+set}" = set; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 else
15481 if test "$cross_compiling" = yes; then
15482 ac_cv_c_stack_direction=0
15483 else
15484 cat >conftest.$ac_ext <<_ACEOF
15485 /* confdefs.h. */
15486 _ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h. */
15490 $ac_includes_default
15492 find_stack_direction ()
15494 static char *addr = 0;
15495 auto char dummy;
15496 if (addr == 0)
15498 addr = &dummy;
15499 return find_stack_direction ();
15501 else
15502 return (&dummy > addr) ? 1 : -1;
15506 main ()
15508 return find_stack_direction () < 0;
15510 _ACEOF
15511 rm -f conftest$ac_exeext
15512 if { (ac_try="$ac_link"
15513 case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15516 esac
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_link") 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15522 { (case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15525 esac
15526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_try") 2>&5
15528 ac_status=$?
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_cv_c_stack_direction=1
15532 else
15533 echo "$as_me: program exited with status $ac_status" >&5
15534 echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 ( exit $ac_status )
15538 ac_cv_c_stack_direction=-1
15540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15545 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15546 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15548 cat >>confdefs.h <<_ACEOF
15549 #define STACK_DIRECTION $ac_cv_c_stack_direction
15550 _ACEOF
15556 if test x"$ac_cv_func_alloca_works" != xyes; then
15557 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15558 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15559 { (exit 1); exit 1; }; }
15562 # fmod, logb, and frexp are found in -lm on most systems.
15563 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15565 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15566 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15567 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570 ac_check_lib_save_LIBS=$LIBS
15571 LIBS="-lm $LIBS"
15572 cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h. */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15579 /* Override any GCC internal prototype to avoid an error.
15580 Use char because int might match the return type of a GCC
15581 builtin and then its argument prototype would still apply. */
15582 #ifdef __cplusplus
15583 extern "C"
15584 #endif
15585 char sqrt ();
15587 main ()
15589 return sqrt ();
15591 return 0;
15593 _ACEOF
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (ac_try="$ac_link"
15596 case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_link") 2>conftest.er1
15602 ac_status=$?
15603 grep -v '^ *+' conftest.er1 >conftest.err
15604 rm -f conftest.er1
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } && {
15608 test -z "$ac_c_werror_flag" ||
15609 test ! -s conftest.err
15610 } && test -s conftest$ac_exeext &&
15611 $as_test_x conftest$ac_exeext; then
15612 ac_cv_lib_m_sqrt=yes
15613 else
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15617 ac_cv_lib_m_sqrt=no
15620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15621 conftest$ac_exeext conftest.$ac_ext
15622 LIBS=$ac_check_lib_save_LIBS
15624 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15625 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15626 if test $ac_cv_lib_m_sqrt = yes; then
15627 cat >>confdefs.h <<_ACEOF
15628 #define HAVE_LIBM 1
15629 _ACEOF
15631 LIBS="-lm $LIBS"
15636 # Check for mail-locking functions in a "mail" library. Probably this should
15637 # have the same check as for liblockfile below.
15639 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15640 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15641 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 else
15644 ac_check_lib_save_LIBS=$LIBS
15645 LIBS="-lmail $LIBS"
15646 cat >conftest.$ac_ext <<_ACEOF
15647 /* confdefs.h. */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15653 /* Override any GCC internal prototype to avoid an error.
15654 Use char because int might match the return type of a GCC
15655 builtin and then its argument prototype would still apply. */
15656 #ifdef __cplusplus
15657 extern "C"
15658 #endif
15659 char maillock ();
15661 main ()
15663 return maillock ();
15665 return 0;
15667 _ACEOF
15668 rm -f conftest.$ac_objext conftest$ac_exeext
15669 if { (ac_try="$ac_link"
15670 case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673 esac
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_link") 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } && {
15682 test -z "$ac_c_werror_flag" ||
15683 test ! -s conftest.err
15684 } && test -s conftest$ac_exeext &&
15685 $as_test_x conftest$ac_exeext; then
15686 ac_cv_lib_mail_maillock=yes
15687 else
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15691 ac_cv_lib_mail_maillock=no
15694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15695 conftest$ac_exeext conftest.$ac_ext
15696 LIBS=$ac_check_lib_save_LIBS
15698 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15699 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15700 if test $ac_cv_lib_mail_maillock = yes; then
15701 cat >>confdefs.h <<_ACEOF
15702 #define HAVE_LIBMAIL 1
15703 _ACEOF
15705 LIBS="-lmail $LIBS"
15710 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15711 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15712 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 else
15715 ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-llockfile $LIBS"
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15724 /* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15727 #ifdef __cplusplus
15728 extern "C"
15729 #endif
15730 char maillock ();
15732 main ()
15734 return maillock ();
15736 return 0;
15738 _ACEOF
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (ac_try="$ac_link"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744 esac
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_link") 2>conftest.er1
15747 ac_status=$?
15748 grep -v '^ *+' conftest.er1 >conftest.err
15749 rm -f conftest.er1
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } && {
15753 test -z "$ac_c_werror_flag" ||
15754 test ! -s conftest.err
15755 } && test -s conftest$ac_exeext &&
15756 $as_test_x conftest$ac_exeext; then
15757 ac_cv_lib_lockfile_maillock=yes
15758 else
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15762 ac_cv_lib_lockfile_maillock=no
15765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15766 conftest$ac_exeext conftest.$ac_ext
15767 LIBS=$ac_check_lib_save_LIBS
15769 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15770 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15771 if test $ac_cv_lib_lockfile_maillock = yes; then
15772 cat >>confdefs.h <<_ACEOF
15773 #define HAVE_LIBLOCKFILE 1
15774 _ACEOF
15776 LIBS="-llockfile $LIBS"
15780 # If we have the shared liblockfile, assume we must use it for mail
15781 # locking (e.g. Debian). If we couldn't link against liblockfile
15782 # (no liblockfile.a installed), ensure that we don't need to.
15783 if test "$ac_cv_lib_lockfile_maillock" = no; then
15784 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15785 set dummy liblockfile.so; ac_word=$2
15786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15788 if test "${ac_cv_prog_liblockfile+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791 if test -n "$liblockfile"; then
15792 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15793 else
15794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15795 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15796 for as_dir in $as_dummy
15798 IFS=$as_save_IFS
15799 test -z "$as_dir" && as_dir=.
15800 for ac_exec_ext in '' $ac_executable_extensions; do
15801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15802 ac_cv_prog_liblockfile="yes"
15803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15804 break 2
15806 done
15807 done
15808 IFS=$as_save_IFS
15810 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15813 liblockfile=$ac_cv_prog_liblockfile
15814 if test -n "$liblockfile"; then
15815 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15816 echo "${ECHO_T}$liblockfile" >&6; }
15817 else
15818 { echo "$as_me:$LINENO: result: no" >&5
15819 echo "${ECHO_T}no" >&6; }
15823 if test $ac_cv_prog_liblockfile = yes; then
15824 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15825 This probably means that movemail could lose mail.
15826 There may be a \`development' package to install containing liblockfile." >&5
15827 echo "$as_me: error: Shared liblockfile found but can't link against it.
15828 This probably means that movemail could lose mail.
15829 There may be a \`development' package to install containing liblockfile." >&2;}
15830 { (exit 1); exit 1; }; }
15831 else :
15835 for ac_func in touchlock
15837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 else
15843 cat >conftest.$ac_ext <<_ACEOF
15844 /* confdefs.h. */
15845 _ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15851 #define $ac_func innocuous_$ac_func
15853 /* System header to define __stub macros and hopefully few prototypes,
15854 which can conflict with char $ac_func (); below.
15855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15856 <limits.h> exists even on freestanding compilers. */
15858 #ifdef __STDC__
15859 # include <limits.h>
15860 #else
15861 # include <assert.h>
15862 #endif
15864 #undef $ac_func
15866 /* Override any GCC internal prototype to avoid an error.
15867 Use char because int might match the return type of a GCC
15868 builtin and then its argument prototype would still apply. */
15869 #ifdef __cplusplus
15870 extern "C"
15871 #endif
15872 char $ac_func ();
15873 /* The GNU C library defines this for functions which it implements
15874 to always fail with ENOSYS. Some functions are actually named
15875 something starting with __ and the normal name is an alias. */
15876 #if defined __stub_$ac_func || defined __stub___$ac_func
15877 choke me
15878 #endif
15881 main ()
15883 return $ac_func ();
15885 return 0;
15887 _ACEOF
15888 rm -f conftest.$ac_objext conftest$ac_exeext
15889 if { (ac_try="$ac_link"
15890 case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_link") 2>conftest.er1
15896 ac_status=$?
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } && {
15902 test -z "$ac_c_werror_flag" ||
15903 test ! -s conftest.err
15904 } && test -s conftest$ac_exeext &&
15905 $as_test_x conftest$ac_exeext; then
15906 eval "$as_ac_var=yes"
15907 else
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15911 eval "$as_ac_var=no"
15914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15915 conftest$ac_exeext conftest.$ac_ext
15917 ac_res=`eval echo '${'$as_ac_var'}'`
15918 { echo "$as_me:$LINENO: result: $ac_res" >&5
15919 echo "${ECHO_T}$ac_res" >&6; }
15920 if test `eval echo '${'$as_ac_var'}'` = yes; then
15921 cat >>confdefs.h <<_ACEOF
15922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15923 _ACEOF
15926 done
15929 for ac_header in maillock.h
15931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15938 ac_res=`eval echo '${'$as_ac_Header'}'`
15939 { echo "$as_me:$LINENO: result: $ac_res" >&5
15940 echo "${ECHO_T}$ac_res" >&6; }
15941 else
15942 # Is the header compilable?
15943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15945 cat >conftest.$ac_ext <<_ACEOF
15946 /* confdefs.h. */
15947 _ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 $ac_includes_default
15952 #include <$ac_header>
15953 _ACEOF
15954 rm -f conftest.$ac_objext
15955 if { (ac_try="$ac_compile"
15956 case "(($ac_try" in
15957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958 *) ac_try_echo=$ac_try;;
15959 esac
15960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961 (eval "$ac_compile") 2>conftest.er1
15962 ac_status=$?
15963 grep -v '^ *+' conftest.er1 >conftest.err
15964 rm -f conftest.er1
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } && {
15968 test -z "$ac_c_werror_flag" ||
15969 test ! -s conftest.err
15970 } && test -s conftest.$ac_objext; then
15971 ac_header_compiler=yes
15972 else
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_header_compiler=no
15979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15981 echo "${ECHO_T}$ac_header_compiler" >&6; }
15983 # Is the header present?
15984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15986 cat >conftest.$ac_ext <<_ACEOF
15987 /* confdefs.h. */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 #include <$ac_header>
15993 _ACEOF
15994 if { (ac_try="$ac_cpp conftest.$ac_ext"
15995 case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } >/dev/null && {
16007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16009 }; then
16010 ac_header_preproc=yes
16011 else
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 ac_header_preproc=no
16018 rm -f conftest.err conftest.$ac_ext
16019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16020 echo "${ECHO_T}$ac_header_preproc" >&6; }
16022 # So? What about this header?
16023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16024 yes:no: )
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16029 ac_header_preproc=yes
16031 no:yes:* )
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16046 esac
16047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16051 else
16052 eval "$as_ac_Header=\$ac_header_preproc"
16054 ac_res=`eval echo '${'$as_ac_Header'}'`
16055 { echo "$as_me:$LINENO: result: $ac_res" >&5
16056 echo "${ECHO_T}$ac_res" >&6; }
16059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16060 cat >>confdefs.h <<_ACEOF
16061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16062 _ACEOF
16066 done
16140 for ac_func in gethostname getdomainname dup2 \
16141 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16142 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16143 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16144 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16145 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16146 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16147 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16148 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16149 cfmakeraw cfsetspeed
16151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16157 cat >conftest.$ac_ext <<_ACEOF
16158 /* confdefs.h. */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16165 #define $ac_func innocuous_$ac_func
16167 /* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char $ac_func (); below.
16169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16170 <limits.h> exists even on freestanding compilers. */
16172 #ifdef __STDC__
16173 # include <limits.h>
16174 #else
16175 # include <assert.h>
16176 #endif
16178 #undef $ac_func
16180 /* Override any GCC internal prototype to avoid an error.
16181 Use char because int might match the return type of a GCC
16182 builtin and then its argument prototype would still apply. */
16183 #ifdef __cplusplus
16184 extern "C"
16185 #endif
16186 char $ac_func ();
16187 /* The GNU C library defines this for functions which it implements
16188 to always fail with ENOSYS. Some functions are actually named
16189 something starting with __ and the normal name is an alias. */
16190 #if defined __stub_$ac_func || defined __stub___$ac_func
16191 choke me
16192 #endif
16195 main ()
16197 return $ac_func ();
16199 return 0;
16201 _ACEOF
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (ac_try="$ac_link"
16204 case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_link") 2>conftest.er1
16210 ac_status=$?
16211 grep -v '^ *+' conftest.er1 >conftest.err
16212 rm -f conftest.er1
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } && {
16216 test -z "$ac_c_werror_flag" ||
16217 test ! -s conftest.err
16218 } && test -s conftest$ac_exeext &&
16219 $as_test_x conftest$ac_exeext; then
16220 eval "$as_ac_var=yes"
16221 else
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 eval "$as_ac_var=no"
16228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16229 conftest$ac_exeext conftest.$ac_ext
16231 ac_res=`eval echo '${'$as_ac_var'}'`
16232 { echo "$as_me:$LINENO: result: $ac_res" >&5
16233 echo "${ECHO_T}$ac_res" >&6; }
16234 if test `eval echo '${'$as_ac_var'}'` = yes; then
16235 cat >>confdefs.h <<_ACEOF
16236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16237 _ACEOF
16240 done
16244 for ac_header in sys/un.h
16246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 ac_res=`eval echo '${'$as_ac_Header'}'`
16254 { echo "$as_me:$LINENO: result: $ac_res" >&5
16255 echo "${ECHO_T}$ac_res" >&6; }
16256 else
16257 # Is the header compilable?
16258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16260 cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h. */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 $ac_includes_default
16267 #include <$ac_header>
16268 _ACEOF
16269 rm -f conftest.$ac_objext
16270 if { (ac_try="$ac_compile"
16271 case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16274 esac
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_compile") 2>conftest.er1
16277 ac_status=$?
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } && {
16283 test -z "$ac_c_werror_flag" ||
16284 test ! -s conftest.err
16285 } && test -s conftest.$ac_objext; then
16286 ac_header_compiler=yes
16287 else
16288 echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16291 ac_header_compiler=no
16294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16296 echo "${ECHO_T}$ac_header_compiler" >&6; }
16298 # Is the header present?
16299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16301 cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h. */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16307 #include <$ac_header>
16308 _ACEOF
16309 if { (ac_try="$ac_cpp conftest.$ac_ext"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16316 ac_status=$?
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } >/dev/null && {
16322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16323 test ! -s conftest.err
16324 }; then
16325 ac_header_preproc=yes
16326 else
16327 echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 ac_header_preproc=no
16333 rm -f conftest.err conftest.$ac_ext
16334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16335 echo "${ECHO_T}$ac_header_preproc" >&6; }
16337 # So? What about this header?
16338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16339 yes:no: )
16340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16344 ac_header_preproc=yes
16346 no:yes:* )
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16361 esac
16362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 else
16367 eval "$as_ac_Header=\$ac_header_preproc"
16369 ac_res=`eval echo '${'$as_ac_Header'}'`
16370 { echo "$as_me:$LINENO: result: $ac_res" >&5
16371 echo "${ECHO_T}$ac_res" >&6; }
16374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16375 cat >>confdefs.h <<_ACEOF
16376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16377 _ACEOF
16381 done
16388 for ac_header in $ac_header_list
16390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 ac_res=`eval echo '${'$as_ac_Header'}'`
16398 { echo "$as_me:$LINENO: result: $ac_res" >&5
16399 echo "${ECHO_T}$ac_res" >&6; }
16400 else
16401 # Is the header compilable?
16402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h. */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 $ac_includes_default
16411 #include <$ac_header>
16412 _ACEOF
16413 rm -f conftest.$ac_objext
16414 if { (ac_try="$ac_compile"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418 esac
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_compile") 2>conftest.er1
16421 ac_status=$?
16422 grep -v '^ *+' conftest.er1 >conftest.err
16423 rm -f conftest.er1
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } && {
16427 test -z "$ac_c_werror_flag" ||
16428 test ! -s conftest.err
16429 } && test -s conftest.$ac_objext; then
16430 ac_header_compiler=yes
16431 else
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ac_header_compiler=no
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16440 echo "${ECHO_T}$ac_header_compiler" >&6; }
16442 # Is the header present?
16443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16445 cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h. */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 #include <$ac_header>
16452 _ACEOF
16453 if { (ac_try="$ac_cpp conftest.$ac_ext"
16454 case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16457 esac
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16460 ac_status=$?
16461 grep -v '^ *+' conftest.er1 >conftest.err
16462 rm -f conftest.er1
16463 cat conftest.err >&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } >/dev/null && {
16466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16467 test ! -s conftest.err
16468 }; then
16469 ac_header_preproc=yes
16470 else
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16474 ac_header_preproc=no
16477 rm -f conftest.err conftest.$ac_ext
16478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16479 echo "${ECHO_T}$ac_header_preproc" >&6; }
16481 # So? What about this header?
16482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16483 yes:no: )
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16488 ac_header_preproc=yes
16490 no:yes:* )
16491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16505 esac
16506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511 eval "$as_ac_Header=\$ac_header_preproc"
16513 ac_res=`eval echo '${'$as_ac_Header'}'`
16514 { echo "$as_me:$LINENO: result: $ac_res" >&5
16515 echo "${ECHO_T}$ac_res" >&6; }
16518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16519 cat >>confdefs.h <<_ACEOF
16520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16521 _ACEOF
16525 done
16535 for ac_func in $ac_func_list
16537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 else
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16551 #define $ac_func innocuous_$ac_func
16553 /* System header to define __stub macros and hopefully few prototypes,
16554 which can conflict with char $ac_func (); below.
16555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16556 <limits.h> exists even on freestanding compilers. */
16558 #ifdef __STDC__
16559 # include <limits.h>
16560 #else
16561 # include <assert.h>
16562 #endif
16564 #undef $ac_func
16566 /* Override any GCC internal prototype to avoid an error.
16567 Use char because int might match the return type of a GCC
16568 builtin and then its argument prototype would still apply. */
16569 #ifdef __cplusplus
16570 extern "C"
16571 #endif
16572 char $ac_func ();
16573 /* The GNU C library defines this for functions which it implements
16574 to always fail with ENOSYS. Some functions are actually named
16575 something starting with __ and the normal name is an alias. */
16576 #if defined __stub_$ac_func || defined __stub___$ac_func
16577 choke me
16578 #endif
16581 main ()
16583 return $ac_func ();
16585 return 0;
16587 _ACEOF
16588 rm -f conftest.$ac_objext conftest$ac_exeext
16589 if { (ac_try="$ac_link"
16590 case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16593 esac
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_link") 2>conftest.er1
16596 ac_status=$?
16597 grep -v '^ *+' conftest.er1 >conftest.err
16598 rm -f conftest.er1
16599 cat conftest.err >&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } && {
16602 test -z "$ac_c_werror_flag" ||
16603 test ! -s conftest.err
16604 } && test -s conftest$ac_exeext &&
16605 $as_test_x conftest$ac_exeext; then
16606 eval "$as_ac_var=yes"
16607 else
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16611 eval "$as_ac_var=no"
16614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16615 conftest$ac_exeext conftest.$ac_ext
16617 ac_res=`eval echo '${'$as_ac_var'}'`
16618 { echo "$as_me:$LINENO: result: $ac_res" >&5
16619 echo "${ECHO_T}$ac_res" >&6; }
16620 if test `eval echo '${'$as_ac_var'}'` = yes; then
16621 cat >>confdefs.h <<_ACEOF
16622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16623 _ACEOF
16626 done
16644 { echo "$as_me:$LINENO: checking for working mktime" >&5
16645 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16646 if test "${ac_cv_func_working_mktime+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649 if test "$cross_compiling" = yes; then
16650 ac_cv_func_working_mktime=no
16651 else
16652 cat >conftest.$ac_ext <<_ACEOF
16653 /* confdefs.h. */
16654 _ACEOF
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16658 /* Test program from Paul Eggert and Tony Leneis. */
16659 #ifdef TIME_WITH_SYS_TIME
16660 # include <sys/time.h>
16661 # include <time.h>
16662 #else
16663 # ifdef HAVE_SYS_TIME_H
16664 # include <sys/time.h>
16665 # else
16666 # include <time.h>
16667 # endif
16668 #endif
16670 #include <limits.h>
16671 #include <stdlib.h>
16673 #ifdef HAVE_UNISTD_H
16674 # include <unistd.h>
16675 #endif
16677 #ifndef HAVE_ALARM
16678 # define alarm(X) /* empty */
16679 #endif
16681 /* Work around redefinition to rpl_putenv by other config tests. */
16682 #undef putenv
16684 static time_t time_t_max;
16685 static time_t time_t_min;
16687 /* Values we'll use to set the TZ environment variable. */
16688 static char *tz_strings[] = {
16689 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16690 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16692 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16694 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16695 Based on a problem report from Andreas Jaeger. */
16696 static int
16697 spring_forward_gap ()
16699 /* glibc (up to about 1998-10-07) failed this test. */
16700 struct tm tm;
16702 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16703 instead of "TZ=America/Vancouver" in order to detect the bug even
16704 on systems that don't support the Olson extension, or don't have the
16705 full zoneinfo tables installed. */
16706 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16708 tm.tm_year = 98;
16709 tm.tm_mon = 3;
16710 tm.tm_mday = 5;
16711 tm.tm_hour = 2;
16712 tm.tm_min = 0;
16713 tm.tm_sec = 0;
16714 tm.tm_isdst = -1;
16715 return mktime (&tm) != (time_t) -1;
16718 static int
16719 mktime_test1 (now)
16720 time_t now;
16722 struct tm *lt;
16723 return ! (lt = localtime (&now)) || mktime (lt) == now;
16726 static int
16727 mktime_test (now)
16728 time_t now;
16730 return (mktime_test1 (now)
16731 && mktime_test1 ((time_t) (time_t_max - now))
16732 && mktime_test1 ((time_t) (time_t_min + now)));
16735 static int
16736 irix_6_4_bug ()
16738 /* Based on code from Ariel Faigon. */
16739 struct tm tm;
16740 tm.tm_year = 96;
16741 tm.tm_mon = 3;
16742 tm.tm_mday = 0;
16743 tm.tm_hour = 0;
16744 tm.tm_min = 0;
16745 tm.tm_sec = 0;
16746 tm.tm_isdst = -1;
16747 mktime (&tm);
16748 return tm.tm_mon == 2 && tm.tm_mday == 31;
16751 static int
16752 bigtime_test (j)
16753 int j;
16755 struct tm tm;
16756 time_t now;
16757 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16758 now = mktime (&tm);
16759 if (now != (time_t) -1)
16761 struct tm *lt = localtime (&now);
16762 if (! (lt
16763 && lt->tm_year == tm.tm_year
16764 && lt->tm_mon == tm.tm_mon
16765 && lt->tm_mday == tm.tm_mday
16766 && lt->tm_hour == tm.tm_hour
16767 && lt->tm_min == tm.tm_min
16768 && lt->tm_sec == tm.tm_sec
16769 && lt->tm_yday == tm.tm_yday
16770 && lt->tm_wday == tm.tm_wday
16771 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16772 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16773 return 0;
16775 return 1;
16778 static int
16779 year_2050_test ()
16781 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16782 ignoring leap seconds. */
16783 unsigned long int answer = 2527315200UL;
16785 struct tm tm;
16786 time_t t;
16787 tm.tm_year = 2050 - 1900;
16788 tm.tm_mon = 2 - 1;
16789 tm.tm_mday = 1;
16790 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16791 tm.tm_isdst = -1;
16793 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16794 instead of "TZ=America/Vancouver" in order to detect the bug even
16795 on systems that don't support the Olson extension, or don't have the
16796 full zoneinfo tables installed. */
16797 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16799 t = mktime (&tm);
16801 /* Check that the result is either a failure, or close enough
16802 to the correct answer that we can assume the discrepancy is
16803 due to leap seconds. */
16804 return (t == (time_t) -1
16805 || (0 < t && answer - 120 <= t && t <= answer + 120));
16809 main ()
16811 time_t t, delta;
16812 int i, j;
16814 /* This test makes some buggy mktime implementations loop.
16815 Give up after 60 seconds; a mktime slower than that
16816 isn't worth using anyway. */
16817 alarm (60);
16819 for (;;)
16821 t = (time_t_max << 1) + 1;
16822 if (t <= time_t_max)
16823 break;
16824 time_t_max = t;
16826 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16828 delta = time_t_max / 997; /* a suitable prime number */
16829 for (i = 0; i < N_STRINGS; i++)
16831 if (tz_strings[i])
16832 putenv (tz_strings[i]);
16834 for (t = 0; t <= time_t_max - delta; t += delta)
16835 if (! mktime_test (t))
16836 return 1;
16837 if (! (mktime_test ((time_t) 1)
16838 && mktime_test ((time_t) (60 * 60))
16839 && mktime_test ((time_t) (60 * 60 * 24))))
16840 return 1;
16842 for (j = 1; ; j <<= 1)
16843 if (! bigtime_test (j))
16844 return 1;
16845 else if (INT_MAX / 2 < j)
16846 break;
16847 if (! bigtime_test (INT_MAX))
16848 return 1;
16850 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16852 _ACEOF
16853 rm -f conftest$ac_exeext
16854 if { (ac_try="$ac_link"
16855 case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16858 esac
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_link") 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16864 { (case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16867 esac
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_try") 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 ac_cv_func_working_mktime=yes
16874 else
16875 echo "$as_me: program exited with status $ac_status" >&5
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ( exit $ac_status )
16880 ac_cv_func_working_mktime=no
16882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16887 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16888 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16889 if test $ac_cv_func_working_mktime = no; then
16890 case " $LIBOBJS " in
16891 *" mktime.$ac_objext "* ) ;;
16892 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16894 esac
16898 if test "$ac_cv_func_working_mktime" = no; then
16900 cat >>confdefs.h <<\_ACEOF
16901 #define BROKEN_MKTIME 1
16902 _ACEOF
16906 ac_have_func=no # yes means we've found a way to get the load average.
16908 # Make sure getloadavg.c is where it belongs, at configure-time.
16909 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16910 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16911 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16912 { (exit 1); exit 1; }; }
16914 ac_save_LIBS=$LIBS
16916 # Check for getloadavg, but be sure not to touch the cache variable.
16917 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16918 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16919 if test "${ac_cv_func_getloadavg+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922 cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h. */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16930 #define getloadavg innocuous_getloadavg
16932 /* System header to define __stub macros and hopefully few prototypes,
16933 which can conflict with char getloadavg (); below.
16934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16935 <limits.h> exists even on freestanding compilers. */
16937 #ifdef __STDC__
16938 # include <limits.h>
16939 #else
16940 # include <assert.h>
16941 #endif
16943 #undef getloadavg
16945 /* Override any GCC internal prototype to avoid an error.
16946 Use char because int might match the return type of a GCC
16947 builtin and then its argument prototype would still apply. */
16948 #ifdef __cplusplus
16949 extern "C"
16950 #endif
16951 char getloadavg ();
16952 /* The GNU C library defines this for functions which it implements
16953 to always fail with ENOSYS. Some functions are actually named
16954 something starting with __ and the normal name is an alias. */
16955 #if defined __stub_getloadavg || defined __stub___getloadavg
16956 choke me
16957 #endif
16960 main ()
16962 return getloadavg ();
16964 return 0;
16966 _ACEOF
16967 rm -f conftest.$ac_objext conftest$ac_exeext
16968 if { (ac_try="$ac_link"
16969 case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16972 esac
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_link") 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest$ac_exeext &&
16984 $as_test_x conftest$ac_exeext; then
16985 ac_cv_func_getloadavg=yes
16986 else
16987 echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16990 ac_cv_func_getloadavg=no
16993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16994 conftest$ac_exeext conftest.$ac_ext
16996 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16997 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16998 if test $ac_cv_func_getloadavg = yes; then
16999 exit 0
17000 else
17001 exit 1
17003 ) && ac_have_func=yes
17005 # On HPUX9, an unprivileged user can get load averages through this function.
17007 for ac_func in pstat_getdynamic
17009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h. */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17023 #define $ac_func innocuous_$ac_func
17025 /* System header to define __stub macros and hopefully few prototypes,
17026 which can conflict with char $ac_func (); below.
17027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17028 <limits.h> exists even on freestanding compilers. */
17030 #ifdef __STDC__
17031 # include <limits.h>
17032 #else
17033 # include <assert.h>
17034 #endif
17036 #undef $ac_func
17038 /* Override any GCC internal prototype to avoid an error.
17039 Use char because int might match the return type of a GCC
17040 builtin and then its argument prototype would still apply. */
17041 #ifdef __cplusplus
17042 extern "C"
17043 #endif
17044 char $ac_func ();
17045 /* The GNU C library defines this for functions which it implements
17046 to always fail with ENOSYS. Some functions are actually named
17047 something starting with __ and the normal name is an alias. */
17048 #if defined __stub_$ac_func || defined __stub___$ac_func
17049 choke me
17050 #endif
17053 main ()
17055 return $ac_func ();
17057 return 0;
17059 _ACEOF
17060 rm -f conftest.$ac_objext conftest$ac_exeext
17061 if { (ac_try="$ac_link"
17062 case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_link") 2>conftest.er1
17068 ac_status=$?
17069 grep -v '^ *+' conftest.er1 >conftest.err
17070 rm -f conftest.er1
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } && {
17074 test -z "$ac_c_werror_flag" ||
17075 test ! -s conftest.err
17076 } && test -s conftest$ac_exeext &&
17077 $as_test_x conftest$ac_exeext; then
17078 eval "$as_ac_var=yes"
17079 else
17080 echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17083 eval "$as_ac_var=no"
17086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17087 conftest$ac_exeext conftest.$ac_ext
17089 ac_res=`eval echo '${'$as_ac_var'}'`
17090 { echo "$as_me:$LINENO: result: $ac_res" >&5
17091 echo "${ECHO_T}$ac_res" >&6; }
17092 if test `eval echo '${'$as_ac_var'}'` = yes; then
17093 cat >>confdefs.h <<_ACEOF
17094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17095 _ACEOF
17098 done
17101 # Solaris has libkstat which does not require root.
17103 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17104 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17105 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108 ac_check_lib_save_LIBS=$LIBS
17109 LIBS="-lkstat $LIBS"
17110 cat >conftest.$ac_ext <<_ACEOF
17111 /* confdefs.h. */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17117 /* Override any GCC internal prototype to avoid an error.
17118 Use char because int might match the return type of a GCC
17119 builtin and then its argument prototype would still apply. */
17120 #ifdef __cplusplus
17121 extern "C"
17122 #endif
17123 char kstat_open ();
17125 main ()
17127 return kstat_open ();
17129 return 0;
17131 _ACEOF
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (ac_try="$ac_link"
17134 case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17137 esac
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_link") 2>conftest.er1
17140 ac_status=$?
17141 grep -v '^ *+' conftest.er1 >conftest.err
17142 rm -f conftest.er1
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } && {
17146 test -z "$ac_c_werror_flag" ||
17147 test ! -s conftest.err
17148 } && test -s conftest$ac_exeext &&
17149 $as_test_x conftest$ac_exeext; then
17150 ac_cv_lib_kstat_kstat_open=yes
17151 else
17152 echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17155 ac_cv_lib_kstat_kstat_open=no
17158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17159 conftest$ac_exeext conftest.$ac_ext
17160 LIBS=$ac_check_lib_save_LIBS
17162 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17163 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17164 if test $ac_cv_lib_kstat_kstat_open = yes; then
17165 cat >>confdefs.h <<_ACEOF
17166 #define HAVE_LIBKSTAT 1
17167 _ACEOF
17169 LIBS="-lkstat $LIBS"
17173 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17175 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17176 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17177 # to get the right answer into the cache.
17178 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17179 if test $ac_have_func = no; then
17180 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17181 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17182 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 else
17185 ac_check_lib_save_LIBS=$LIBS
17186 LIBS="-lelf $LIBS"
17187 cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h. */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17194 /* Override any GCC internal prototype to avoid an error.
17195 Use char because int might match the return type of a GCC
17196 builtin and then its argument prototype would still apply. */
17197 #ifdef __cplusplus
17198 extern "C"
17199 #endif
17200 char elf_begin ();
17202 main ()
17204 return elf_begin ();
17206 return 0;
17208 _ACEOF
17209 rm -f conftest.$ac_objext conftest$ac_exeext
17210 if { (ac_try="$ac_link"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_link") 2>conftest.er1
17217 ac_status=$?
17218 grep -v '^ *+' conftest.er1 >conftest.err
17219 rm -f conftest.er1
17220 cat conftest.err >&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } && {
17223 test -z "$ac_c_werror_flag" ||
17224 test ! -s conftest.err
17225 } && test -s conftest$ac_exeext &&
17226 $as_test_x conftest$ac_exeext; then
17227 ac_cv_lib_elf_elf_begin=yes
17228 else
17229 echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17232 ac_cv_lib_elf_elf_begin=no
17235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17236 conftest$ac_exeext conftest.$ac_ext
17237 LIBS=$ac_check_lib_save_LIBS
17239 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17240 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17241 if test $ac_cv_lib_elf_elf_begin = yes; then
17242 LIBS="-lelf $LIBS"
17246 if test $ac_have_func = no; then
17247 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17248 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17249 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 else
17252 ac_check_lib_save_LIBS=$LIBS
17253 LIBS="-lkvm $LIBS"
17254 cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h. */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17261 /* Override any GCC internal prototype to avoid an error.
17262 Use char because int might match the return type of a GCC
17263 builtin and then its argument prototype would still apply. */
17264 #ifdef __cplusplus
17265 extern "C"
17266 #endif
17267 char kvm_open ();
17269 main ()
17271 return kvm_open ();
17273 return 0;
17275 _ACEOF
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (ac_try="$ac_link"
17278 case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17281 esac
17282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_link") 2>conftest.er1
17284 ac_status=$?
17285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } && {
17290 test -z "$ac_c_werror_flag" ||
17291 test ! -s conftest.err
17292 } && test -s conftest$ac_exeext &&
17293 $as_test_x conftest$ac_exeext; then
17294 ac_cv_lib_kvm_kvm_open=yes
17295 else
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17299 ac_cv_lib_kvm_kvm_open=no
17302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17303 conftest$ac_exeext conftest.$ac_ext
17304 LIBS=$ac_check_lib_save_LIBS
17306 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17307 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17308 if test $ac_cv_lib_kvm_kvm_open = yes; then
17309 LIBS="-lkvm $LIBS"
17312 # Check for the 4.4BSD definition of getloadavg.
17313 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17314 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17315 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 else
17318 ac_check_lib_save_LIBS=$LIBS
17319 LIBS="-lutil $LIBS"
17320 cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h. */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17327 /* Override any GCC internal prototype to avoid an error.
17328 Use char because int might match the return type of a GCC
17329 builtin and then its argument prototype would still apply. */
17330 #ifdef __cplusplus
17331 extern "C"
17332 #endif
17333 char getloadavg ();
17335 main ()
17337 return getloadavg ();
17339 return 0;
17341 _ACEOF
17342 rm -f conftest.$ac_objext conftest$ac_exeext
17343 if { (ac_try="$ac_link"
17344 case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17347 esac
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_link") 2>conftest.er1
17350 ac_status=$?
17351 grep -v '^ *+' conftest.er1 >conftest.err
17352 rm -f conftest.er1
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } && {
17356 test -z "$ac_c_werror_flag" ||
17357 test ! -s conftest.err
17358 } && test -s conftest$ac_exeext &&
17359 $as_test_x conftest$ac_exeext; then
17360 ac_cv_lib_util_getloadavg=yes
17361 else
17362 echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17365 ac_cv_lib_util_getloadavg=no
17368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17369 conftest$ac_exeext conftest.$ac_ext
17370 LIBS=$ac_check_lib_save_LIBS
17372 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17373 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17374 if test $ac_cv_lib_util_getloadavg = yes; then
17375 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17380 if test $ac_have_func = no; then
17381 # There is a commonly available library for RS/6000 AIX.
17382 # Since it is not a standard part of AIX, it might be installed locally.
17383 ac_getloadavg_LIBS=$LIBS
17384 LIBS="-L/usr/local/lib $LIBS"
17385 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17386 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17387 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17390 ac_check_lib_save_LIBS=$LIBS
17391 LIBS="-lgetloadavg $LIBS"
17392 cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h. */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17399 /* Override any GCC internal prototype to avoid an error.
17400 Use char because int might match the return type of a GCC
17401 builtin and then its argument prototype would still apply. */
17402 #ifdef __cplusplus
17403 extern "C"
17404 #endif
17405 char getloadavg ();
17407 main ()
17409 return getloadavg ();
17411 return 0;
17413 _ACEOF
17414 rm -f conftest.$ac_objext conftest$ac_exeext
17415 if { (ac_try="$ac_link"
17416 case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17419 esac
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421 (eval "$ac_link") 2>conftest.er1
17422 ac_status=$?
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && {
17428 test -z "$ac_c_werror_flag" ||
17429 test ! -s conftest.err
17430 } && test -s conftest$ac_exeext &&
17431 $as_test_x conftest$ac_exeext; then
17432 ac_cv_lib_getloadavg_getloadavg=yes
17433 else
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 ac_cv_lib_getloadavg_getloadavg=no
17440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17441 conftest$ac_exeext conftest.$ac_ext
17442 LIBS=$ac_check_lib_save_LIBS
17444 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17445 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17446 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17447 LIBS="-lgetloadavg $LIBS"
17448 else
17449 LIBS=$ac_getloadavg_LIBS
17454 # Make sure it is really in the library, if we think we found it,
17455 # otherwise set up the replacement function.
17457 for ac_func in getloadavg
17459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 else
17465 cat >conftest.$ac_ext <<_ACEOF
17466 /* confdefs.h. */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17473 #define $ac_func innocuous_$ac_func
17475 /* System header to define __stub macros and hopefully few prototypes,
17476 which can conflict with char $ac_func (); below.
17477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17478 <limits.h> exists even on freestanding compilers. */
17480 #ifdef __STDC__
17481 # include <limits.h>
17482 #else
17483 # include <assert.h>
17484 #endif
17486 #undef $ac_func
17488 /* Override any GCC internal prototype to avoid an error.
17489 Use char because int might match the return type of a GCC
17490 builtin and then its argument prototype would still apply. */
17491 #ifdef __cplusplus
17492 extern "C"
17493 #endif
17494 char $ac_func ();
17495 /* The GNU C library defines this for functions which it implements
17496 to always fail with ENOSYS. Some functions are actually named
17497 something starting with __ and the normal name is an alias. */
17498 #if defined __stub_$ac_func || defined __stub___$ac_func
17499 choke me
17500 #endif
17503 main ()
17505 return $ac_func ();
17507 return 0;
17509 _ACEOF
17510 rm -f conftest.$ac_objext conftest$ac_exeext
17511 if { (ac_try="$ac_link"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_link") 2>conftest.er1
17518 ac_status=$?
17519 grep -v '^ *+' conftest.er1 >conftest.err
17520 rm -f conftest.er1
17521 cat conftest.err >&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } && {
17524 test -z "$ac_c_werror_flag" ||
17525 test ! -s conftest.err
17526 } && test -s conftest$ac_exeext &&
17527 $as_test_x conftest$ac_exeext; then
17528 eval "$as_ac_var=yes"
17529 else
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 eval "$as_ac_var=no"
17536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17537 conftest$ac_exeext conftest.$ac_ext
17539 ac_res=`eval echo '${'$as_ac_var'}'`
17540 { echo "$as_me:$LINENO: result: $ac_res" >&5
17541 echo "${ECHO_T}$ac_res" >&6; }
17542 if test `eval echo '${'$as_ac_var'}'` = yes; then
17543 cat >>confdefs.h <<_ACEOF
17544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17545 _ACEOF
17547 else
17548 case " $LIBOBJS " in
17549 *" getloadavg.$ac_objext "* ) ;;
17550 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17552 esac
17555 cat >>confdefs.h <<\_ACEOF
17556 #define C_GETLOADAVG 1
17557 _ACEOF
17559 # Figure out what our getloadavg.c needs.
17560 ac_have_func=no
17561 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17562 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17563 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17564 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17568 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17569 else
17570 # Is the header compilable?
17571 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17572 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17573 cat >conftest.$ac_ext <<_ACEOF
17574 /* confdefs.h. */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 $ac_includes_default
17580 #include <sys/dg_sys_info.h>
17581 _ACEOF
17582 rm -f conftest.$ac_objext
17583 if { (ac_try="$ac_compile"
17584 case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_compile") 2>conftest.er1
17590 ac_status=$?
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } && {
17596 test -z "$ac_c_werror_flag" ||
17597 test ! -s conftest.err
17598 } && test -s conftest.$ac_objext; then
17599 ac_header_compiler=yes
17600 else
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17604 ac_header_compiler=no
17607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17609 echo "${ECHO_T}$ac_header_compiler" >&6; }
17611 # Is the header present?
17612 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17613 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17614 cat >conftest.$ac_ext <<_ACEOF
17615 /* confdefs.h. */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 #include <sys/dg_sys_info.h>
17621 _ACEOF
17622 if { (ac_try="$ac_cpp conftest.$ac_ext"
17623 case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } >/dev/null && {
17635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17636 test ! -s conftest.err
17637 }; then
17638 ac_header_preproc=yes
17639 else
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 ac_header_preproc=no
17646 rm -f conftest.err conftest.$ac_ext
17647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17648 echo "${ECHO_T}$ac_header_preproc" >&6; }
17650 # So? What about this header?
17651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17652 yes:no: )
17653 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17654 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17655 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17656 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17657 ac_header_preproc=yes
17659 no:yes:* )
17660 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17661 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17662 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17663 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17665 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17666 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17667 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17668 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17669 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17670 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17671 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17674 esac
17675 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17676 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17677 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17682 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17683 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17686 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17687 ac_have_func=yes
17689 cat >>confdefs.h <<\_ACEOF
17690 #define DGUX 1
17691 _ACEOF
17694 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17695 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17696 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699 ac_check_lib_save_LIBS=$LIBS
17700 LIBS="-ldgc $LIBS"
17701 cat >conftest.$ac_ext <<_ACEOF
17702 /* confdefs.h. */
17703 _ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17708 /* Override any GCC internal prototype to avoid an error.
17709 Use char because int might match the return type of a GCC
17710 builtin and then its argument prototype would still apply. */
17711 #ifdef __cplusplus
17712 extern "C"
17713 #endif
17714 char dg_sys_info ();
17716 main ()
17718 return dg_sys_info ();
17720 return 0;
17722 _ACEOF
17723 rm -f conftest.$ac_objext conftest$ac_exeext
17724 if { (ac_try="$ac_link"
17725 case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17728 esac
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_link") 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } && {
17737 test -z "$ac_c_werror_flag" ||
17738 test ! -s conftest.err
17739 } && test -s conftest$ac_exeext &&
17740 $as_test_x conftest$ac_exeext; then
17741 ac_cv_lib_dgc_dg_sys_info=yes
17742 else
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746 ac_cv_lib_dgc_dg_sys_info=no
17749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17750 conftest$ac_exeext conftest.$ac_ext
17751 LIBS=$ac_check_lib_save_LIBS
17753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17754 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17755 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17756 cat >>confdefs.h <<_ACEOF
17757 #define HAVE_LIBDGC 1
17758 _ACEOF
17760 LIBS="-ldgc $LIBS"
17768 if test "${ac_cv_header_locale_h+set}" = set; then
17769 { echo "$as_me:$LINENO: checking for locale.h" >&5
17770 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17771 if test "${ac_cv_header_locale_h+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17774 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17775 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17776 else
17777 # Is the header compilable?
17778 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17779 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17780 cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h. */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 $ac_includes_default
17787 #include <locale.h>
17788 _ACEOF
17789 rm -f conftest.$ac_objext
17790 if { (ac_try="$ac_compile"
17791 case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17794 esac
17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_compile") 2>conftest.er1
17797 ac_status=$?
17798 grep -v '^ *+' conftest.er1 >conftest.err
17799 rm -f conftest.er1
17800 cat conftest.err >&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } && {
17803 test -z "$ac_c_werror_flag" ||
17804 test ! -s conftest.err
17805 } && test -s conftest.$ac_objext; then
17806 ac_header_compiler=yes
17807 else
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ac_header_compiler=no
17814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17816 echo "${ECHO_T}$ac_header_compiler" >&6; }
17818 # Is the header present?
17819 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17820 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17821 cat >conftest.$ac_ext <<_ACEOF
17822 /* confdefs.h. */
17823 _ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h. */
17827 #include <locale.h>
17828 _ACEOF
17829 if { (ac_try="$ac_cpp conftest.$ac_ext"
17830 case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17833 esac
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17836 ac_status=$?
17837 grep -v '^ *+' conftest.er1 >conftest.err
17838 rm -f conftest.er1
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } >/dev/null && {
17842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17843 test ! -s conftest.err
17844 }; then
17845 ac_header_preproc=yes
17846 else
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17850 ac_header_preproc=no
17853 rm -f conftest.err conftest.$ac_ext
17854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17855 echo "${ECHO_T}$ac_header_preproc" >&6; }
17857 # So? What about this header?
17858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17859 yes:no: )
17860 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17861 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17863 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17864 ac_header_preproc=yes
17866 no:yes:* )
17867 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17868 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17870 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17872 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17873 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17874 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17875 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17876 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17877 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17878 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17881 esac
17882 { echo "$as_me:$LINENO: checking for locale.h" >&5
17883 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17884 if test "${ac_cv_header_locale_h+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887 ac_cv_header_locale_h=$ac_header_preproc
17889 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17890 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17896 for ac_func in setlocale
17898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 else
17904 cat >conftest.$ac_ext <<_ACEOF
17905 /* confdefs.h. */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17912 #define $ac_func innocuous_$ac_func
17914 /* System header to define __stub macros and hopefully few prototypes,
17915 which can conflict with char $ac_func (); below.
17916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917 <limits.h> exists even on freestanding compilers. */
17919 #ifdef __STDC__
17920 # include <limits.h>
17921 #else
17922 # include <assert.h>
17923 #endif
17925 #undef $ac_func
17927 /* Override any GCC internal prototype to avoid an error.
17928 Use char because int might match the return type of a GCC
17929 builtin and then its argument prototype would still apply. */
17930 #ifdef __cplusplus
17931 extern "C"
17932 #endif
17933 char $ac_func ();
17934 /* The GNU C library defines this for functions which it implements
17935 to always fail with ENOSYS. Some functions are actually named
17936 something starting with __ and the normal name is an alias. */
17937 #if defined __stub_$ac_func || defined __stub___$ac_func
17938 choke me
17939 #endif
17942 main ()
17944 return $ac_func ();
17946 return 0;
17948 _ACEOF
17949 rm -f conftest.$ac_objext conftest$ac_exeext
17950 if { (ac_try="$ac_link"
17951 case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_link") 2>conftest.er1
17957 ac_status=$?
17958 grep -v '^ *+' conftest.er1 >conftest.err
17959 rm -f conftest.er1
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } && {
17963 test -z "$ac_c_werror_flag" ||
17964 test ! -s conftest.err
17965 } && test -s conftest$ac_exeext &&
17966 $as_test_x conftest$ac_exeext; then
17967 eval "$as_ac_var=yes"
17968 else
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 eval "$as_ac_var=no"
17975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17976 conftest$ac_exeext conftest.$ac_ext
17978 ac_res=`eval echo '${'$as_ac_var'}'`
17979 { echo "$as_me:$LINENO: result: $ac_res" >&5
17980 echo "${ECHO_T}$ac_res" >&6; }
17981 if test `eval echo '${'$as_ac_var'}'` = yes; then
17982 cat >>confdefs.h <<_ACEOF
17983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17984 _ACEOF
17987 done
17990 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17991 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17992 # Irix 4.0.5F has the header but not the library.
17993 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17994 ac_have_func=yes
17996 cat >>confdefs.h <<\_ACEOF
17997 #define SVR4 1
17998 _ACEOF
18002 if test $ac_have_func = no; then
18003 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18004 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18005 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18006 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18007 echo $ECHO_N "(cached) $ECHO_C" >&6
18009 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18010 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18011 else
18012 # Is the header compilable?
18013 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18014 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18015 cat >conftest.$ac_ext <<_ACEOF
18016 /* confdefs.h. */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 $ac_includes_default
18022 #include <inq_stats/cpustats.h>
18023 _ACEOF
18024 rm -f conftest.$ac_objext
18025 if { (ac_try="$ac_compile"
18026 case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18029 esac
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_compile") 2>conftest.er1
18032 ac_status=$?
18033 grep -v '^ *+' conftest.er1 >conftest.err
18034 rm -f conftest.er1
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } && {
18038 test -z "$ac_c_werror_flag" ||
18039 test ! -s conftest.err
18040 } && test -s conftest.$ac_objext; then
18041 ac_header_compiler=yes
18042 else
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 ac_header_compiler=no
18049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18051 echo "${ECHO_T}$ac_header_compiler" >&6; }
18053 # Is the header present?
18054 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18055 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18056 cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h. */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 #include <inq_stats/cpustats.h>
18063 _ACEOF
18064 if { (ac_try="$ac_cpp conftest.$ac_ext"
18065 case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18068 esac
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18071 ac_status=$?
18072 grep -v '^ *+' conftest.er1 >conftest.err
18073 rm -f conftest.er1
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } >/dev/null && {
18077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18078 test ! -s conftest.err
18079 }; then
18080 ac_header_preproc=yes
18081 else
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 ac_header_preproc=no
18088 rm -f conftest.err conftest.$ac_ext
18089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18090 echo "${ECHO_T}$ac_header_preproc" >&6; }
18092 # So? What about this header?
18093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18094 yes:no: )
18095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18096 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18098 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18099 ac_header_preproc=yes
18101 no:yes:* )
18102 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18103 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18104 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18105 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18106 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18107 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18108 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18109 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18110 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18111 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18112 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18113 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18116 esac
18117 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18118 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18119 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18121 else
18122 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18124 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18125 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18128 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18129 ac_have_func=yes
18131 cat >>confdefs.h <<\_ACEOF
18132 #define UMAX 1
18133 _ACEOF
18136 cat >>confdefs.h <<\_ACEOF
18137 #define UMAX4_3 1
18138 _ACEOF
18145 if test $ac_have_func = no; then
18146 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18147 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18148 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18149 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18153 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18154 else
18155 # Is the header compilable?
18156 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18157 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18158 cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h. */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 $ac_includes_default
18165 #include <sys/cpustats.h>
18166 _ACEOF
18167 rm -f conftest.$ac_objext
18168 if { (ac_try="$ac_compile"
18169 case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_compile") 2>conftest.er1
18175 ac_status=$?
18176 grep -v '^ *+' conftest.er1 >conftest.err
18177 rm -f conftest.er1
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest.$ac_objext; then
18184 ac_header_compiler=yes
18185 else
18186 echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18189 ac_header_compiler=no
18192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18194 echo "${ECHO_T}$ac_header_compiler" >&6; }
18196 # Is the header present?
18197 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18198 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18199 cat >conftest.$ac_ext <<_ACEOF
18200 /* confdefs.h. */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205 #include <sys/cpustats.h>
18206 _ACEOF
18207 if { (ac_try="$ac_cpp conftest.$ac_ext"
18208 case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18211 esac
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18214 ac_status=$?
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } >/dev/null && {
18220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 }; then
18223 ac_header_preproc=yes
18224 else
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 ac_header_preproc=no
18231 rm -f conftest.err conftest.$ac_ext
18232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18233 echo "${ECHO_T}$ac_header_preproc" >&6; }
18235 # So? What about this header?
18236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18237 yes:no: )
18238 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18239 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18240 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18241 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18242 ac_header_preproc=yes
18244 no:yes:* )
18245 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18246 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18247 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18248 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18249 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18250 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18251 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18252 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18253 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18254 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18255 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18256 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18259 esac
18260 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18261 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18262 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18264 else
18265 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18267 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18268 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18271 if test $ac_cv_header_sys_cpustats_h = yes; then
18272 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18273 #define UMAX 1
18274 _ACEOF
18281 if test $ac_have_func = no; then
18283 for ac_header in mach/mach.h
18285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18292 ac_res=`eval echo '${'$as_ac_Header'}'`
18293 { echo "$as_me:$LINENO: result: $ac_res" >&5
18294 echo "${ECHO_T}$ac_res" >&6; }
18295 else
18296 # Is the header compilable?
18297 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18299 cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h. */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18305 $ac_includes_default
18306 #include <$ac_header>
18307 _ACEOF
18308 rm -f conftest.$ac_objext
18309 if { (ac_try="$ac_compile"
18310 case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_compile") 2>conftest.er1
18316 ac_status=$?
18317 grep -v '^ *+' conftest.er1 >conftest.err
18318 rm -f conftest.er1
18319 cat conftest.err >&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } && {
18322 test -z "$ac_c_werror_flag" ||
18323 test ! -s conftest.err
18324 } && test -s conftest.$ac_objext; then
18325 ac_header_compiler=yes
18326 else
18327 echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 ac_header_compiler=no
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18335 echo "${ECHO_T}$ac_header_compiler" >&6; }
18337 # Is the header present?
18338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18340 cat >conftest.$ac_ext <<_ACEOF
18341 /* confdefs.h. */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18346 #include <$ac_header>
18347 _ACEOF
18348 if { (ac_try="$ac_cpp conftest.$ac_ext"
18349 case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18352 esac
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18355 ac_status=$?
18356 grep -v '^ *+' conftest.er1 >conftest.err
18357 rm -f conftest.er1
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } >/dev/null && {
18361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18362 test ! -s conftest.err
18363 }; then
18364 ac_header_preproc=yes
18365 else
18366 echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18369 ac_header_preproc=no
18372 rm -f conftest.err conftest.$ac_ext
18373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18374 echo "${ECHO_T}$ac_header_preproc" >&6; }
18376 # So? What about this header?
18377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18378 yes:no: )
18379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18383 ac_header_preproc=yes
18385 no:yes:* )
18386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18400 esac
18401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 else
18406 eval "$as_ac_Header=\$ac_header_preproc"
18408 ac_res=`eval echo '${'$as_ac_Header'}'`
18409 { echo "$as_me:$LINENO: result: $ac_res" >&5
18410 echo "${ECHO_T}$ac_res" >&6; }
18413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18414 cat >>confdefs.h <<_ACEOF
18415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18416 _ACEOF
18420 done
18425 for ac_header in nlist.h
18427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18434 ac_res=`eval echo '${'$as_ac_Header'}'`
18435 { echo "$as_me:$LINENO: result: $ac_res" >&5
18436 echo "${ECHO_T}$ac_res" >&6; }
18437 else
18438 # Is the header compilable?
18439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18441 cat >conftest.$ac_ext <<_ACEOF
18442 /* confdefs.h. */
18443 _ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18447 $ac_includes_default
18448 #include <$ac_header>
18449 _ACEOF
18450 rm -f conftest.$ac_objext
18451 if { (ac_try="$ac_compile"
18452 case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_compile") 2>conftest.er1
18458 ac_status=$?
18459 grep -v '^ *+' conftest.er1 >conftest.err
18460 rm -f conftest.er1
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } && {
18464 test -z "$ac_c_werror_flag" ||
18465 test ! -s conftest.err
18466 } && test -s conftest.$ac_objext; then
18467 ac_header_compiler=yes
18468 else
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 ac_header_compiler=no
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18477 echo "${ECHO_T}$ac_header_compiler" >&6; }
18479 # Is the header present?
18480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18482 cat >conftest.$ac_ext <<_ACEOF
18483 /* confdefs.h. */
18484 _ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18488 #include <$ac_header>
18489 _ACEOF
18490 if { (ac_try="$ac_cpp conftest.$ac_ext"
18491 case "(($ac_try" in
18492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18493 *) ac_try_echo=$ac_try;;
18494 esac
18495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18497 ac_status=$?
18498 grep -v '^ *+' conftest.er1 >conftest.err
18499 rm -f conftest.er1
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } >/dev/null && {
18503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18504 test ! -s conftest.err
18505 }; then
18506 ac_header_preproc=yes
18507 else
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 ac_header_preproc=no
18514 rm -f conftest.err conftest.$ac_ext
18515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18516 echo "${ECHO_T}$ac_header_preproc" >&6; }
18518 # So? What about this header?
18519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18520 yes:no: )
18521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18525 ac_header_preproc=yes
18527 no:yes:* )
18528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18542 esac
18543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548 eval "$as_ac_Header=\$ac_header_preproc"
18550 ac_res=`eval echo '${'$as_ac_Header'}'`
18551 { echo "$as_me:$LINENO: result: $ac_res" >&5
18552 echo "${ECHO_T}$ac_res" >&6; }
18555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18558 _ACEOF
18559 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18560 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18561 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564 cat >conftest.$ac_ext <<_ACEOF
18565 /* confdefs.h. */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570 #include <nlist.h>
18573 main ()
18575 static struct nlist ac_aggr;
18576 if (ac_aggr.n_un.n_name)
18577 return 0;
18579 return 0;
18581 _ACEOF
18582 rm -f conftest.$ac_objext
18583 if { (ac_try="$ac_compile"
18584 case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18587 esac
18588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589 (eval "$ac_compile") 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } && {
18596 test -z "$ac_c_werror_flag" ||
18597 test ! -s conftest.err
18598 } && test -s conftest.$ac_objext; then
18599 ac_cv_member_struct_nlist_n_un_n_name=yes
18600 else
18601 echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18604 cat >conftest.$ac_ext <<_ACEOF
18605 /* confdefs.h. */
18606 _ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610 #include <nlist.h>
18613 main ()
18615 static struct nlist ac_aggr;
18616 if (sizeof ac_aggr.n_un.n_name)
18617 return 0;
18619 return 0;
18621 _ACEOF
18622 rm -f conftest.$ac_objext
18623 if { (ac_try="$ac_compile"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_compile") 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest.$ac_objext; then
18639 ac_cv_member_struct_nlist_n_un_n_name=yes
18640 else
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 ac_cv_member_struct_nlist_n_un_n_name=no
18647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18652 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18653 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18654 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18656 cat >>confdefs.h <<_ACEOF
18657 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18658 _ACEOF
18661 cat >>confdefs.h <<\_ACEOF
18662 #define NLIST_NAME_UNION 1
18663 _ACEOF
18670 done
18673 done
18676 # Some definitions of getloadavg require that the program be installed setgid.
18677 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18678 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18679 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18680 echo $ECHO_N "(cached) $ECHO_C" >&6
18681 else
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h. */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18689 #ifdef LDAV_PRIVILEGED
18690 Yowza Am I SETGID yet
18691 #endif
18692 _ACEOF
18693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18694 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18695 ac_cv_func_getloadavg_setgid=yes
18696 else
18697 ac_cv_func_getloadavg_setgid=no
18699 rm -f conftest*
18702 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18703 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18704 if test $ac_cv_func_getloadavg_setgid = yes; then
18705 NEED_SETGID=true
18707 cat >>confdefs.h <<\_ACEOF
18708 #define GETLOADAVG_PRIVILEGED 1
18709 _ACEOF
18711 else
18712 NEED_SETGID=false
18715 if test $ac_cv_func_getloadavg_setgid = yes; then
18716 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18717 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18718 if test "${ac_cv_group_kmem+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720 else
18721 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18722 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18723 # If we got an error (system does not support symlinks), try without -L.
18724 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18725 ac_cv_group_kmem=`echo $ac_ls_output \
18726 | sed -ne 's/[ ][ ]*/ /g;
18727 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18728 / /s/.* //;p;'`
18731 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18732 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18733 KMEM_GROUP=$ac_cv_group_kmem
18735 if test "x$ac_save_LIBS" = x; then
18736 GETLOADAVG_LIBS=$LIBS
18737 else
18738 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18740 LIBS=$ac_save_LIBS
18744 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18745 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18746 if test "${ac_cv_sys_largefile_source+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 else
18749 while :; do
18750 cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h. */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 #include <stdio.h>
18758 main ()
18760 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18762 return 0;
18764 _ACEOF
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (ac_try="$ac_link"
18767 case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18770 esac
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_link") 2>conftest.er1
18773 ac_status=$?
18774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -f conftest.er1
18776 cat conftest.err >&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } && {
18779 test -z "$ac_c_werror_flag" ||
18780 test ! -s conftest.err
18781 } && test -s conftest$ac_exeext &&
18782 $as_test_x conftest$ac_exeext; then
18783 ac_cv_sys_largefile_source=no; break
18784 else
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18792 conftest$ac_exeext conftest.$ac_ext
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h. */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 #define _LARGEFILE_SOURCE 1
18800 #include <stdio.h>
18802 main ()
18804 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18806 return 0;
18808 _ACEOF
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (ac_try="$ac_link"
18811 case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18814 esac
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_link") 2>conftest.er1
18817 ac_status=$?
18818 grep -v '^ *+' conftest.er1 >conftest.err
18819 rm -f conftest.er1
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } && {
18823 test -z "$ac_c_werror_flag" ||
18824 test ! -s conftest.err
18825 } && test -s conftest$ac_exeext &&
18826 $as_test_x conftest$ac_exeext; then
18827 ac_cv_sys_largefile_source=1; break
18828 else
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18836 conftest$ac_exeext conftest.$ac_ext
18837 ac_cv_sys_largefile_source=unknown
18838 break
18839 done
18841 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18842 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18843 case $ac_cv_sys_largefile_source in #(
18844 no | unknown) ;;
18846 cat >>confdefs.h <<_ACEOF
18847 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18848 _ACEOF
18850 esac
18851 rm -f conftest*
18853 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18854 # in glibc 2.1.3, but that breaks too many other things.
18855 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18856 if test $ac_cv_sys_largefile_source != unknown; then
18858 cat >>confdefs.h <<\_ACEOF
18859 #define HAVE_FSEEKO 1
18860 _ACEOF
18865 # Configure getopt.
18866 # getopt.m4 serial 10
18868 # The getopt module assume you want GNU getopt, with getopt_long etc,
18869 # rather than vanilla POSIX getopt. This means your your code should
18870 # always include <getopt.h> for the getopt prototypes.
18882 # Prerequisites of lib/getopt*.
18887 GETOPT_H=
18889 for ac_header in getopt.h
18891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 ac_res=`eval echo '${'$as_ac_Header'}'`
18899 { echo "$as_me:$LINENO: result: $ac_res" >&5
18900 echo "${ECHO_T}$ac_res" >&6; }
18901 else
18902 # Is the header compilable?
18903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18905 cat >conftest.$ac_ext <<_ACEOF
18906 /* confdefs.h. */
18907 _ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h. */
18911 $ac_includes_default
18912 #include <$ac_header>
18913 _ACEOF
18914 rm -f conftest.$ac_objext
18915 if { (ac_try="$ac_compile"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919 esac
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_compile") 2>conftest.er1
18922 ac_status=$?
18923 grep -v '^ *+' conftest.er1 >conftest.err
18924 rm -f conftest.er1
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } && {
18928 test -z "$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18930 } && test -s conftest.$ac_objext; then
18931 ac_header_compiler=yes
18932 else
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 ac_header_compiler=no
18939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18941 echo "${ECHO_T}$ac_header_compiler" >&6; }
18943 # Is the header present?
18944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18946 cat >conftest.$ac_ext <<_ACEOF
18947 /* confdefs.h. */
18948 _ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18952 #include <$ac_header>
18953 _ACEOF
18954 if { (ac_try="$ac_cpp conftest.$ac_ext"
18955 case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18958 esac
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18961 ac_status=$?
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } >/dev/null && {
18967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18968 test ! -s conftest.err
18969 }; then
18970 ac_header_preproc=yes
18971 else
18972 echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 ac_header_preproc=no
18978 rm -f conftest.err conftest.$ac_ext
18979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18980 echo "${ECHO_T}$ac_header_preproc" >&6; }
18982 # So? What about this header?
18983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18984 yes:no: )
18985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18989 ac_header_preproc=yes
18991 no:yes:* )
18992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19006 esac
19007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19010 echo $ECHO_N "(cached) $ECHO_C" >&6
19011 else
19012 eval "$as_ac_Header=\$ac_header_preproc"
19014 ac_res=`eval echo '${'$as_ac_Header'}'`
19015 { echo "$as_me:$LINENO: result: $ac_res" >&5
19016 echo "${ECHO_T}$ac_res" >&6; }
19019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19020 cat >>confdefs.h <<_ACEOF
19021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19022 _ACEOF
19024 else
19025 GETOPT_H=getopt.h
19028 done
19030 if test -z "$GETOPT_H"; then
19032 for ac_func in getopt_long_only
19034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 else
19040 cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h. */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19048 #define $ac_func innocuous_$ac_func
19050 /* System header to define __stub macros and hopefully few prototypes,
19051 which can conflict with char $ac_func (); below.
19052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19053 <limits.h> exists even on freestanding compilers. */
19055 #ifdef __STDC__
19056 # include <limits.h>
19057 #else
19058 # include <assert.h>
19059 #endif
19061 #undef $ac_func
19063 /* Override any GCC internal prototype to avoid an error.
19064 Use char because int might match the return type of a GCC
19065 builtin and then its argument prototype would still apply. */
19066 #ifdef __cplusplus
19067 extern "C"
19068 #endif
19069 char $ac_func ();
19070 /* The GNU C library defines this for functions which it implements
19071 to always fail with ENOSYS. Some functions are actually named
19072 something starting with __ and the normal name is an alias. */
19073 #if defined __stub_$ac_func || defined __stub___$ac_func
19074 choke me
19075 #endif
19078 main ()
19080 return $ac_func ();
19082 return 0;
19084 _ACEOF
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (ac_try="$ac_link"
19087 case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19090 esac
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_link") 2>conftest.er1
19093 ac_status=$?
19094 grep -v '^ *+' conftest.er1 >conftest.err
19095 rm -f conftest.er1
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } && {
19099 test -z "$ac_c_werror_flag" ||
19100 test ! -s conftest.err
19101 } && test -s conftest$ac_exeext &&
19102 $as_test_x conftest$ac_exeext; then
19103 eval "$as_ac_var=yes"
19104 else
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 eval "$as_ac_var=no"
19111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19112 conftest$ac_exeext conftest.$ac_ext
19114 ac_res=`eval echo '${'$as_ac_var'}'`
19115 { echo "$as_me:$LINENO: result: $ac_res" >&5
19116 echo "${ECHO_T}$ac_res" >&6; }
19117 if test `eval echo '${'$as_ac_var'}'` = yes; then
19118 cat >>confdefs.h <<_ACEOF
19119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19120 _ACEOF
19122 else
19123 GETOPT_H=getopt.h
19125 done
19129 if test -z "$GETOPT_H"; then
19130 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19131 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19132 if test "${ac_cv_have_decl_optreset+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 #include <getopt.h>
19144 main ()
19146 #ifndef optreset
19147 (void) optreset;
19148 #endif
19151 return 0;
19153 _ACEOF
19154 rm -f conftest.$ac_objext
19155 if { (ac_try="$ac_compile"
19156 case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19159 esac
19160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19161 (eval "$ac_compile") 2>conftest.er1
19162 ac_status=$?
19163 grep -v '^ *+' conftest.er1 >conftest.err
19164 rm -f conftest.er1
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } && {
19168 test -z "$ac_c_werror_flag" ||
19169 test ! -s conftest.err
19170 } && test -s conftest.$ac_objext; then
19171 ac_cv_have_decl_optreset=yes
19172 else
19173 echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19176 ac_cv_have_decl_optreset=no
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19182 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19183 if test $ac_cv_have_decl_optreset = yes; then
19184 GETOPT_H=getopt.h
19189 if test -z "$GETOPT_H"; then
19190 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19191 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19192 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19193 echo $ECHO_N "(cached) $ECHO_C" >&6
19194 else
19195 if test "$cross_compiling" = yes; then
19196 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19197 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19198 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19199 echo $ECHO_N "(cached) $ECHO_C" >&6
19200 else
19201 cat >conftest.$ac_ext <<_ACEOF
19202 /* confdefs.h. */
19203 _ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19207 #include <getopt.h>
19210 main ()
19212 #ifndef getopt_clip
19213 (void) getopt_clip;
19214 #endif
19217 return 0;
19219 _ACEOF
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19228 ac_status=$?
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest.$ac_objext; then
19237 ac_cv_have_decl_getopt_clip=yes
19238 else
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19242 ac_cv_have_decl_getopt_clip=no
19245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19247 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19248 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19249 if test $ac_cv_have_decl_getopt_clip = yes; then
19250 gl_cv_func_gnu_getopt=no
19251 else
19252 gl_cv_func_gnu_getopt=yes
19255 else
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h. */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include <getopt.h>
19264 main ()
19267 char *myargv[3];
19268 myargv[0] = "conftest";
19269 myargv[1] = "-+";
19270 myargv[2] = 0;
19271 return getopt (2, myargv, "+a") != '?';
19274 return 0;
19276 _ACEOF
19277 rm -f conftest$ac_exeext
19278 if { (ac_try="$ac_link"
19279 case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_link") 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19288 { (case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_try") 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 gl_cv_func_gnu_getopt=yes
19298 else
19299 echo "$as_me: program exited with status $ac_status" >&5
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ( exit $ac_status )
19304 gl_cv_func_gnu_getopt=no
19306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19311 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19312 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19313 if test "$gl_cv_func_gnu_getopt" = "no"; then
19314 GETOPT_H=getopt.h
19320 if test -n "$GETOPT_H"; then
19323 GETOPT_H=getopt.h
19325 cat >>confdefs.h <<\_ACEOF
19326 #define __GETOPT_PREFIX rpl_
19327 _ACEOF
19332 GETOPTOBJS='getopt.o getopt1.o'
19339 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19340 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19341 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 else
19344 # Use it with a single arg.
19345 cat >conftest.$ac_ext <<_ACEOF
19346 /* confdefs.h. */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19351 $ac_includes_default
19353 main ()
19355 getpgrp (0);
19357 return 0;
19359 _ACEOF
19360 rm -f conftest.$ac_objext
19361 if { (ac_try="$ac_compile"
19362 case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19365 esac
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_compile") 2>conftest.er1
19368 ac_status=$?
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } && {
19374 test -z "$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19376 } && test -s conftest.$ac_objext; then
19377 ac_cv_func_getpgrp_void=no
19378 else
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_cv_func_getpgrp_void=yes
19385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19389 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19390 if test $ac_cv_func_getpgrp_void = yes; then
19392 cat >>confdefs.h <<\_ACEOF
19393 #define GETPGRP_VOID 1
19394 _ACEOF
19400 for ac_func in strftime
19402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 else
19408 cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h. */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19416 #define $ac_func innocuous_$ac_func
19418 /* System header to define __stub macros and hopefully few prototypes,
19419 which can conflict with char $ac_func (); below.
19420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19421 <limits.h> exists even on freestanding compilers. */
19423 #ifdef __STDC__
19424 # include <limits.h>
19425 #else
19426 # include <assert.h>
19427 #endif
19429 #undef $ac_func
19431 /* Override any GCC internal prototype to avoid an error.
19432 Use char because int might match the return type of a GCC
19433 builtin and then its argument prototype would still apply. */
19434 #ifdef __cplusplus
19435 extern "C"
19436 #endif
19437 char $ac_func ();
19438 /* The GNU C library defines this for functions which it implements
19439 to always fail with ENOSYS. Some functions are actually named
19440 something starting with __ and the normal name is an alias. */
19441 #if defined __stub_$ac_func || defined __stub___$ac_func
19442 choke me
19443 #endif
19446 main ()
19448 return $ac_func ();
19450 return 0;
19452 _ACEOF
19453 rm -f conftest.$ac_objext conftest$ac_exeext
19454 if { (ac_try="$ac_link"
19455 case "(($ac_try" in
19456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19458 esac
19459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_link") 2>conftest.er1
19461 ac_status=$?
19462 grep -v '^ *+' conftest.er1 >conftest.err
19463 rm -f conftest.er1
19464 cat conftest.err >&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } && {
19467 test -z "$ac_c_werror_flag" ||
19468 test ! -s conftest.err
19469 } && test -s conftest$ac_exeext &&
19470 $as_test_x conftest$ac_exeext; then
19471 eval "$as_ac_var=yes"
19472 else
19473 echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19476 eval "$as_ac_var=no"
19479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19480 conftest$ac_exeext conftest.$ac_ext
19482 ac_res=`eval echo '${'$as_ac_var'}'`
19483 { echo "$as_me:$LINENO: result: $ac_res" >&5
19484 echo "${ECHO_T}$ac_res" >&6; }
19485 if test `eval echo '${'$as_ac_var'}'` = yes; then
19486 cat >>confdefs.h <<_ACEOF
19487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19488 _ACEOF
19490 else
19491 # strftime is in -lintl on SCO UNIX.
19492 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19493 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19494 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19496 else
19497 ac_check_lib_save_LIBS=$LIBS
19498 LIBS="-lintl $LIBS"
19499 cat >conftest.$ac_ext <<_ACEOF
19500 /* confdefs.h. */
19501 _ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19506 /* Override any GCC internal prototype to avoid an error.
19507 Use char because int might match the return type of a GCC
19508 builtin and then its argument prototype would still apply. */
19509 #ifdef __cplusplus
19510 extern "C"
19511 #endif
19512 char strftime ();
19514 main ()
19516 return strftime ();
19518 return 0;
19520 _ACEOF
19521 rm -f conftest.$ac_objext conftest$ac_exeext
19522 if { (ac_try="$ac_link"
19523 case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19526 esac
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_link") 2>conftest.er1
19529 ac_status=$?
19530 grep -v '^ *+' conftest.er1 >conftest.err
19531 rm -f conftest.er1
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } && {
19535 test -z "$ac_c_werror_flag" ||
19536 test ! -s conftest.err
19537 } && test -s conftest$ac_exeext &&
19538 $as_test_x conftest$ac_exeext; then
19539 ac_cv_lib_intl_strftime=yes
19540 else
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ac_cv_lib_intl_strftime=no
19547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19548 conftest$ac_exeext conftest.$ac_ext
19549 LIBS=$ac_check_lib_save_LIBS
19551 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19552 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19553 if test $ac_cv_lib_intl_strftime = yes; then
19554 cat >>confdefs.h <<\_ACEOF
19555 #define HAVE_STRFTIME 1
19556 _ACEOF
19558 LIBS="-lintl $LIBS"
19562 done
19565 # UNIX98 PTYs.
19567 for ac_func in grantpt
19569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575 cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h. */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h. */
19581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19583 #define $ac_func innocuous_$ac_func
19585 /* System header to define __stub macros and hopefully few prototypes,
19586 which can conflict with char $ac_func (); below.
19587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19588 <limits.h> exists even on freestanding compilers. */
19590 #ifdef __STDC__
19591 # include <limits.h>
19592 #else
19593 # include <assert.h>
19594 #endif
19596 #undef $ac_func
19598 /* Override any GCC internal prototype to avoid an error.
19599 Use char because int might match the return type of a GCC
19600 builtin and then its argument prototype would still apply. */
19601 #ifdef __cplusplus
19602 extern "C"
19603 #endif
19604 char $ac_func ();
19605 /* The GNU C library defines this for functions which it implements
19606 to always fail with ENOSYS. Some functions are actually named
19607 something starting with __ and the normal name is an alias. */
19608 #if defined __stub_$ac_func || defined __stub___$ac_func
19609 choke me
19610 #endif
19613 main ()
19615 return $ac_func ();
19617 return 0;
19619 _ACEOF
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (ac_try="$ac_link"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_link") 2>conftest.er1
19628 ac_status=$?
19629 grep -v '^ *+' conftest.er1 >conftest.err
19630 rm -f conftest.er1
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } && {
19634 test -z "$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19636 } && test -s conftest$ac_exeext &&
19637 $as_test_x conftest$ac_exeext; then
19638 eval "$as_ac_var=yes"
19639 else
19640 echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19643 eval "$as_ac_var=no"
19646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19647 conftest$ac_exeext conftest.$ac_ext
19649 ac_res=`eval echo '${'$as_ac_var'}'`
19650 { echo "$as_me:$LINENO: result: $ac_res" >&5
19651 echo "${ECHO_T}$ac_res" >&6; }
19652 if test `eval echo '${'$as_ac_var'}'` = yes; then
19653 cat >>confdefs.h <<_ACEOF
19654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19655 _ACEOF
19658 done
19661 # PTY-related GNU extensions.
19663 for ac_func in getpt
19665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 else
19671 cat >conftest.$ac_ext <<_ACEOF
19672 /* confdefs.h. */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h. */
19677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19679 #define $ac_func innocuous_$ac_func
19681 /* System header to define __stub macros and hopefully few prototypes,
19682 which can conflict with char $ac_func (); below.
19683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19684 <limits.h> exists even on freestanding compilers. */
19686 #ifdef __STDC__
19687 # include <limits.h>
19688 #else
19689 # include <assert.h>
19690 #endif
19692 #undef $ac_func
19694 /* Override any GCC internal prototype to avoid an error.
19695 Use char because int might match the return type of a GCC
19696 builtin and then its argument prototype would still apply. */
19697 #ifdef __cplusplus
19698 extern "C"
19699 #endif
19700 char $ac_func ();
19701 /* The GNU C library defines this for functions which it implements
19702 to always fail with ENOSYS. Some functions are actually named
19703 something starting with __ and the normal name is an alias. */
19704 #if defined __stub_$ac_func || defined __stub___$ac_func
19705 choke me
19706 #endif
19709 main ()
19711 return $ac_func ();
19713 return 0;
19715 _ACEOF
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_link") 2>conftest.er1
19724 ac_status=$?
19725 grep -v '^ *+' conftest.er1 >conftest.err
19726 rm -f conftest.er1
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } && {
19730 test -z "$ac_c_werror_flag" ||
19731 test ! -s conftest.err
19732 } && test -s conftest$ac_exeext &&
19733 $as_test_x conftest$ac_exeext; then
19734 eval "$as_ac_var=yes"
19735 else
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 eval "$as_ac_var=no"
19742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19743 conftest$ac_exeext conftest.$ac_ext
19745 ac_res=`eval echo '${'$as_ac_var'}'`
19746 { echo "$as_me:$LINENO: result: $ac_res" >&5
19747 echo "${ECHO_T}$ac_res" >&6; }
19748 if test `eval echo '${'$as_ac_var'}'` = yes; then
19749 cat >>confdefs.h <<_ACEOF
19750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19751 _ACEOF
19754 done
19757 # Check this now, so that we will NOT find the above functions in ncurses.
19758 # That is because we have not set up to link ncurses in lib-src.
19759 # It's better to believe a function is not available
19760 # than to expect to find it in ncurses.
19762 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19763 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19764 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767 ac_check_lib_save_LIBS=$LIBS
19768 LIBS="-lncurses $LIBS"
19769 cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h. */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19776 /* Override any GCC internal prototype to avoid an error.
19777 Use char because int might match the return type of a GCC
19778 builtin and then its argument prototype would still apply. */
19779 #ifdef __cplusplus
19780 extern "C"
19781 #endif
19782 char tparm ();
19784 main ()
19786 return tparm ();
19788 return 0;
19790 _ACEOF
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (ac_try="$ac_link"
19793 case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19796 esac
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_link") 2>conftest.er1
19799 ac_status=$?
19800 grep -v '^ *+' conftest.er1 >conftest.err
19801 rm -f conftest.er1
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } && {
19805 test -z "$ac_c_werror_flag" ||
19806 test ! -s conftest.err
19807 } && test -s conftest$ac_exeext &&
19808 $as_test_x conftest$ac_exeext; then
19809 ac_cv_lib_ncurses_tparm=yes
19810 else
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19814 ac_cv_lib_ncurses_tparm=no
19817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19818 conftest$ac_exeext conftest.$ac_ext
19819 LIBS=$ac_check_lib_save_LIBS
19821 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19822 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19823 if test $ac_cv_lib_ncurses_tparm = yes; then
19824 cat >>confdefs.h <<_ACEOF
19825 #define HAVE_LIBNCURSES 1
19826 _ACEOF
19828 LIBS="-lncurses $LIBS"
19833 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19835 resolv=no
19836 cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h. */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 #include <netinet/in.h>
19843 #include <arpa/nameser.h>
19844 #include <resolv.h>
19846 main ()
19848 return res_init();
19850 return 0;
19852 _ACEOF
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19858 esac
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_link") 2>conftest.er1
19861 ac_status=$?
19862 grep -v '^ *+' conftest.er1 >conftest.err
19863 rm -f conftest.er1
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } && {
19867 test -z "$ac_c_werror_flag" ||
19868 test ! -s conftest.err
19869 } && test -s conftest$ac_exeext &&
19870 $as_test_x conftest$ac_exeext; then
19871 have_res_init=yes
19872 else
19873 echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19876 have_res_init=no
19879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19880 conftest$ac_exeext conftest.$ac_ext
19881 if test "$have_res_init" = no; then
19882 OLIBS="$LIBS"
19883 LIBS="$LIBS -lresolv"
19884 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19885 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19886 cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h. */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 #include <netinet/in.h>
19893 #include <arpa/nameser.h>
19894 #include <resolv.h>
19896 main ()
19898 return res_init();
19900 return 0;
19902 _ACEOF
19903 rm -f conftest.$ac_objext conftest$ac_exeext
19904 if { (ac_try="$ac_link"
19905 case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19908 esac
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_link") 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } && {
19917 test -z "$ac_c_werror_flag" ||
19918 test ! -s conftest.err
19919 } && test -s conftest$ac_exeext &&
19920 $as_test_x conftest$ac_exeext; then
19921 have_res_init=yes
19922 else
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 have_res_init=no
19929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19930 conftest$ac_exeext conftest.$ac_ext
19931 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19932 echo "${ECHO_T}$have_res_init" >&6; }
19933 if test "$have_res_init" = yes ; then
19934 resolv=yes
19936 LIBS="$OLIBS"
19939 if test "$have_res_init" = yes; then
19941 cat >>confdefs.h <<\_ACEOF
19942 #define HAVE_RES_INIT 1
19943 _ACEOF
19947 # Do we need the Hesiod library to provide the support routines?
19948 if test "$with_hesiod" != no ; then
19949 # Don't set $LIBS here -- see comments above.
19950 { echo "$as_me:$LINENO: checking for res_send" >&5
19951 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19952 if test "${ac_cv_func_res_send+set}" = set; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 else
19955 cat >conftest.$ac_ext <<_ACEOF
19956 /* confdefs.h. */
19957 _ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19961 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19963 #define res_send innocuous_res_send
19965 /* System header to define __stub macros and hopefully few prototypes,
19966 which can conflict with char res_send (); below.
19967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19968 <limits.h> exists even on freestanding compilers. */
19970 #ifdef __STDC__
19971 # include <limits.h>
19972 #else
19973 # include <assert.h>
19974 #endif
19976 #undef res_send
19978 /* Override any GCC internal prototype to avoid an error.
19979 Use char because int might match the return type of a GCC
19980 builtin and then its argument prototype would still apply. */
19981 #ifdef __cplusplus
19982 extern "C"
19983 #endif
19984 char res_send ();
19985 /* The GNU C library defines this for functions which it implements
19986 to always fail with ENOSYS. Some functions are actually named
19987 something starting with __ and the normal name is an alias. */
19988 #if defined __stub_res_send || defined __stub___res_send
19989 choke me
19990 #endif
19993 main ()
19995 return res_send ();
19997 return 0;
19999 _ACEOF
20000 rm -f conftest.$ac_objext conftest$ac_exeext
20001 if { (ac_try="$ac_link"
20002 case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20005 esac
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_link") 2>conftest.er1
20008 ac_status=$?
20009 grep -v '^ *+' conftest.er1 >conftest.err
20010 rm -f conftest.er1
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_c_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest$ac_exeext &&
20017 $as_test_x conftest$ac_exeext; then
20018 ac_cv_func_res_send=yes
20019 else
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20023 ac_cv_func_res_send=no
20026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20027 conftest$ac_exeext conftest.$ac_ext
20029 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20030 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20031 if test $ac_cv_func_res_send = yes; then
20033 else
20034 { echo "$as_me:$LINENO: checking for __res_send" >&5
20035 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20036 if test "${ac_cv_func___res_send+set}" = set; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 else
20039 cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h. */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20047 #define __res_send innocuous___res_send
20049 /* System header to define __stub macros and hopefully few prototypes,
20050 which can conflict with char __res_send (); below.
20051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20052 <limits.h> exists even on freestanding compilers. */
20054 #ifdef __STDC__
20055 # include <limits.h>
20056 #else
20057 # include <assert.h>
20058 #endif
20060 #undef __res_send
20062 /* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
20065 #ifdef __cplusplus
20066 extern "C"
20067 #endif
20068 char __res_send ();
20069 /* The GNU C library defines this for functions which it implements
20070 to always fail with ENOSYS. Some functions are actually named
20071 something starting with __ and the normal name is an alias. */
20072 #if defined __stub___res_send || defined __stub_____res_send
20073 choke me
20074 #endif
20077 main ()
20079 return __res_send ();
20081 return 0;
20083 _ACEOF
20084 rm -f conftest.$ac_objext conftest$ac_exeext
20085 if { (ac_try="$ac_link"
20086 case "(($ac_try" in
20087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088 *) ac_try_echo=$ac_try;;
20089 esac
20090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091 (eval "$ac_link") 2>conftest.er1
20092 ac_status=$?
20093 grep -v '^ *+' conftest.er1 >conftest.err
20094 rm -f conftest.er1
20095 cat conftest.err >&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } && {
20098 test -z "$ac_c_werror_flag" ||
20099 test ! -s conftest.err
20100 } && test -s conftest$ac_exeext &&
20101 $as_test_x conftest$ac_exeext; then
20102 ac_cv_func___res_send=yes
20103 else
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 ac_cv_func___res_send=no
20110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20111 conftest$ac_exeext conftest.$ac_ext
20113 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20114 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20115 if test $ac_cv_func___res_send = yes; then
20117 else
20118 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20119 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20120 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20122 else
20123 ac_check_lib_save_LIBS=$LIBS
20124 LIBS="-lresolv $LIBS"
20125 cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h. */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20132 /* Override any GCC internal prototype to avoid an error.
20133 Use char because int might match the return type of a GCC
20134 builtin and then its argument prototype would still apply. */
20135 #ifdef __cplusplus
20136 extern "C"
20137 #endif
20138 char res_send ();
20140 main ()
20142 return res_send ();
20144 return 0;
20146 _ACEOF
20147 rm -f conftest.$ac_objext conftest$ac_exeext
20148 if { (ac_try="$ac_link"
20149 case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20152 esac
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_link") 2>conftest.er1
20155 ac_status=$?
20156 grep -v '^ *+' conftest.er1 >conftest.err
20157 rm -f conftest.er1
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest$ac_exeext &&
20164 $as_test_x conftest$ac_exeext; then
20165 ac_cv_lib_resolv_res_send=yes
20166 else
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20170 ac_cv_lib_resolv_res_send=no
20173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20174 conftest$ac_exeext conftest.$ac_ext
20175 LIBS=$ac_check_lib_save_LIBS
20177 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20178 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20179 if test $ac_cv_lib_resolv_res_send = yes; then
20180 resolv=yes
20181 else
20182 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20183 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20184 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 else
20187 ac_check_lib_save_LIBS=$LIBS
20188 LIBS="-lresolv $LIBS"
20189 cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h. */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20196 /* Override any GCC internal prototype to avoid an error.
20197 Use char because int might match the return type of a GCC
20198 builtin and then its argument prototype would still apply. */
20199 #ifdef __cplusplus
20200 extern "C"
20201 #endif
20202 char __res_send ();
20204 main ()
20206 return __res_send ();
20208 return 0;
20210 _ACEOF
20211 rm -f conftest.$ac_objext conftest$ac_exeext
20212 if { (ac_try="$ac_link"
20213 case "(($ac_try" in
20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20216 esac
20217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20218 (eval "$ac_link") 2>conftest.er1
20219 ac_status=$?
20220 grep -v '^ *+' conftest.er1 >conftest.err
20221 rm -f conftest.er1
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } && {
20225 test -z "$ac_c_werror_flag" ||
20226 test ! -s conftest.err
20227 } && test -s conftest$ac_exeext &&
20228 $as_test_x conftest$ac_exeext; then
20229 ac_cv_lib_resolv___res_send=yes
20230 else
20231 echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20234 ac_cv_lib_resolv___res_send=no
20237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20238 conftest$ac_exeext conftest.$ac_ext
20239 LIBS=$ac_check_lib_save_LIBS
20241 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20242 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20243 if test $ac_cv_lib_resolv___res_send = yes; then
20244 resolv=yes
20253 if test "$resolv" = yes ; then
20254 RESOLVLIB=-lresolv
20255 else
20256 RESOLVLIB=
20258 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20259 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20260 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263 cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h. */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20271 #define hes_getmailhost innocuous_hes_getmailhost
20273 /* System header to define __stub macros and hopefully few prototypes,
20274 which can conflict with char hes_getmailhost (); below.
20275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20276 <limits.h> exists even on freestanding compilers. */
20278 #ifdef __STDC__
20279 # include <limits.h>
20280 #else
20281 # include <assert.h>
20282 #endif
20284 #undef hes_getmailhost
20286 /* Override any GCC internal prototype to avoid an error.
20287 Use char because int might match the return type of a GCC
20288 builtin and then its argument prototype would still apply. */
20289 #ifdef __cplusplus
20290 extern "C"
20291 #endif
20292 char hes_getmailhost ();
20293 /* The GNU C library defines this for functions which it implements
20294 to always fail with ENOSYS. Some functions are actually named
20295 something starting with __ and the normal name is an alias. */
20296 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20297 choke me
20298 #endif
20301 main ()
20303 return hes_getmailhost ();
20305 return 0;
20307 _ACEOF
20308 rm -f conftest.$ac_objext conftest$ac_exeext
20309 if { (ac_try="$ac_link"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20313 esac
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_link") 2>conftest.er1
20316 ac_status=$?
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -f conftest.er1
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest$ac_exeext &&
20325 $as_test_x conftest$ac_exeext; then
20326 ac_cv_func_hes_getmailhost=yes
20327 else
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20331 ac_cv_func_hes_getmailhost=no
20334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20335 conftest$ac_exeext conftest.$ac_ext
20337 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20338 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20339 if test $ac_cv_func_hes_getmailhost = yes; then
20341 else
20342 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20343 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20344 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20345 echo $ECHO_N "(cached) $ECHO_C" >&6
20346 else
20347 ac_check_lib_save_LIBS=$LIBS
20348 LIBS="-lhesiod $RESOLVLIB $LIBS"
20349 cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h. */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20356 /* Override any GCC internal prototype to avoid an error.
20357 Use char because int might match the return type of a GCC
20358 builtin and then its argument prototype would still apply. */
20359 #ifdef __cplusplus
20360 extern "C"
20361 #endif
20362 char hes_getmailhost ();
20364 main ()
20366 return hes_getmailhost ();
20368 return 0;
20370 _ACEOF
20371 rm -f conftest.$ac_objext conftest$ac_exeext
20372 if { (ac_try="$ac_link"
20373 case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_link") 2>conftest.er1
20379 ac_status=$?
20380 grep -v '^ *+' conftest.er1 >conftest.err
20381 rm -f conftest.er1
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } && {
20385 test -z "$ac_c_werror_flag" ||
20386 test ! -s conftest.err
20387 } && test -s conftest$ac_exeext &&
20388 $as_test_x conftest$ac_exeext; then
20389 ac_cv_lib_hesiod_hes_getmailhost=yes
20390 else
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ac_cv_lib_hesiod_hes_getmailhost=no
20397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20398 conftest$ac_exeext conftest.$ac_ext
20399 LIBS=$ac_check_lib_save_LIBS
20401 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20402 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20403 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_LIBHESIOD 1
20407 _ACEOF
20409 else
20417 # Do we need libresolv (due to res_init or Hesiod)?
20418 if test "$resolv" = yes ; then
20420 cat >>confdefs.h <<\_ACEOF
20421 #define HAVE_LIBRESOLV 1
20422 _ACEOF
20426 # These tell us which Kerberos-related libraries to use.
20427 if test "${with_kerberos}" != no; then
20429 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20430 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20431 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20433 else
20434 ac_check_lib_save_LIBS=$LIBS
20435 LIBS="-lcom_err $LIBS"
20436 cat >conftest.$ac_ext <<_ACEOF
20437 /* confdefs.h. */
20438 _ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20443 /* Override any GCC internal prototype to avoid an error.
20444 Use char because int might match the return type of a GCC
20445 builtin and then its argument prototype would still apply. */
20446 #ifdef __cplusplus
20447 extern "C"
20448 #endif
20449 char com_err ();
20451 main ()
20453 return com_err ();
20455 return 0;
20457 _ACEOF
20458 rm -f conftest.$ac_objext conftest$ac_exeext
20459 if { (ac_try="$ac_link"
20460 case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20463 esac
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_link") 2>conftest.er1
20466 ac_status=$?
20467 grep -v '^ *+' conftest.er1 >conftest.err
20468 rm -f conftest.er1
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } && {
20472 test -z "$ac_c_werror_flag" ||
20473 test ! -s conftest.err
20474 } && test -s conftest$ac_exeext &&
20475 $as_test_x conftest$ac_exeext; then
20476 ac_cv_lib_com_err_com_err=yes
20477 else
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20481 ac_cv_lib_com_err_com_err=no
20484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20485 conftest$ac_exeext conftest.$ac_ext
20486 LIBS=$ac_check_lib_save_LIBS
20488 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20489 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20490 if test $ac_cv_lib_com_err_com_err = yes; then
20491 cat >>confdefs.h <<_ACEOF
20492 #define HAVE_LIBCOM_ERR 1
20493 _ACEOF
20495 LIBS="-lcom_err $LIBS"
20500 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20501 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20502 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 else
20505 ac_check_lib_save_LIBS=$LIBS
20506 LIBS="-lk5crypto $LIBS"
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h. */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20514 /* Override any GCC internal prototype to avoid an error.
20515 Use char because int might match the return type of a GCC
20516 builtin and then its argument prototype would still apply. */
20517 #ifdef __cplusplus
20518 extern "C"
20519 #endif
20520 char mit_des_cbc_encrypt ();
20522 main ()
20524 return mit_des_cbc_encrypt ();
20526 return 0;
20528 _ACEOF
20529 rm -f conftest.$ac_objext conftest$ac_exeext
20530 if { (ac_try="$ac_link"
20531 case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20534 esac
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_link") 2>conftest.er1
20537 ac_status=$?
20538 grep -v '^ *+' conftest.er1 >conftest.err
20539 rm -f conftest.er1
20540 cat conftest.err >&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } && {
20543 test -z "$ac_c_werror_flag" ||
20544 test ! -s conftest.err
20545 } && test -s conftest$ac_exeext &&
20546 $as_test_x conftest$ac_exeext; then
20547 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20548 else
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20556 conftest$ac_exeext conftest.$ac_ext
20557 LIBS=$ac_check_lib_save_LIBS
20559 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20560 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20561 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_LIBK5CRYPTO 1
20564 _ACEOF
20566 LIBS="-lk5crypto $LIBS"
20571 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20572 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20573 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576 ac_check_lib_save_LIBS=$LIBS
20577 LIBS="-lcrypto $LIBS"
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20585 /* Override any GCC internal prototype to avoid an error.
20586 Use char because int might match the return type of a GCC
20587 builtin and then its argument prototype would still apply. */
20588 #ifdef __cplusplus
20589 extern "C"
20590 #endif
20591 char mit_des_cbc_encrypt ();
20593 main ()
20595 return mit_des_cbc_encrypt ();
20597 return 0;
20599 _ACEOF
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest$ac_exeext &&
20617 $as_test_x conftest$ac_exeext; then
20618 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20619 else
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20627 conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20630 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20631 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20632 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634 #define HAVE_LIBCRYPTO 1
20635 _ACEOF
20637 LIBS="-lcrypto $LIBS"
20642 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20643 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20644 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647 ac_check_lib_save_LIBS=$LIBS
20648 LIBS="-lkrb5 $LIBS"
20649 cat >conftest.$ac_ext <<_ACEOF
20650 /* confdefs.h. */
20651 _ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20656 /* Override any GCC internal prototype to avoid an error.
20657 Use char because int might match the return type of a GCC
20658 builtin and then its argument prototype would still apply. */
20659 #ifdef __cplusplus
20660 extern "C"
20661 #endif
20662 char krb5_init_context ();
20664 main ()
20666 return krb5_init_context ();
20668 return 0;
20670 _ACEOF
20671 rm -f conftest.$ac_objext conftest$ac_exeext
20672 if { (ac_try="$ac_link"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20676 esac
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_link") 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } && {
20685 test -z "$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20687 } && test -s conftest$ac_exeext &&
20688 $as_test_x conftest$ac_exeext; then
20689 ac_cv_lib_krb5_krb5_init_context=yes
20690 else
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_cv_lib_krb5_krb5_init_context=no
20697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20698 conftest$ac_exeext conftest.$ac_ext
20699 LIBS=$ac_check_lib_save_LIBS
20701 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20702 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20703 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20704 cat >>confdefs.h <<_ACEOF
20705 #define HAVE_LIBKRB5 1
20706 _ACEOF
20708 LIBS="-lkrb5 $LIBS"
20712 if test "${with_kerberos5}" = no; then
20714 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20715 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20716 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20718 else
20719 ac_check_lib_save_LIBS=$LIBS
20720 LIBS="-ldes425 $LIBS"
20721 cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h. */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20728 /* Override any GCC internal prototype to avoid an error.
20729 Use char because int might match the return type of a GCC
20730 builtin and then its argument prototype would still apply. */
20731 #ifdef __cplusplus
20732 extern "C"
20733 #endif
20734 char des_cbc_encrypt ();
20736 main ()
20738 return des_cbc_encrypt ();
20740 return 0;
20742 _ACEOF
20743 rm -f conftest.$ac_objext conftest$ac_exeext
20744 if { (ac_try="$ac_link"
20745 case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_link") 2>conftest.er1
20751 ac_status=$?
20752 grep -v '^ *+' conftest.er1 >conftest.err
20753 rm -f conftest.er1
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest$ac_exeext &&
20760 $as_test_x conftest$ac_exeext; then
20761 ac_cv_lib_des425_des_cbc_encrypt=yes
20762 else
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 ac_cv_lib_des425_des_cbc_encrypt=no
20769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20770 conftest$ac_exeext conftest.$ac_ext
20771 LIBS=$ac_check_lib_save_LIBS
20773 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20774 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20775 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20776 cat >>confdefs.h <<_ACEOF
20777 #define HAVE_LIBDES425 1
20778 _ACEOF
20780 LIBS="-ldes425 $LIBS"
20782 else
20784 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20785 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20786 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20788 else
20789 ac_check_lib_save_LIBS=$LIBS
20790 LIBS="-ldes $LIBS"
20791 cat >conftest.$ac_ext <<_ACEOF
20792 /* confdefs.h. */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h. */
20798 /* Override any GCC internal prototype to avoid an error.
20799 Use char because int might match the return type of a GCC
20800 builtin and then its argument prototype would still apply. */
20801 #ifdef __cplusplus
20802 extern "C"
20803 #endif
20804 char des_cbc_encrypt ();
20806 main ()
20808 return des_cbc_encrypt ();
20810 return 0;
20812 _ACEOF
20813 rm -f conftest.$ac_objext conftest$ac_exeext
20814 if { (ac_try="$ac_link"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_link") 2>conftest.er1
20821 ac_status=$?
20822 grep -v '^ *+' conftest.er1 >conftest.err
20823 rm -f conftest.er1
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } && {
20827 test -z "$ac_c_werror_flag" ||
20828 test ! -s conftest.err
20829 } && test -s conftest$ac_exeext &&
20830 $as_test_x conftest$ac_exeext; then
20831 ac_cv_lib_des_des_cbc_encrypt=yes
20832 else
20833 echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_cv_lib_des_des_cbc_encrypt=no
20839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20840 conftest$ac_exeext conftest.$ac_ext
20841 LIBS=$ac_check_lib_save_LIBS
20843 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20844 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20845 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20846 cat >>confdefs.h <<_ACEOF
20847 #define HAVE_LIBDES 1
20848 _ACEOF
20850 LIBS="-ldes $LIBS"
20857 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20858 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20859 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862 ac_check_lib_save_LIBS=$LIBS
20863 LIBS="-lkrb4 $LIBS"
20864 cat >conftest.$ac_ext <<_ACEOF
20865 /* confdefs.h. */
20866 _ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20871 /* Override any GCC internal prototype to avoid an error.
20872 Use char because int might match the return type of a GCC
20873 builtin and then its argument prototype would still apply. */
20874 #ifdef __cplusplus
20875 extern "C"
20876 #endif
20877 char krb_get_cred ();
20879 main ()
20881 return krb_get_cred ();
20883 return 0;
20885 _ACEOF
20886 rm -f conftest.$ac_objext conftest$ac_exeext
20887 if { (ac_try="$ac_link"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_link") 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest$ac_exeext &&
20903 $as_test_x conftest$ac_exeext; then
20904 ac_cv_lib_krb4_krb_get_cred=yes
20905 else
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ac_cv_lib_krb4_krb_get_cred=no
20912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20913 conftest$ac_exeext conftest.$ac_ext
20914 LIBS=$ac_check_lib_save_LIBS
20916 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20917 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20918 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define HAVE_LIBKRB4 1
20921 _ACEOF
20923 LIBS="-lkrb4 $LIBS"
20925 else
20927 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20928 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20929 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20931 else
20932 ac_check_lib_save_LIBS=$LIBS
20933 LIBS="-lkrb $LIBS"
20934 cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h. */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20941 /* Override any GCC internal prototype to avoid an error.
20942 Use char because int might match the return type of a GCC
20943 builtin and then its argument prototype would still apply. */
20944 #ifdef __cplusplus
20945 extern "C"
20946 #endif
20947 char krb_get_cred ();
20949 main ()
20951 return krb_get_cred ();
20953 return 0;
20955 _ACEOF
20956 rm -f conftest.$ac_objext conftest$ac_exeext
20957 if { (ac_try="$ac_link"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20961 esac
20962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_link") 2>conftest.er1
20964 ac_status=$?
20965 grep -v '^ *+' conftest.er1 >conftest.err
20966 rm -f conftest.er1
20967 cat conftest.err >&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } && {
20970 test -z "$ac_c_werror_flag" ||
20971 test ! -s conftest.err
20972 } && test -s conftest$ac_exeext &&
20973 $as_test_x conftest$ac_exeext; then
20974 ac_cv_lib_krb_krb_get_cred=yes
20975 else
20976 echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20979 ac_cv_lib_krb_krb_get_cred=no
20982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20983 conftest$ac_exeext conftest.$ac_ext
20984 LIBS=$ac_check_lib_save_LIBS
20986 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20987 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20988 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20989 cat >>confdefs.h <<_ACEOF
20990 #define HAVE_LIBKRB 1
20991 _ACEOF
20993 LIBS="-lkrb $LIBS"
21001 if test "${with_kerberos5}" != no; then
21003 for ac_header in krb5.h
21005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21012 ac_res=`eval echo '${'$as_ac_Header'}'`
21013 { echo "$as_me:$LINENO: result: $ac_res" >&5
21014 echo "${ECHO_T}$ac_res" >&6; }
21015 else
21016 # Is the header compilable?
21017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21019 cat >conftest.$ac_ext <<_ACEOF
21020 /* confdefs.h. */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 $ac_includes_default
21026 #include <$ac_header>
21027 _ACEOF
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_compile") 2>conftest.er1
21036 ac_status=$?
21037 grep -v '^ *+' conftest.er1 >conftest.err
21038 rm -f conftest.er1
21039 cat conftest.err >&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } && {
21042 test -z "$ac_c_werror_flag" ||
21043 test ! -s conftest.err
21044 } && test -s conftest.$ac_objext; then
21045 ac_header_compiler=yes
21046 else
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_header_compiler=no
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21055 echo "${ECHO_T}$ac_header_compiler" >&6; }
21057 # Is the header present?
21058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21060 cat >conftest.$ac_ext <<_ACEOF
21061 /* confdefs.h. */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 #include <$ac_header>
21067 _ACEOF
21068 if { (ac_try="$ac_cpp conftest.$ac_ext"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21072 esac
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21075 ac_status=$?
21076 grep -v '^ *+' conftest.er1 >conftest.err
21077 rm -f conftest.er1
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } >/dev/null && {
21081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21082 test ! -s conftest.err
21083 }; then
21084 ac_header_preproc=yes
21085 else
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21089 ac_header_preproc=no
21092 rm -f conftest.err conftest.$ac_ext
21093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21094 echo "${ECHO_T}$ac_header_preproc" >&6; }
21096 # So? What about this header?
21097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21098 yes:no: )
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21103 ac_header_preproc=yes
21105 no:yes:* )
21106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21120 esac
21121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21125 else
21126 eval "$as_ac_Header=\$ac_header_preproc"
21128 ac_res=`eval echo '${'$as_ac_Header'}'`
21129 { echo "$as_me:$LINENO: result: $ac_res" >&5
21130 echo "${ECHO_T}$ac_res" >&6; }
21133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21134 cat >>confdefs.h <<_ACEOF
21135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21136 _ACEOF
21137 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21138 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21139 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21140 echo $ECHO_N "(cached) $ECHO_C" >&6
21141 else
21142 cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h. */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 #include <krb5.h>
21151 main ()
21153 static krb5_error ac_aggr;
21154 if (ac_aggr.text)
21155 return 0;
21157 return 0;
21159 _ACEOF
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21165 esac
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_compile") 2>conftest.er1
21168 ac_status=$?
21169 grep -v '^ *+' conftest.er1 >conftest.err
21170 rm -f conftest.er1
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } && {
21174 test -z "$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21176 } && test -s conftest.$ac_objext; then
21177 ac_cv_member_krb5_error_text=yes
21178 else
21179 echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21182 cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h. */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 #include <krb5.h>
21191 main ()
21193 static krb5_error ac_aggr;
21194 if (sizeof ac_aggr.text)
21195 return 0;
21197 return 0;
21199 _ACEOF
21200 rm -f conftest.$ac_objext
21201 if { (ac_try="$ac_compile"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21205 esac
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_compile") 2>conftest.er1
21208 ac_status=$?
21209 grep -v '^ *+' conftest.er1 >conftest.err
21210 rm -f conftest.er1
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } && {
21214 test -z "$ac_c_werror_flag" ||
21215 test ! -s conftest.err
21216 } && test -s conftest.$ac_objext; then
21217 ac_cv_member_krb5_error_text=yes
21218 else
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21222 ac_cv_member_krb5_error_text=no
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21231 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21232 if test $ac_cv_member_krb5_error_text = yes; then
21234 cat >>confdefs.h <<_ACEOF
21235 #define HAVE_KRB5_ERROR_TEXT 1
21236 _ACEOF
21240 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21241 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21242 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 else
21245 cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h. */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 #include <krb5.h>
21254 main ()
21256 static krb5_error ac_aggr;
21257 if (ac_aggr.e_text)
21258 return 0;
21260 return 0;
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (ac_try="$ac_compile"
21265 case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21268 esac
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_compile") 2>conftest.er1
21271 ac_status=$?
21272 grep -v '^ *+' conftest.er1 >conftest.err
21273 rm -f conftest.er1
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } && {
21277 test -z "$ac_c_werror_flag" ||
21278 test ! -s conftest.err
21279 } && test -s conftest.$ac_objext; then
21280 ac_cv_member_krb5_error_e_text=yes
21281 else
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h. */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <krb5.h>
21294 main ()
21296 static krb5_error ac_aggr;
21297 if (sizeof ac_aggr.e_text)
21298 return 0;
21300 return 0;
21302 _ACEOF
21303 rm -f conftest.$ac_objext
21304 if { (ac_try="$ac_compile"
21305 case "(($ac_try" in
21306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307 *) ac_try_echo=$ac_try;;
21308 esac
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310 (eval "$ac_compile") 2>conftest.er1
21311 ac_status=$?
21312 grep -v '^ *+' conftest.er1 >conftest.err
21313 rm -f conftest.er1
21314 cat conftest.err >&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && {
21317 test -z "$ac_c_werror_flag" ||
21318 test ! -s conftest.err
21319 } && test -s conftest.$ac_objext; then
21320 ac_cv_member_krb5_error_e_text=yes
21321 else
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 ac_cv_member_krb5_error_e_text=no
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21333 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21334 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21335 if test $ac_cv_member_krb5_error_e_text = yes; then
21337 cat >>confdefs.h <<_ACEOF
21338 #define HAVE_KRB5_ERROR_E_TEXT 1
21339 _ACEOF
21346 done
21348 else
21350 for ac_header in des.h
21352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21359 ac_res=`eval echo '${'$as_ac_Header'}'`
21360 { echo "$as_me:$LINENO: result: $ac_res" >&5
21361 echo "${ECHO_T}$ac_res" >&6; }
21362 else
21363 # Is the header compilable?
21364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21366 cat >conftest.$ac_ext <<_ACEOF
21367 /* confdefs.h. */
21368 _ACEOF
21369 cat confdefs.h >>conftest.$ac_ext
21370 cat >>conftest.$ac_ext <<_ACEOF
21371 /* end confdefs.h. */
21372 $ac_includes_default
21373 #include <$ac_header>
21374 _ACEOF
21375 rm -f conftest.$ac_objext
21376 if { (ac_try="$ac_compile"
21377 case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21380 esac
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_compile") 2>conftest.er1
21383 ac_status=$?
21384 grep -v '^ *+' conftest.er1 >conftest.err
21385 rm -f conftest.er1
21386 cat conftest.err >&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } && {
21389 test -z "$ac_c_werror_flag" ||
21390 test ! -s conftest.err
21391 } && test -s conftest.$ac_objext; then
21392 ac_header_compiler=yes
21393 else
21394 echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21397 ac_header_compiler=no
21400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21402 echo "${ECHO_T}$ac_header_compiler" >&6; }
21404 # Is the header present?
21405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21407 cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h. */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413 #include <$ac_header>
21414 _ACEOF
21415 if { (ac_try="$ac_cpp conftest.$ac_ext"
21416 case "(($ac_try" in
21417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418 *) ac_try_echo=$ac_try;;
21419 esac
21420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21422 ac_status=$?
21423 grep -v '^ *+' conftest.er1 >conftest.err
21424 rm -f conftest.er1
21425 cat conftest.err >&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } >/dev/null && {
21428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21429 test ! -s conftest.err
21430 }; then
21431 ac_header_preproc=yes
21432 else
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_header_preproc=no
21439 rm -f conftest.err conftest.$ac_ext
21440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21441 echo "${ECHO_T}$ac_header_preproc" >&6; }
21443 # So? What about this header?
21444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21445 yes:no: )
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21450 ac_header_preproc=yes
21452 no:yes:* )
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21467 esac
21468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 else
21473 eval "$as_ac_Header=\$ac_header_preproc"
21475 ac_res=`eval echo '${'$as_ac_Header'}'`
21476 { echo "$as_me:$LINENO: result: $ac_res" >&5
21477 echo "${ECHO_T}$ac_res" >&6; }
21480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21481 cat >>confdefs.h <<_ACEOF
21482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21483 _ACEOF
21485 else
21487 for ac_header in kerberosIV/des.h
21489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21494 echo $ECHO_N "(cached) $ECHO_C" >&6
21496 ac_res=`eval echo '${'$as_ac_Header'}'`
21497 { echo "$as_me:$LINENO: result: $ac_res" >&5
21498 echo "${ECHO_T}$ac_res" >&6; }
21499 else
21500 # Is the header compilable?
21501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21503 cat >conftest.$ac_ext <<_ACEOF
21504 /* confdefs.h. */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21509 $ac_includes_default
21510 #include <$ac_header>
21511 _ACEOF
21512 rm -f conftest.$ac_objext
21513 if { (ac_try="$ac_compile"
21514 case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21517 esac
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_compile") 2>conftest.er1
21520 ac_status=$?
21521 grep -v '^ *+' conftest.er1 >conftest.err
21522 rm -f conftest.er1
21523 cat conftest.err >&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } && {
21526 test -z "$ac_c_werror_flag" ||
21527 test ! -s conftest.err
21528 } && test -s conftest.$ac_objext; then
21529 ac_header_compiler=yes
21530 else
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21534 ac_header_compiler=no
21537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21539 echo "${ECHO_T}$ac_header_compiler" >&6; }
21541 # Is the header present?
21542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21544 cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h. */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21550 #include <$ac_header>
21551 _ACEOF
21552 if { (ac_try="$ac_cpp conftest.$ac_ext"
21553 case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21556 esac
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21559 ac_status=$?
21560 grep -v '^ *+' conftest.er1 >conftest.err
21561 rm -f conftest.er1
21562 cat conftest.err >&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } >/dev/null && {
21565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21566 test ! -s conftest.err
21567 }; then
21568 ac_header_preproc=yes
21569 else
21570 echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21573 ac_header_preproc=no
21576 rm -f conftest.err conftest.$ac_ext
21577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21578 echo "${ECHO_T}$ac_header_preproc" >&6; }
21580 # So? What about this header?
21581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21582 yes:no: )
21583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21587 ac_header_preproc=yes
21589 no:yes:* )
21590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21604 esac
21605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21608 echo $ECHO_N "(cached) $ECHO_C" >&6
21609 else
21610 eval "$as_ac_Header=\$ac_header_preproc"
21612 ac_res=`eval echo '${'$as_ac_Header'}'`
21613 { echo "$as_me:$LINENO: result: $ac_res" >&5
21614 echo "${ECHO_T}$ac_res" >&6; }
21617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21618 cat >>confdefs.h <<_ACEOF
21619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21620 _ACEOF
21622 else
21624 for ac_header in kerberos/des.h
21626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 ac_res=`eval echo '${'$as_ac_Header'}'`
21634 { echo "$as_me:$LINENO: result: $ac_res" >&5
21635 echo "${ECHO_T}$ac_res" >&6; }
21636 else
21637 # Is the header compilable?
21638 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21640 cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h. */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 $ac_includes_default
21647 #include <$ac_header>
21648 _ACEOF
21649 rm -f conftest.$ac_objext
21650 if { (ac_try="$ac_compile"
21651 case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21654 esac
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_compile") 2>conftest.er1
21657 ac_status=$?
21658 grep -v '^ *+' conftest.er1 >conftest.err
21659 rm -f conftest.er1
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } && {
21663 test -z "$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21665 } && test -s conftest.$ac_objext; then
21666 ac_header_compiler=yes
21667 else
21668 echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21671 ac_header_compiler=no
21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21676 echo "${ECHO_T}$ac_header_compiler" >&6; }
21678 # Is the header present?
21679 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21681 cat >conftest.$ac_ext <<_ACEOF
21682 /* confdefs.h. */
21683 _ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21687 #include <$ac_header>
21688 _ACEOF
21689 if { (ac_try="$ac_cpp conftest.$ac_ext"
21690 case "(($ac_try" in
21691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692 *) ac_try_echo=$ac_try;;
21693 esac
21694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21696 ac_status=$?
21697 grep -v '^ *+' conftest.er1 >conftest.err
21698 rm -f conftest.er1
21699 cat conftest.err >&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); } >/dev/null && {
21702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21703 test ! -s conftest.err
21704 }; then
21705 ac_header_preproc=yes
21706 else
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21710 ac_header_preproc=no
21713 rm -f conftest.err conftest.$ac_ext
21714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21715 echo "${ECHO_T}$ac_header_preproc" >&6; }
21717 # So? What about this header?
21718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21719 yes:no: )
21720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21724 ac_header_preproc=yes
21726 no:yes:* )
21727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21741 esac
21742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 else
21747 eval "$as_ac_Header=\$ac_header_preproc"
21749 ac_res=`eval echo '${'$as_ac_Header'}'`
21750 { echo "$as_me:$LINENO: result: $ac_res" >&5
21751 echo "${ECHO_T}$ac_res" >&6; }
21754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21755 cat >>confdefs.h <<_ACEOF
21756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21757 _ACEOF
21761 done
21765 done
21769 done
21772 for ac_header in krb.h
21774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 ac_res=`eval echo '${'$as_ac_Header'}'`
21782 { echo "$as_me:$LINENO: result: $ac_res" >&5
21783 echo "${ECHO_T}$ac_res" >&6; }
21784 else
21785 # Is the header compilable?
21786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21788 cat >conftest.$ac_ext <<_ACEOF
21789 /* confdefs.h. */
21790 _ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21794 $ac_includes_default
21795 #include <$ac_header>
21796 _ACEOF
21797 rm -f conftest.$ac_objext
21798 if { (ac_try="$ac_compile"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_compile") 2>conftest.er1
21805 ac_status=$?
21806 grep -v '^ *+' conftest.er1 >conftest.err
21807 rm -f conftest.er1
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } && {
21811 test -z "$ac_c_werror_flag" ||
21812 test ! -s conftest.err
21813 } && test -s conftest.$ac_objext; then
21814 ac_header_compiler=yes
21815 else
21816 echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21819 ac_header_compiler=no
21822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21824 echo "${ECHO_T}$ac_header_compiler" >&6; }
21826 # Is the header present?
21827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21829 cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h. */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 #include <$ac_header>
21836 _ACEOF
21837 if { (ac_try="$ac_cpp conftest.$ac_ext"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21841 esac
21842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21844 ac_status=$?
21845 grep -v '^ *+' conftest.er1 >conftest.err
21846 rm -f conftest.er1
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } >/dev/null && {
21850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21852 }; then
21853 ac_header_preproc=yes
21854 else
21855 echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21858 ac_header_preproc=no
21861 rm -f conftest.err conftest.$ac_ext
21862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21863 echo "${ECHO_T}$ac_header_preproc" >&6; }
21865 # So? What about this header?
21866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21867 yes:no: )
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21872 ac_header_preproc=yes
21874 no:yes:* )
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21889 esac
21890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21894 else
21895 eval "$as_ac_Header=\$ac_header_preproc"
21897 ac_res=`eval echo '${'$as_ac_Header'}'`
21898 { echo "$as_me:$LINENO: result: $ac_res" >&5
21899 echo "${ECHO_T}$ac_res" >&6; }
21902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21903 cat >>confdefs.h <<_ACEOF
21904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21905 _ACEOF
21907 else
21909 for ac_header in kerberosIV/krb.h
21911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21918 ac_res=`eval echo '${'$as_ac_Header'}'`
21919 { echo "$as_me:$LINENO: result: $ac_res" >&5
21920 echo "${ECHO_T}$ac_res" >&6; }
21921 else
21922 # Is the header compilable?
21923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21925 cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h. */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 $ac_includes_default
21932 #include <$ac_header>
21933 _ACEOF
21934 rm -f conftest.$ac_objext
21935 if { (ac_try="$ac_compile"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_compile") 2>conftest.er1
21942 ac_status=$?
21943 grep -v '^ *+' conftest.er1 >conftest.err
21944 rm -f conftest.er1
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest.$ac_objext; then
21951 ac_header_compiler=yes
21952 else
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21956 ac_header_compiler=no
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21961 echo "${ECHO_T}$ac_header_compiler" >&6; }
21963 # Is the header present?
21964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21966 cat >conftest.$ac_ext <<_ACEOF
21967 /* confdefs.h. */
21968 _ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h. */
21972 #include <$ac_header>
21973 _ACEOF
21974 if { (ac_try="$ac_cpp conftest.$ac_ext"
21975 case "(($ac_try" in
21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21978 esac
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21981 ac_status=$?
21982 grep -v '^ *+' conftest.er1 >conftest.err
21983 rm -f conftest.er1
21984 cat conftest.err >&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } >/dev/null && {
21987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21988 test ! -s conftest.err
21989 }; then
21990 ac_header_preproc=yes
21991 else
21992 echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 ac_header_preproc=no
21998 rm -f conftest.err conftest.$ac_ext
21999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22000 echo "${ECHO_T}$ac_header_preproc" >&6; }
22002 # So? What about this header?
22003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22004 yes:no: )
22005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22009 ac_header_preproc=yes
22011 no:yes:* )
22012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22026 esac
22027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 else
22032 eval "$as_ac_Header=\$ac_header_preproc"
22034 ac_res=`eval echo '${'$as_ac_Header'}'`
22035 { echo "$as_me:$LINENO: result: $ac_res" >&5
22036 echo "${ECHO_T}$ac_res" >&6; }
22039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22040 cat >>confdefs.h <<_ACEOF
22041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22042 _ACEOF
22044 else
22046 for ac_header in kerberos/krb.h
22048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22055 ac_res=`eval echo '${'$as_ac_Header'}'`
22056 { echo "$as_me:$LINENO: result: $ac_res" >&5
22057 echo "${ECHO_T}$ac_res" >&6; }
22058 else
22059 # Is the header compilable?
22060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22062 cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h. */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22068 $ac_includes_default
22069 #include <$ac_header>
22070 _ACEOF
22071 rm -f conftest.$ac_objext
22072 if { (ac_try="$ac_compile"
22073 case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22076 esac
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_compile") 2>conftest.er1
22079 ac_status=$?
22080 grep -v '^ *+' conftest.er1 >conftest.err
22081 rm -f conftest.er1
22082 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } && {
22085 test -z "$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 } && test -s conftest.$ac_objext; then
22088 ac_header_compiler=yes
22089 else
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ac_header_compiler=no
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22098 echo "${ECHO_T}$ac_header_compiler" >&6; }
22100 # Is the header present?
22101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22103 cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h. */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 #include <$ac_header>
22110 _ACEOF
22111 if { (ac_try="$ac_cpp conftest.$ac_ext"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22115 esac
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22118 ac_status=$?
22119 grep -v '^ *+' conftest.er1 >conftest.err
22120 rm -f conftest.er1
22121 cat conftest.err >&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } >/dev/null && {
22124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22125 test ! -s conftest.err
22126 }; then
22127 ac_header_preproc=yes
22128 else
22129 echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22132 ac_header_preproc=no
22135 rm -f conftest.err conftest.$ac_ext
22136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22137 echo "${ECHO_T}$ac_header_preproc" >&6; }
22139 # So? What about this header?
22140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22141 yes:no: )
22142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22146 ac_header_preproc=yes
22148 no:yes:* )
22149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22163 esac
22164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22168 else
22169 eval "$as_ac_Header=\$ac_header_preproc"
22171 ac_res=`eval echo '${'$as_ac_Header'}'`
22172 { echo "$as_me:$LINENO: result: $ac_res" >&5
22173 echo "${ECHO_T}$ac_res" >&6; }
22176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22177 cat >>confdefs.h <<_ACEOF
22178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22179 _ACEOF
22183 done
22187 done
22191 done
22195 for ac_header in com_err.h
22197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 ac_res=`eval echo '${'$as_ac_Header'}'`
22205 { echo "$as_me:$LINENO: result: $ac_res" >&5
22206 echo "${ECHO_T}$ac_res" >&6; }
22207 else
22208 # Is the header compilable?
22209 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22211 cat >conftest.$ac_ext <<_ACEOF
22212 /* confdefs.h. */
22213 _ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22217 $ac_includes_default
22218 #include <$ac_header>
22219 _ACEOF
22220 rm -f conftest.$ac_objext
22221 if { (ac_try="$ac_compile"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22225 esac
22226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22227 (eval "$ac_compile") 2>conftest.er1
22228 ac_status=$?
22229 grep -v '^ *+' conftest.er1 >conftest.err
22230 rm -f conftest.er1
22231 cat conftest.err >&5
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } && {
22234 test -z "$ac_c_werror_flag" ||
22235 test ! -s conftest.err
22236 } && test -s conftest.$ac_objext; then
22237 ac_header_compiler=yes
22238 else
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 ac_header_compiler=no
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22247 echo "${ECHO_T}$ac_header_compiler" >&6; }
22249 # Is the header present?
22250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22252 cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h. */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 #include <$ac_header>
22259 _ACEOF
22260 if { (ac_try="$ac_cpp conftest.$ac_ext"
22261 case "(($ac_try" in
22262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263 *) ac_try_echo=$ac_try;;
22264 esac
22265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22267 ac_status=$?
22268 grep -v '^ *+' conftest.er1 >conftest.err
22269 rm -f conftest.er1
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } >/dev/null && {
22273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22274 test ! -s conftest.err
22275 }; then
22276 ac_header_preproc=yes
22277 else
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 ac_header_preproc=no
22284 rm -f conftest.err conftest.$ac_ext
22285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22286 echo "${ECHO_T}$ac_header_preproc" >&6; }
22288 # So? What about this header?
22289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22290 yes:no: )
22291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22295 ac_header_preproc=yes
22297 no:yes:* )
22298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22312 esac
22313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22316 echo $ECHO_N "(cached) $ECHO_C" >&6
22317 else
22318 eval "$as_ac_Header=\$ac_header_preproc"
22320 ac_res=`eval echo '${'$as_ac_Header'}'`
22321 { echo "$as_me:$LINENO: result: $ac_res" >&5
22322 echo "${ECHO_T}$ac_res" >&6; }
22325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22326 cat >>confdefs.h <<_ACEOF
22327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22328 _ACEOF
22332 done
22336 # Solaris requires -lintl if you want strerror (which calls dgettext)
22337 # to return localized messages.
22339 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22340 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22341 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344 ac_check_lib_save_LIBS=$LIBS
22345 LIBS="-lintl $LIBS"
22346 cat >conftest.$ac_ext <<_ACEOF
22347 /* confdefs.h. */
22348 _ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h. */
22353 /* Override any GCC internal prototype to avoid an error.
22354 Use char because int might match the return type of a GCC
22355 builtin and then its argument prototype would still apply. */
22356 #ifdef __cplusplus
22357 extern "C"
22358 #endif
22359 char dgettext ();
22361 main ()
22363 return dgettext ();
22365 return 0;
22367 _ACEOF
22368 rm -f conftest.$ac_objext conftest$ac_exeext
22369 if { (ac_try="$ac_link"
22370 case "(($ac_try" in
22371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372 *) ac_try_echo=$ac_try;;
22373 esac
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375 (eval "$ac_link") 2>conftest.er1
22376 ac_status=$?
22377 grep -v '^ *+' conftest.er1 >conftest.err
22378 rm -f conftest.er1
22379 cat conftest.err >&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); } && {
22382 test -z "$ac_c_werror_flag" ||
22383 test ! -s conftest.err
22384 } && test -s conftest$ac_exeext &&
22385 $as_test_x conftest$ac_exeext; then
22386 ac_cv_lib_intl_dgettext=yes
22387 else
22388 echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22391 ac_cv_lib_intl_dgettext=no
22394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22395 conftest$ac_exeext conftest.$ac_ext
22396 LIBS=$ac_check_lib_save_LIBS
22398 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22399 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22400 if test $ac_cv_lib_intl_dgettext = yes; then
22401 cat >>confdefs.h <<_ACEOF
22402 #define HAVE_LIBINTL 1
22403 _ACEOF
22405 LIBS="-lintl $LIBS"
22410 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22411 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22412 if test "${emacs_cv_localtime_cache+set}" = set; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 else
22415 if test x$ac_cv_func_tzset = xyes; then
22416 if test "$cross_compiling" = yes; then
22417 # If we have tzset, assume the worst when cross-compiling.
22418 emacs_cv_localtime_cache=yes
22419 else
22420 cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h. */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 #include <time.h>
22427 extern char **environ;
22428 unset_TZ ()
22430 char **from, **to;
22431 for (to = from = environ; (*to = *from); from++)
22432 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22433 to++;
22435 char TZ_GMT0[] = "TZ=GMT0";
22436 char TZ_PST8[] = "TZ=PST8";
22437 main()
22439 time_t now = time ((time_t *) 0);
22440 int hour_GMT0, hour_unset;
22441 if (putenv (TZ_GMT0) != 0)
22442 exit (1);
22443 hour_GMT0 = localtime (&now)->tm_hour;
22444 unset_TZ ();
22445 hour_unset = localtime (&now)->tm_hour;
22446 if (putenv (TZ_PST8) != 0)
22447 exit (1);
22448 if (localtime (&now)->tm_hour == hour_GMT0)
22449 exit (1);
22450 unset_TZ ();
22451 if (localtime (&now)->tm_hour != hour_unset)
22452 exit (1);
22453 exit (0);
22455 _ACEOF
22456 rm -f conftest$ac_exeext
22457 if { (ac_try="$ac_link"
22458 case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_link") 2>&5
22464 ac_status=$?
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22467 { (case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22470 esac
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_try") 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 emacs_cv_localtime_cache=no
22477 else
22478 echo "$as_me: program exited with status $ac_status" >&5
22479 echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22482 ( exit $ac_status )
22483 emacs_cv_localtime_cache=yes
22485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22489 else
22490 # If we lack tzset, report that localtime does not cache TZ,
22491 # since we can't invalidate the cache if we don't have tzset.
22492 emacs_cv_localtime_cache=no
22495 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22496 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22497 if test $emacs_cv_localtime_cache = yes; then
22499 cat >>confdefs.h <<\_ACEOF
22500 #define LOCALTIME_CACHE 1
22501 _ACEOF
22505 if test "x$HAVE_TIMEVAL" = xyes; then
22507 for ac_func in gettimeofday
22509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22514 else
22515 cat >conftest.$ac_ext <<_ACEOF
22516 /* confdefs.h. */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22523 #define $ac_func innocuous_$ac_func
22525 /* System header to define __stub macros and hopefully few prototypes,
22526 which can conflict with char $ac_func (); below.
22527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22528 <limits.h> exists even on freestanding compilers. */
22530 #ifdef __STDC__
22531 # include <limits.h>
22532 #else
22533 # include <assert.h>
22534 #endif
22536 #undef $ac_func
22538 /* Override any GCC internal prototype to avoid an error.
22539 Use char because int might match the return type of a GCC
22540 builtin and then its argument prototype would still apply. */
22541 #ifdef __cplusplus
22542 extern "C"
22543 #endif
22544 char $ac_func ();
22545 /* The GNU C library defines this for functions which it implements
22546 to always fail with ENOSYS. Some functions are actually named
22547 something starting with __ and the normal name is an alias. */
22548 #if defined __stub_$ac_func || defined __stub___$ac_func
22549 choke me
22550 #endif
22553 main ()
22555 return $ac_func ();
22557 return 0;
22559 _ACEOF
22560 rm -f conftest.$ac_objext conftest$ac_exeext
22561 if { (ac_try="$ac_link"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22565 esac
22566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22567 (eval "$ac_link") 2>conftest.er1
22568 ac_status=$?
22569 grep -v '^ *+' conftest.er1 >conftest.err
22570 rm -f conftest.er1
22571 cat conftest.err >&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); } && {
22574 test -z "$ac_c_werror_flag" ||
22575 test ! -s conftest.err
22576 } && test -s conftest$ac_exeext &&
22577 $as_test_x conftest$ac_exeext; then
22578 eval "$as_ac_var=yes"
22579 else
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22583 eval "$as_ac_var=no"
22586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22587 conftest$ac_exeext conftest.$ac_ext
22589 ac_res=`eval echo '${'$as_ac_var'}'`
22590 { echo "$as_me:$LINENO: result: $ac_res" >&5
22591 echo "${ECHO_T}$ac_res" >&6; }
22592 if test `eval echo '${'$as_ac_var'}'` = yes; then
22593 cat >>confdefs.h <<_ACEOF
22594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22595 _ACEOF
22598 done
22600 if test $ac_cv_func_gettimeofday = yes; then
22601 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22602 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22603 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22605 else
22606 cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h. */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22613 #ifdef TIME_WITH_SYS_TIME
22614 #include <sys/time.h>
22615 #include <time.h>
22616 #else
22617 #ifdef HAVE_SYS_TIME_H
22618 #include <sys/time.h>
22619 #else
22620 #include <time.h>
22621 #endif
22622 #endif
22624 main ()
22626 struct timeval time;
22627 gettimeofday (&time, 0);
22629 return 0;
22631 _ACEOF
22632 rm -f conftest.$ac_objext
22633 if { (ac_try="$ac_compile"
22634 case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22637 esac
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_compile") 2>conftest.er1
22640 ac_status=$?
22641 grep -v '^ *+' conftest.er1 >conftest.err
22642 rm -f conftest.er1
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest.$ac_objext; then
22649 emacs_cv_gettimeofday_two_arguments=yes
22650 else
22651 echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22654 emacs_cv_gettimeofday_two_arguments=no
22657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22659 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22660 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22661 if test $emacs_cv_gettimeofday_two_arguments = no; then
22663 cat >>confdefs.h <<\_ACEOF
22664 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22665 _ACEOF
22671 ok_so_far=yes
22672 { echo "$as_me:$LINENO: checking for socket" >&5
22673 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22674 if test "${ac_cv_func_socket+set}" = set; then
22675 echo $ECHO_N "(cached) $ECHO_C" >&6
22676 else
22677 cat >conftest.$ac_ext <<_ACEOF
22678 /* confdefs.h. */
22679 _ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h. */
22683 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22685 #define socket innocuous_socket
22687 /* System header to define __stub macros and hopefully few prototypes,
22688 which can conflict with char socket (); below.
22689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22690 <limits.h> exists even on freestanding compilers. */
22692 #ifdef __STDC__
22693 # include <limits.h>
22694 #else
22695 # include <assert.h>
22696 #endif
22698 #undef socket
22700 /* Override any GCC internal prototype to avoid an error.
22701 Use char because int might match the return type of a GCC
22702 builtin and then its argument prototype would still apply. */
22703 #ifdef __cplusplus
22704 extern "C"
22705 #endif
22706 char socket ();
22707 /* The GNU C library defines this for functions which it implements
22708 to always fail with ENOSYS. Some functions are actually named
22709 something starting with __ and the normal name is an alias. */
22710 #if defined __stub_socket || defined __stub___socket
22711 choke me
22712 #endif
22715 main ()
22717 return socket ();
22719 return 0;
22721 _ACEOF
22722 rm -f conftest.$ac_objext conftest$ac_exeext
22723 if { (ac_try="$ac_link"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22727 esac
22728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22729 (eval "$ac_link") 2>conftest.er1
22730 ac_status=$?
22731 grep -v '^ *+' conftest.er1 >conftest.err
22732 rm -f conftest.er1
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } && {
22736 test -z "$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22738 } && test -s conftest$ac_exeext &&
22739 $as_test_x conftest$ac_exeext; then
22740 ac_cv_func_socket=yes
22741 else
22742 echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22745 ac_cv_func_socket=no
22748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22749 conftest$ac_exeext conftest.$ac_ext
22751 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22752 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22753 if test $ac_cv_func_socket = yes; then
22755 else
22756 ok_so_far=no
22759 if test $ok_so_far = yes; then
22760 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22761 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22762 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22763 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22766 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22767 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22768 else
22769 # Is the header compilable?
22770 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22771 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22772 cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h. */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22778 $ac_includes_default
22779 #include <netinet/in.h>
22780 _ACEOF
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22798 ac_header_compiler=yes
22799 else
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 ac_header_compiler=no
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22808 echo "${ECHO_T}$ac_header_compiler" >&6; }
22810 # Is the header present?
22811 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22812 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22813 cat >conftest.$ac_ext <<_ACEOF
22814 /* confdefs.h. */
22815 _ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 #include <netinet/in.h>
22820 _ACEOF
22821 if { (ac_try="$ac_cpp conftest.$ac_ext"
22822 case "(($ac_try" in
22823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824 *) ac_try_echo=$ac_try;;
22825 esac
22826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22828 ac_status=$?
22829 grep -v '^ *+' conftest.er1 >conftest.err
22830 rm -f conftest.er1
22831 cat conftest.err >&5
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); } >/dev/null && {
22834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22835 test ! -s conftest.err
22836 }; then
22837 ac_header_preproc=yes
22838 else
22839 echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22842 ac_header_preproc=no
22845 rm -f conftest.err conftest.$ac_ext
22846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22847 echo "${ECHO_T}$ac_header_preproc" >&6; }
22849 # So? What about this header?
22850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22851 yes:no: )
22852 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22853 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22854 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22855 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22856 ac_header_preproc=yes
22858 no:yes:* )
22859 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22860 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22861 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22862 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22863 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22864 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22865 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22866 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22867 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22868 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22869 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22870 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22873 esac
22874 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22875 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22876 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22877 echo $ECHO_N "(cached) $ECHO_C" >&6
22878 else
22879 ac_cv_header_netinet_in_h=$ac_header_preproc
22881 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22882 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22885 if test $ac_cv_header_netinet_in_h = yes; then
22887 else
22888 ok_so_far=no
22893 if test $ok_so_far = yes; then
22894 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22895 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22896 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22897 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22900 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22901 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22902 else
22903 # Is the header compilable?
22904 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22905 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22906 cat >conftest.$ac_ext <<_ACEOF
22907 /* confdefs.h. */
22908 _ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22912 $ac_includes_default
22913 #include <arpa/inet.h>
22914 _ACEOF
22915 rm -f conftest.$ac_objext
22916 if { (ac_try="$ac_compile"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22920 esac
22921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922 (eval "$ac_compile") 2>conftest.er1
22923 ac_status=$?
22924 grep -v '^ *+' conftest.er1 >conftest.err
22925 rm -f conftest.er1
22926 cat conftest.err >&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } && {
22929 test -z "$ac_c_werror_flag" ||
22930 test ! -s conftest.err
22931 } && test -s conftest.$ac_objext; then
22932 ac_header_compiler=yes
22933 else
22934 echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 ac_header_compiler=no
22940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22942 echo "${ECHO_T}$ac_header_compiler" >&6; }
22944 # Is the header present?
22945 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22946 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22947 cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h. */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 #include <arpa/inet.h>
22954 _ACEOF
22955 if { (ac_try="$ac_cpp conftest.$ac_ext"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22959 esac
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22962 ac_status=$?
22963 grep -v '^ *+' conftest.er1 >conftest.err
22964 rm -f conftest.er1
22965 cat conftest.err >&5
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } >/dev/null && {
22968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22969 test ! -s conftest.err
22970 }; then
22971 ac_header_preproc=yes
22972 else
22973 echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22976 ac_header_preproc=no
22979 rm -f conftest.err conftest.$ac_ext
22980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22981 echo "${ECHO_T}$ac_header_preproc" >&6; }
22983 # So? What about this header?
22984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22985 yes:no: )
22986 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22987 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22988 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22989 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22990 ac_header_preproc=yes
22992 no:yes:* )
22993 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22994 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22995 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22996 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22997 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22998 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22999 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23000 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23001 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23002 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23003 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23004 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23007 esac
23008 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23009 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23010 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23011 echo $ECHO_N "(cached) $ECHO_C" >&6
23012 else
23013 ac_cv_header_arpa_inet_h=$ac_header_preproc
23015 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23016 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23019 if test $ac_cv_header_arpa_inet_h = yes; then
23021 else
23022 ok_so_far=no
23027 if test $ok_so_far = yes; then
23029 cat >>confdefs.h <<\_ACEOF
23030 #define HAVE_INET_SOCKETS 1
23031 _ACEOF
23036 for ac_header in sys/ioctl.h
23038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23043 echo $ECHO_N "(cached) $ECHO_C" >&6
23045 ac_res=`eval echo '${'$as_ac_Header'}'`
23046 { echo "$as_me:$LINENO: result: $ac_res" >&5
23047 echo "${ECHO_T}$ac_res" >&6; }
23048 else
23049 # Is the header compilable?
23050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23052 cat >conftest.$ac_ext <<_ACEOF
23053 /* confdefs.h. */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 $ac_includes_default
23059 #include <$ac_header>
23060 _ACEOF
23061 rm -f conftest.$ac_objext
23062 if { (ac_try="$ac_compile"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23069 ac_status=$?
23070 grep -v '^ *+' conftest.er1 >conftest.err
23071 rm -f conftest.er1
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest.$ac_objext; then
23078 ac_header_compiler=yes
23079 else
23080 echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 ac_header_compiler=no
23086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23088 echo "${ECHO_T}$ac_header_compiler" >&6; }
23090 # Is the header present?
23091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23093 cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h. */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23099 #include <$ac_header>
23100 _ACEOF
23101 if { (ac_try="$ac_cpp conftest.$ac_ext"
23102 case "(($ac_try" in
23103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104 *) ac_try_echo=$ac_try;;
23105 esac
23106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23108 ac_status=$?
23109 grep -v '^ *+' conftest.er1 >conftest.err
23110 rm -f conftest.er1
23111 cat conftest.err >&5
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); } >/dev/null && {
23114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23115 test ! -s conftest.err
23116 }; then
23117 ac_header_preproc=yes
23118 else
23119 echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23122 ac_header_preproc=no
23125 rm -f conftest.err conftest.$ac_ext
23126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23127 echo "${ECHO_T}$ac_header_preproc" >&6; }
23129 # So? What about this header?
23130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23131 yes:no: )
23132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23136 ac_header_preproc=yes
23138 no:yes:* )
23139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23153 esac
23154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23158 else
23159 eval "$as_ac_Header=\$ac_header_preproc"
23161 ac_res=`eval echo '${'$as_ac_Header'}'`
23162 { echo "$as_me:$LINENO: result: $ac_res" >&5
23163 echo "${ECHO_T}$ac_res" >&6; }
23166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23167 cat >>confdefs.h <<_ACEOF
23168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23169 _ACEOF
23173 done
23176 if test -f /usr/lpp/X11/bin/smt.exp; then
23178 cat >>confdefs.h <<\_ACEOF
23179 #define HAVE_AIX_SMT_EXP 1
23180 _ACEOF
23184 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23185 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23186 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23187 { echo "$as_me:$LINENO: result: yes" >&5
23188 echo "${ECHO_T}yes" >&6; }
23190 cat >>confdefs.h <<\_ACEOF
23191 #define HAVE_DEV_PTMX 1
23192 _ACEOF
23194 else
23195 { echo "$as_me:$LINENO: result: no" >&5
23196 echo "${ECHO_T}no" >&6; }
23199 { echo "$as_me:$LINENO: checking for pid_t" >&5
23200 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23201 if test "${ac_cv_type_pid_t+set}" = set; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23203 else
23204 cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h. */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 $ac_includes_default
23211 typedef pid_t ac__type_new_;
23213 main ()
23215 if ((ac__type_new_ *) 0)
23216 return 0;
23217 if (sizeof (ac__type_new_))
23218 return 0;
23220 return 0;
23222 _ACEOF
23223 rm -f conftest.$ac_objext
23224 if { (ac_try="$ac_compile"
23225 case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23228 esac
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_compile") 2>conftest.er1
23231 ac_status=$?
23232 grep -v '^ *+' conftest.er1 >conftest.err
23233 rm -f conftest.er1
23234 cat conftest.err >&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } && {
23237 test -z "$ac_c_werror_flag" ||
23238 test ! -s conftest.err
23239 } && test -s conftest.$ac_objext; then
23240 ac_cv_type_pid_t=yes
23241 else
23242 echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23245 ac_cv_type_pid_t=no
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23251 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23252 if test $ac_cv_type_pid_t = yes; then
23254 else
23256 cat >>confdefs.h <<_ACEOF
23257 #define pid_t int
23258 _ACEOF
23263 for ac_header in vfork.h
23265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23272 ac_res=`eval echo '${'$as_ac_Header'}'`
23273 { echo "$as_me:$LINENO: result: $ac_res" >&5
23274 echo "${ECHO_T}$ac_res" >&6; }
23275 else
23276 # Is the header compilable?
23277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23279 cat >conftest.$ac_ext <<_ACEOF
23280 /* confdefs.h. */
23281 _ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h. */
23285 $ac_includes_default
23286 #include <$ac_header>
23287 _ACEOF
23288 rm -f conftest.$ac_objext
23289 if { (ac_try="$ac_compile"
23290 case "(($ac_try" in
23291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23292 *) ac_try_echo=$ac_try;;
23293 esac
23294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23295 (eval "$ac_compile") 2>conftest.er1
23296 ac_status=$?
23297 grep -v '^ *+' conftest.er1 >conftest.err
23298 rm -f conftest.er1
23299 cat conftest.err >&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } && {
23302 test -z "$ac_c_werror_flag" ||
23303 test ! -s conftest.err
23304 } && test -s conftest.$ac_objext; then
23305 ac_header_compiler=yes
23306 else
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ac_header_compiler=no
23313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23315 echo "${ECHO_T}$ac_header_compiler" >&6; }
23317 # Is the header present?
23318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23320 cat >conftest.$ac_ext <<_ACEOF
23321 /* confdefs.h. */
23322 _ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23326 #include <$ac_header>
23327 _ACEOF
23328 if { (ac_try="$ac_cpp conftest.$ac_ext"
23329 case "(($ac_try" in
23330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23332 esac
23333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23335 ac_status=$?
23336 grep -v '^ *+' conftest.er1 >conftest.err
23337 rm -f conftest.er1
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } >/dev/null && {
23341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 }; then
23344 ac_header_preproc=yes
23345 else
23346 echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_header_preproc=no
23352 rm -f conftest.err conftest.$ac_ext
23353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23354 echo "${ECHO_T}$ac_header_preproc" >&6; }
23356 # So? What about this header?
23357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23358 yes:no: )
23359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23363 ac_header_preproc=yes
23365 no:yes:* )
23366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23380 esac
23381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
23385 else
23386 eval "$as_ac_Header=\$ac_header_preproc"
23388 ac_res=`eval echo '${'$as_ac_Header'}'`
23389 { echo "$as_me:$LINENO: result: $ac_res" >&5
23390 echo "${ECHO_T}$ac_res" >&6; }
23393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23394 cat >>confdefs.h <<_ACEOF
23395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23396 _ACEOF
23400 done
23404 for ac_func in fork vfork
23406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23410 echo $ECHO_N "(cached) $ECHO_C" >&6
23411 else
23412 cat >conftest.$ac_ext <<_ACEOF
23413 /* confdefs.h. */
23414 _ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h. */
23418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23420 #define $ac_func innocuous_$ac_func
23422 /* System header to define __stub macros and hopefully few prototypes,
23423 which can conflict with char $ac_func (); below.
23424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23425 <limits.h> exists even on freestanding compilers. */
23427 #ifdef __STDC__
23428 # include <limits.h>
23429 #else
23430 # include <assert.h>
23431 #endif
23433 #undef $ac_func
23435 /* Override any GCC internal prototype to avoid an error.
23436 Use char because int might match the return type of a GCC
23437 builtin and then its argument prototype would still apply. */
23438 #ifdef __cplusplus
23439 extern "C"
23440 #endif
23441 char $ac_func ();
23442 /* The GNU C library defines this for functions which it implements
23443 to always fail with ENOSYS. Some functions are actually named
23444 something starting with __ and the normal name is an alias. */
23445 #if defined __stub_$ac_func || defined __stub___$ac_func
23446 choke me
23447 #endif
23450 main ()
23452 return $ac_func ();
23454 return 0;
23456 _ACEOF
23457 rm -f conftest.$ac_objext conftest$ac_exeext
23458 if { (ac_try="$ac_link"
23459 case "(($ac_try" in
23460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461 *) ac_try_echo=$ac_try;;
23462 esac
23463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23464 (eval "$ac_link") 2>conftest.er1
23465 ac_status=$?
23466 grep -v '^ *+' conftest.er1 >conftest.err
23467 rm -f conftest.er1
23468 cat conftest.err >&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } && {
23471 test -z "$ac_c_werror_flag" ||
23472 test ! -s conftest.err
23473 } && test -s conftest$ac_exeext &&
23474 $as_test_x conftest$ac_exeext; then
23475 eval "$as_ac_var=yes"
23476 else
23477 echo "$as_me: failed program was:" >&5
23478 sed 's/^/| /' conftest.$ac_ext >&5
23480 eval "$as_ac_var=no"
23483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23484 conftest$ac_exeext conftest.$ac_ext
23486 ac_res=`eval echo '${'$as_ac_var'}'`
23487 { echo "$as_me:$LINENO: result: $ac_res" >&5
23488 echo "${ECHO_T}$ac_res" >&6; }
23489 if test `eval echo '${'$as_ac_var'}'` = yes; then
23490 cat >>confdefs.h <<_ACEOF
23491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23492 _ACEOF
23495 done
23497 if test "x$ac_cv_func_fork" = xyes; then
23498 { echo "$as_me:$LINENO: checking for working fork" >&5
23499 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23500 if test "${ac_cv_func_fork_works+set}" = set; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23502 else
23503 if test "$cross_compiling" = yes; then
23504 ac_cv_func_fork_works=cross
23505 else
23506 cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h. */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23512 $ac_includes_default
23514 main ()
23517 /* By Ruediger Kuhlmann. */
23518 return fork () < 0;
23521 return 0;
23523 _ACEOF
23524 rm -f conftest$ac_exeext
23525 if { (ac_try="$ac_link"
23526 case "(($ac_try" in
23527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528 *) ac_try_echo=$ac_try;;
23529 esac
23530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23531 (eval "$ac_link") 2>&5
23532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23535 { (case "(($ac_try" in
23536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537 *) ac_try_echo=$ac_try;;
23538 esac
23539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540 (eval "$ac_try") 2>&5
23541 ac_status=$?
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; }; then
23544 ac_cv_func_fork_works=yes
23545 else
23546 echo "$as_me: program exited with status $ac_status" >&5
23547 echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23550 ( exit $ac_status )
23551 ac_cv_func_fork_works=no
23553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23558 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23559 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23561 else
23562 ac_cv_func_fork_works=$ac_cv_func_fork
23564 if test "x$ac_cv_func_fork_works" = xcross; then
23565 case $host in
23566 *-*-amigaos* | *-*-msdosdjgpp*)
23567 # Override, as these systems have only a dummy fork() stub
23568 ac_cv_func_fork_works=no
23571 ac_cv_func_fork_works=yes
23573 esac
23574 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23575 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23577 ac_cv_func_vfork_works=$ac_cv_func_vfork
23578 if test "x$ac_cv_func_vfork" = xyes; then
23579 { echo "$as_me:$LINENO: checking for working vfork" >&5
23580 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23581 if test "${ac_cv_func_vfork_works+set}" = set; then
23582 echo $ECHO_N "(cached) $ECHO_C" >&6
23583 else
23584 if test "$cross_compiling" = yes; then
23585 ac_cv_func_vfork_works=cross
23586 else
23587 cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h. */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23593 /* Thanks to Paul Eggert for this test. */
23594 $ac_includes_default
23595 #include <sys/wait.h>
23596 #ifdef HAVE_VFORK_H
23597 # include <vfork.h>
23598 #endif
23599 /* On some sparc systems, changes by the child to local and incoming
23600 argument registers are propagated back to the parent. The compiler
23601 is told about this with #include <vfork.h>, but some compilers
23602 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23603 static variable whose address is put into a register that is
23604 clobbered by the vfork. */
23605 static void
23606 #ifdef __cplusplus
23607 sparc_address_test (int arg)
23608 # else
23609 sparc_address_test (arg) int arg;
23610 #endif
23612 static pid_t child;
23613 if (!child) {
23614 child = vfork ();
23615 if (child < 0) {
23616 perror ("vfork");
23617 _exit(2);
23619 if (!child) {
23620 arg = getpid();
23621 write(-1, "", 0);
23622 _exit (arg);
23628 main ()
23630 pid_t parent = getpid ();
23631 pid_t child;
23633 sparc_address_test (0);
23635 child = vfork ();
23637 if (child == 0) {
23638 /* Here is another test for sparc vfork register problems. This
23639 test uses lots of local variables, at least as many local
23640 variables as main has allocated so far including compiler
23641 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23642 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23643 reuse the register of parent for one of the local variables,
23644 since it will think that parent can't possibly be used any more
23645 in this routine. Assigning to the local variable will thus
23646 munge parent in the parent process. */
23647 pid_t
23648 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23649 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23650 /* Convince the compiler that p..p7 are live; otherwise, it might
23651 use the same hardware register for all 8 local variables. */
23652 if (p != p1 || p != p2 || p != p3 || p != p4
23653 || p != p5 || p != p6 || p != p7)
23654 _exit(1);
23656 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23657 from child file descriptors. If the child closes a descriptor
23658 before it execs or exits, this munges the parent's descriptor
23659 as well. Test for this by closing stdout in the child. */
23660 _exit(close(fileno(stdout)) != 0);
23661 } else {
23662 int status;
23663 struct stat st;
23665 while (wait(&status) != child)
23667 return (
23668 /* Was there some problem with vforking? */
23669 child < 0
23671 /* Did the child fail? (This shouldn't happen.) */
23672 || status
23674 /* Did the vfork/compiler bug occur? */
23675 || parent != getpid()
23677 /* Did the file descriptor bug occur? */
23678 || fstat(fileno(stdout), &st) != 0
23682 _ACEOF
23683 rm -f conftest$ac_exeext
23684 if { (ac_try="$ac_link"
23685 case "(($ac_try" in
23686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23687 *) ac_try_echo=$ac_try;;
23688 esac
23689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23690 (eval "$ac_link") 2>&5
23691 ac_status=$?
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23694 { (case "(($ac_try" in
23695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696 *) ac_try_echo=$ac_try;;
23697 esac
23698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23699 (eval "$ac_try") 2>&5
23700 ac_status=$?
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); }; }; then
23703 ac_cv_func_vfork_works=yes
23704 else
23705 echo "$as_me: program exited with status $ac_status" >&5
23706 echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23709 ( exit $ac_status )
23710 ac_cv_func_vfork_works=no
23712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23717 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23718 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23721 if test "x$ac_cv_func_fork_works" = xcross; then
23722 ac_cv_func_vfork_works=$ac_cv_func_vfork
23723 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23724 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23727 if test "x$ac_cv_func_vfork_works" = xyes; then
23729 cat >>confdefs.h <<\_ACEOF
23730 #define HAVE_WORKING_VFORK 1
23731 _ACEOF
23733 else
23735 cat >>confdefs.h <<\_ACEOF
23736 #define vfork fork
23737 _ACEOF
23740 if test "x$ac_cv_func_fork_works" = xyes; then
23742 cat >>confdefs.h <<\_ACEOF
23743 #define HAVE_WORKING_FORK 1
23744 _ACEOF
23749 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23750 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23751 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23753 else
23754 cat >conftest.$ac_ext <<_ACEOF
23755 /* confdefs.h. */
23756 _ACEOF
23757 cat confdefs.h >>conftest.$ac_ext
23758 cat >>conftest.$ac_ext <<_ACEOF
23759 /* end confdefs.h. */
23760 #include <langinfo.h>
23762 main ()
23764 char* cs = nl_langinfo(CODESET);
23766 return 0;
23768 _ACEOF
23769 rm -f conftest.$ac_objext conftest$ac_exeext
23770 if { (ac_try="$ac_link"
23771 case "(($ac_try" in
23772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23773 *) ac_try_echo=$ac_try;;
23774 esac
23775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23776 (eval "$ac_link") 2>conftest.er1
23777 ac_status=$?
23778 grep -v '^ *+' conftest.er1 >conftest.err
23779 rm -f conftest.er1
23780 cat conftest.err >&5
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); } && {
23783 test -z "$ac_c_werror_flag" ||
23784 test ! -s conftest.err
23785 } && test -s conftest$ac_exeext &&
23786 $as_test_x conftest$ac_exeext; then
23787 emacs_cv_langinfo_codeset=yes
23788 else
23789 echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23792 emacs_cv_langinfo_codeset=no
23795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23796 conftest$ac_exeext conftest.$ac_ext
23799 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23800 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23801 if test $emacs_cv_langinfo_codeset = yes; then
23803 cat >>confdefs.h <<\_ACEOF
23804 #define HAVE_LANGINFO_CODESET 1
23805 _ACEOF
23809 { echo "$as_me:$LINENO: checking for size_t" >&5
23810 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23811 if test "${ac_cv_type_size_t+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23813 else
23814 cat >conftest.$ac_ext <<_ACEOF
23815 /* confdefs.h. */
23816 _ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23820 $ac_includes_default
23821 typedef size_t ac__type_new_;
23823 main ()
23825 if ((ac__type_new_ *) 0)
23826 return 0;
23827 if (sizeof (ac__type_new_))
23828 return 0;
23830 return 0;
23832 _ACEOF
23833 rm -f conftest.$ac_objext
23834 if { (ac_try="$ac_compile"
23835 case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23838 esac
23839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840 (eval "$ac_compile") 2>conftest.er1
23841 ac_status=$?
23842 grep -v '^ *+' conftest.er1 >conftest.err
23843 rm -f conftest.er1
23844 cat conftest.err >&5
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); } && {
23847 test -z "$ac_c_werror_flag" ||
23848 test ! -s conftest.err
23849 } && test -s conftest.$ac_objext; then
23850 ac_cv_type_size_t=yes
23851 else
23852 echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23855 ac_cv_type_size_t=no
23858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23860 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23861 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23862 if test $ac_cv_type_size_t = yes; then
23864 cat >>confdefs.h <<_ACEOF
23865 #define HAVE_SIZE_T 1
23866 _ACEOF
23872 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23873 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23874 if test "${ac_cv_type_mbstate_t+set}" = set; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23876 else
23877 cat >conftest.$ac_ext <<_ACEOF
23878 /* confdefs.h. */
23879 _ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23883 $ac_includes_default
23884 # include <wchar.h>
23886 main ()
23888 mbstate_t x; return sizeof x;
23890 return 0;
23892 _ACEOF
23893 rm -f conftest.$ac_objext
23894 if { (ac_try="$ac_compile"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23898 esac
23899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23900 (eval "$ac_compile") 2>conftest.er1
23901 ac_status=$?
23902 grep -v '^ *+' conftest.er1 >conftest.err
23903 rm -f conftest.er1
23904 cat conftest.err >&5
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); } && {
23907 test -z "$ac_c_werror_flag" ||
23908 test ! -s conftest.err
23909 } && test -s conftest.$ac_objext; then
23910 ac_cv_type_mbstate_t=yes
23911 else
23912 echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23915 ac_cv_type_mbstate_t=no
23918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23920 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23921 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23922 if test $ac_cv_type_mbstate_t = yes; then
23924 cat >>confdefs.h <<\_ACEOF
23925 #define HAVE_MBSTATE_T 1
23926 _ACEOF
23928 else
23930 cat >>confdefs.h <<\_ACEOF
23931 #define mbstate_t int
23932 _ACEOF
23936 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23937 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23938 if test "${emacs_cv_c_restrict+set}" = set; then
23939 echo $ECHO_N "(cached) $ECHO_C" >&6
23940 else
23941 cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h. */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23947 void fred (int *restrict x);
23949 main ()
23953 return 0;
23955 _ACEOF
23956 rm -f conftest.$ac_objext
23957 if { (ac_try="$ac_compile"
23958 case "(($ac_try" in
23959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960 *) ac_try_echo=$ac_try;;
23961 esac
23962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963 (eval "$ac_compile") 2>conftest.er1
23964 ac_status=$?
23965 grep -v '^ *+' conftest.er1 >conftest.err
23966 rm -f conftest.er1
23967 cat conftest.err >&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } && {
23970 test -z "$ac_c_werror_flag" ||
23971 test ! -s conftest.err
23972 } && test -s conftest.$ac_objext; then
23973 emacs_cv_c_restrict=yes
23974 else
23975 echo "$as_me: failed program was:" >&5
23976 sed 's/^/| /' conftest.$ac_ext >&5
23978 cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h. */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 void fred (int *__restrict x);
23986 main ()
23990 return 0;
23992 _ACEOF
23993 rm -f conftest.$ac_objext
23994 if { (ac_try="$ac_compile"
23995 case "(($ac_try" in
23996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997 *) ac_try_echo=$ac_try;;
23998 esac
23999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000 (eval "$ac_compile") 2>conftest.er1
24001 ac_status=$?
24002 grep -v '^ *+' conftest.er1 >conftest.err
24003 rm -f conftest.er1
24004 cat conftest.err >&5
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); } && {
24007 test -z "$ac_c_werror_flag" ||
24008 test ! -s conftest.err
24009 } && test -s conftest.$ac_objext; then
24010 emacs_cv_c_restrict=__restrict
24011 else
24012 echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24015 emacs_cv_c_restrict=no
24018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24023 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24024 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24025 case "$emacs_cv_c_restrict" in
24026 yes) emacs_restrict=restrict;;
24027 no) emacs_restrict="";;
24028 *) emacs_restrict="$emacs_cv_c_restrict";;
24029 esac
24030 if test "$emacs_restrict" != __restrict; then
24032 cat >>confdefs.h <<_ACEOF
24033 #define __restrict $emacs_restrict
24034 _ACEOF
24038 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24039 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24040 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24041 echo $ECHO_N "(cached) $ECHO_C" >&6
24042 else
24043 cat >conftest.$ac_ext <<_ACEOF
24044 /* confdefs.h. */
24045 _ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h. */
24049 void fred (int x[__restrict]);
24051 main ()
24055 return 0;
24057 _ACEOF
24058 rm -f conftest.$ac_objext
24059 if { (ac_try="$ac_compile"
24060 case "(($ac_try" in
24061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062 *) ac_try_echo=$ac_try;;
24063 esac
24064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24065 (eval "$ac_compile") 2>conftest.er1
24066 ac_status=$?
24067 grep -v '^ *+' conftest.er1 >conftest.err
24068 rm -f conftest.er1
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } && {
24072 test -z "$ac_c_werror_flag" ||
24073 test ! -s conftest.err
24074 } && test -s conftest.$ac_objext; then
24075 emacs_cv_c_restrict_arr=yes
24076 else
24077 echo "$as_me: failed program was:" >&5
24078 sed 's/^/| /' conftest.$ac_ext >&5
24080 emacs_cv_c_restrict_arr=no
24083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24085 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24086 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24087 if test "$emacs_cv_c_restrict_arr" = yes; then
24089 cat >>confdefs.h <<\_ACEOF
24090 #define __restrict_arr __restrict
24091 _ACEOF
24097 # Set up the CFLAGS for real compilation, so we can substitute it.
24098 CFLAGS="$REAL_CFLAGS"
24099 CPPFLAGS="$REAL_CPPFLAGS"
24101 #### Find out which version of Emacs this is.
24102 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24103 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24104 if test x"${version}" = x; then
24105 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24106 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24107 { (exit 1); exit 1; }; }
24110 ### Specify what sort of things we'll be editing into Makefile and config.h.
24111 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24155 cat >>confdefs.h <<_ACEOF
24156 #define EMACS_CONFIGURATION "${canonical}"
24157 _ACEOF
24160 cat >>confdefs.h <<_ACEOF
24161 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24162 _ACEOF
24165 cat >>confdefs.h <<_ACEOF
24166 #define config_machfile "${machfile}"
24167 _ACEOF
24170 cat >>confdefs.h <<_ACEOF
24171 #define config_opsysfile "${opsysfile}"
24172 _ACEOF
24175 cat >>confdefs.h <<_ACEOF
24176 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24177 _ACEOF
24180 cat >>confdefs.h <<_ACEOF
24181 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24182 _ACEOF
24185 cat >>confdefs.h <<_ACEOF
24186 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24187 _ACEOF
24190 cat >>confdefs.h <<_ACEOF
24191 #define UNEXEC_SRC ${UNEXEC_SRC}
24192 _ACEOF
24195 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24197 cat >>confdefs.h <<\_ACEOF
24198 #define HAVE_X_WINDOWS 1
24199 _ACEOF
24202 if test "${USE_X_TOOLKIT}" != "none" ; then
24204 cat >>confdefs.h <<\_ACEOF
24205 #define USE_X_TOOLKIT 1
24206 _ACEOF
24208 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24210 cat >>confdefs.h <<\_ACEOF
24211 #define USE_LUCID 1
24212 _ACEOF
24214 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24216 cat >>confdefs.h <<\_ACEOF
24217 #define USE_MOTIF 1
24218 _ACEOF
24222 if test "${HAVE_X11}" = "yes" ; then
24224 cat >>confdefs.h <<\_ACEOF
24225 #define HAVE_X11 1
24226 _ACEOF
24229 if test "${HAVE_MENUS}" = "yes" ; then
24231 cat >>confdefs.h <<\_ACEOF
24232 #define HAVE_MENUS 1
24233 _ACEOF
24236 if test "${GNU_MALLOC}" = "yes" ; then
24238 cat >>confdefs.h <<\_ACEOF
24239 #define GNU_MALLOC 1
24240 _ACEOF
24243 if test "${REL_ALLOC}" = "yes" ; then
24245 cat >>confdefs.h <<\_ACEOF
24246 #define REL_ALLOC 1
24247 _ACEOF
24256 #### Report on what we decided to do.
24257 #### Report GTK as a toolkit, even if it doesn't use Xt.
24258 #### It makes printing result more understandable as using GTK sets
24259 #### toolkit_scroll_bars to yes by default.
24260 if test "${HAVE_GTK}" = "yes"; then
24261 USE_X_TOOLKIT=GTK
24264 echo "
24265 Configured for \`${canonical}'.
24267 Where should the build process find the source code? ${srcdir}
24268 What operating system and machine description files should Emacs use?
24269 \`${opsysfile}' and \`${machfile}'
24270 What compiler should emacs be built with? ${CC} ${CFLAGS}
24271 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24272 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24273 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24274 What window system should Emacs use? ${window_system}
24275 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24277 if test -n "${x_includes}"; then
24278 echo " Where do we find X Windows header files? ${x_includes}"
24279 else
24280 echo " Where do we find X Windows header files? Standard dirs"
24282 if test -n "${x_libraries}"; then
24283 echo " Where do we find X Windows libraries? ${x_libraries}"
24284 else
24285 echo " Where do we find X Windows libraries? Standard dirs"
24288 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24289 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24290 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24291 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24292 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24293 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24294 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24295 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24296 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24298 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24299 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24300 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24301 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24303 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24304 echo
24306 if test $USE_XASSERTS = yes; then
24307 echo " Compiling with asserts turned on."
24308 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24311 echo
24313 if test "$USE_X_TOOLKIT" = GTK; then
24314 case "$canonical" in
24315 *cygwin*)
24316 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24317 will probably get a crash on startup. If this happens, please use another
24318 toolkit for Emacs. See etc/PROBLEMS for more information."
24320 esac
24323 if test "$HAVE_NS" = "yes"; then
24324 echo
24325 echo "You must run \"make install\" in order to test the built application.
24326 The installed application will go to nextstep/Emacs.app and can be
24327 run or moved from there."
24328 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24329 echo "The application will be fully self-contained."
24330 else
24331 echo "The lisp resources for the application will be installed under ${prefix}.
24332 You may need to run \"make install\" with sudo. The application will fail
24333 to run if these resources are not installed."
24335 echo
24338 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24339 echo "D-Bus integration has been tested for GNU/Linux only."
24340 echo
24344 # Remove any trailing slashes in these variables.
24345 test "${prefix}" != NONE &&
24346 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24347 test "${exec_prefix}" != NONE &&
24348 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24350 # Now get this: Some word that is part of the ${srcdir} directory name
24351 # or the ${configuration} value might, just might, happen to be an
24352 # identifier like `sun4' or `i386' or something, and be predefined by
24353 # the C preprocessor to some helpful value like 1, or maybe the empty
24354 # string. Needless to say consequent macro substitutions are less
24355 # than conducive to the makefile finding the correct directory.
24356 cpp_undefs="`echo $srcdir $configuration $canonical |
24357 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24358 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24360 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24361 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24362 ## from Makefile.c can correctly provide the arg `-traditional' to the
24363 ## C preprocessor.
24365 cat >conftest.$ac_ext <<_ACEOF
24366 /* confdefs.h. */
24367 _ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h. */
24371 yes..yes
24372 _ACEOF
24373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24374 $EGREP "yes..yes" >/dev/null 2>&1; then
24375 CPP_NEED_TRADITIONAL=no
24376 else
24377 CPP_NEED_TRADITIONAL=yes
24379 rm -f conftest*
24382 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"
24384 ac_config_commands="$ac_config_commands default"
24386 cat >confcache <<\_ACEOF
24387 # This file is a shell script that caches the results of configure
24388 # tests run on this system so they can be shared between configure
24389 # scripts and configure runs, see configure's option --config-cache.
24390 # It is not useful on other systems. If it contains results you don't
24391 # want to keep, you may remove or edit it.
24393 # config.status only pays attention to the cache file if you give it
24394 # the --recheck option to rerun configure.
24396 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24397 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24398 # following values.
24400 _ACEOF
24402 # The following way of writing the cache mishandles newlines in values,
24403 # but we know of no workaround that is simple, portable, and efficient.
24404 # So, we kill variables containing newlines.
24405 # Ultrix sh set writes to stderr and can't be redirected directly,
24406 # and sets the high bit in the cache file unless we assign to the vars.
24408 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24409 eval ac_val=\$$ac_var
24410 case $ac_val in #(
24411 *${as_nl}*)
24412 case $ac_var in #(
24413 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24414 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24415 esac
24416 case $ac_var in #(
24417 _ | IFS | as_nl) ;; #(
24418 *) $as_unset $ac_var ;;
24419 esac ;;
24420 esac
24421 done
24423 (set) 2>&1 |
24424 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24425 *${as_nl}ac_space=\ *)
24426 # `set' does not quote correctly, so add quotes (double-quote
24427 # substitution turns \\\\ into \\, and sed turns \\ into \).
24428 sed -n \
24429 "s/'/'\\\\''/g;
24430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24431 ;; #(
24433 # `set' quotes correctly as required by POSIX, so do not add quotes.
24434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24436 esac |
24437 sort
24439 sed '
24440 /^ac_cv_env_/b end
24441 t clear
24442 :clear
24443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24444 t end
24445 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24446 :end' >>confcache
24447 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24448 if test -w "$cache_file"; then
24449 test "x$cache_file" != "x/dev/null" &&
24450 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24451 echo "$as_me: updating cache $cache_file" >&6;}
24452 cat confcache >$cache_file
24453 else
24454 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24455 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24458 rm -f confcache
24460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24461 # Let make expand exec_prefix.
24462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24464 DEFS=-DHAVE_CONFIG_H
24466 ac_libobjs=
24467 ac_ltlibobjs=
24468 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24469 # 1. Remove the extension, and $U if already installed.
24470 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24471 ac_i=`echo "$ac_i" | sed "$ac_script"`
24472 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24473 # will be set to the directory where LIBOBJS objects are built.
24474 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24475 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24476 done
24477 LIBOBJS=$ac_libobjs
24479 LTLIBOBJS=$ac_ltlibobjs
24483 : ${CONFIG_STATUS=./config.status}
24484 ac_clean_files_save=$ac_clean_files
24485 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24486 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24487 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24488 cat >$CONFIG_STATUS <<_ACEOF
24489 #! $SHELL
24490 # Generated by $as_me.
24491 # Run this file to recreate the current configuration.
24492 # Compiler output produced by configure, useful for debugging
24493 # configure, is in config.log if it exists.
24495 debug=false
24496 ac_cs_recheck=false
24497 ac_cs_silent=false
24498 SHELL=\${CONFIG_SHELL-$SHELL}
24499 _ACEOF
24501 cat >>$CONFIG_STATUS <<\_ACEOF
24502 ## --------------------- ##
24503 ## M4sh Initialization. ##
24504 ## --------------------- ##
24506 # Be more Bourne compatible
24507 DUALCASE=1; export DUALCASE # for MKS sh
24508 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24509 emulate sh
24510 NULLCMD=:
24511 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24512 # is contrary to our usage. Disable this feature.
24513 alias -g '${1+"$@"}'='"$@"'
24514 setopt NO_GLOB_SUBST
24515 else
24516 case `(set -o) 2>/dev/null` in
24517 *posix*) set -o posix ;;
24518 esac
24525 # PATH needs CR
24526 # Avoid depending upon Character Ranges.
24527 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24528 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24529 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24530 as_cr_digits='0123456789'
24531 as_cr_alnum=$as_cr_Letters$as_cr_digits
24533 # The user is always right.
24534 if test "${PATH_SEPARATOR+set}" != set; then
24535 echo "#! /bin/sh" >conf$$.sh
24536 echo "exit 0" >>conf$$.sh
24537 chmod +x conf$$.sh
24538 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24539 PATH_SEPARATOR=';'
24540 else
24541 PATH_SEPARATOR=:
24543 rm -f conf$$.sh
24546 # Support unset when possible.
24547 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24548 as_unset=unset
24549 else
24550 as_unset=false
24554 # IFS
24555 # We need space, tab and new line, in precisely that order. Quoting is
24556 # there to prevent editors from complaining about space-tab.
24557 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24558 # splitting by setting IFS to empty value.)
24559 as_nl='
24561 IFS=" "" $as_nl"
24563 # Find who we are. Look in the path if we contain no directory separator.
24564 case $0 in
24565 *[\\/]* ) as_myself=$0 ;;
24566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24567 for as_dir in $PATH
24569 IFS=$as_save_IFS
24570 test -z "$as_dir" && as_dir=.
24571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24572 done
24573 IFS=$as_save_IFS
24576 esac
24577 # We did not find ourselves, most probably we were run as `sh COMMAND'
24578 # in which case we are not to be found in the path.
24579 if test "x$as_myself" = x; then
24580 as_myself=$0
24582 if test ! -f "$as_myself"; then
24583 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24584 { (exit 1); exit 1; }
24587 # Work around bugs in pre-3.0 UWIN ksh.
24588 for as_var in ENV MAIL MAILPATH
24589 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24590 done
24591 PS1='$ '
24592 PS2='> '
24593 PS4='+ '
24595 # NLS nuisances.
24596 for as_var in \
24597 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24598 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24599 LC_TELEPHONE LC_TIME
24601 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24602 eval $as_var=C; export $as_var
24603 else
24604 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24606 done
24608 # Required to use basename.
24609 if expr a : '\(a\)' >/dev/null 2>&1 &&
24610 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24611 as_expr=expr
24612 else
24613 as_expr=false
24616 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24617 as_basename=basename
24618 else
24619 as_basename=false
24623 # Name of the executable.
24624 as_me=`$as_basename -- "$0" ||
24625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24626 X"$0" : 'X\(//\)$' \| \
24627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24628 echo X/"$0" |
24629 sed '/^.*\/\([^/][^/]*\)\/*$/{
24630 s//\1/
24633 /^X\/\(\/\/\)$/{
24634 s//\1/
24637 /^X\/\(\/\).*/{
24638 s//\1/
24641 s/.*/./; q'`
24643 # CDPATH.
24644 $as_unset CDPATH
24648 as_lineno_1=$LINENO
24649 as_lineno_2=$LINENO
24650 test "x$as_lineno_1" != "x$as_lineno_2" &&
24651 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24653 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24654 # uniformly replaced by the line number. The first 'sed' inserts a
24655 # line-number line after each line using $LINENO; the second 'sed'
24656 # does the real work. The second script uses 'N' to pair each
24657 # line-number line with the line containing $LINENO, and appends
24658 # trailing '-' during substitution so that $LINENO is not a special
24659 # case at line end.
24660 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24661 # scripts with optimization help from Paolo Bonzini. Blame Lee
24662 # E. McMahon (1931-1989) for sed's syntax. :-)
24663 sed -n '
24665 /[$]LINENO/=
24666 ' <$as_myself |
24667 sed '
24668 s/[$]LINENO.*/&-/
24669 t lineno
24671 :lineno
24673 :loop
24674 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24675 t loop
24676 s/-\n.*//
24677 ' >$as_me.lineno &&
24678 chmod +x "$as_me.lineno" ||
24679 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24680 { (exit 1); exit 1; }; }
24682 # Don't try to exec as it changes $[0], causing all sort of problems
24683 # (the dirname of $[0] is not the place where we might find the
24684 # original and so on. Autoconf is especially sensitive to this).
24685 . "./$as_me.lineno"
24686 # Exit status is that of the last command.
24687 exit
24691 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24692 as_dirname=dirname
24693 else
24694 as_dirname=false
24697 ECHO_C= ECHO_N= ECHO_T=
24698 case `echo -n x` in
24699 -n*)
24700 case `echo 'x\c'` in
24701 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24702 *) ECHO_C='\c';;
24703 esac;;
24705 ECHO_N='-n';;
24706 esac
24708 if expr a : '\(a\)' >/dev/null 2>&1 &&
24709 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24710 as_expr=expr
24711 else
24712 as_expr=false
24715 rm -f conf$$ conf$$.exe conf$$.file
24716 if test -d conf$$.dir; then
24717 rm -f conf$$.dir/conf$$.file
24718 else
24719 rm -f conf$$.dir
24720 mkdir conf$$.dir
24722 echo >conf$$.file
24723 if ln -s conf$$.file conf$$ 2>/dev/null; then
24724 as_ln_s='ln -s'
24725 # ... but there are two gotchas:
24726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24728 # In both cases, we have to default to `cp -p'.
24729 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24730 as_ln_s='cp -p'
24731 elif ln conf$$.file conf$$ 2>/dev/null; then
24732 as_ln_s=ln
24733 else
24734 as_ln_s='cp -p'
24736 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24737 rmdir conf$$.dir 2>/dev/null
24739 if mkdir -p . 2>/dev/null; then
24740 as_mkdir_p=:
24741 else
24742 test -d ./-p && rmdir ./-p
24743 as_mkdir_p=false
24746 if test -x / >/dev/null 2>&1; then
24747 as_test_x='test -x'
24748 else
24749 if ls -dL / >/dev/null 2>&1; then
24750 as_ls_L_option=L
24751 else
24752 as_ls_L_option=
24754 as_test_x='
24755 eval sh -c '\''
24756 if test -d "$1"; then
24757 test -d "$1/.";
24758 else
24759 case $1 in
24760 -*)set "./$1";;
24761 esac;
24762 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24763 ???[sx]*):;;*)false;;esac;fi
24764 '\'' sh
24767 as_executable_p=$as_test_x
24769 # Sed expression to map a string onto a valid CPP name.
24770 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24772 # Sed expression to map a string onto a valid variable name.
24773 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24776 exec 6>&1
24778 # Save the log message, to keep $[0] and so on meaningful, and to
24779 # report actual input values of CONFIG_FILES etc. instead of their
24780 # values after options handling.
24781 ac_log="
24782 This file was extended by emacs $as_me 23.0.60, which was
24783 generated by GNU Autoconf 2.61. Invocation command line was
24785 CONFIG_FILES = $CONFIG_FILES
24786 CONFIG_HEADERS = $CONFIG_HEADERS
24787 CONFIG_LINKS = $CONFIG_LINKS
24788 CONFIG_COMMANDS = $CONFIG_COMMANDS
24789 $ $0 $@
24791 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24794 _ACEOF
24796 cat >>$CONFIG_STATUS <<_ACEOF
24797 # Files that config.status was made for.
24798 config_files="$ac_config_files"
24799 config_headers="$ac_config_headers"
24800 config_commands="$ac_config_commands"
24802 _ACEOF
24804 cat >>$CONFIG_STATUS <<\_ACEOF
24805 ac_cs_usage="\
24806 \`$as_me' instantiates files from templates according to the
24807 current configuration.
24809 Usage: $0 [OPTIONS] [FILE]...
24811 -h, --help print this help, then exit
24812 -V, --version print version number and configuration settings, then exit
24813 -q, --quiet do not print progress messages
24814 -d, --debug don't remove temporary files
24815 --recheck update $as_me by reconfiguring in the same conditions
24816 --file=FILE[:TEMPLATE]
24817 instantiate the configuration file FILE
24818 --header=FILE[:TEMPLATE]
24819 instantiate the configuration header FILE
24821 Configuration files:
24822 $config_files
24824 Configuration headers:
24825 $config_headers
24827 Configuration commands:
24828 $config_commands
24830 Report bugs to <bug-autoconf@gnu.org>."
24832 _ACEOF
24833 cat >>$CONFIG_STATUS <<_ACEOF
24834 ac_cs_version="\\
24835 emacs config.status 23.0.60
24836 configured by $0, generated by GNU Autoconf 2.61,
24837 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24839 Copyright (C) 2006 Free Software Foundation, Inc.
24840 This config.status script is free software; the Free Software Foundation
24841 gives unlimited permission to copy, distribute and modify it."
24843 ac_pwd='$ac_pwd'
24844 srcdir='$srcdir'
24845 INSTALL='$INSTALL'
24846 _ACEOF
24848 cat >>$CONFIG_STATUS <<\_ACEOF
24849 # If no file are specified by the user, then we need to provide default
24850 # value. By we need to know if files were specified by the user.
24851 ac_need_defaults=:
24852 while test $# != 0
24854 case $1 in
24855 --*=*)
24856 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24858 ac_shift=:
24861 ac_option=$1
24862 ac_optarg=$2
24863 ac_shift=shift
24865 esac
24867 case $ac_option in
24868 # Handling of the options.
24869 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24870 ac_cs_recheck=: ;;
24871 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24872 echo "$ac_cs_version"; exit ;;
24873 --debug | --debu | --deb | --de | --d | -d )
24874 debug=: ;;
24875 --file | --fil | --fi | --f )
24876 $ac_shift
24877 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24878 ac_need_defaults=false;;
24879 --header | --heade | --head | --hea )
24880 $ac_shift
24881 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24882 ac_need_defaults=false;;
24883 --he | --h)
24884 # Conflict between --help and --header
24885 { echo "$as_me: error: ambiguous option: $1
24886 Try \`$0 --help' for more information." >&2
24887 { (exit 1); exit 1; }; };;
24888 --help | --hel | -h )
24889 echo "$ac_cs_usage"; exit ;;
24890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24891 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24892 ac_cs_silent=: ;;
24894 # This is an error.
24895 -*) { echo "$as_me: error: unrecognized option: $1
24896 Try \`$0 --help' for more information." >&2
24897 { (exit 1); exit 1; }; } ;;
24899 *) ac_config_targets="$ac_config_targets $1"
24900 ac_need_defaults=false ;;
24902 esac
24903 shift
24904 done
24906 ac_configure_extra_args=
24908 if $ac_cs_silent; then
24909 exec 6>/dev/null
24910 ac_configure_extra_args="$ac_configure_extra_args --silent"
24913 _ACEOF
24914 cat >>$CONFIG_STATUS <<_ACEOF
24915 if \$ac_cs_recheck; then
24916 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24917 CONFIG_SHELL=$SHELL
24918 export CONFIG_SHELL
24919 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24922 _ACEOF
24923 cat >>$CONFIG_STATUS <<\_ACEOF
24924 exec 5>>config.log
24926 echo
24927 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24928 ## Running $as_me. ##
24929 _ASBOX
24930 echo "$ac_log"
24931 } >&5
24933 _ACEOF
24934 cat >>$CONFIG_STATUS <<_ACEOF
24936 # INIT-COMMANDS
24938 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24940 _ACEOF
24942 cat >>$CONFIG_STATUS <<\_ACEOF
24944 # Handling of arguments.
24945 for ac_config_target in $ac_config_targets
24947 case $ac_config_target in
24948 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24949 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24950 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24951 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24952 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24953 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24954 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24955 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24956 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24957 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24958 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24959 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24960 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24962 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24963 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24964 { (exit 1); exit 1; }; };;
24965 esac
24966 done
24969 # If the user did not use the arguments to specify the items to instantiate,
24970 # then the envvar interface is used. Set only those that are not.
24971 # We use the long form for the default assignment because of an extremely
24972 # bizarre bug on SunOS 4.1.3.
24973 if $ac_need_defaults; then
24974 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24975 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24976 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24979 # Have a temporary directory for convenience. Make it in the build tree
24980 # simply because there is no reason against having it here, and in addition,
24981 # creating and moving files from /tmp can sometimes cause problems.
24982 # Hook for its removal unless debugging.
24983 # Note that there is a small window in which the directory will not be cleaned:
24984 # after its creation but before its name has been assigned to `$tmp'.
24985 $debug ||
24987 tmp=
24988 trap 'exit_status=$?
24989 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24991 trap '{ (exit 1); exit 1; }' 1 2 13 15
24993 # Create a (secure) tmp directory for tmp files.
24996 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24997 test -n "$tmp" && test -d "$tmp"
24998 } ||
25000 tmp=./conf$$-$RANDOM
25001 (umask 077 && mkdir "$tmp")
25002 } ||
25004 echo "$me: cannot create a temporary directory in ." >&2
25005 { (exit 1); exit 1; }
25009 # Set up the sed scripts for CONFIG_FILES section.
25012 # No need to generate the scripts if there are no CONFIG_FILES.
25013 # This happens for instance when ./config.status config.h
25014 if test -n "$CONFIG_FILES"; then
25016 _ACEOF
25020 ac_delim='%!_!# '
25021 for ac_last_try in false false false false false :; do
25022 cat >conf$$subs.sed <<_ACEOF
25023 SHELL!$SHELL$ac_delim
25024 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25025 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25026 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25027 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25028 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25029 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25030 exec_prefix!$exec_prefix$ac_delim
25031 prefix!$prefix$ac_delim
25032 program_transform_name!$program_transform_name$ac_delim
25033 bindir!$bindir$ac_delim
25034 sbindir!$sbindir$ac_delim
25035 libexecdir!$libexecdir$ac_delim
25036 datarootdir!$datarootdir$ac_delim
25037 datadir!$datadir$ac_delim
25038 sysconfdir!$sysconfdir$ac_delim
25039 sharedstatedir!$sharedstatedir$ac_delim
25040 localstatedir!$localstatedir$ac_delim
25041 includedir!$includedir$ac_delim
25042 oldincludedir!$oldincludedir$ac_delim
25043 docdir!$docdir$ac_delim
25044 infodir!$infodir$ac_delim
25045 htmldir!$htmldir$ac_delim
25046 dvidir!$dvidir$ac_delim
25047 pdfdir!$pdfdir$ac_delim
25048 psdir!$psdir$ac_delim
25049 libdir!$libdir$ac_delim
25050 localedir!$localedir$ac_delim
25051 mandir!$mandir$ac_delim
25052 DEFS!$DEFS$ac_delim
25053 ECHO_C!$ECHO_C$ac_delim
25054 ECHO_N!$ECHO_N$ac_delim
25055 ECHO_T!$ECHO_T$ac_delim
25056 LIBS!$LIBS$ac_delim
25057 build_alias!$build_alias$ac_delim
25058 host_alias!$host_alias$ac_delim
25059 target_alias!$target_alias$ac_delim
25060 MAINT!$MAINT$ac_delim
25061 build!$build$ac_delim
25062 build_cpu!$build_cpu$ac_delim
25063 build_vendor!$build_vendor$ac_delim
25064 build_os!$build_os$ac_delim
25065 host!$host$ac_delim
25066 host_cpu!$host_cpu$ac_delim
25067 host_vendor!$host_vendor$ac_delim
25068 host_os!$host_os$ac_delim
25069 CC!$CC$ac_delim
25070 CFLAGS!$CFLAGS$ac_delim
25071 LDFLAGS!$LDFLAGS$ac_delim
25072 CPPFLAGS!$CPPFLAGS$ac_delim
25073 ac_ct_CC!$ac_ct_CC$ac_delim
25074 EXEEXT!$EXEEXT$ac_delim
25075 OBJEXT!$OBJEXT$ac_delim
25076 CPP!$CPP$ac_delim
25077 GREP!$GREP$ac_delim
25078 EGREP!$EGREP$ac_delim
25079 LN_S!$LN_S$ac_delim
25080 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25081 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25082 INSTALL_DATA!$INSTALL_DATA$ac_delim
25083 RANLIB!$RANLIB$ac_delim
25084 INSTALL_INFO!$INSTALL_INFO$ac_delim
25085 GZIP_PROG!$GZIP_PROG$ac_delim
25086 MAKEINFO!$MAKEINFO$ac_delim
25087 LIBSOUND!$LIBSOUND$ac_delim
25088 PKG_CONFIG!$PKG_CONFIG$ac_delim
25089 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25090 ALSA_LIBS!$ALSA_LIBS$ac_delim
25091 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25092 SET_MAKE!$SET_MAKE$ac_delim
25093 XMKMF!$XMKMF$ac_delim
25094 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25095 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25096 RSVG_LIBS!$RSVG_LIBS$ac_delim
25097 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25098 GTK_LIBS!$GTK_LIBS$ac_delim
25099 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25100 DBUS_LIBS!$DBUS_LIBS$ac_delim
25101 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25102 XFT_LIBS!$XFT_LIBS$ac_delim
25103 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25104 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25105 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25106 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25107 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25108 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25109 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25110 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25111 ALLOCA!$ALLOCA$ac_delim
25112 liblockfile!$liblockfile$ac_delim
25113 LIBOBJS!$LIBOBJS$ac_delim
25114 NEED_SETGID!$NEED_SETGID$ac_delim
25115 KMEM_GROUP!$KMEM_GROUP$ac_delim
25116 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25117 GETOPT_H!$GETOPT_H$ac_delim
25118 GETOPTOBJS!$GETOPTOBJS$ac_delim
25119 version!$version$ac_delim
25120 _ACEOF
25122 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25123 break
25124 elif $ac_last_try; then
25125 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25126 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25127 { (exit 1); exit 1; }; }
25128 else
25129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25131 done
25133 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25134 if test -n "$ac_eof"; then
25135 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25136 ac_eof=`expr $ac_eof + 1`
25139 cat >>$CONFIG_STATUS <<_ACEOF
25140 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25142 _ACEOF
25143 sed '
25144 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25145 s/^/s,@/; s/!/@,|#_!!_#|/
25148 s/'"$ac_delim"'$/,g/; t
25149 s/$/\\/; p
25150 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25151 ' >>$CONFIG_STATUS <conf$$subs.sed
25152 rm -f conf$$subs.sed
25153 cat >>$CONFIG_STATUS <<_ACEOF
25154 CEOF$ac_eof
25155 _ACEOF
25158 ac_delim='%!_!# '
25159 for ac_last_try in false false false false false :; do
25160 cat >conf$$subs.sed <<_ACEOF
25161 configuration!$configuration$ac_delim
25162 canonical!$canonical$ac_delim
25163 srcdir!$srcdir$ac_delim
25164 lispdir!$lispdir$ac_delim
25165 locallisppath!$locallisppath$ac_delim
25166 lisppath!$lisppath$ac_delim
25167 x_default_search_path!$x_default_search_path$ac_delim
25168 etcdir!$etcdir$ac_delim
25169 archlibdir!$archlibdir$ac_delim
25170 bitmapdir!$bitmapdir$ac_delim
25171 gamedir!$gamedir$ac_delim
25172 gameuser!$gameuser$ac_delim
25173 c_switch_system!$c_switch_system$ac_delim
25174 c_switch_machine!$c_switch_machine$ac_delim
25175 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25176 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25177 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25178 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25179 machfile!$machfile$ac_delim
25180 opsysfile!$opsysfile$ac_delim
25181 ns_appdir!$ns_appdir$ac_delim
25182 ns_appbindir!$ns_appbindir$ac_delim
25183 ns_appresdir!$ns_appresdir$ac_delim
25184 ns_appsrc!$ns_appsrc$ac_delim
25185 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25186 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25187 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25188 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25189 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25190 LTLIBOBJS!$LTLIBOBJS$ac_delim
25191 _ACEOF
25193 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25194 break
25195 elif $ac_last_try; then
25196 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25197 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25198 { (exit 1); exit 1; }; }
25199 else
25200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25202 done
25204 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25205 if test -n "$ac_eof"; then
25206 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25207 ac_eof=`expr $ac_eof + 1`
25210 cat >>$CONFIG_STATUS <<_ACEOF
25211 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25213 _ACEOF
25214 sed '
25215 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25216 s/^/s,@/; s/!/@,|#_!!_#|/
25219 s/'"$ac_delim"'$/,g/; t
25220 s/$/\\/; p
25221 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25222 ' >>$CONFIG_STATUS <conf$$subs.sed
25223 rm -f conf$$subs.sed
25224 cat >>$CONFIG_STATUS <<_ACEOF
25225 :end
25226 s/|#_!!_#|//g
25227 CEOF$ac_eof
25228 _ACEOF
25231 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25232 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25233 # trailing colons and then remove the whole line if VPATH becomes empty
25234 # (actually we leave an empty line to preserve line numbers).
25235 if test "x$srcdir" = x.; then
25236 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25237 s/:*\$(srcdir):*/:/
25238 s/:*\${srcdir}:*/:/
25239 s/:*@srcdir@:*/:/
25240 s/^\([^=]*=[ ]*\):*/\1/
25241 s/:*$//
25242 s/^[^=]*=[ ]*$//
25246 cat >>$CONFIG_STATUS <<\_ACEOF
25247 fi # test -n "$CONFIG_FILES"
25250 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25252 case $ac_tag in
25253 :[FHLC]) ac_mode=$ac_tag; continue;;
25254 esac
25255 case $ac_mode$ac_tag in
25256 :[FHL]*:*);;
25257 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25258 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25259 { (exit 1); exit 1; }; };;
25260 :[FH]-) ac_tag=-:-;;
25261 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25262 esac
25263 ac_save_IFS=$IFS
25264 IFS=:
25265 set x $ac_tag
25266 IFS=$ac_save_IFS
25267 shift
25268 ac_file=$1
25269 shift
25271 case $ac_mode in
25272 :L) ac_source=$1;;
25273 :[FH])
25274 ac_file_inputs=
25275 for ac_f
25277 case $ac_f in
25278 -) ac_f="$tmp/stdin";;
25279 *) # Look for the file first in the build tree, then in the source tree
25280 # (if the path is not absolute). The absolute path cannot be DOS-style,
25281 # because $ac_f cannot contain `:'.
25282 test -f "$ac_f" ||
25283 case $ac_f in
25284 [\\/$]*) false;;
25285 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25286 esac ||
25287 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25288 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25289 { (exit 1); exit 1; }; };;
25290 esac
25291 ac_file_inputs="$ac_file_inputs $ac_f"
25292 done
25294 # Let's still pretend it is `configure' which instantiates (i.e., don't
25295 # use $as_me), people would be surprised to read:
25296 # /* config.h. Generated by config.status. */
25297 configure_input="Generated from "`IFS=:
25298 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25299 if test x"$ac_file" != x-; then
25300 configure_input="$ac_file. $configure_input"
25301 { echo "$as_me:$LINENO: creating $ac_file" >&5
25302 echo "$as_me: creating $ac_file" >&6;}
25305 case $ac_tag in
25306 *:-:* | *:-) cat >"$tmp/stdin";;
25307 esac
25309 esac
25311 ac_dir=`$as_dirname -- "$ac_file" ||
25312 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25313 X"$ac_file" : 'X\(//\)[^/]' \| \
25314 X"$ac_file" : 'X\(//\)$' \| \
25315 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25316 echo X"$ac_file" |
25317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25318 s//\1/
25321 /^X\(\/\/\)[^/].*/{
25322 s//\1/
25325 /^X\(\/\/\)$/{
25326 s//\1/
25329 /^X\(\/\).*/{
25330 s//\1/
25333 s/.*/./; q'`
25334 { as_dir="$ac_dir"
25335 case $as_dir in #(
25336 -*) as_dir=./$as_dir;;
25337 esac
25338 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25339 as_dirs=
25340 while :; do
25341 case $as_dir in #(
25342 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25343 *) as_qdir=$as_dir;;
25344 esac
25345 as_dirs="'$as_qdir' $as_dirs"
25346 as_dir=`$as_dirname -- "$as_dir" ||
25347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25348 X"$as_dir" : 'X\(//\)[^/]' \| \
25349 X"$as_dir" : 'X\(//\)$' \| \
25350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25351 echo X"$as_dir" |
25352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25353 s//\1/
25356 /^X\(\/\/\)[^/].*/{
25357 s//\1/
25360 /^X\(\/\/\)$/{
25361 s//\1/
25364 /^X\(\/\).*/{
25365 s//\1/
25368 s/.*/./; q'`
25369 test -d "$as_dir" && break
25370 done
25371 test -z "$as_dirs" || eval "mkdir $as_dirs"
25372 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25373 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25374 { (exit 1); exit 1; }; }; }
25375 ac_builddir=.
25377 case "$ac_dir" in
25378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25381 # A ".." for each directory in $ac_dir_suffix.
25382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25383 case $ac_top_builddir_sub in
25384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25386 esac ;;
25387 esac
25388 ac_abs_top_builddir=$ac_pwd
25389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25390 # for backward compatibility:
25391 ac_top_builddir=$ac_top_build_prefix
25393 case $srcdir in
25394 .) # We are building in place.
25395 ac_srcdir=.
25396 ac_top_srcdir=$ac_top_builddir_sub
25397 ac_abs_top_srcdir=$ac_pwd ;;
25398 [\\/]* | ?:[\\/]* ) # Absolute name.
25399 ac_srcdir=$srcdir$ac_dir_suffix;
25400 ac_top_srcdir=$srcdir
25401 ac_abs_top_srcdir=$srcdir ;;
25402 *) # Relative name.
25403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25404 ac_top_srcdir=$ac_top_build_prefix$srcdir
25405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25406 esac
25407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25410 case $ac_mode in
25413 # CONFIG_FILE
25416 case $INSTALL in
25417 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25418 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25419 esac
25420 _ACEOF
25422 cat >>$CONFIG_STATUS <<\_ACEOF
25423 # If the template does not know about datarootdir, expand it.
25424 # FIXME: This hack should be removed a few years after 2.60.
25425 ac_datarootdir_hack=; ac_datarootdir_seen=
25427 case `sed -n '/datarootdir/ {
25431 /@datadir@/p
25432 /@docdir@/p
25433 /@infodir@/p
25434 /@localedir@/p
25435 /@mandir@/p
25436 ' $ac_file_inputs` in
25437 *datarootdir*) ac_datarootdir_seen=yes;;
25438 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25439 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25440 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25441 _ACEOF
25442 cat >>$CONFIG_STATUS <<_ACEOF
25443 ac_datarootdir_hack='
25444 s&@datadir@&$datadir&g
25445 s&@docdir@&$docdir&g
25446 s&@infodir@&$infodir&g
25447 s&@localedir@&$localedir&g
25448 s&@mandir@&$mandir&g
25449 s&\\\${datarootdir}&$datarootdir&g' ;;
25450 esac
25451 _ACEOF
25453 # Neutralize VPATH when `$srcdir' = `.'.
25454 # Shell code in configure.ac might set extrasub.
25455 # FIXME: do we really want to maintain this feature?
25456 cat >>$CONFIG_STATUS <<_ACEOF
25457 sed "$ac_vpsub
25458 $extrasub
25459 _ACEOF
25460 cat >>$CONFIG_STATUS <<\_ACEOF
25462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25463 s&@configure_input@&$configure_input&;t t
25464 s&@top_builddir@&$ac_top_builddir_sub&;t t
25465 s&@srcdir@&$ac_srcdir&;t t
25466 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25467 s&@top_srcdir@&$ac_top_srcdir&;t t
25468 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25469 s&@builddir@&$ac_builddir&;t t
25470 s&@abs_builddir@&$ac_abs_builddir&;t t
25471 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25472 s&@INSTALL@&$ac_INSTALL&;t t
25473 $ac_datarootdir_hack
25474 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25477 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25479 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25480 which seems to be undefined. Please make sure it is defined." >&5
25481 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25482 which seems to be undefined. Please make sure it is defined." >&2;}
25484 rm -f "$tmp/stdin"
25485 case $ac_file in
25486 -) cat "$tmp/out"; rm -f "$tmp/out";;
25487 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25488 esac
25492 # CONFIG_HEADER
25494 _ACEOF
25496 # Transform confdefs.h into a sed script `conftest.defines', that
25497 # substitutes the proper values into config.h.in to produce config.h.
25498 rm -f conftest.defines conftest.tail
25499 # First, append a space to every undef/define line, to ease matching.
25500 echo 's/$/ /' >conftest.defines
25501 # Then, protect against being on the right side of a sed subst, or in
25502 # an unquoted here document, in config.status. If some macros were
25503 # called several times there might be several #defines for the same
25504 # symbol, which is useless. But do not sort them, since the last
25505 # AC_DEFINE must be honored.
25506 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25507 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25508 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25509 # PARAMS is the parameter list in the macro definition--in most cases, it's
25510 # just an empty string.
25511 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25512 ac_dB='\\)[ (].*,\\1define\\2'
25513 ac_dC=' '
25514 ac_dD=' ,'
25516 uniq confdefs.h |
25517 sed -n '
25518 t rset
25519 :rset
25520 s/^[ ]*#[ ]*define[ ][ ]*//
25521 t ok
25524 s/[\\&,]/\\&/g
25525 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25526 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25527 ' >>conftest.defines
25529 # Remove the space that was appended to ease matching.
25530 # Then replace #undef with comments. This is necessary, for
25531 # example, in the case of _POSIX_SOURCE, which is predefined and required
25532 # on some systems where configure will not decide to define it.
25533 # (The regexp can be short, since the line contains either #define or #undef.)
25534 echo 's/ $//
25535 s,^[ #]*u.*,/* & */,' >>conftest.defines
25537 # Break up conftest.defines:
25538 ac_max_sed_lines=50
25540 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25541 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25542 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25543 # et cetera.
25544 ac_in='$ac_file_inputs'
25545 ac_out='"$tmp/out1"'
25546 ac_nxt='"$tmp/out2"'
25548 while :
25550 # Write a here document:
25551 cat >>$CONFIG_STATUS <<_ACEOF
25552 # First, check the format of the line:
25553 cat >"\$tmp/defines.sed" <<\\CEOF
25554 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25555 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25557 :def
25558 _ACEOF
25559 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25560 echo 'CEOF
25561 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25562 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25563 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25564 grep . conftest.tail >/dev/null || break
25565 rm -f conftest.defines
25566 mv conftest.tail conftest.defines
25567 done
25568 rm -f conftest.defines conftest.tail
25570 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25571 cat >>$CONFIG_STATUS <<\_ACEOF
25572 if test x"$ac_file" != x-; then
25573 echo "/* $configure_input */" >"$tmp/config.h"
25574 cat "$ac_result" >>"$tmp/config.h"
25575 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25576 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25577 echo "$as_me: $ac_file is unchanged" >&6;}
25578 else
25579 rm -f $ac_file
25580 mv "$tmp/config.h" $ac_file
25582 else
25583 echo "/* $configure_input */"
25584 cat "$ac_result"
25586 rm -f "$tmp/out12"
25589 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25590 echo "$as_me: executing $ac_file commands" >&6;}
25592 esac
25595 case $ac_file$ac_mode in
25596 "default":C)
25598 ### Make the necessary directories, if they don't exist.
25599 for dir in etc lisp ; do
25600 test -d ${dir} || mkdir ${dir}
25601 done
25603 # Build src/Makefile from ${srcdir}/src/Makefile.c
25604 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25605 # This must be done after src/config.h is built, since we rely on that file.
25607 echo creating src/epaths.h
25608 ${MAKE-make} epaths-force
25610 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25611 # `..' to `. .' unless invoked with -traditional
25613 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25614 CPPFLAGS="$CPPFLAGS -traditional"
25617 echo creating lib-src/Makefile
25618 ( cd lib-src
25619 rm -f junk.c junk1.c junk2.c
25620 sed -e '/start of cpp stuff/q' \
25621 < Makefile.c > junk1.c
25622 sed -e '1,/start of cpp stuff/d'\
25623 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25624 < Makefile.c > junk.c
25625 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25626 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25627 cat junk1.c junk2.c > Makefile.new
25628 rm -f junk.c junk1.c junk2.c
25629 chmod 444 Makefile.new
25630 mv -f Makefile.new Makefile
25633 echo creating src/Makefile
25634 ( cd src
25635 rm -f junk.c junk1.c junk2.c
25636 sed -e '/start of cpp stuff/q' \
25637 < Makefile.c > junk1.c
25638 sed -e '1,/start of cpp stuff/d'\
25639 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25640 < Makefile.c > junk.c
25641 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25642 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25643 cat junk1.c junk2.c > Makefile.new
25644 rm -f junk.c junk1.c junk2.c
25645 chmod 444 Makefile.new
25646 mv -f Makefile.new Makefile
25649 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25650 echo creating src/.gdbinit
25651 echo source $srcdir/src/.gdbinit > src/.gdbinit
25656 esac
25657 done # for ac_tag
25660 { (exit 0); exit 0; }
25661 _ACEOF
25662 chmod +x $CONFIG_STATUS
25663 ac_clean_files=$ac_clean_files_save
25666 # configure is writing to config.log, and then calls config.status.
25667 # config.status does its own redirection, appending to config.log.
25668 # Unfortunately, on DOS this fails, as config.log is still kept open
25669 # by configure, so config.status won't be able to write to it; its
25670 # output is simply discarded. So we exec the FD to /dev/null,
25671 # effectively closing config.log, so it can be properly (re)opened and
25672 # appended to by config.status. When coming back to configure, we
25673 # need to make the FD available again.
25674 if test "$no_create" != yes; then
25675 ac_cs_success=:
25676 ac_config_status_args=
25677 test "$silent" = yes &&
25678 ac_config_status_args="$ac_config_status_args --quiet"
25679 exec 5>/dev/null
25680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25681 exec 5>>config.log
25682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25683 # would make configure fail if this is the last instruction.
25684 $ac_cs_success || { (exit 1); exit 1; }