(Startup Summary): Document `before-init-time' and `after-init-time'.
[emacs.git] / configure
blob9995b710e0871dd5bc426e6e8cbd1ea10167599e
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
2654 unported=yes
2656 esac
2658 ### If the code above didn't choose an operating system, just choose
2659 ### an operating system based on the configuration name. You really
2660 ### only want to use this when you have no idea what the right
2661 ### operating system is; if you know what operating systems a machine
2662 ### runs, it's cleaner to make it explicit in the case statement
2663 ### above.
2664 if test x"${opsys}" = x; then
2665 case "${canonical}" in
2666 *-gnu* ) opsys=gnu ;;
2667 *-sysv4.2uw* ) opsys=unixware ;;
2668 *-sysv5uw* ) opsys=unixware ;;
2669 *-sysv5OpenUNIX* ) opsys=unixware ;;
2670 *-sysv4.1* | *-sysvr4.1* )
2671 NON_GNU_CPP=/usr/lib/cpp
2672 opsys=usg5-4 ;;
2673 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2674 if [ x$NON_GNU_CPP = x ]; then
2675 if [ -f /usr/ccs/lib/cpp ]; then
2676 NON_GNU_CPP=/usr/ccs/lib/cpp
2677 else
2678 NON_GNU_CPP=/lib/cpp
2681 opsys=usg5-4-2 ;;
2682 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2684 unported=yes
2686 esac
2691 if test $unported = yes; then
2692 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2693 Check \`etc/MACHINES' for recognized configuration names." >&5
2694 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2695 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2696 { (exit 1); exit 1; }; }
2699 machfile="m/${machine}.h"
2700 opsysfile="s/${opsys}.h"
2703 #### Choose a compiler.
2704 test -n "$CC" && cc_specified=yes
2706 # Save the value of CFLAGS that the user specified.
2707 SPECIFIED_CFLAGS="$CFLAGS"
2709 ac_ext=c
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2716 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2719 if test "${ac_cv_prog_CC+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2736 done
2737 done
2738 IFS=$as_save_IFS
2742 CC=$ac_cv_prog_CC
2743 if test -n "$CC"; then
2744 { echo "$as_me:$LINENO: result: $CC" >&5
2745 echo "${ECHO_T}$CC" >&6; }
2746 else
2747 { echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6; }
2753 if test -z "$ac_cv_prog_CC"; then
2754 ac_ct_CC=$CC
2755 # Extract the first word of "gcc", so it can be a program name with args.
2756 set dummy gcc; ac_word=$2
2757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_ac_ct_CC="gcc"
2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2776 done
2777 done
2778 IFS=$as_save_IFS
2782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2783 if test -n "$ac_ct_CC"; then
2784 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2785 echo "${ECHO_T}$ac_ct_CC" >&6; }
2786 else
2787 { echo "$as_me:$LINENO: result: no" >&5
2788 echo "${ECHO_T}no" >&6; }
2791 if test "x$ac_ct_CC" = x; then
2792 CC=""
2793 else
2794 case $cross_compiling:$ac_tool_warned in
2795 yes:)
2796 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2797 whose name does not start with the host triplet. If you think this
2798 configuration is useful to you, please write to autoconf@gnu.org." >&5
2799 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2800 whose name does not start with the host triplet. If you think this
2801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2802 ac_tool_warned=yes ;;
2803 esac
2804 CC=$ac_ct_CC
2806 else
2807 CC="$ac_cv_prog_CC"
2810 if test -z "$CC"; then
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}cc; ac_word=$2
2814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2816 if test "${ac_cv_prog_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_CC="${ac_tool_prefix}cc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2833 done
2834 done
2835 IFS=$as_save_IFS
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841 { echo "$as_me:$LINENO: result: $CC" >&5
2842 echo "${ECHO_T}$CC" >&6; }
2843 else
2844 { echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6; }
2851 if test -z "$CC"; then
2852 # Extract the first word of "cc", so it can be a program name with args.
2853 set dummy cc; ac_word=$2
2854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 ac_prog_rejected=no
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2871 ac_prog_rejected=yes
2872 continue
2874 ac_cv_prog_CC="cc"
2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2878 done
2879 done
2880 IFS=$as_save_IFS
2882 if test $ac_prog_rejected = yes; then
2883 # We found a bogon in the path, so make sure we never use it.
2884 set dummy $ac_cv_prog_CC
2885 shift
2886 if test $# != 0; then
2887 # We chose a different compiler from the bogus one.
2888 # However, it has the same basename, so the bogon will be chosen
2889 # first if we set CC to just the basename; use the full file name.
2890 shift
2891 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { echo "$as_me:$LINENO: result: $CC" >&5
2899 echo "${ECHO_T}$CC" >&6; }
2900 else
2901 { echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6; }
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 for ac_prog in cl.exe
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2915 if test "${ac_cv_prog_CC+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2932 done
2933 done
2934 IFS=$as_save_IFS
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { echo "$as_me:$LINENO: result: $CC" >&5
2941 echo "${ECHO_T}$CC" >&6; }
2942 else
2943 { echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6; }
2948 test -n "$CC" && break
2949 done
2951 if test -z "$CC"; then
2952 ac_ct_CC=$CC
2953 for ac_prog in cl.exe
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962 if test -n "$ac_ct_CC"; then
2963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_ac_ct_CC="$ac_prog"
2973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2976 done
2977 done
2978 IFS=$as_save_IFS
2982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2983 if test -n "$ac_ct_CC"; then
2984 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2985 echo "${ECHO_T}$ac_ct_CC" >&6; }
2986 else
2987 { echo "$as_me:$LINENO: result: no" >&5
2988 echo "${ECHO_T}no" >&6; }
2992 test -n "$ac_ct_CC" && break
2993 done
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3001 whose name does not start with the host triplet. If you think this
3002 configuration is useful to you, please write to autoconf@gnu.org." >&5
3003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3004 whose name does not start with the host triplet. If you think this
3005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008 CC=$ac_ct_CC
3015 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3016 See \`config.log' for more details." >&5
3017 echo "$as_me: error: no acceptable C compiler found in \$PATH
3018 See \`config.log' for more details." >&2;}
3019 { (exit 1); exit 1; }; }
3021 # Provide some information about the compiler.
3022 echo "$as_me:$LINENO: checking for C compiler version" >&5
3023 ac_compiler=`set X $ac_compile; echo $2`
3024 { (ac_try="$ac_compiler --version >&5"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compiler --version >&5") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }
3034 { (ac_try="$ac_compiler -v >&5"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compiler -v >&5") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }
3044 { (ac_try="$ac_compiler -V >&5"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compiler -V >&5") 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h. */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3063 main ()
3067 return 0;
3069 _ACEOF
3070 ac_clean_files_save=$ac_clean_files
3071 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3072 # Try to create an executable without -o first, disregard a.out.
3073 # It will help us diagnose broken compilers, and finding out an intuition
3074 # of exeext.
3075 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3076 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3077 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3079 # List of possible output files, starting from the most likely.
3080 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3081 # only as a last resort. b.out is created by i960 compilers.
3082 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3084 # The IRIX 6 linker writes into existing files which may not be
3085 # executable, retaining their permissions. Remove them first so a
3086 # subsequent execution test works.
3087 ac_rmfiles=
3088 for ac_file in $ac_files
3090 case $ac_file in
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3092 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3093 esac
3094 done
3095 rm -f $ac_rmfiles
3097 if { (ac_try="$ac_link_default"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_link_default") 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; then
3107 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3108 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3109 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3110 # so that the user can short-circuit this test for compilers unknown to
3111 # Autoconf.
3112 for ac_file in $ac_files ''
3114 test -f "$ac_file" || continue
3115 case $ac_file in
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3118 [ab].out )
3119 # We found the default executable, but exeext='' is most
3120 # certainly right.
3121 break;;
3122 *.* )
3123 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3124 then :; else
3125 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 # We set ac_cv_exeext here because the later test for it is not
3128 # safe: cross compilers may not add the suffix if given an `-o'
3129 # argument, so we may need to know it at that point already.
3130 # Even if this section looks crufty: it has the advantage of
3131 # actually working.
3132 break;;
3134 break;;
3135 esac
3136 done
3137 test "$ac_cv_exeext" = no && ac_cv_exeext=
3139 else
3140 ac_file=''
3143 { echo "$as_me:$LINENO: result: $ac_file" >&5
3144 echo "${ECHO_T}$ac_file" >&6; }
3145 if test -z "$ac_file"; then
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3149 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3150 See \`config.log' for more details." >&5
3151 echo "$as_me: error: C compiler cannot create executables
3152 See \`config.log' for more details." >&2;}
3153 { (exit 77); exit 77; }; }
3156 ac_exeext=$ac_cv_exeext
3158 # Check that the compiler produces executables we can run. If not, either
3159 # the compiler is broken, or we cross compile.
3160 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3161 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3162 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3163 # If not cross compiling, check that we can run a simple program.
3164 if test "$cross_compiling" != yes; then
3165 if { ac_try='./$ac_file'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 cross_compiling=no
3176 else
3177 if test "$cross_compiling" = maybe; then
3178 cross_compiling=yes
3179 else
3180 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3181 If you meant to cross compile, use \`--host'.
3182 See \`config.log' for more details." >&5
3183 echo "$as_me: error: cannot run C compiled programs.
3184 If you meant to cross compile, use \`--host'.
3185 See \`config.log' for more details." >&2;}
3186 { (exit 1); exit 1; }; }
3190 { echo "$as_me:$LINENO: result: yes" >&5
3191 echo "${ECHO_T}yes" >&6; }
3193 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3194 ac_clean_files=$ac_clean_files_save
3195 # Check that the compiler produces executables we can run. If not, either
3196 # the compiler is broken, or we cross compile.
3197 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3198 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3199 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3200 echo "${ECHO_T}$cross_compiling" >&6; }
3202 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3203 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3204 if { (ac_try="$ac_link"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_link") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; then
3214 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3215 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3216 # work properly (i.e., refer to `conftest.exe'), while it won't with
3217 # `rm'.
3218 for ac_file in conftest.exe conftest conftest.*; do
3219 test -f "$ac_file" || continue
3220 case $ac_file in
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 break;;
3224 * ) break;;
3225 esac
3226 done
3227 else
3228 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3231 See \`config.log' for more details." >&2;}
3232 { (exit 1); exit 1; }; }
3235 rm -f conftest$ac_cv_exeext
3236 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3237 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3239 rm -f conftest.$ac_ext
3240 EXEEXT=$ac_cv_exeext
3241 ac_exeext=$EXEEXT
3242 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3243 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3244 if test "${ac_cv_objext+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h. */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3255 main ()
3259 return 0;
3261 _ACEOF
3262 rm -f conftest.o conftest.obj
3263 if { (ac_try="$ac_compile"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compile") 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; then
3273 for ac_file in conftest.o conftest.obj conftest.*; do
3274 test -f "$ac_file" || continue;
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3278 break;;
3279 esac
3280 done
3281 else
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details." >&5
3287 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3288 See \`config.log' for more details." >&2;}
3289 { (exit 1); exit 1; }; }
3292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3294 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3295 echo "${ECHO_T}$ac_cv_objext" >&6; }
3296 OBJEXT=$ac_cv_objext
3297 ac_objext=$OBJEXT
3298 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3311 main ()
3313 #ifndef __GNUC__
3314 choke me
3315 #endif
3318 return 0;
3320 _ACEOF
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } && {
3335 test -z "$ac_c_werror_flag" ||
3336 test ! -s conftest.err
3337 } && test -s conftest.$ac_objext; then
3338 ac_compiler_gnu=yes
3339 else
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 ac_compiler_gnu=no
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3350 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3351 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3352 GCC=`test $ac_compiler_gnu = yes && echo yes`
3353 ac_test_CFLAGS=${CFLAGS+set}
3354 ac_save_CFLAGS=$CFLAGS
3355 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3356 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_cc_g+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 ac_save_c_werror_flag=$ac_c_werror_flag
3361 ac_c_werror_flag=yes
3362 ac_cv_prog_cc_g=no
3363 CFLAGS="-g"
3364 cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h. */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3372 main ()
3376 return 0;
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (ac_try="$ac_compile"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_compile") 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } && {
3393 test -z "$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3395 } && test -s conftest.$ac_objext; then
3396 ac_cv_prog_cc_g=yes
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 CFLAGS=""
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3410 main ()
3414 return 0;
3416 _ACEOF
3417 rm -f conftest.$ac_objext
3418 if { (ac_try="$ac_compile"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_compile") 2>conftest.er1
3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } && {
3431 test -z "$ac_c_werror_flag" ||
3432 test ! -s conftest.err
3433 } && test -s conftest.$ac_objext; then
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 ac_c_werror_flag=$ac_save_c_werror_flag
3440 CFLAGS="-g"
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3449 main ()
3453 return 0;
3455 _ACEOF
3456 rm -f conftest.$ac_objext
3457 if { (ac_try="$ac_compile"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_compile") 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } && {
3470 test -z "$ac_c_werror_flag" ||
3471 test ! -s conftest.err
3472 } && test -s conftest.$ac_objext; then
3473 ac_cv_prog_cc_g=yes
3474 else
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 ac_c_werror_flag=$ac_save_c_werror_flag
3490 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3491 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3492 if test "$ac_test_CFLAGS" = set; then
3493 CFLAGS=$ac_save_CFLAGS
3494 elif test $ac_cv_prog_cc_g = yes; then
3495 if test "$GCC" = yes; then
3496 CFLAGS="-g -O2"
3497 else
3498 CFLAGS="-g"
3500 else
3501 if test "$GCC" = yes; then
3502 CFLAGS="-O2"
3503 else
3504 CFLAGS=
3507 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3508 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3509 if test "${ac_cv_prog_cc_c89+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512 ac_cv_prog_cc_c89=no
3513 ac_save_CC=$CC
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <stdarg.h>
3521 #include <stdio.h>
3522 #include <sys/types.h>
3523 #include <sys/stat.h>
3524 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3525 struct buf { int x; };
3526 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3527 static char *e (p, i)
3528 char **p;
3529 int i;
3531 return p[i];
3533 static char *f (char * (*g) (char **, int), char **p, ...)
3535 char *s;
3536 va_list v;
3537 va_start (v,p);
3538 s = g (p, va_arg (v,int));
3539 va_end (v);
3540 return s;
3543 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3544 function prototypes and stuff, but not '\xHH' hex character constants.
3545 These don't provoke an error unfortunately, instead are silently treated
3546 as 'x'. The following induces an error, until -std is added to get
3547 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3548 array size at least. It's necessary to write '\x00'==0 to get something
3549 that's true only with -std. */
3550 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3552 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3553 inside strings and character constants. */
3554 #define FOO(x) 'x'
3555 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3557 int test (int i, double x);
3558 struct s1 {int (*f) (int a);};
3559 struct s2 {int (*f) (double a);};
3560 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3561 int argc;
3562 char **argv;
3564 main ()
3566 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3568 return 0;
3570 _ACEOF
3571 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3572 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3574 CC="$ac_save_CC $ac_arg"
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3577 case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_compile") 2>conftest.er1
3583 ac_status=$?
3584 grep -v '^ *+' conftest.er1 >conftest.err
3585 rm -f conftest.er1
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } && {
3589 test -z "$ac_c_werror_flag" ||
3590 test ! -s conftest.err
3591 } && test -s conftest.$ac_objext; then
3592 ac_cv_prog_cc_c89=$ac_arg
3593 else
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3600 rm -f core conftest.err conftest.$ac_objext
3601 test "x$ac_cv_prog_cc_c89" != "xno" && break
3602 done
3603 rm -f conftest.$ac_ext
3604 CC=$ac_save_CC
3607 # AC_CACHE_VAL
3608 case "x$ac_cv_prog_cc_c89" in
3610 { echo "$as_me:$LINENO: result: none needed" >&5
3611 echo "${ECHO_T}none needed" >&6; } ;;
3612 xno)
3613 { echo "$as_me:$LINENO: result: unsupported" >&5
3614 echo "${ECHO_T}unsupported" >&6; } ;;
3616 CC="$CC $ac_cv_prog_cc_c89"
3617 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3618 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3619 esac
3622 ac_ext=c
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 # On Suns, sometimes $CPP names a directory.
3630 if test -n "$CPP" && test -d "$CPP"; then
3631 CPP=
3634 ## If not using gcc, and on Solaris, and no CPP specified, see if
3635 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3636 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3637 test x"$CPP" = x; then
3638 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3639 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3641 if test "${emacs_cv_sunpro_c+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3652 main ()
3654 #ifndef __SUNPRO_C
3655 fail;
3656 #endif
3659 return 0;
3661 _ACEOF
3662 rm -f conftest.$ac_objext conftest$ac_exeext
3663 if { (ac_try="$ac_link"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_link") 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } && {
3676 test -z "$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3678 } && test -s conftest$ac_exeext &&
3679 $as_test_x conftest$ac_exeext; then
3680 emacs_cv_sunpro_c=yes
3681 else
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 emacs_cv_sunpro_c=no
3688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3689 conftest$ac_exeext conftest.$ac_ext
3692 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3693 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3695 if test x"$emacs_cv_sunpro_c" = xyes; then
3696 NON_GNU_CPP="$CC -E -Xs"
3700 #### Some systems specify a CPP to use unless we are using GCC.
3701 #### Now that we know whether we are using GCC, we can decide whether
3702 #### to use that one.
3703 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3704 then
3705 CPP="$NON_GNU_CPP"
3708 #### Some systems specify a CC to use unless we are using GCC.
3709 #### Now that we know whether we are using GCC, we can decide whether
3710 #### to use that one.
3711 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3712 test x$cc_specified != xyes
3713 then
3714 CC="$NON_GNU_CC"
3717 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3718 then
3719 CC="$CC $GCC_TEST_OPTIONS"
3722 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3723 then
3724 CC="$CC $NON_GCC_TEST_OPTIONS"
3728 cat >>confdefs.h <<\_ACEOF
3729 #define _GNU_SOURCE 1
3730 _ACEOF
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3739 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3740 # On Suns, sometimes $CPP names a directory.
3741 if test -n "$CPP" && test -d "$CPP"; then
3742 CPP=
3744 if test -z "$CPP"; then
3745 if test "${ac_cv_prog_CPP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 # Double quotes because CPP needs to be expanded
3749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3751 ac_preproc_ok=false
3752 for ac_c_preproc_warn_flag in '' yes
3754 # Use a header file that comes with gcc, so configuring glibc
3755 # with a fresh cross-compiler works.
3756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3757 # <limits.h> exists even on freestanding compilers.
3758 # On the NeXT, cc -E runs the code through the compiler's parser,
3759 # not just through cpp. "Syntax error" is here to catch this case.
3760 cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h. */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 #ifdef __STDC__
3767 # include <limits.h>
3768 #else
3769 # include <assert.h>
3770 #endif
3771 Syntax error
3772 _ACEOF
3773 if { (ac_try="$ac_cpp conftest.$ac_ext"
3774 case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777 esac
3778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } >/dev/null && {
3786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 }; then
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 # Broken: fails on valid input.
3795 continue
3798 rm -f conftest.err conftest.$ac_ext
3800 # OK, works on sane cases. Now check whether nonexistent headers
3801 # can be detected and how.
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3808 #include <ac_nonexistent.h>
3809 _ACEOF
3810 if { (ac_try="$ac_cpp conftest.$ac_ext"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } >/dev/null && {
3823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3824 test ! -s conftest.err
3825 }; then
3826 # Broken: success on invalid input.
3827 continue
3828 else
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 # Passes both tests.
3833 ac_preproc_ok=:
3834 break
3837 rm -f conftest.err conftest.$ac_ext
3839 done
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then
3843 break
3846 done
3847 ac_cv_prog_CPP=$CPP
3850 CPP=$ac_cv_prog_CPP
3851 else
3852 ac_cv_prog_CPP=$CPP
3854 { echo "$as_me:$LINENO: result: $CPP" >&5
3855 echo "${ECHO_T}$CPP" >&6; }
3856 ac_preproc_ok=false
3857 for ac_c_preproc_warn_flag in '' yes
3859 # Use a header file that comes with gcc, so configuring glibc
3860 # with a fresh cross-compiler works.
3861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3862 # <limits.h> exists even on freestanding compilers.
3863 # On the NeXT, cc -E runs the code through the compiler's parser,
3864 # not just through cpp. "Syntax error" is here to catch this case.
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 #ifdef __STDC__
3872 # include <limits.h>
3873 #else
3874 # include <assert.h>
3875 #endif
3876 Syntax error
3877 _ACEOF
3878 if { (ac_try="$ac_cpp conftest.$ac_ext"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } >/dev/null && {
3891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 }; then
3895 else
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3899 # Broken: fails on valid input.
3900 continue
3903 rm -f conftest.err conftest.$ac_ext
3905 # OK, works on sane cases. Now check whether nonexistent headers
3906 # can be detected and how.
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 #include <ac_nonexistent.h>
3914 _ACEOF
3915 if { (ac_try="$ac_cpp conftest.$ac_ext"
3916 case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } >/dev/null && {
3928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 }; then
3931 # Broken: success on invalid input.
3932 continue
3933 else
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3937 # Passes both tests.
3938 ac_preproc_ok=:
3939 break
3942 rm -f conftest.err conftest.$ac_ext
3944 done
3945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3946 rm -f conftest.err conftest.$ac_ext
3947 if $ac_preproc_ok; then
3949 else
3950 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3951 See \`config.log' for more details." >&5
3952 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3953 See \`config.log' for more details." >&2;}
3954 { (exit 1); exit 1; }; }
3957 ac_ext=c
3958 ac_cpp='$CPP $CPPFLAGS'
3959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3965 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 # Extract the first word of "grep ggrep" to use in msg output
3970 if test -z "$GREP"; then
3971 set dummy grep ggrep; ac_prog_name=$2
3972 if test "${ac_cv_path_GREP+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975 ac_path_GREP_found=false
3976 # Loop through the user's path and test for each of PROGNAME-LIST
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_prog in grep ggrep; do
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3985 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3986 # Check for GNU ac_path_GREP and select it if it is found.
3987 # Check for GNU $ac_path_GREP
3988 case `"$ac_path_GREP" --version 2>&1` in
3989 *GNU*)
3990 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3992 ac_count=0
3993 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3994 while :
3996 cat "conftest.in" "conftest.in" >"conftest.tmp"
3997 mv "conftest.tmp" "conftest.in"
3998 cp "conftest.in" "conftest.nl"
3999 echo 'GREP' >> "conftest.nl"
4000 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4002 ac_count=`expr $ac_count + 1`
4003 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4004 # Best one so far, save it but keep looking for a better one
4005 ac_cv_path_GREP="$ac_path_GREP"
4006 ac_path_GREP_max=$ac_count
4008 # 10*(2^10) chars as input seems more than enough
4009 test $ac_count -gt 10 && break
4010 done
4011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 esac
4015 $ac_path_GREP_found && break 3
4016 done
4017 done
4019 done
4020 IFS=$as_save_IFS
4025 GREP="$ac_cv_path_GREP"
4026 if test -z "$GREP"; then
4027 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4028 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4029 { (exit 1); exit 1; }; }
4032 else
4033 ac_cv_path_GREP=$GREP
4038 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4039 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4040 GREP="$ac_cv_path_GREP"
4043 { echo "$as_me:$LINENO: checking for egrep" >&5
4044 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4045 if test "${ac_cv_path_EGREP+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4049 then ac_cv_path_EGREP="$GREP -E"
4050 else
4051 # Extract the first word of "egrep" to use in msg output
4052 if test -z "$EGREP"; then
4053 set dummy egrep; ac_prog_name=$2
4054 if test "${ac_cv_path_EGREP+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 ac_path_EGREP_found=false
4058 # Loop through the user's path and test for each of PROGNAME-LIST
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_prog in egrep; do
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4067 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4068 # Check for GNU ac_path_EGREP and select it if it is found.
4069 # Check for GNU $ac_path_EGREP
4070 case `"$ac_path_EGREP" --version 2>&1` in
4071 *GNU*)
4072 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4074 ac_count=0
4075 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4076 while :
4078 cat "conftest.in" "conftest.in" >"conftest.tmp"
4079 mv "conftest.tmp" "conftest.in"
4080 cp "conftest.in" "conftest.nl"
4081 echo 'EGREP' >> "conftest.nl"
4082 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4084 ac_count=`expr $ac_count + 1`
4085 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4086 # Best one so far, save it but keep looking for a better one
4087 ac_cv_path_EGREP="$ac_path_EGREP"
4088 ac_path_EGREP_max=$ac_count
4090 # 10*(2^10) chars as input seems more than enough
4091 test $ac_count -gt 10 && break
4092 done
4093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4094 esac
4097 $ac_path_EGREP_found && break 3
4098 done
4099 done
4101 done
4102 IFS=$as_save_IFS
4107 EGREP="$ac_cv_path_EGREP"
4108 if test -z "$EGREP"; then
4109 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4110 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4111 { (exit 1); exit 1; }; }
4114 else
4115 ac_cv_path_EGREP=$EGREP
4121 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4122 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4123 EGREP="$ac_cv_path_EGREP"
4127 { echo "$as_me:$LINENO: checking for AIX" >&5
4128 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #ifdef _AIX
4137 #endif
4139 _ACEOF
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "yes" >/dev/null 2>&1; then
4142 { echo "$as_me:$LINENO: result: yes" >&5
4143 echo "${ECHO_T}yes" >&6; }
4144 cat >>confdefs.h <<\_ACEOF
4145 #define _ALL_SOURCE 1
4146 _ACEOF
4148 else
4149 { echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6; }
4152 rm -f conftest*
4155 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4156 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4157 if test "${ac_cv_header_stdc+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h. */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 #include <stdlib.h>
4167 #include <stdarg.h>
4168 #include <string.h>
4169 #include <float.h>
4172 main ()
4176 return 0;
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_compile") 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } && {
4193 test -z "$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4195 } && test -s conftest.$ac_objext; then
4196 ac_cv_header_stdc=yes
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 ac_cv_header_stdc=no
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 if test $ac_cv_header_stdc = yes; then
4207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h. */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 #include <string.h>
4216 _ACEOF
4217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4218 $EGREP "memchr" >/dev/null 2>&1; then
4220 else
4221 ac_cv_header_stdc=no
4223 rm -f conftest*
4227 if test $ac_cv_header_stdc = yes; then
4228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #include <stdlib.h>
4237 _ACEOF
4238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239 $EGREP "free" >/dev/null 2>&1; then
4241 else
4242 ac_cv_header_stdc=no
4244 rm -f conftest*
4248 if test $ac_cv_header_stdc = yes; then
4249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4250 if test "$cross_compiling" = yes; then
4252 else
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h. */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 #include <ctype.h>
4260 #include <stdlib.h>
4261 #if ((' ' & 0x0FF) == 0x020)
4262 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4263 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4264 #else
4265 # define ISLOWER(c) \
4266 (('a' <= (c) && (c) <= 'i') \
4267 || ('j' <= (c) && (c) <= 'r') \
4268 || ('s' <= (c) && (c) <= 'z'))
4269 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4270 #endif
4272 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4274 main ()
4276 int i;
4277 for (i = 0; i < 256; i++)
4278 if (XOR (islower (i), ISLOWER (i))
4279 || toupper (i) != TOUPPER (i))
4280 return 2;
4281 return 0;
4283 _ACEOF
4284 rm -f conftest$ac_exeext
4285 if { (ac_try="$ac_link"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_link") 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4305 else
4306 echo "$as_me: program exited with status $ac_status" >&5
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 ( exit $ac_status )
4311 ac_cv_header_stdc=no
4313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4319 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4320 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4321 if test $ac_cv_header_stdc = yes; then
4323 cat >>confdefs.h <<\_ACEOF
4324 #define STDC_HEADERS 1
4325 _ACEOF
4329 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4339 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4340 inttypes.h stdint.h unistd.h
4342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h. */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 $ac_includes_default
4356 #include <$ac_header>
4357 _ACEOF
4358 rm -f conftest.$ac_objext
4359 if { (ac_try="$ac_compile"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_compile") 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } && {
4372 test -z "$ac_c_werror_flag" ||
4373 test ! -s conftest.err
4374 } && test -s conftest.$ac_objext; then
4375 eval "$as_ac_Header=yes"
4376 else
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4380 eval "$as_ac_Header=no"
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 ac_res=`eval echo '${'$as_ac_Header'}'`
4386 { echo "$as_me:$LINENO: result: $ac_res" >&5
4387 echo "${ECHO_T}$ac_res" >&6; }
4388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4389 cat >>confdefs.h <<_ACEOF
4390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4391 _ACEOF
4395 done
4398 if test "${ac_cv_header_minix_config_h+set}" = set; then
4399 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4400 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4401 if test "${ac_cv_header_minix_config_h+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4405 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4406 else
4407 # Is the header compilable?
4408 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4409 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 $ac_includes_default
4417 #include <minix/config.h>
4418 _ACEOF
4419 rm -f conftest.$ac_objext
4420 if { (ac_try="$ac_compile"
4421 case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424 esac
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_compile") 2>conftest.er1
4427 ac_status=$?
4428 grep -v '^ *+' conftest.er1 >conftest.err
4429 rm -f conftest.er1
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } && {
4433 test -z "$ac_c_werror_flag" ||
4434 test ! -s conftest.err
4435 } && test -s conftest.$ac_objext; then
4436 ac_header_compiler=yes
4437 else
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 ac_header_compiler=no
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4446 echo "${ECHO_T}$ac_header_compiler" >&6; }
4448 # Is the header present?
4449 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4450 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 #include <minix/config.h>
4458 _ACEOF
4459 if { (ac_try="$ac_cpp conftest.$ac_ext"
4460 case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463 esac
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } >/dev/null && {
4472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 }; then
4475 ac_header_preproc=yes
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 ac_header_preproc=no
4483 rm -f conftest.err conftest.$ac_ext
4484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4485 echo "${ECHO_T}$ac_header_preproc" >&6; }
4487 # So? What about this header?
4488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4489 yes:no: )
4490 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4491 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4492 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4493 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4494 ac_header_preproc=yes
4496 no:yes:* )
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4498 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4500 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4502 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4504 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4506 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4508 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4511 esac
4512 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4513 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4514 if test "${ac_cv_header_minix_config_h+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 ac_cv_header_minix_config_h=$ac_header_preproc
4519 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4520 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4523 if test $ac_cv_header_minix_config_h = yes; then
4524 MINIX=yes
4525 else
4526 MINIX=
4530 if test "$MINIX" = yes; then
4532 cat >>confdefs.h <<\_ACEOF
4533 #define _POSIX_SOURCE 1
4534 _ACEOF
4537 cat >>confdefs.h <<\_ACEOF
4538 #define _POSIX_1_SOURCE 2
4539 _ACEOF
4542 cat >>confdefs.h <<\_ACEOF
4543 #define _MINIX 1
4544 _ACEOF
4558 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4559 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4560 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h. */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4570 # define __EXTENSIONS__ 1
4571 $ac_includes_default
4573 main ()
4577 return 0;
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4582 case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585 esac
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587 (eval "$ac_compile") 2>conftest.er1
4588 ac_status=$?
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && {
4594 test -z "$ac_c_werror_flag" ||
4595 test ! -s conftest.err
4596 } && test -s conftest.$ac_objext; then
4597 ac_cv_safe_to_define___extensions__=yes
4598 else
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 ac_cv_safe_to_define___extensions__=no
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4608 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4609 test $ac_cv_safe_to_define___extensions__ = yes &&
4610 cat >>confdefs.h <<\_ACEOF
4611 #define __EXTENSIONS__ 1
4612 _ACEOF
4614 cat >>confdefs.h <<\_ACEOF
4615 #define _POSIX_PTHREAD_SEMANTICS 1
4616 _ACEOF
4618 cat >>confdefs.h <<\_ACEOF
4619 #define _TANDEM_SOURCE 1
4620 _ACEOF
4624 ### Use -Wno-pointer-sign if the compiler supports it
4625 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4626 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4627 SAVE_CFLAGS="$CFLAGS"
4628 CFLAGS="$CFLAGS -Wno-pointer-sign"
4629 cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h. */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4637 main ()
4641 return 0;
4643 _ACEOF
4644 rm -f conftest.$ac_objext
4645 if { (ac_try="$ac_compile"
4646 case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649 esac
4650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651 (eval "$ac_compile") 2>conftest.er1
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } && {
4658 test -z "$ac_c_werror_flag" ||
4659 test ! -s conftest.err
4660 } && test -s conftest.$ac_objext; then
4661 has_option=yes
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 has_option=no
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 if test $has_option = yes; then
4671 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4673 { echo "$as_me:$LINENO: result: $has_option" >&5
4674 echo "${ECHO_T}$has_option" >&6; }
4675 CFLAGS="$SAVE_CFLAGS"
4676 unset has_option
4677 unset SAVE_CFLAGS
4679 #### Some other nice autoconf tests.
4681 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4682 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4683 LN_S=$as_ln_s
4684 if test "$LN_S" = "ln -s"; then
4685 { echo "$as_me:$LINENO: result: yes" >&5
4686 echo "${ECHO_T}yes" >&6; }
4687 else
4688 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4689 echo "${ECHO_T}no, using $LN_S" >&6; }
4692 ac_ext=c
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4698 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4699 # On Suns, sometimes $CPP names a directory.
4700 if test -n "$CPP" && test -d "$CPP"; then
4701 CPP=
4703 if test -z "$CPP"; then
4704 if test "${ac_cv_prog_CPP+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707 # Double quotes because CPP needs to be expanded
4708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4710 ac_preproc_ok=false
4711 for ac_c_preproc_warn_flag in '' yes
4713 # Use a header file that comes with gcc, so configuring glibc
4714 # with a fresh cross-compiler works.
4715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4716 # <limits.h> exists even on freestanding compilers.
4717 # On the NeXT, cc -E runs the code through the compiler's parser,
4718 # not just through cpp. "Syntax error" is here to catch this case.
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 #ifdef __STDC__
4726 # include <limits.h>
4727 #else
4728 # include <assert.h>
4729 #endif
4730 Syntax error
4731 _ACEOF
4732 if { (ac_try="$ac_cpp conftest.$ac_ext"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } >/dev/null && {
4745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 }; then
4749 else
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4753 # Broken: fails on valid input.
4754 continue
4757 rm -f conftest.err conftest.$ac_ext
4759 # OK, works on sane cases. Now check whether nonexistent headers
4760 # can be detected and how.
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767 #include <ac_nonexistent.h>
4768 _ACEOF
4769 if { (ac_try="$ac_cpp conftest.$ac_ext"
4770 case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } >/dev/null && {
4782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4784 }; then
4785 # Broken: success on invalid input.
4786 continue
4787 else
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 # Passes both tests.
4792 ac_preproc_ok=:
4793 break
4796 rm -f conftest.err conftest.$ac_ext
4798 done
4799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4800 rm -f conftest.err conftest.$ac_ext
4801 if $ac_preproc_ok; then
4802 break
4805 done
4806 ac_cv_prog_CPP=$CPP
4809 CPP=$ac_cv_prog_CPP
4810 else
4811 ac_cv_prog_CPP=$CPP
4813 { echo "$as_me:$LINENO: result: $CPP" >&5
4814 echo "${ECHO_T}$CPP" >&6; }
4815 ac_preproc_ok=false
4816 for ac_c_preproc_warn_flag in '' yes
4818 # Use a header file that comes with gcc, so configuring glibc
4819 # with a fresh cross-compiler works.
4820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4821 # <limits.h> exists even on freestanding compilers.
4822 # On the NeXT, cc -E runs the code through the compiler's parser,
4823 # not just through cpp. "Syntax error" is here to catch this case.
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 #ifdef __STDC__
4831 # include <limits.h>
4832 #else
4833 # include <assert.h>
4834 #endif
4835 Syntax error
4836 _ACEOF
4837 if { (ac_try="$ac_cpp conftest.$ac_ext"
4838 case "(($ac_try" in
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null && {
4850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 }; then
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 # Broken: fails on valid input.
4859 continue
4862 rm -f conftest.err conftest.$ac_ext
4864 # OK, works on sane cases. Now check whether nonexistent headers
4865 # can be detected and how.
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 #include <ac_nonexistent.h>
4873 _ACEOF
4874 if { (ac_try="$ac_cpp conftest.$ac_ext"
4875 case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878 esac
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } >/dev/null && {
4887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 }; then
4890 # Broken: success on invalid input.
4891 continue
4892 else
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4896 # Passes both tests.
4897 ac_preproc_ok=:
4898 break
4901 rm -f conftest.err conftest.$ac_ext
4903 done
4904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4905 rm -f conftest.err conftest.$ac_ext
4906 if $ac_preproc_ok; then
4908 else
4909 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4910 See \`config.log' for more details." >&5
4911 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4912 See \`config.log' for more details." >&2;}
4913 { (exit 1); exit 1; }; }
4916 ac_ext=c
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922 # Find a good install program. We prefer a C program (faster),
4923 # so one script is as good as another. But avoid the broken or
4924 # incompatible versions:
4925 # SysV /etc/install, /usr/sbin/install
4926 # SunOS /usr/etc/install
4927 # IRIX /sbin/install
4928 # AIX /bin/install
4929 # AmigaOS /C/install, which installs bootblocks on floppy discs
4930 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4931 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4932 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4933 # OS/2's system install, which has a completely different semantic
4934 # ./install, which can be erroneously created by make from ./install.sh.
4935 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4936 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4937 if test -z "$INSTALL"; then
4938 if test "${ac_cv_path_install+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 # Account for people who put trailing slashes in PATH elements.
4947 case $as_dir/ in
4948 ./ | .// | /cC/* | \
4949 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4950 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4951 /usr/ucb/* ) ;;
4953 # OSF1 and SCO ODT 3.0 have their own names for install.
4954 # Don't use installbsd from OSF since it installs stuff as root
4955 # by default.
4956 for ac_prog in ginstall scoinst install; do
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4959 if test $ac_prog = install &&
4960 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4961 # AIX install. It has an incompatible calling convention.
4963 elif test $ac_prog = install &&
4964 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4965 # program-specific install script used by HP pwplus--don't use.
4967 else
4968 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4969 break 3
4972 done
4973 done
4975 esac
4976 done
4977 IFS=$as_save_IFS
4981 if test "${ac_cv_path_install+set}" = set; then
4982 INSTALL=$ac_cv_path_install
4983 else
4984 # As a last resort, use the slow shell script. Don't cache a
4985 # value for INSTALL within a source directory, because that will
4986 # break other packages using the cache if that directory is
4987 # removed, or if the value is a relative name.
4988 INSTALL=$ac_install_sh
4991 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4992 echo "${ECHO_T}$INSTALL" >&6; }
4994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4995 # It thinks the first close brace ends the variable substitution.
4996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5002 if test "x$RANLIB" = x; then
5003 if test -n "$ac_tool_prefix"; then
5004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5008 if test "${ac_cv_prog_RANLIB+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011 if test -n "$RANLIB"; then
5012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5027 IFS=$as_save_IFS
5031 RANLIB=$ac_cv_prog_RANLIB
5032 if test -n "$RANLIB"; then
5033 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5034 echo "${ECHO_T}$RANLIB" >&6; }
5035 else
5036 { echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6; }
5042 if test -z "$ac_cv_prog_RANLIB"; then
5043 ac_ct_RANLIB=$RANLIB
5044 # Extract the first word of "ranlib", so it can be a program name with args.
5045 set dummy ranlib; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 if test -n "$ac_ct_RANLIB"; then
5052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_ac_ct_RANLIB="ranlib"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5065 done
5066 done
5067 IFS=$as_save_IFS
5071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5072 if test -n "$ac_ct_RANLIB"; then
5073 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5074 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5075 else
5076 { echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6; }
5080 if test "x$ac_ct_RANLIB" = x; then
5081 RANLIB=":"
5082 else
5083 case $cross_compiling:$ac_tool_warned in
5084 yes:)
5085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5086 whose name does not start with the host triplet. If you think this
5087 configuration is useful to you, please write to autoconf@gnu.org." >&5
5088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5089 whose name does not start with the host triplet. If you think this
5090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5091 ac_tool_warned=yes ;;
5092 esac
5093 RANLIB=$ac_ct_RANLIB
5095 else
5096 RANLIB="$ac_cv_prog_RANLIB"
5100 # Extract the first word of "install-info", so it can be a program name with args.
5101 set dummy install-info; ac_word=$2
5102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107 case $INSTALL_INFO in
5108 [\\/]* | ?:[\\/]*)
5109 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5123 done
5124 done
5125 IFS=$as_save_IFS
5128 esac
5130 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5131 if test -n "$INSTALL_INFO"; then
5132 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5133 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5134 else
5135 { echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6; }
5140 # Extract the first word of "install-info", so it can be a program name with args.
5141 set dummy install-info; ac_word=$2
5142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5144 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 case $INSTALL_INFO in
5148 [\\/]* | ?:[\\/]*)
5149 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in /usr/sbin
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5165 IFS=$as_save_IFS
5168 esac
5170 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5171 if test -n "$INSTALL_INFO"; then
5172 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5173 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5174 else
5175 { echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6; }
5180 # Extract the first word of "install-info", so it can be a program name with args.
5181 set dummy install-info; ac_word=$2
5182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5184 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 case $INSTALL_INFO in
5188 [\\/]* | ?:[\\/]*)
5189 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in /sbin
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5203 done
5204 done
5205 IFS=$as_save_IFS
5207 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5209 esac
5211 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5212 if test -n "$INSTALL_INFO"; then
5213 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5214 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5215 else
5216 { echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6; }
5221 # Extract the first word of "gzip", so it can be a program name with args.
5222 set dummy gzip; ac_word=$2
5223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5225 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228 case $GZIP_PROG in
5229 [\\/]* | ?:[\\/]*)
5230 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5249 esac
5251 GZIP_PROG=$ac_cv_path_GZIP_PROG
5252 if test -n "$GZIP_PROG"; then
5253 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5254 echo "${ECHO_T}$GZIP_PROG" >&6; }
5255 else
5256 { echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6; }
5263 ## Need makeinfo >= 4.6 (?) to build the manuals.
5264 # Extract the first word of "makeinfo", so it can be a program name with args.
5265 set dummy makeinfo; ac_word=$2
5266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5268 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271 case $MAKEINFO in
5272 [\\/]* | ?:[\\/]*)
5273 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5289 IFS=$as_save_IFS
5291 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5293 esac
5295 MAKEINFO=$ac_cv_path_MAKEINFO
5296 if test -n "$MAKEINFO"; then
5297 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5298 echo "${ECHO_T}$MAKEINFO" >&6; }
5299 else
5300 { echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6; }
5305 if test "$MAKEINFO" != "no" && \
5306 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
5307 MAKEINFO=no
5310 ## Makeinfo is unusual. For a released Emacs, the manuals are
5311 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5312 ## therefore in the category of "special tools" not normally required, which
5313 ## configure does not have to check for (eg autoconf itself).
5314 ## In a CVS checkout on the other hand, the manuals are not included.
5315 ## So makeinfo is a requirement to build from CVS, and configure
5316 ## should test for it as it does for any other build requirement.
5317 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5318 ## with pre-built manuals, from a CVS checkout.
5319 if test "$MAKEINFO" = "no"; then
5320 if test "x${with_makeinfo}" = "xno"; then
5321 MAKEINFO=off
5322 elif ! test -e $srcdir/info/emacs; then
5323 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5324 source tree does not seem to have pre-built manuals in the \`info' directory.
5325 Either install a suitable version of makeinfo, or re-run configure
5326 with the \`--without-makeinfo' option to build without the manuals. " >&5
5327 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5328 source tree does not seem to have pre-built manuals in the \`info' directory.
5329 Either install a suitable version of makeinfo, or re-run configure
5330 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5331 { (exit 1); exit 1; }; }
5336 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5337 then
5338 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5341 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5342 then
5343 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5347 late_LDFLAGS=$LDFLAGS
5348 if test "$GCC" = yes; then
5349 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5350 else
5351 LDFLAGS="$LDFLAGS -znocombreloc"
5354 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5355 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5356 cat >conftest.$ac_ext <<_ACEOF
5357 main(){return 0;}
5358 _ACEOF
5359 rm -f conftest.$ac_objext conftest$ac_exeext
5360 if { (ac_try="$ac_link"
5361 case "(($ac_try" in
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5364 esac
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_link") 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && {
5373 test -z "$ac_c_werror_flag" ||
5374 test ! -s conftest.err
5375 } && test -s conftest$ac_exeext &&
5376 $as_test_x conftest$ac_exeext; then
5377 { echo "$as_me:$LINENO: result: yes" >&5
5378 echo "${ECHO_T}yes" >&6; }
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 LDFLAGS=$late_LDFLAGS
5384 { echo "$as_me:$LINENO: result: no" >&5
5385 echo "${ECHO_T}no" >&6; }
5388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5389 conftest$ac_exeext conftest.$ac_ext
5391 #### Extract some information from the operating system and machine files.
5393 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5394 - which libraries the lib-src programs will want, and
5395 - whether the GNU malloc routines are usable..." >&5
5396 echo "$as_me: checking the machine- and system-dependent files to find out
5397 - which libraries the lib-src programs will want, and
5398 - whether the GNU malloc routines are usable..." >&6;}
5400 ### First figure out CFLAGS (which we use for running the compiler here)
5401 ### and REAL_CFLAGS (which we use for real compilation).
5402 ### The two are the same except on a few systems, where they are made
5403 ### different to work around various lossages. For example,
5404 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5405 ### as implying static linking.
5407 ### If the CFLAGS env var is specified, we use that value
5408 ### instead of the default.
5410 ### It's not important that this name contain the PID; you can't run
5411 ### two configures in the same directory and have anything work
5412 ### anyway.
5413 tempcname="conftest.c"
5415 echo '
5416 #include "'${srcdir}'/src/'${opsysfile}'"
5417 #include "'${srcdir}'/src/'${machfile}'"
5418 #ifndef LIBS_MACHINE
5419 #define LIBS_MACHINE
5420 #endif
5421 #ifndef LIBS_SYSTEM
5422 #define LIBS_SYSTEM
5423 #endif
5424 #ifndef C_SWITCH_SYSTEM
5425 #define C_SWITCH_SYSTEM
5426 #endif
5427 #ifndef C_SWITCH_MACHINE
5428 #define C_SWITCH_MACHINE
5429 #endif
5430 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5431 configure___ c_switch_system=C_SWITCH_SYSTEM
5432 configure___ c_switch_machine=C_SWITCH_MACHINE
5434 #ifndef LIB_X11_LIB
5435 #define LIB_X11_LIB -lX11
5436 #endif
5438 #ifndef LIBX11_SYSTEM
5439 #define LIBX11_SYSTEM
5440 #endif
5441 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5443 #ifdef UNEXEC
5444 configure___ unexec=UNEXEC
5445 #else
5446 configure___ unexec=unexec.o
5447 #endif
5449 #ifdef SYSTEM_MALLOC
5450 configure___ system_malloc=yes
5451 #else
5452 configure___ system_malloc=no
5453 #endif
5455 #ifdef USE_MMAP_FOR_BUFFERS
5456 configure___ use_mmap_for_buffers=yes
5457 #else
5458 configure___ use_mmap_for_buffers=no
5459 #endif
5461 #ifndef C_DEBUG_SWITCH
5462 #define C_DEBUG_SWITCH -g
5463 #endif
5465 #ifndef C_OPTIMIZE_SWITCH
5466 #ifdef __GNUC__
5467 #define C_OPTIMIZE_SWITCH -O2
5468 #else
5469 #define C_OPTIMIZE_SWITCH -O
5470 #endif
5471 #endif
5473 #ifndef C_WARNINGS_SWITCH
5474 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5475 #endif
5477 #ifndef LD_SWITCH_MACHINE
5478 #define LD_SWITCH_MACHINE
5479 #endif
5481 #ifndef LD_SWITCH_SYSTEM
5482 #define LD_SWITCH_SYSTEM
5483 #endif
5485 #ifndef LD_SWITCH_X_SITE_AUX
5486 #define LD_SWITCH_X_SITE_AUX
5487 #endif
5489 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5490 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5492 #ifdef THIS_IS_CONFIGURE
5494 /* Get the CFLAGS for tests in configure. */
5495 #ifdef __GNUC__
5496 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5497 #else
5498 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5499 #endif
5501 #else /* not THIS_IS_CONFIGURE */
5503 /* Get the CFLAGS for real compilation. */
5504 #ifdef __GNUC__
5505 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5506 #else
5507 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5508 #endif
5510 #endif /* not THIS_IS_CONFIGURE */
5511 ' > ${tempcname}
5513 # The value of CPP is a quoted variable reference, so we need to do this
5514 # to get its actual value...
5515 CPP=`eval "echo $CPP"`
5516 eval `${CPP} -Isrc ${tempcname} \
5517 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5518 if test "x$SPECIFIED_CFLAGS" = x; then
5519 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5520 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5521 else
5522 REAL_CFLAGS="$CFLAGS"
5524 rm ${tempcname}
5526 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5528 ### Make sure subsequent tests use flags consistent with the build flags.
5530 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5531 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5532 else
5533 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5538 # Check whether --enable-largefile was given.
5539 if test "${enable_largefile+set}" = set; then
5540 enableval=$enable_largefile;
5543 if test "$enable_largefile" != no; then
5545 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5546 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5547 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 ac_cv_sys_largefile_CC=no
5551 if test "$GCC" != yes; then
5552 ac_save_CC=$CC
5553 while :; do
5554 # IRIX 6.2 and later do not support large files by default,
5555 # so use the C compiler's -n32 option if that helps.
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 #include <sys/types.h>
5563 /* Check that off_t can represent 2**63 - 1 correctly.
5564 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5565 since some C++ compilers masquerading as C compilers
5566 incorrectly reject 9223372036854775807. */
5567 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5568 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5569 && LARGE_OFF_T % 2147483647 == 1)
5570 ? 1 : -1];
5572 main ()
5576 return 0;
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5581 case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compile") 2>conftest.er1
5587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest.$ac_objext; then
5596 break
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5604 rm -f core conftest.err conftest.$ac_objext
5605 CC="$CC -n32"
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5608 case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611 esac
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && {
5620 test -z "$ac_c_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.$ac_objext; then
5623 ac_cv_sys_largefile_CC=' -n32'; break
5624 else
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5631 rm -f core conftest.err conftest.$ac_objext
5632 break
5633 done
5634 CC=$ac_save_CC
5635 rm -f conftest.$ac_ext
5638 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5639 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5640 if test "$ac_cv_sys_largefile_CC" != no; then
5641 CC=$CC$ac_cv_sys_largefile_CC
5644 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5645 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5646 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 while :; do
5650 cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h. */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 #include <sys/types.h>
5657 /* Check that off_t can represent 2**63 - 1 correctly.
5658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5659 since some C++ compilers masquerading as C compilers
5660 incorrectly reject 9223372036854775807. */
5661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5663 && LARGE_OFF_T % 2147483647 == 1)
5664 ? 1 : -1];
5666 main ()
5670 return 0;
5672 _ACEOF
5673 rm -f conftest.$ac_objext
5674 if { (ac_try="$ac_compile"
5675 case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678 esac
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_compile") 2>conftest.er1
5681 ac_status=$?
5682 grep -v '^ *+' conftest.er1 >conftest.err
5683 rm -f conftest.er1
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } && {
5687 test -z "$ac_c_werror_flag" ||
5688 test ! -s conftest.err
5689 } && test -s conftest.$ac_objext; then
5690 ac_cv_sys_file_offset_bits=no; break
5691 else
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h. */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #define _FILE_OFFSET_BITS 64
5706 #include <sys/types.h>
5707 /* Check that off_t can represent 2**63 - 1 correctly.
5708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5709 since some C++ compilers masquerading as C compilers
5710 incorrectly reject 9223372036854775807. */
5711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5713 && LARGE_OFF_T % 2147483647 == 1)
5714 ? 1 : -1];
5716 main ()
5720 return 0;
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (ac_try="$ac_compile"
5725 case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 ac_cv_sys_file_offset_bits=64; break
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 ac_cv_sys_file_offset_bits=unknown
5750 break
5751 done
5753 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5754 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5755 case $ac_cv_sys_file_offset_bits in #(
5756 no | unknown) ;;
5758 cat >>confdefs.h <<_ACEOF
5759 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5760 _ACEOF
5762 esac
5763 rm -f conftest*
5764 if test $ac_cv_sys_file_offset_bits = unknown; then
5765 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5766 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5767 if test "${ac_cv_sys_large_files+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770 while :; do
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 #include <sys/types.h>
5778 /* Check that off_t can represent 2**63 - 1 correctly.
5779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5780 since some C++ compilers masquerading as C compilers
5781 incorrectly reject 9223372036854775807. */
5782 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5784 && LARGE_OFF_T % 2147483647 == 1)
5785 ? 1 : -1];
5787 main ()
5791 return 0;
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5796 case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest.$ac_objext; then
5811 ac_cv_sys_large_files=no; break
5812 else
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #define _LARGE_FILES 1
5827 #include <sys/types.h>
5828 /* Check that off_t can represent 2**63 - 1 correctly.
5829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5830 since some C++ compilers masquerading as C compilers
5831 incorrectly reject 9223372036854775807. */
5832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5834 && LARGE_OFF_T % 2147483647 == 1)
5835 ? 1 : -1];
5837 main ()
5841 return 0;
5843 _ACEOF
5844 rm -f conftest.$ac_objext
5845 if { (ac_try="$ac_compile"
5846 case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849 esac
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_compile") 2>conftest.er1
5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } && {
5858 test -z "$ac_c_werror_flag" ||
5859 test ! -s conftest.err
5860 } && test -s conftest.$ac_objext; then
5861 ac_cv_sys_large_files=1; break
5862 else
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 ac_cv_sys_large_files=unknown
5871 break
5872 done
5874 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5875 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5876 case $ac_cv_sys_large_files in #(
5877 no | unknown) ;;
5879 cat >>confdefs.h <<_ACEOF
5880 #define _LARGE_FILES $ac_cv_sys_large_files
5881 _ACEOF
5883 esac
5884 rm -f conftest*
5890 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5891 ### be located in either /usr/lib64 or /usr/lib.
5892 case "${canonical}" in
5893 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5894 if test -d /usr/lib64; then
5896 cat >>confdefs.h <<\_ACEOF
5897 #define HAVE_LIB64_DIR 1
5898 _ACEOF
5901 esac
5906 if test "${with_sound}" != "no"; then
5907 # Sound support for GNU/Linux and the free BSDs.
5911 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 ac_res=`eval echo '${'$as_ac_Header'}'`
5921 { echo "$as_me:$LINENO: result: $ac_res" >&5
5922 echo "${ECHO_T}$ac_res" >&6; }
5923 else
5924 # Is the header compilable?
5925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 $ac_includes_default
5934 #include <$ac_header>
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (ac_try="$ac_compile"
5938 case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941 esac
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_compile") 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } && {
5950 test -z "$ac_c_werror_flag" ||
5951 test ! -s conftest.err
5952 } && test -s conftest.$ac_objext; then
5953 ac_header_compiler=yes
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5958 ac_header_compiler=no
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5963 echo "${ECHO_T}$ac_header_compiler" >&6; }
5965 # Is the header present?
5966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #include <$ac_header>
5975 _ACEOF
5976 if { (ac_try="$ac_cpp conftest.$ac_ext"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } >/dev/null && {
5989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 }; then
5992 ac_header_preproc=yes
5993 else
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_header_preproc=no
6000 rm -f conftest.err conftest.$ac_ext
6001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6002 echo "${ECHO_T}$ac_header_preproc" >&6; }
6004 # So? What about this header?
6005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6006 yes:no: )
6007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6011 ac_header_preproc=yes
6013 no:yes:* )
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6021 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6028 esac
6029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034 eval "$as_ac_Header=\$ac_header_preproc"
6036 ac_res=`eval echo '${'$as_ac_Header'}'`
6037 { echo "$as_me:$LINENO: result: $ac_res" >&5
6038 echo "${ECHO_T}$ac_res" >&6; }
6041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6042 cat >>confdefs.h <<_ACEOF
6043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6044 _ACEOF
6048 done
6050 # Emulation library used on NetBSD.
6051 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6052 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6053 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 ac_check_lib_save_LIBS=$LIBS
6057 LIBS="-lossaudio $LIBS"
6058 cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h. */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6065 /* Override any GCC internal prototype to avoid an error.
6066 Use char because int might match the return type of a GCC
6067 builtin and then its argument prototype would still apply. */
6068 #ifdef __cplusplus
6069 extern "C"
6070 #endif
6071 char _oss_ioctl ();
6073 main ()
6075 return _oss_ioctl ();
6077 return 0;
6079 _ACEOF
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (ac_try="$ac_link"
6082 case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_link") 2>conftest.er1
6088 ac_status=$?
6089 grep -v '^ *+' conftest.er1 >conftest.err
6090 rm -f conftest.er1
6091 cat conftest.err >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } && {
6094 test -z "$ac_c_werror_flag" ||
6095 test ! -s conftest.err
6096 } && test -s conftest$ac_exeext &&
6097 $as_test_x conftest$ac_exeext; then
6098 ac_cv_lib_ossaudio__oss_ioctl=yes
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 ac_cv_lib_ossaudio__oss_ioctl=no
6106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6107 conftest$ac_exeext conftest.$ac_ext
6108 LIBS=$ac_check_lib_save_LIBS
6110 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6111 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6112 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6113 LIBSOUND=-lossaudio
6114 else
6115 LIBSOUND=
6120 ALSA_REQUIRED=1.0.0
6121 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6123 succeeded=no
6125 # Extract the first word of "pkg-config", so it can be a program name with args.
6126 set dummy pkg-config; ac_word=$2
6127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6129 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 case $PKG_CONFIG in
6133 [\\/]* | ?:[\\/]*)
6134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6148 done
6149 done
6150 IFS=$as_save_IFS
6152 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6154 esac
6156 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6157 if test -n "$PKG_CONFIG"; then
6158 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6159 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6160 else
6161 { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6167 if test "$PKG_CONFIG" = "no" ; then
6168 HAVE_ALSA=no
6169 else
6170 PKG_CONFIG_MIN_VERSION=0.9.0
6171 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6172 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6173 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6175 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6176 { echo "$as_me:$LINENO: result: yes" >&5
6177 echo "${ECHO_T}yes" >&6; }
6178 succeeded=yes
6180 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6181 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6182 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6183 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6184 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6186 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6187 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6188 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6189 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6190 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6191 else
6192 { echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6; }
6194 ALSA_CFLAGS=""
6195 ALSA_LIBS=""
6196 ## If we have a custom action on failure, don't print errors, but
6197 ## do set a variable so people can do so.
6198 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6204 else
6205 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6206 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6210 if test $succeeded = yes; then
6211 HAVE_ALSA=yes
6212 else
6213 HAVE_ALSA=no
6216 if test $HAVE_ALSA = yes; then
6217 SAVE_CFLAGS="$CFLAGS"
6218 SAVE_LDFLAGS="$LDFLAGS"
6219 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6220 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <asoundlib.h>
6229 main ()
6231 snd_lib_error_set_handler (0);
6233 return 0;
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (ac_try="$ac_compile"
6238 case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_compile") 2>conftest.er1
6244 ac_status=$?
6245 grep -v '^ *+' conftest.er1 >conftest.err
6246 rm -f conftest.er1
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } && {
6250 test -z "$ac_c_werror_flag" ||
6251 test ! -s conftest.err
6252 } && test -s conftest.$ac_objext; then
6253 emacs_alsa_normal=yes
6254 else
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 emacs_alsa_normal=no
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 if test "$emacs_alsa_normal" != yes; then
6263 cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h. */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 #include <alsa/asoundlib.h>
6271 main ()
6273 snd_lib_error_set_handler (0);
6275 return 0;
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (ac_try="$ac_compile"
6280 case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6283 esac
6284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_compile") 2>conftest.er1
6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && {
6292 test -z "$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest.$ac_objext; then
6295 emacs_alsa_subdir=yes
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 emacs_alsa_subdir=no
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 if test "$emacs_alsa_subdir" != yes; then
6305 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6306 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6307 { (exit 1); exit 1; }; }
6309 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6312 CFLAGS="$SAVE_CFLAGS"
6313 LDFLAGS="$SAVE_LDFLAGS"
6314 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6315 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6317 cat >>confdefs.h <<\_ACEOF
6318 #define HAVE_ALSA 1
6319 _ACEOF
6350 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6351 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6352 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6353 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6354 sys/utsname.h pwd.h
6356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 ac_res=`eval echo '${'$as_ac_Header'}'`
6364 { echo "$as_me:$LINENO: result: $ac_res" >&5
6365 echo "${ECHO_T}$ac_res" >&6; }
6366 else
6367 # Is the header compilable?
6368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 $ac_includes_default
6377 #include <$ac_header>
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (ac_try="$ac_compile"
6381 case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384 esac
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 ac_header_compiler=yes
6397 else
6398 echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 ac_header_compiler=no
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6406 echo "${ECHO_T}$ac_header_compiler" >&6; }
6408 # Is the header present?
6409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 #include <$ac_header>
6418 _ACEOF
6419 if { (ac_try="$ac_cpp conftest.$ac_ext"
6420 case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } >/dev/null && {
6432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6433 test ! -s conftest.err
6434 }; then
6435 ac_header_preproc=yes
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 ac_header_preproc=no
6443 rm -f conftest.err conftest.$ac_ext
6444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6445 echo "${ECHO_T}$ac_header_preproc" >&6; }
6447 # So? What about this header?
6448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6449 yes:no: )
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6454 ac_header_preproc=yes
6456 no:yes:* )
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6471 esac
6472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477 eval "$as_ac_Header=\$ac_header_preproc"
6479 ac_res=`eval echo '${'$as_ac_Header'}'`
6480 { echo "$as_me:$LINENO: result: $ac_res" >&5
6481 echo "${ECHO_T}$ac_res" >&6; }
6484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6485 cat >>confdefs.h <<_ACEOF
6486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6487 _ACEOF
6491 done
6494 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6495 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 #include <sys/personality.h>
6504 main ()
6506 personality (PER_LINUX32)
6508 return 0;
6510 _ACEOF
6511 rm -f conftest.$ac_objext
6512 if { (ac_try="$ac_compile"
6513 case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516 esac
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_compile") 2>conftest.er1
6519 ac_status=$?
6520 grep -v '^ *+' conftest.er1 >conftest.err
6521 rm -f conftest.er1
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } && {
6525 test -z "$ac_c_werror_flag" ||
6526 test ! -s conftest.err
6527 } && test -s conftest.$ac_objext; then
6528 emacs_cv_personality_linux32=yes
6529 else
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6533 emacs_cv_personality_linux32=no
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6538 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6540 if test $emacs_cv_personality_linux32 = yes; then
6542 cat >>confdefs.h <<\_ACEOF
6543 #define HAVE_PERSONALITY_LINUX32 1
6544 _ACEOF
6549 for ac_header in term.h
6551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h. */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 #include <$ac_header>
6564 _ACEOF
6565 if { (ac_try="$ac_cpp conftest.$ac_ext"
6566 case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569 esac
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } >/dev/null && {
6578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6579 test ! -s conftest.err
6580 }; then
6581 eval "$as_ac_Header=yes"
6582 else
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6586 eval "$as_ac_Header=no"
6589 rm -f conftest.err conftest.$ac_ext
6591 ac_res=`eval echo '${'$as_ac_Header'}'`
6592 { echo "$as_me:$LINENO: result: $ac_res" >&5
6593 echo "${ECHO_T}$ac_res" >&6; }
6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h <<_ACEOF
6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 _ACEOF
6601 done
6603 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6604 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6605 if test "${ac_cv_header_stdc+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608 cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h. */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 #include <stdlib.h>
6615 #include <stdarg.h>
6616 #include <string.h>
6617 #include <float.h>
6620 main ()
6624 return 0;
6626 _ACEOF
6627 rm -f conftest.$ac_objext
6628 if { (ac_try="$ac_compile"
6629 case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6632 esac
6633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634 (eval "$ac_compile") 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest.$ac_objext; then
6644 ac_cv_header_stdc=yes
6645 else
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6649 ac_cv_header_stdc=no
6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 if test $ac_cv_header_stdc = yes; then
6655 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <string.h>
6664 _ACEOF
6665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6666 $EGREP "memchr" >/dev/null 2>&1; then
6668 else
6669 ac_cv_header_stdc=no
6671 rm -f conftest*
6675 if test $ac_cv_header_stdc = yes; then
6676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6677 cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h. */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683 #include <stdlib.h>
6685 _ACEOF
6686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6687 $EGREP "free" >/dev/null 2>&1; then
6689 else
6690 ac_cv_header_stdc=no
6692 rm -f conftest*
6696 if test $ac_cv_header_stdc = yes; then
6697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6698 if test "$cross_compiling" = yes; then
6700 else
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 #include <ctype.h>
6708 #include <stdlib.h>
6709 #if ((' ' & 0x0FF) == 0x020)
6710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6712 #else
6713 # define ISLOWER(c) \
6714 (('a' <= (c) && (c) <= 'i') \
6715 || ('j' <= (c) && (c) <= 'r') \
6716 || ('s' <= (c) && (c) <= 'z'))
6717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6718 #endif
6720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6722 main ()
6724 int i;
6725 for (i = 0; i < 256; i++)
6726 if (XOR (islower (i), ISLOWER (i))
6727 || toupper (i) != TOUPPER (i))
6728 return 2;
6729 return 0;
6731 _ACEOF
6732 rm -f conftest$ac_exeext
6733 if { (ac_try="$ac_link"
6734 case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737 esac
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_link") 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6743 { (case "(($ac_try" in
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6746 esac
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_try") 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6753 else
6754 echo "$as_me: program exited with status $ac_status" >&5
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ( exit $ac_status )
6759 ac_cv_header_stdc=no
6761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6767 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6768 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6769 if test $ac_cv_header_stdc = yes; then
6771 cat >>confdefs.h <<\_ACEOF
6772 #define STDC_HEADERS 1
6773 _ACEOF
6777 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6778 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6779 if test "${ac_cv_header_time+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h. */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 #include <sys/types.h>
6789 #include <sys/time.h>
6790 #include <time.h>
6793 main ()
6795 if ((struct tm *) 0)
6796 return 0;
6798 return 0;
6800 _ACEOF
6801 rm -f conftest.$ac_objext
6802 if { (ac_try="$ac_compile"
6803 case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806 esac
6807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6808 (eval "$ac_compile") 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } && {
6815 test -z "$ac_c_werror_flag" ||
6816 test ! -s conftest.err
6817 } && test -s conftest.$ac_objext; then
6818 ac_cv_header_time=yes
6819 else
6820 echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6823 ac_cv_header_time=no
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6829 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6830 if test $ac_cv_header_time = yes; then
6832 cat >>confdefs.h <<\_ACEOF
6833 #define TIME_WITH_SYS_TIME 1
6834 _ACEOF
6838 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6839 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6840 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843 cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h. */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6849 $ac_includes_default
6851 main ()
6853 #ifndef sys_siglist
6854 (void) sys_siglist;
6855 #endif
6858 return 0;
6860 _ACEOF
6861 rm -f conftest.$ac_objext
6862 if { (ac_try="$ac_compile"
6863 case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866 esac
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_compile") 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } && {
6875 test -z "$ac_c_werror_flag" ||
6876 test ! -s conftest.err
6877 } && test -s conftest.$ac_objext; then
6878 ac_cv_have_decl_sys_siglist=yes
6879 else
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6883 ac_cv_have_decl_sys_siglist=no
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6889 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6890 if test $ac_cv_have_decl_sys_siglist = yes; then
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_DECL_SYS_SIGLIST 1
6894 _ACEOF
6897 else
6898 cat >>confdefs.h <<_ACEOF
6899 #define HAVE_DECL_SYS_SIGLIST 0
6900 _ACEOF
6906 if test $ac_cv_have_decl_sys_siglist != yes; then
6907 # For Tru64, at least:
6908 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6909 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6910 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 $ac_includes_default
6921 main ()
6923 #ifndef __sys_siglist
6924 (void) __sys_siglist;
6925 #endif
6928 return 0;
6930 _ACEOF
6931 rm -f conftest.$ac_objext
6932 if { (ac_try="$ac_compile"
6933 case "(($ac_try" in
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6936 esac
6937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6938 (eval "$ac_compile") 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest.$ac_objext; then
6948 ac_cv_have_decl___sys_siglist=yes
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6953 ac_cv_have_decl___sys_siglist=no
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6959 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6960 if test $ac_cv_have_decl___sys_siglist = yes; then
6962 cat >>confdefs.h <<_ACEOF
6963 #define HAVE_DECL___SYS_SIGLIST 1
6964 _ACEOF
6967 else
6968 cat >>confdefs.h <<_ACEOF
6969 #define HAVE_DECL___SYS_SIGLIST 0
6970 _ACEOF
6976 if test $ac_cv_have_decl___sys_siglist = yes; then
6978 cat >>confdefs.h <<\_ACEOF
6979 #define sys_siglist __sys_siglist
6980 _ACEOF
6984 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6985 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6986 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 #include <sys/types.h>
6996 #include <sys/wait.h>
6997 #ifndef WEXITSTATUS
6998 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6999 #endif
7000 #ifndef WIFEXITED
7001 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7002 #endif
7005 main ()
7007 int s;
7008 wait (&s);
7009 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7011 return 0;
7013 _ACEOF
7014 rm -f conftest.$ac_objext
7015 if { (ac_try="$ac_compile"
7016 case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019 esac
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021 (eval "$ac_compile") 2>conftest.er1
7022 ac_status=$?
7023 grep -v '^ *+' conftest.er1 >conftest.err
7024 rm -f conftest.er1
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } && {
7028 test -z "$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 } && test -s conftest.$ac_objext; then
7031 ac_cv_header_sys_wait_h=yes
7032 else
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 ac_cv_header_sys_wait_h=no
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7042 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7043 if test $ac_cv_header_sys_wait_h = yes; then
7045 cat >>confdefs.h <<\_ACEOF
7046 #define HAVE_SYS_WAIT_H 1
7047 _ACEOF
7052 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7053 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7054 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 #ifdef TIME_WITH_SYS_TIME
7064 #include <sys/time.h>
7065 #include <time.h>
7066 #else
7067 #ifdef HAVE_SYS_TIME_H
7068 #include <sys/time.h>
7069 #else
7070 #include <time.h>
7071 #endif
7072 #endif
7073 #ifdef HAVE_UTIME_H
7074 #include <utime.h>
7075 #endif
7077 main ()
7079 static struct utimbuf x; x.actime = x.modtime;
7081 return 0;
7083 _ACEOF
7084 rm -f conftest.$ac_objext
7085 if { (ac_try="$ac_compile"
7086 case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7089 esac
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_compile") 2>conftest.er1
7092 ac_status=$?
7093 grep -v '^ *+' conftest.er1 >conftest.err
7094 rm -f conftest.er1
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } && {
7098 test -z "$ac_c_werror_flag" ||
7099 test ! -s conftest.err
7100 } && test -s conftest.$ac_objext; then
7101 emacs_cv_struct_utimbuf=yes
7102 else
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7106 emacs_cv_struct_utimbuf=no
7109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7112 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7113 if test $emacs_cv_struct_utimbuf = yes; then
7115 cat >>confdefs.h <<\_ACEOF
7116 #define HAVE_STRUCT_UTIMBUF 1
7117 _ACEOF
7121 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7122 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7123 if test "${ac_cv_type_signal+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126 cat >conftest.$ac_ext <<_ACEOF
7127 /* confdefs.h. */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 #include <sys/types.h>
7133 #include <signal.h>
7136 main ()
7138 return *(signal (0, 0)) (0) == 1;
7140 return 0;
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7145 case "(($ac_try" in
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7148 esac
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
7151 ac_status=$?
7152 grep -v '^ *+' conftest.er1 >conftest.err
7153 rm -f conftest.er1
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
7160 ac_cv_type_signal=int
7161 else
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_cv_type_signal=void
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7171 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7173 cat >>confdefs.h <<_ACEOF
7174 #define RETSIGTYPE $ac_cv_type_signal
7175 _ACEOF
7179 { echo "$as_me:$LINENO: checking for speed_t" >&5
7180 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7181 if test "${emacs_cv_speed_t+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 #include <termios.h>
7192 main ()
7194 speed_t x = 1;
7196 return 0;
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (ac_try="$ac_compile"
7201 case "(($ac_try" in
7202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7204 esac
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 (eval "$ac_compile") 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest.$ac_objext; then
7216 emacs_cv_speed_t=yes
7217 else
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 emacs_cv_speed_t=no
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7227 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7228 if test $emacs_cv_speed_t = yes; then
7230 cat >>confdefs.h <<\_ACEOF
7231 #define HAVE_SPEED_T 1
7232 _ACEOF
7236 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7237 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7238 if test "${emacs_cv_struct_timeval+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 #ifdef TIME_WITH_SYS_TIME
7248 #include <sys/time.h>
7249 #include <time.h>
7250 #else
7251 #ifdef HAVE_SYS_TIME_H
7252 #include <sys/time.h>
7253 #else
7254 #include <time.h>
7255 #endif
7256 #endif
7258 main ()
7260 static struct timeval x; x.tv_sec = x.tv_usec;
7262 return 0;
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7267 case "(($ac_try" in
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7270 esac
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7282 emacs_cv_struct_timeval=yes
7283 else
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 emacs_cv_struct_timeval=no
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7293 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7294 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7295 if test $emacs_cv_struct_timeval = yes; then
7297 cat >>confdefs.h <<\_ACEOF
7298 #define HAVE_TIMEVAL 1
7299 _ACEOF
7303 { echo "$as_me:$LINENO: checking for struct exception" >&5
7304 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7305 if test "${emacs_cv_struct_exception+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <math.h>
7316 main ()
7318 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7320 return 0;
7322 _ACEOF
7323 rm -f conftest.$ac_objext
7324 if { (ac_try="$ac_compile"
7325 case "(($ac_try" in
7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7328 esac
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330 (eval "$ac_compile") 2>conftest.er1
7331 ac_status=$?
7332 grep -v '^ *+' conftest.er1 >conftest.err
7333 rm -f conftest.er1
7334 cat conftest.err >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } && {
7337 test -z "$ac_c_werror_flag" ||
7338 test ! -s conftest.err
7339 } && test -s conftest.$ac_objext; then
7340 emacs_cv_struct_exception=yes
7341 else
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7345 emacs_cv_struct_exception=no
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7351 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7352 HAVE_EXCEPTION=$emacs_cv_struct_exception
7353 if test $emacs_cv_struct_exception != yes; then
7355 cat >>confdefs.h <<\_ACEOF
7356 #define NO_MATHERR 1
7357 _ACEOF
7362 for ac_header in sys/socket.h
7364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 ac_res=`eval echo '${'$as_ac_Header'}'`
7372 { echo "$as_me:$LINENO: result: $ac_res" >&5
7373 echo "${ECHO_T}$ac_res" >&6; }
7374 else
7375 # Is the header compilable?
7376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 $ac_includes_default
7385 #include <$ac_header>
7386 _ACEOF
7387 rm -f conftest.$ac_objext
7388 if { (ac_try="$ac_compile"
7389 case "(($ac_try" in
7390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7392 esac
7393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394 (eval "$ac_compile") 2>conftest.er1
7395 ac_status=$?
7396 grep -v '^ *+' conftest.er1 >conftest.err
7397 rm -f conftest.er1
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } && {
7401 test -z "$ac_c_werror_flag" ||
7402 test ! -s conftest.err
7403 } && test -s conftest.$ac_objext; then
7404 ac_header_compiler=yes
7405 else
7406 echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7409 ac_header_compiler=no
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7414 echo "${ECHO_T}$ac_header_compiler" >&6; }
7416 # Is the header present?
7417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h. */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 #include <$ac_header>
7426 _ACEOF
7427 if { (ac_try="$ac_cpp conftest.$ac_ext"
7428 case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7431 esac
7432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7434 ac_status=$?
7435 grep -v '^ *+' conftest.er1 >conftest.err
7436 rm -f conftest.er1
7437 cat conftest.err >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } >/dev/null && {
7440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 }; then
7443 ac_header_preproc=yes
7444 else
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7448 ac_header_preproc=no
7451 rm -f conftest.err conftest.$ac_ext
7452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7453 echo "${ECHO_T}$ac_header_preproc" >&6; }
7455 # So? What about this header?
7456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7457 yes:no: )
7458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7462 ac_header_preproc=yes
7464 no:yes:* )
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7479 esac
7480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 eval "$as_ac_Header=\$ac_header_preproc"
7487 ac_res=`eval echo '${'$as_ac_Header'}'`
7488 { echo "$as_me:$LINENO: result: $ac_res" >&5
7489 echo "${ECHO_T}$ac_res" >&6; }
7492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7493 cat >>confdefs.h <<_ACEOF
7494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7495 _ACEOF
7499 done
7502 for ac_header in net/if.h
7504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 cat >conftest.$ac_ext <<_ACEOF
7511 /* confdefs.h. */
7512 _ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 $ac_includes_default
7517 #if HAVE_SYS_SOCKET_H
7518 #include <sys/socket.h>
7519 #endif
7521 #include <$ac_header>
7522 _ACEOF
7523 rm -f conftest.$ac_objext
7524 if { (ac_try="$ac_compile"
7525 case "(($ac_try" in
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528 esac
7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_compile") 2>conftest.er1
7531 ac_status=$?
7532 grep -v '^ *+' conftest.er1 >conftest.err
7533 rm -f conftest.er1
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } && {
7537 test -z "$ac_c_werror_flag" ||
7538 test ! -s conftest.err
7539 } && test -s conftest.$ac_objext; then
7540 eval "$as_ac_Header=yes"
7541 else
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7545 eval "$as_ac_Header=no"
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 ac_res=`eval echo '${'$as_ac_Header'}'`
7551 { echo "$as_me:$LINENO: result: $ac_res" >&5
7552 echo "${ECHO_T}$ac_res" >&6; }
7553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7554 cat >>confdefs.h <<_ACEOF
7555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7556 _ACEOF
7560 done
7563 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7564 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7565 if test "${ac_cv_struct_tm+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h. */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 #include <sys/types.h>
7575 #include <time.h>
7578 main ()
7580 struct tm tm;
7581 int *p = &tm.tm_sec;
7582 return !p;
7584 return 0;
7586 _ACEOF
7587 rm -f conftest.$ac_objext
7588 if { (ac_try="$ac_compile"
7589 case "(($ac_try" in
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7592 esac
7593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594 (eval "$ac_compile") 2>conftest.er1
7595 ac_status=$?
7596 grep -v '^ *+' conftest.er1 >conftest.err
7597 rm -f conftest.er1
7598 cat conftest.err >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } && {
7601 test -z "$ac_c_werror_flag" ||
7602 test ! -s conftest.err
7603 } && test -s conftest.$ac_objext; then
7604 ac_cv_struct_tm=time.h
7605 else
7606 echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7609 ac_cv_struct_tm=sys/time.h
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7615 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7616 if test $ac_cv_struct_tm = sys/time.h; then
7618 cat >>confdefs.h <<\_ACEOF
7619 #define TM_IN_SYS_TIME 1
7620 _ACEOF
7624 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7625 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7626 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h. */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 #include <sys/types.h>
7636 #include <$ac_cv_struct_tm>
7640 main ()
7642 static struct tm ac_aggr;
7643 if (ac_aggr.tm_zone)
7644 return 0;
7646 return 0;
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (ac_try="$ac_compile"
7651 case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654 esac
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_compile") 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
7666 ac_cv_member_struct_tm_tm_zone=yes
7667 else
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 #include <sys/types.h>
7678 #include <$ac_cv_struct_tm>
7682 main ()
7684 static struct tm ac_aggr;
7685 if (sizeof ac_aggr.tm_zone)
7686 return 0;
7688 return 0;
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7693 case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_compile") 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
7708 ac_cv_member_struct_tm_tm_zone=yes
7709 else
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 ac_cv_member_struct_tm_tm_zone=no
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7722 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7723 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_STRUCT_TM_TM_ZONE 1
7727 _ACEOF
7732 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7734 cat >>confdefs.h <<\_ACEOF
7735 #define HAVE_TM_ZONE 1
7736 _ACEOF
7738 else
7739 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7740 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7741 if test "${ac_cv_have_decl_tzname+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744 cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h. */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 #include <time.h>
7753 main ()
7755 #ifndef tzname
7756 (void) tzname;
7757 #endif
7760 return 0;
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (ac_try="$ac_compile"
7765 case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768 esac
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
7780 ac_cv_have_decl_tzname=yes
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 ac_cv_have_decl_tzname=no
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7791 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7792 if test $ac_cv_have_decl_tzname = yes; then
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DECL_TZNAME 1
7796 _ACEOF
7799 else
7800 cat >>confdefs.h <<_ACEOF
7801 #define HAVE_DECL_TZNAME 0
7802 _ACEOF
7808 { echo "$as_me:$LINENO: checking for tzname" >&5
7809 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7810 if test "${ac_cv_var_tzname+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h. */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 #include <time.h>
7820 #if !HAVE_DECL_TZNAME
7821 extern char *tzname[];
7822 #endif
7825 main ()
7827 return tzname[0][0];
7829 return 0;
7831 _ACEOF
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (ac_try="$ac_link"
7834 case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837 esac
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_link") 2>conftest.er1
7840 ac_status=$?
7841 grep -v '^ *+' conftest.er1 >conftest.err
7842 rm -f conftest.er1
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } && {
7846 test -z "$ac_c_werror_flag" ||
7847 test ! -s conftest.err
7848 } && test -s conftest$ac_exeext &&
7849 $as_test_x conftest$ac_exeext; then
7850 ac_cv_var_tzname=yes
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7855 ac_cv_var_tzname=no
7858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7859 conftest$ac_exeext conftest.$ac_ext
7861 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7862 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7863 if test $ac_cv_var_tzname = yes; then
7865 cat >>confdefs.h <<\_ACEOF
7866 #define HAVE_TZNAME 1
7867 _ACEOF
7872 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7873 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7874 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877 cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h. */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h. */
7883 #include <time.h>
7886 main ()
7888 static struct tm ac_aggr;
7889 if (ac_aggr.tm_gmtoff)
7890 return 0;
7892 return 0;
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7897 case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900 esac
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_compile") 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } && {
7909 test -z "$ac_c_werror_flag" ||
7910 test ! -s conftest.err
7911 } && test -s conftest.$ac_objext; then
7912 ac_cv_member_struct_tm_tm_gmtoff=yes
7913 else
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 #include <time.h>
7926 main ()
7928 static struct tm ac_aggr;
7929 if (sizeof ac_aggr.tm_gmtoff)
7930 return 0;
7932 return 0;
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_compile") 2>conftest.er1
7943 ac_status=$?
7944 grep -v '^ *+' conftest.er1 >conftest.err
7945 rm -f conftest.er1
7946 cat conftest.err >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } && {
7949 test -z "$ac_c_werror_flag" ||
7950 test ! -s conftest.err
7951 } && test -s conftest.$ac_objext; then
7952 ac_cv_member_struct_tm_tm_gmtoff=yes
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7957 ac_cv_member_struct_tm_tm_gmtoff=no
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7966 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7967 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_TM_GMTOFF 1
7971 _ACEOF
7975 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7976 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7977 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 $ac_includes_default
7987 #if HAVE_SYS_SOCKET_H
7988 #include <sys/socket.h>
7989 #endif
7990 #if HAVE_NET_IF_H
7991 #include <net/if.h>
7992 #endif
7995 main ()
7997 static struct ifreq ac_aggr;
7998 if (ac_aggr.ifr_flags)
7999 return 0;
8001 return 0;
8003 _ACEOF
8004 rm -f conftest.$ac_objext
8005 if { (ac_try="$ac_compile"
8006 case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009 esac
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 ac_cv_member_struct_ifreq_ifr_flags=yes
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h. */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 $ac_includes_default
8033 #if HAVE_SYS_SOCKET_H
8034 #include <sys/socket.h>
8035 #endif
8036 #if HAVE_NET_IF_H
8037 #include <net/if.h>
8038 #endif
8041 main ()
8043 static struct ifreq ac_aggr;
8044 if (sizeof ac_aggr.ifr_flags)
8045 return 0;
8047 return 0;
8049 _ACEOF
8050 rm -f conftest.$ac_objext
8051 if { (ac_try="$ac_compile"
8052 case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8055 esac
8056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_compile") 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && {
8064 test -z "$ac_c_werror_flag" ||
8065 test ! -s conftest.err
8066 } && test -s conftest.$ac_objext; then
8067 ac_cv_member_struct_ifreq_ifr_flags=yes
8068 else
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8072 ac_cv_member_struct_ifreq_ifr_flags=no
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8081 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8082 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8084 cat >>confdefs.h <<_ACEOF
8085 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8086 _ACEOF
8090 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8091 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8092 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8102 #if HAVE_SYS_SOCKET_H
8103 #include <sys/socket.h>
8104 #endif
8105 #if HAVE_NET_IF_H
8106 #include <net/if.h>
8107 #endif
8110 main ()
8112 static struct ifreq ac_aggr;
8113 if (ac_aggr.ifr_hwaddr)
8114 return 0;
8116 return 0;
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (ac_try="$ac_compile"
8121 case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_compile") 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } && {
8133 test -z "$ac_c_werror_flag" ||
8134 test ! -s conftest.err
8135 } && test -s conftest.$ac_objext; then
8136 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8137 else
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8141 cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h. */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8148 #if HAVE_SYS_SOCKET_H
8149 #include <sys/socket.h>
8150 #endif
8151 #if HAVE_NET_IF_H
8152 #include <net/if.h>
8153 #endif
8156 main ()
8158 static struct ifreq ac_aggr;
8159 if (sizeof ac_aggr.ifr_hwaddr)
8160 return 0;
8162 return 0;
8164 _ACEOF
8165 rm -f conftest.$ac_objext
8166 if { (ac_try="$ac_compile"
8167 case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_compile") 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest.$ac_objext; then
8182 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8183 else
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8196 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8197 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8199 cat >>confdefs.h <<_ACEOF
8200 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8201 _ACEOF
8205 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8206 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8207 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 $ac_includes_default
8217 #if HAVE_SYS_SOCKET_H
8218 #include <sys/socket.h>
8219 #endif
8220 #if HAVE_NET_IF_H
8221 #include <net/if.h>
8222 #endif
8225 main ()
8227 static struct ifreq ac_aggr;
8228 if (ac_aggr.ifr_netmask)
8229 return 0;
8231 return 0;
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8236 case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239 esac
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_compile") 2>conftest.er1
8242 ac_status=$?
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } && {
8248 test -z "$ac_c_werror_flag" ||
8249 test ! -s conftest.err
8250 } && test -s conftest.$ac_objext; then
8251 ac_cv_member_struct_ifreq_ifr_netmask=yes
8252 else
8253 echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8263 #if HAVE_SYS_SOCKET_H
8264 #include <sys/socket.h>
8265 #endif
8266 #if HAVE_NET_IF_H
8267 #include <net/if.h>
8268 #endif
8271 main ()
8273 static struct ifreq ac_aggr;
8274 if (sizeof ac_aggr.ifr_netmask)
8275 return 0;
8277 return 0;
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8282 case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
8297 ac_cv_member_struct_ifreq_ifr_netmask=yes
8298 else
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 ac_cv_member_struct_ifreq_ifr_netmask=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8311 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8312 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8314 cat >>confdefs.h <<_ACEOF
8315 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8316 _ACEOF
8320 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8321 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8322 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331 $ac_includes_default
8332 #if HAVE_SYS_SOCKET_H
8333 #include <sys/socket.h>
8334 #endif
8335 #if HAVE_NET_IF_H
8336 #include <net/if.h>
8337 #endif
8340 main ()
8342 static struct ifreq ac_aggr;
8343 if (ac_aggr.ifr_broadaddr)
8344 return 0;
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest.$ac_objext; then
8366 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8367 else
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h. */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8377 $ac_includes_default
8378 #if HAVE_SYS_SOCKET_H
8379 #include <sys/socket.h>
8380 #endif
8381 #if HAVE_NET_IF_H
8382 #include <net/if.h>
8383 #endif
8386 main ()
8388 static struct ifreq ac_aggr;
8389 if (sizeof ac_aggr.ifr_broadaddr)
8390 return 0;
8392 return 0;
8394 _ACEOF
8395 rm -f conftest.$ac_objext
8396 if { (ac_try="$ac_compile"
8397 case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400 esac
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_compile") 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } && {
8409 test -z "$ac_c_werror_flag" ||
8410 test ! -s conftest.err
8411 } && test -s conftest.$ac_objext; then
8412 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8413 else
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8426 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8427 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8429 cat >>confdefs.h <<_ACEOF
8430 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8431 _ACEOF
8435 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8436 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8437 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 #if HAVE_SYS_SOCKET_H
8448 #include <sys/socket.h>
8449 #endif
8450 #if HAVE_NET_IF_H
8451 #include <net/if.h>
8452 #endif
8455 main ()
8457 static struct ifreq ac_aggr;
8458 if (ac_aggr.ifr_addr)
8459 return 0;
8461 return 0;
8463 _ACEOF
8464 rm -f conftest.$ac_objext
8465 if { (ac_try="$ac_compile"
8466 case "(($ac_try" in
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8469 esac
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471 (eval "$ac_compile") 2>conftest.er1
8472 ac_status=$?
8473 grep -v '^ *+' conftest.er1 >conftest.err
8474 rm -f conftest.er1
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } && {
8478 test -z "$ac_c_werror_flag" ||
8479 test ! -s conftest.err
8480 } && test -s conftest.$ac_objext; then
8481 ac_cv_member_struct_ifreq_ifr_addr=yes
8482 else
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h. */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 $ac_includes_default
8493 #if HAVE_SYS_SOCKET_H
8494 #include <sys/socket.h>
8495 #endif
8496 #if HAVE_NET_IF_H
8497 #include <net/if.h>
8498 #endif
8501 main ()
8503 static struct ifreq ac_aggr;
8504 if (sizeof ac_aggr.ifr_addr)
8505 return 0;
8507 return 0;
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8512 case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_compile") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest.$ac_objext; then
8527 ac_cv_member_struct_ifreq_ifr_addr=yes
8528 else
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 ac_cv_member_struct_ifreq_ifr_addr=no
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8541 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8542 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8544 cat >>confdefs.h <<_ACEOF
8545 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8546 _ACEOF
8553 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8554 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8555 if test "$ac_cv_prog_cc_c89" != no; then
8556 { echo "$as_me:$LINENO: result: yes" >&5
8557 echo "${ECHO_T}yes" >&6; }
8559 cat >>confdefs.h <<\_ACEOF
8560 #define PROTOTYPES 1
8561 _ACEOF
8564 cat >>confdefs.h <<\_ACEOF
8565 #define __PROTOTYPES 1
8566 _ACEOF
8568 else
8569 { echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6; }
8573 { echo "$as_me:$LINENO: checking for working volatile" >&5
8574 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8575 if test "${ac_cv_c_volatile+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h. */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8586 main ()
8589 volatile int x;
8590 int * volatile y = (int *) 0;
8591 return !x && !y;
8593 return 0;
8595 _ACEOF
8596 rm -f conftest.$ac_objext
8597 if { (ac_try="$ac_compile"
8598 case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601 esac
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_compile") 2>conftest.er1
8604 ac_status=$?
8605 grep -v '^ *+' conftest.er1 >conftest.err
8606 rm -f conftest.er1
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && {
8610 test -z "$ac_c_werror_flag" ||
8611 test ! -s conftest.err
8612 } && test -s conftest.$ac_objext; then
8613 ac_cv_c_volatile=yes
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_cv_c_volatile=no
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8624 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8625 if test $ac_cv_c_volatile = no; then
8627 cat >>confdefs.h <<\_ACEOF
8628 #define volatile
8629 _ACEOF
8633 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8634 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8635 if test "${ac_cv_c_const+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8646 main ()
8648 /* FIXME: Include the comments suggested by Paul. */
8649 #ifndef __cplusplus
8650 /* Ultrix mips cc rejects this. */
8651 typedef int charset[2];
8652 const charset cs;
8653 /* SunOS 4.1.1 cc rejects this. */
8654 char const *const *pcpcc;
8655 char **ppc;
8656 /* NEC SVR4.0.2 mips cc rejects this. */
8657 struct point {int x, y;};
8658 static struct point const zero = {0,0};
8659 /* AIX XL C 1.02.0.0 rejects this.
8660 It does not let you subtract one const X* pointer from another in
8661 an arm of an if-expression whose if-part is not a constant
8662 expression */
8663 const char *g = "string";
8664 pcpcc = &g + (g ? g-g : 0);
8665 /* HPUX 7.0 cc rejects these. */
8666 ++pcpcc;
8667 ppc = (char**) pcpcc;
8668 pcpcc = (char const *const *) ppc;
8669 { /* SCO 3.2v4 cc rejects this. */
8670 char *t;
8671 char const *s = 0 ? (char *) 0 : (char const *) 0;
8673 *t++ = 0;
8674 if (s) return 0;
8676 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8677 int x[] = {25, 17};
8678 const int *foo = &x[0];
8679 ++foo;
8681 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8682 typedef const int *iptr;
8683 iptr p = 0;
8684 ++p;
8686 { /* AIX XL C 1.02.0.0 rejects this saying
8687 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8688 struct s { int j; const int *ap[3]; };
8689 struct s *b; b->j = 5;
8691 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8692 const int foo = 10;
8693 if (!foo) return 0;
8695 return !cs[0] && !zero.x;
8696 #endif
8699 return 0;
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8704 case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_compile") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest.$ac_objext; then
8719 ac_cv_c_const=yes
8720 else
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 ac_cv_c_const=no
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8730 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8731 if test $ac_cv_c_const = no; then
8733 cat >>confdefs.h <<\_ACEOF
8734 #define const
8735 _ACEOF
8739 { echo "$as_me:$LINENO: checking for void * support" >&5
8740 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8741 if test "${emacs_cv_void_star+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8752 main ()
8754 void * foo;
8756 return 0;
8758 _ACEOF
8759 rm -f conftest.$ac_objext
8760 if { (ac_try="$ac_compile"
8761 case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_compile") 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest.$ac_objext; then
8776 emacs_cv_void_star=yes
8777 else
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8781 emacs_cv_void_star=no
8784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8787 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8788 if test $emacs_cv_void_star = yes; then
8789 cat >>confdefs.h <<\_ACEOF
8790 #define POINTER_TYPE void
8791 _ACEOF
8793 else
8794 cat >>confdefs.h <<\_ACEOF
8795 #define POINTER_TYPE char
8796 _ACEOF
8804 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8806 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8807 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 cat >conftest.make <<\_ACEOF
8811 SHELL = /bin/sh
8812 all:
8813 @echo '@@@%%%=$(MAKE)=@@@%%%'
8814 _ACEOF
8815 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8816 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8817 *@@@%%%=?*=@@@%%%*)
8818 eval ac_cv_prog_make_${ac_make}_set=yes;;
8820 eval ac_cv_prog_make_${ac_make}_set=no;;
8821 esac
8822 rm -f conftest.make
8824 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8825 { echo "$as_me:$LINENO: result: yes" >&5
8826 echo "${ECHO_T}yes" >&6; }
8827 SET_MAKE=
8828 else
8829 { echo "$as_me:$LINENO: result: no" >&5
8830 echo "${ECHO_T}no" >&6; }
8831 SET_MAKE="MAKE=${MAKE-make}"
8835 { echo "$as_me:$LINENO: checking for long file names" >&5
8836 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8837 if test "${ac_cv_sys_long_file_names+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840 ac_cv_sys_long_file_names=yes
8841 # Test for long file names in all the places we know might matter:
8842 # . the current directory, where building will happen
8843 # $prefix/lib where we will be installing things
8844 # $exec_prefix/lib likewise
8845 # $TMPDIR if set, where it might want to write temporary files
8846 # /tmp where it might want to write temporary files
8847 # /var/tmp likewise
8848 # /usr/tmp likewise
8849 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8850 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8851 # in the usual case where exec_prefix is '${prefix}'.
8852 case $ac_dir in #(
8853 . | /* | ?:[\\/]*) ;; #(
8854 *) continue;;
8855 esac
8856 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8857 ac_xdir=$ac_dir/cf$$
8858 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8859 ac_tf1=$ac_xdir/conftest9012345
8860 ac_tf2=$ac_xdir/conftest9012346
8861 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8862 ac_cv_sys_long_file_names=no
8863 rm -f -r "$ac_xdir" 2>/dev/null
8864 test $ac_cv_sys_long_file_names = no && break
8865 done
8867 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8868 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8869 if test $ac_cv_sys_long_file_names = yes; then
8871 cat >>confdefs.h <<\_ACEOF
8872 #define HAVE_LONG_FILE_NAMES 1
8873 _ACEOF
8878 #### Choose a window system.
8880 { echo "$as_me:$LINENO: checking for X" >&5
8881 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8884 # Check whether --with-x was given.
8885 if test "${with_x+set}" = set; then
8886 withval=$with_x;
8889 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8890 if test "x$with_x" = xno; then
8891 # The user explicitly disabled X.
8892 have_x=disabled
8893 else
8894 case $x_includes,$x_libraries in #(
8895 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8896 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8897 { (exit 1); exit 1; }; };; #(
8898 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901 # One or both of the vars are not set, and there is no cached value.
8902 ac_x_includes=no ac_x_libraries=no
8903 rm -f -r conftest.dir
8904 if mkdir conftest.dir; then
8905 cd conftest.dir
8906 cat >Imakefile <<'_ACEOF'
8907 incroot:
8908 @echo incroot='${INCROOT}'
8909 usrlibdir:
8910 @echo usrlibdir='${USRLIBDIR}'
8911 libdir:
8912 @echo libdir='${LIBDIR}'
8913 _ACEOF
8914 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8916 for ac_var in incroot usrlibdir libdir; do
8917 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8918 done
8919 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8920 for ac_extension in a so sl; do
8921 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8922 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8923 ac_im_usrlibdir=$ac_im_libdir; break
8925 done
8926 # Screen out bogus values from the imake configuration. They are
8927 # bogus both because they are the default anyway, and because
8928 # using them would break gcc on systems where it needs fixed includes.
8929 case $ac_im_incroot in
8930 /usr/include) ac_x_includes= ;;
8931 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8932 esac
8933 case $ac_im_usrlibdir in
8934 /usr/lib | /lib) ;;
8935 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8936 esac
8938 cd ..
8939 rm -f -r conftest.dir
8942 # Standard set of common directories for X headers.
8943 # Check X11 before X11Rn because it is often a symlink to the current release.
8944 ac_x_header_dirs='
8945 /usr/X11/include
8946 /usr/X11R6/include
8947 /usr/X11R5/include
8948 /usr/X11R4/include
8950 /usr/include/X11
8951 /usr/include/X11R6
8952 /usr/include/X11R5
8953 /usr/include/X11R4
8955 /usr/local/X11/include
8956 /usr/local/X11R6/include
8957 /usr/local/X11R5/include
8958 /usr/local/X11R4/include
8960 /usr/local/include/X11
8961 /usr/local/include/X11R6
8962 /usr/local/include/X11R5
8963 /usr/local/include/X11R4
8965 /usr/X386/include
8966 /usr/x386/include
8967 /usr/XFree86/include/X11
8969 /usr/include
8970 /usr/local/include
8971 /usr/unsupported/include
8972 /usr/athena/include
8973 /usr/local/x11r5/include
8974 /usr/lpp/Xamples/include
8976 /usr/openwin/include
8977 /usr/openwin/share/include'
8979 if test "$ac_x_includes" = no; then
8980 # Guess where to find include files, by looking for Xlib.h.
8981 # First, try using that file with no special directory specified.
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h. */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 #include <X11/Xlib.h>
8989 _ACEOF
8990 if { (ac_try="$ac_cpp conftest.$ac_ext"
8991 case "(($ac_try" in
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8994 esac
8995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8997 ac_status=$?
8998 grep -v '^ *+' conftest.er1 >conftest.err
8999 rm -f conftest.er1
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } >/dev/null && {
9003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9004 test ! -s conftest.err
9005 }; then
9006 # We can compile using X headers with no special include directory.
9007 ac_x_includes=
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 for ac_dir in $ac_x_header_dirs; do
9013 if test -r "$ac_dir/X11/Xlib.h"; then
9014 ac_x_includes=$ac_dir
9015 break
9017 done
9020 rm -f conftest.err conftest.$ac_ext
9021 fi # $ac_x_includes = no
9023 if test "$ac_x_libraries" = no; then
9024 # Check for the libraries.
9025 # See if we find them without any special options.
9026 # Don't add to $LIBS permanently.
9027 ac_save_LIBS=$LIBS
9028 LIBS="-lX11 $LIBS"
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 #include <X11/Xlib.h>
9037 main ()
9039 XrmInitialize ()
9041 return 0;
9043 _ACEOF
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (ac_try="$ac_link"
9046 case "(($ac_try" in
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9049 esac
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_link") 2>conftest.er1
9052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && {
9058 test -z "$ac_c_werror_flag" ||
9059 test ! -s conftest.err
9060 } && test -s conftest$ac_exeext &&
9061 $as_test_x conftest$ac_exeext; then
9062 LIBS=$ac_save_LIBS
9063 # We can link X programs with no special library path.
9064 ac_x_libraries=
9065 else
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9069 LIBS=$ac_save_LIBS
9070 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9072 # Don't even attempt the hair of trying to link an X program!
9073 for ac_extension in a so sl; do
9074 if test -r "$ac_dir/libX11.$ac_extension"; then
9075 ac_x_libraries=$ac_dir
9076 break 2
9078 done
9079 done
9082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9083 conftest$ac_exeext conftest.$ac_ext
9084 fi # $ac_x_libraries = no
9086 case $ac_x_includes,$ac_x_libraries in #(
9087 no,* | *,no | *\'*)
9088 # Didn't find X, or a directory has "'" in its name.
9089 ac_cv_have_x="have_x=no";; #(
9091 # Record where we found X for the cache.
9092 ac_cv_have_x="have_x=yes\
9093 ac_x_includes='$ac_x_includes'\
9094 ac_x_libraries='$ac_x_libraries'"
9095 esac
9097 ;; #(
9098 *) have_x=yes;;
9099 esac
9100 eval "$ac_cv_have_x"
9101 fi # $with_x != no
9103 if test "$have_x" != yes; then
9104 { echo "$as_me:$LINENO: result: $have_x" >&5
9105 echo "${ECHO_T}$have_x" >&6; }
9106 no_x=yes
9107 else
9108 # If each of the values was on the command line, it overrides each guess.
9109 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9110 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9111 # Update the cache value to reflect the command line values.
9112 ac_cv_have_x="have_x=yes\
9113 ac_x_includes='$x_includes'\
9114 ac_x_libraries='$x_libraries'"
9115 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9116 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9119 if test "$no_x" = yes; then
9120 window_system=none
9121 else
9122 window_system=x11
9125 ## Workaround for bug in autoconf <= 2.62.
9126 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9127 ## No need to do anything special for these standard directories.
9128 ## This is an experiment, take it out if it causes problems.
9129 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9131 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9135 if test "${x_libraries}" != NONE; then
9136 if test -n "${x_libraries}"; then
9137 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9138 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9140 x_default_search_path=""
9141 x_search_path=${x_libraries}
9142 if test -z "${x_search_path}"; then
9143 x_search_path=/usr/lib
9145 for x_library in `echo ${x_search_path}: | \
9146 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9147 x_search_path="\
9148 ${x_library}/X11/%L/%T/%N%C%S:\
9149 ${x_library}/X11/%l/%T/%N%C%S:\
9150 ${x_library}/X11/%T/%N%C%S:\
9151 ${x_library}/X11/%L/%T/%N%S:\
9152 ${x_library}/X11/%l/%T/%N%S:\
9153 ${x_library}/X11/%T/%N%S"
9154 if test x"${x_default_search_path}" = x; then
9155 x_default_search_path=${x_search_path}
9156 else
9157 x_default_search_path="${x_search_path}:${x_default_search_path}"
9159 done
9161 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9162 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9165 if test x"${x_includes}" = x; then
9166 bitmapdir=/usr/include/X11/bitmaps
9167 else
9168 # accumulate include directories that have X11 bitmap subdirectories
9169 bmd_acc="dummyval"
9170 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9171 if test -d "${bmd}/X11/bitmaps"; then
9172 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9174 if test -d "${bmd}/bitmaps"; then
9175 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9177 done
9178 if test ${bmd_acc} != "dummyval"; then
9179 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9183 HAVE_NS=no
9184 NS_IMPL_COCOA=no
9185 NS_IMPL_GNUSTEP=no
9186 tmp_CPPFLAGS="$CPPFLAGS"
9187 tmp_CFLAGS="$CFLAGS"
9188 CPPFLAGS="$CPPFLAGS -x objective-c"
9189 CFLAGS="$CFLAGS -x objective-c"
9190 if test "${with_ns}" != no; then
9191 if test "${opsys}" = darwin; then
9192 NS_IMPL_COCOA=yes
9193 ns_appdir=`pwd`/nextstep/Emacs.app
9194 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9195 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9196 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9197 elif test -f /etc/GNUstep/GNUstep.conf; then
9198 NS_IMPL_GNUSTEP=yes
9199 ns_appdir=`pwd`/nextstep/Emacs.app
9200 ns_appbindir=`pwd`/nextstep/Emacs.app
9201 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9202 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9203 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9204 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9205 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9206 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9207 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9208 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9209 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9211 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9212 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9213 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9214 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9218 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9219 else
9220 # Is the header compilable?
9221 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9222 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h. */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_includes_default
9230 #include <AppKit/AppKit.h>
9231 _ACEOF
9232 rm -f conftest.$ac_objext
9233 if { (ac_try="$ac_compile"
9234 case "(($ac_try" in
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9237 esac
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_compile") 2>conftest.er1
9240 ac_status=$?
9241 grep -v '^ *+' conftest.er1 >conftest.err
9242 rm -f conftest.er1
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } && {
9246 test -z "$ac_c_werror_flag" ||
9247 test ! -s conftest.err
9248 } && test -s conftest.$ac_objext; then
9249 ac_header_compiler=yes
9250 else
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_header_compiler=no
9257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9259 echo "${ECHO_T}$ac_header_compiler" >&6; }
9261 # Is the header present?
9262 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9263 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 #include <AppKit/AppKit.h>
9271 _ACEOF
9272 if { (ac_try="$ac_cpp conftest.$ac_ext"
9273 case "(($ac_try" in
9274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275 *) ac_try_echo=$ac_try;;
9276 esac
9277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9279 ac_status=$?
9280 grep -v '^ *+' conftest.er1 >conftest.err
9281 rm -f conftest.er1
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } >/dev/null && {
9285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9286 test ! -s conftest.err
9287 }; then
9288 ac_header_preproc=yes
9289 else
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9293 ac_header_preproc=no
9296 rm -f conftest.err conftest.$ac_ext
9297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9298 echo "${ECHO_T}$ac_header_preproc" >&6; }
9300 # So? What about this header?
9301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9302 yes:no: )
9303 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9304 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9306 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9307 ac_header_preproc=yes
9309 no:yes:* )
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9313 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9317 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9319 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9321 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9324 esac
9325 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9326 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9327 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9332 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9333 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9336 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9337 HAVE_NS=yes
9341 NS_HAVE_NSINTEGER=yes
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 #include <Foundation/NSObjCRuntime.h>
9350 main ()
9352 NSInteger i;
9354 return 0;
9356 _ACEOF
9357 rm -f conftest.$ac_objext
9358 if { (ac_try="$ac_compile"
9359 case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_compile") 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && {
9371 test -z "$ac_c_werror_flag" ||
9372 test ! -s conftest.err
9373 } && test -s conftest.$ac_objext; then
9374 ns_have_nsinteger=yes
9375 else
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9379 ns_have_nsinteger=no
9382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383 if test $ns_have_nsinteger = no; then
9384 NS_HAVE_NSINTEGER=no
9387 if test "${HAVE_NS}" = yes; then
9388 window_system=nextstep
9389 with_xft=no
9390 with_freetype=no
9391 # set up packaging dirs
9392 exec_prefix=${ns_appbindir}
9393 libexecdir=${ns_appbindir}/libexec
9394 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9395 prefix=${ns_appresdir}
9398 CFLAGS="$tmp_CFLAGS"
9399 CPPFLAGS="$tmp_CPPFLAGS"
9401 case "${window_system}" in
9402 x11 )
9403 HAVE_X_WINDOWS=yes
9404 HAVE_X11=yes
9405 case "${with_x_toolkit}" in
9406 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9407 motif ) USE_X_TOOLKIT=MOTIF ;;
9408 gtk ) with_gtk=yes
9409 USE_X_TOOLKIT=none ;;
9410 no ) USE_X_TOOLKIT=none ;;
9411 * ) USE_X_TOOLKIT=maybe ;;
9412 esac
9414 nextstep | none )
9415 HAVE_X_WINDOWS=no
9416 HAVE_X11=no
9417 USE_X_TOOLKIT=none
9419 esac
9421 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9422 # Extract the first word of "X", so it can be a program name with args.
9423 set dummy X; ac_word=$2
9424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9426 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429 if test -n "$HAVE_XSERVER"; then
9430 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9431 else
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439 ac_cv_prog_HAVE_XSERVER="true"
9440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9443 done
9444 done
9445 IFS=$as_save_IFS
9447 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9450 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9451 if test -n "$HAVE_XSERVER"; then
9452 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9453 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9454 else
9455 { echo "$as_me:$LINENO: result: no" >&5
9456 echo "${ECHO_T}no" >&6; }
9460 if test "$HAVE_XSERVER" = true ||
9461 test -n "$DISPLAY" ||
9462 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9463 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9464 were found. You should install the relevant development files for X
9465 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9466 sure you have development files for image handling, i.e.
9467 tiff, gif, jpeg, png and xpm.
9468 If you are sure you want Emacs compiled without X window support, pass
9469 --without-x
9470 to configure." >&5
9471 echo "$as_me: error: You seem to be running X, but no X development libraries
9472 were found. You should install the relevant development files for X
9473 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9474 sure you have development files for image handling, i.e.
9475 tiff, gif, jpeg, png and xpm.
9476 If you are sure you want Emacs compiled without X window support, pass
9477 --without-x
9478 to configure." >&2;}
9479 { (exit 1); exit 1; }; }
9483 ### If we're using X11, we should use the X menu package.
9484 HAVE_MENUS=no
9485 case ${HAVE_X11} in
9486 yes ) HAVE_MENUS=yes ;;
9487 esac
9489 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9490 # Assume not, until told otherwise.
9491 GNU_MALLOC=yes
9492 doug_lea_malloc=yes
9493 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9494 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9495 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9506 #define malloc_get_state innocuous_malloc_get_state
9508 /* System header to define __stub macros and hopefully few prototypes,
9509 which can conflict with char malloc_get_state (); below.
9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511 <limits.h> exists even on freestanding compilers. */
9513 #ifdef __STDC__
9514 # include <limits.h>
9515 #else
9516 # include <assert.h>
9517 #endif
9519 #undef malloc_get_state
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 char malloc_get_state ();
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9532 choke me
9533 #endif
9536 main ()
9538 return malloc_get_state ();
9540 return 0;
9542 _ACEOF
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9545 case "(($ac_try" in
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9548 esac
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && {
9557 test -z "$ac_c_werror_flag" ||
9558 test ! -s conftest.err
9559 } && test -s conftest$ac_exeext &&
9560 $as_test_x conftest$ac_exeext; then
9561 ac_cv_func_malloc_get_state=yes
9562 else
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9566 ac_cv_func_malloc_get_state=no
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9572 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9573 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9574 if test $ac_cv_func_malloc_get_state = yes; then
9576 else
9577 doug_lea_malloc=no
9580 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9581 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9582 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585 cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h. */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9593 #define malloc_set_state innocuous_malloc_set_state
9595 /* System header to define __stub macros and hopefully few prototypes,
9596 which can conflict with char malloc_set_state (); below.
9597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9598 <limits.h> exists even on freestanding compilers. */
9600 #ifdef __STDC__
9601 # include <limits.h>
9602 #else
9603 # include <assert.h>
9604 #endif
9606 #undef malloc_set_state
9608 /* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
9611 #ifdef __cplusplus
9612 extern "C"
9613 #endif
9614 char malloc_set_state ();
9615 /* The GNU C library defines this for functions which it implements
9616 to always fail with ENOSYS. Some functions are actually named
9617 something starting with __ and the normal name is an alias. */
9618 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9619 choke me
9620 #endif
9623 main ()
9625 return malloc_set_state ();
9627 return 0;
9629 _ACEOF
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (ac_try="$ac_link"
9632 case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9635 esac
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_link") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest$ac_exeext &&
9647 $as_test_x conftest$ac_exeext; then
9648 ac_cv_func_malloc_set_state=yes
9649 else
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 ac_cv_func_malloc_set_state=no
9656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9657 conftest$ac_exeext conftest.$ac_ext
9659 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9660 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9661 if test $ac_cv_func_malloc_set_state = yes; then
9663 else
9664 doug_lea_malloc=no
9667 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9668 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9669 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672 cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h. */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9678 extern void (* __after_morecore_hook)();
9680 main ()
9682 __after_morecore_hook = 0
9684 return 0;
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9689 case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest$ac_exeext &&
9704 $as_test_x conftest$ac_exeext; then
9705 emacs_cv_var___after_morecore_hook=yes
9706 else
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 emacs_cv_var___after_morecore_hook=no
9713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714 conftest$ac_exeext conftest.$ac_ext
9716 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9717 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9718 if test $emacs_cv_var___after_morecore_hook = no; then
9719 doug_lea_malloc=no
9721 if test "${system_malloc}" = "yes"; then
9722 GNU_MALLOC=no
9723 GNU_MALLOC_reason="
9724 (The GNU allocators don't work with this system configuration.)"
9726 if test "$doug_lea_malloc" = "yes" ; then
9727 if test "$GNU_MALLOC" = yes ; then
9728 GNU_MALLOC_reason="
9729 (Using Doug Lea's new malloc from the GNU C Library.)"
9732 cat >>confdefs.h <<\_ACEOF
9733 #define DOUG_LEA_MALLOC 1
9734 _ACEOF
9738 if test x"${REL_ALLOC}" = x; then
9739 REL_ALLOC=${GNU_MALLOC}
9745 for ac_header in stdlib.h unistd.h
9747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 ac_res=`eval echo '${'$as_ac_Header'}'`
9755 { echo "$as_me:$LINENO: result: $ac_res" >&5
9756 echo "${ECHO_T}$ac_res" >&6; }
9757 else
9758 # Is the header compilable?
9759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 $ac_includes_default
9768 #include <$ac_header>
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (ac_try="$ac_compile"
9772 case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_compile") 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest.$ac_objext; then
9787 ac_header_compiler=yes
9788 else
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 ac_header_compiler=no
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9797 echo "${ECHO_T}$ac_header_compiler" >&6; }
9799 # Is the header present?
9800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 #include <$ac_header>
9809 _ACEOF
9810 if { (ac_try="$ac_cpp conftest.$ac_ext"
9811 case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } >/dev/null && {
9823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 }; then
9826 ac_header_preproc=yes
9827 else
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9831 ac_header_preproc=no
9834 rm -f conftest.err conftest.$ac_ext
9835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9836 echo "${ECHO_T}$ac_header_preproc" >&6; }
9838 # So? What about this header?
9839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9840 yes:no: )
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9845 ac_header_preproc=yes
9847 no:yes:* )
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9862 esac
9863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868 eval "$as_ac_Header=\$ac_header_preproc"
9870 ac_res=`eval echo '${'$as_ac_Header'}'`
9871 { echo "$as_me:$LINENO: result: $ac_res" >&5
9872 echo "${ECHO_T}$ac_res" >&6; }
9875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9876 cat >>confdefs.h <<_ACEOF
9877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9878 _ACEOF
9882 done
9885 for ac_func in getpagesize
9887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9901 #define $ac_func innocuous_$ac_func
9903 /* System header to define __stub macros and hopefully few prototypes,
9904 which can conflict with char $ac_func (); below.
9905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9906 <limits.h> exists even on freestanding compilers. */
9908 #ifdef __STDC__
9909 # include <limits.h>
9910 #else
9911 # include <assert.h>
9912 #endif
9914 #undef $ac_func
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 char $ac_func ();
9923 /* The GNU C library defines this for functions which it implements
9924 to always fail with ENOSYS. Some functions are actually named
9925 something starting with __ and the normal name is an alias. */
9926 #if defined __stub_$ac_func || defined __stub___$ac_func
9927 choke me
9928 #endif
9931 main ()
9933 return $ac_func ();
9935 return 0;
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9940 case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest$ac_exeext &&
9955 $as_test_x conftest$ac_exeext; then
9956 eval "$as_ac_var=yes"
9957 else
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9961 eval "$as_ac_var=no"
9964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 conftest$ac_exeext conftest.$ac_ext
9967 ac_res=`eval echo '${'$as_ac_var'}'`
9968 { echo "$as_me:$LINENO: result: $ac_res" >&5
9969 echo "${ECHO_T}$ac_res" >&6; }
9970 if test `eval echo '${'$as_ac_var'}'` = yes; then
9971 cat >>confdefs.h <<_ACEOF
9972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9973 _ACEOF
9976 done
9978 { echo "$as_me:$LINENO: checking for working mmap" >&5
9979 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9980 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983 if test "$cross_compiling" = yes; then
9984 ac_cv_func_mmap_fixed_mapped=no
9985 else
9986 cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h. */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
9993 /* malloc might have been renamed as rpl_malloc. */
9994 #undef malloc
9996 /* Thanks to Mike Haertel and Jim Avera for this test.
9997 Here is a matrix of mmap possibilities:
9998 mmap private not fixed
9999 mmap private fixed at somewhere currently unmapped
10000 mmap private fixed at somewhere already mapped
10001 mmap shared not fixed
10002 mmap shared fixed at somewhere currently unmapped
10003 mmap shared fixed at somewhere already mapped
10004 For private mappings, we should verify that changes cannot be read()
10005 back from the file, nor mmap's back from the file at a different
10006 address. (There have been systems where private was not correctly
10007 implemented like the infamous i386 svr4.0, and systems where the
10008 VM page cache was not coherent with the file system buffer cache
10009 like early versions of FreeBSD and possibly contemporary NetBSD.)
10010 For shared mappings, we should conversely verify that changes get
10011 propagated back to all the places they're supposed to be.
10013 Grep wants private fixed already mapped.
10014 The main things grep needs to know about mmap are:
10015 * does it exist and is it safe to write into the mmap'd area
10016 * how to use it (BSD variants) */
10018 #include <fcntl.h>
10019 #include <sys/mman.h>
10021 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10022 char *malloc ();
10023 #endif
10025 /* This mess was copied from the GNU getpagesize.h. */
10026 #ifndef HAVE_GETPAGESIZE
10027 /* Assume that all systems that can run configure have sys/param.h. */
10028 # ifndef HAVE_SYS_PARAM_H
10029 # define HAVE_SYS_PARAM_H 1
10030 # endif
10032 # ifdef _SC_PAGESIZE
10033 # define getpagesize() sysconf(_SC_PAGESIZE)
10034 # else /* no _SC_PAGESIZE */
10035 # ifdef HAVE_SYS_PARAM_H
10036 # include <sys/param.h>
10037 # ifdef EXEC_PAGESIZE
10038 # define getpagesize() EXEC_PAGESIZE
10039 # else /* no EXEC_PAGESIZE */
10040 # ifdef NBPG
10041 # define getpagesize() NBPG * CLSIZE
10042 # ifndef CLSIZE
10043 # define CLSIZE 1
10044 # endif /* no CLSIZE */
10045 # else /* no NBPG */
10046 # ifdef NBPC
10047 # define getpagesize() NBPC
10048 # else /* no NBPC */
10049 # ifdef PAGESIZE
10050 # define getpagesize() PAGESIZE
10051 # endif /* PAGESIZE */
10052 # endif /* no NBPC */
10053 # endif /* no NBPG */
10054 # endif /* no EXEC_PAGESIZE */
10055 # else /* no HAVE_SYS_PARAM_H */
10056 # define getpagesize() 8192 /* punt totally */
10057 # endif /* no HAVE_SYS_PARAM_H */
10058 # endif /* no _SC_PAGESIZE */
10060 #endif /* no HAVE_GETPAGESIZE */
10063 main ()
10065 char *data, *data2, *data3;
10066 int i, pagesize;
10067 int fd;
10069 pagesize = getpagesize ();
10071 /* First, make a file with some known garbage in it. */
10072 data = (char *) malloc (pagesize);
10073 if (!data)
10074 return 1;
10075 for (i = 0; i < pagesize; ++i)
10076 *(data + i) = rand ();
10077 umask (0);
10078 fd = creat ("conftest.mmap", 0600);
10079 if (fd < 0)
10080 return 1;
10081 if (write (fd, data, pagesize) != pagesize)
10082 return 1;
10083 close (fd);
10085 /* Next, try to mmap the file at a fixed address which already has
10086 something else allocated at it. If we can, also make sure that
10087 we see the same garbage. */
10088 fd = open ("conftest.mmap", O_RDWR);
10089 if (fd < 0)
10090 return 1;
10091 data2 = (char *) malloc (2 * pagesize);
10092 if (!data2)
10093 return 1;
10094 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10095 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10096 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10097 return 1;
10098 for (i = 0; i < pagesize; ++i)
10099 if (*(data + i) != *(data2 + i))
10100 return 1;
10102 /* Finally, make sure that changes to the mapped area do not
10103 percolate back to the file as seen by read(). (This is a bug on
10104 some variants of i386 svr4.0.) */
10105 for (i = 0; i < pagesize; ++i)
10106 *(data2 + i) = *(data2 + i) + 1;
10107 data3 = (char *) malloc (pagesize);
10108 if (!data3)
10109 return 1;
10110 if (read (fd, data3, pagesize) != pagesize)
10111 return 1;
10112 for (i = 0; i < pagesize; ++i)
10113 if (*(data + i) != *(data3 + i))
10114 return 1;
10115 close (fd);
10116 return 0;
10118 _ACEOF
10119 rm -f conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133 esac
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_func_mmap_fixed_mapped=yes
10140 else
10141 echo "$as_me: program exited with status $ac_status" >&5
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10145 ( exit $ac_status )
10146 ac_cv_func_mmap_fixed_mapped=no
10148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10153 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10154 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10155 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10157 cat >>confdefs.h <<\_ACEOF
10158 #define HAVE_MMAP 1
10159 _ACEOF
10162 rm -f conftest.mmap
10164 if test $use_mmap_for_buffers = yes; then
10165 REL_ALLOC=no
10168 LIBS="$libsrc_libs $LIBS"
10171 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10172 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10173 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176 ac_check_lib_save_LIBS=$LIBS
10177 LIBS="-ldnet $LIBS"
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10185 /* Override any GCC internal prototype to avoid an error.
10186 Use char because int might match the return type of a GCC
10187 builtin and then its argument prototype would still apply. */
10188 #ifdef __cplusplus
10189 extern "C"
10190 #endif
10191 char dnet_ntoa ();
10193 main ()
10195 return dnet_ntoa ();
10197 return 0;
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>conftest.er1
10208 ac_status=$?
10209 grep -v '^ *+' conftest.er1 >conftest.err
10210 rm -f conftest.er1
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && {
10214 test -z "$ac_c_werror_flag" ||
10215 test ! -s conftest.err
10216 } && test -s conftest$ac_exeext &&
10217 $as_test_x conftest$ac_exeext; then
10218 ac_cv_lib_dnet_dnet_ntoa=yes
10219 else
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 ac_cv_lib_dnet_dnet_ntoa=no
10226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10227 conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10230 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10231 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10232 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10233 cat >>confdefs.h <<_ACEOF
10234 #define HAVE_LIBDNET 1
10235 _ACEOF
10237 LIBS="-ldnet $LIBS"
10242 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10243 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10244 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247 ac_check_lib_save_LIBS=$LIBS
10248 LIBS="-lXbsd $LIBS"
10249 cat >conftest.$ac_ext <<_ACEOF
10250 /* confdefs.h. */
10251 _ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10258 main ()
10260 return main ();
10262 return 0;
10264 _ACEOF
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270 esac
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_link") 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && {
10279 test -z "$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 } && test -s conftest$ac_exeext &&
10282 $as_test_x conftest$ac_exeext; then
10283 ac_cv_lib_Xbsd_main=yes
10284 else
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 ac_cv_lib_Xbsd_main=no
10291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10292 conftest$ac_exeext conftest.$ac_ext
10293 LIBS=$ac_check_lib_save_LIBS
10295 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10296 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10297 if test $ac_cv_lib_Xbsd_main = yes; then
10298 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10303 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10304 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10305 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308 ac_check_lib_save_LIBS=$LIBS
10309 LIBS="-lpthreads $LIBS"
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h. */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10317 /* Override any GCC internal prototype to avoid an error.
10318 Use char because int might match the return type of a GCC
10319 builtin and then its argument prototype would still apply. */
10320 #ifdef __cplusplus
10321 extern "C"
10322 #endif
10323 char cma_open ();
10325 main ()
10327 return cma_open ();
10329 return 0;
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_link") 2>conftest.er1
10340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest$ac_exeext &&
10349 $as_test_x conftest$ac_exeext; then
10350 ac_cv_lib_pthreads_cma_open=yes
10351 else
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 ac_cv_lib_pthreads_cma_open=no
10358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10359 conftest$ac_exeext conftest.$ac_ext
10360 LIBS=$ac_check_lib_save_LIBS
10362 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10363 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10364 if test $ac_cv_lib_pthreads_cma_open = yes; then
10365 cat >>confdefs.h <<_ACEOF
10366 #define HAVE_LIBPTHREADS 1
10367 _ACEOF
10369 LIBS="-lpthreads $LIBS"
10375 case ${host_os} in
10376 aix*)
10377 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10378 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10379 if test "${gdb_cv_bigtoc+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10383 case $GCC in
10384 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10385 *) gdb_cv_bigtoc=-bbigtoc ;;
10386 esac
10388 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10397 main ()
10399 int i;
10401 return 0;
10403 _ACEOF
10404 rm -f conftest.$ac_objext conftest$ac_exeext
10405 if { (ac_try="$ac_link"
10406 case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409 esac
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_link") 2>conftest.er1
10412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } && {
10418 test -z "$ac_c_werror_flag" ||
10419 test ! -s conftest.err
10420 } && test -s conftest$ac_exeext &&
10421 $as_test_x conftest$ac_exeext; then
10423 else
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 gdb_cv_bigtoc=
10430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10431 conftest$ac_exeext conftest.$ac_ext
10434 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10435 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10437 esac
10439 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10440 # used for the tests that follow. We set them back to REAL_CFLAGS and
10441 # REAL_CPPFLAGS later on.
10443 REAL_CPPFLAGS="$CPPFLAGS"
10445 if test "${HAVE_X11}" = "yes"; then
10446 DEFS="$C_SWITCH_X_SITE $DEFS"
10447 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10448 LIBS="$LIBX $LIBS"
10449 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10450 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10452 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10453 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10454 # but it's more convenient here to set LD_RUN_PATH
10455 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10456 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10457 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10458 export LD_RUN_PATH
10461 if test "${opsys}" = "gnu-linux"; then
10462 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10463 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10464 cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h. */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10472 main ()
10474 XOpenDisplay ("foo");
10476 return 0;
10478 _ACEOF
10479 rm -f conftest.$ac_objext conftest$ac_exeext
10480 if { (ac_try="$ac_link"
10481 case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10484 esac
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_link") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext &&
10496 $as_test_x conftest$ac_exeext; then
10497 xlinux_first_failure=no
10498 else
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 xlinux_first_failure=yes
10505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10506 conftest$ac_exeext conftest.$ac_ext
10507 if test "${xlinux_first_failure}" = "yes"; then
10508 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10509 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10510 OLD_CPPFLAGS="$CPPFLAGS"
10511 OLD_LIBS="$LIBS"
10512 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10513 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10514 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10515 LIBS="$LIBS -b i486-linuxaout"
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10524 main ()
10526 XOpenDisplay ("foo");
10528 return 0;
10530 _ACEOF
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_link") 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest$ac_exeext &&
10548 $as_test_x conftest$ac_exeext; then
10549 xlinux_second_failure=no
10550 else
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 xlinux_second_failure=yes
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10559 if test "${xlinux_second_failure}" = "yes"; then
10560 # If we get the same failure with -b, there is no use adding -b.
10561 # So take it out. This plays safe.
10562 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10563 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10564 CPPFLAGS="$OLD_CPPFLAGS"
10565 LIBS="$OLD_LIBS"
10566 { echo "$as_me:$LINENO: result: no" >&5
10567 echo "${ECHO_T}no" >&6; }
10568 else
10569 { echo "$as_me:$LINENO: result: yes" >&5
10570 echo "${ECHO_T}yes" >&6; }
10572 else
10573 { echo "$as_me:$LINENO: result: no" >&5
10574 echo "${ECHO_T}no" >&6; }
10578 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10579 # header files included from there.
10580 { echo "$as_me:$LINENO: checking for Xkb" >&5
10581 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 #include <X11/Xlib.h>
10589 #include <X11/XKBlib.h>
10591 main ()
10593 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10595 return 0;
10597 _ACEOF
10598 rm -f conftest.$ac_objext conftest$ac_exeext
10599 if { (ac_try="$ac_link"
10600 case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_link") 2>conftest.er1
10606 ac_status=$?
10607 grep -v '^ *+' conftest.er1 >conftest.err
10608 rm -f conftest.er1
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && {
10612 test -z "$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 } && test -s conftest$ac_exeext &&
10615 $as_test_x conftest$ac_exeext; then
10616 emacs_xkb=yes
10617 else
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10621 emacs_xkb=no
10624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10625 conftest$ac_exeext conftest.$ac_ext
10626 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10627 echo "${ECHO_T}$emacs_xkb" >&6; }
10628 if test $emacs_xkb = yes; then
10630 cat >>confdefs.h <<\_ACEOF
10631 #define HAVE_XKBGETKEYBOARD 1
10632 _ACEOF
10640 for ac_func in XrmSetDatabase XScreenResourceString \
10641 XScreenNumberOfScreen XSetWMProtocols
10643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10657 #define $ac_func innocuous_$ac_func
10659 /* System header to define __stub macros and hopefully few prototypes,
10660 which can conflict with char $ac_func (); below.
10661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10662 <limits.h> exists even on freestanding compilers. */
10664 #ifdef __STDC__
10665 # include <limits.h>
10666 #else
10667 # include <assert.h>
10668 #endif
10670 #undef $ac_func
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 char $ac_func ();
10679 /* The GNU C library defines this for functions which it implements
10680 to always fail with ENOSYS. Some functions are actually named
10681 something starting with __ and the normal name is an alias. */
10682 #if defined __stub_$ac_func || defined __stub___$ac_func
10683 choke me
10684 #endif
10687 main ()
10689 return $ac_func ();
10691 return 0;
10693 _ACEOF
10694 rm -f conftest.$ac_objext conftest$ac_exeext
10695 if { (ac_try="$ac_link"
10696 case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_link") 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } && {
10708 test -z "$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10710 } && test -s conftest$ac_exeext &&
10711 $as_test_x conftest$ac_exeext; then
10712 eval "$as_ac_var=yes"
10713 else
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10717 eval "$as_ac_var=no"
10720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10721 conftest$ac_exeext conftest.$ac_ext
10723 ac_res=`eval echo '${'$as_ac_var'}'`
10724 { echo "$as_me:$LINENO: result: $ac_res" >&5
10725 echo "${ECHO_T}$ac_res" >&6; }
10726 if test `eval echo '${'$as_ac_var'}'` = yes; then
10727 cat >>confdefs.h <<_ACEOF
10728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10729 _ACEOF
10732 done
10736 if test "${window_system}" = "x11"; then
10737 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10738 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10739 if test "${emacs_cv_x11_version_6+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 #include <X11/Xlib.h>
10750 main ()
10752 #if XlibSpecificationRelease < 6
10753 fail;
10754 #endif
10757 return 0;
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest$ac_exeext &&
10777 $as_test_x conftest$ac_exeext; then
10778 emacs_cv_x11_version_6=yes
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 emacs_cv_x11_version_6=no
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787 conftest$ac_exeext conftest.$ac_ext
10790 if test $emacs_cv_x11_version_6 = yes; then
10791 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10792 echo "${ECHO_T}6 or newer" >&6; }
10794 cat >>confdefs.h <<\_ACEOF
10795 #define HAVE_X11R6 1
10796 _ACEOF
10798 else
10799 { echo "$as_me:$LINENO: result: before 6" >&5
10800 echo "${ECHO_T}before 6" >&6; }
10805 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10806 HAVE_RSVG=no
10807 if test "${HAVE_X11}" = "yes"; then
10808 if test "${with_rsvg}" != "no"; then
10809 RSVG_REQUIRED=2.0.0
10810 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10813 succeeded=no
10815 # Extract the first word of "pkg-config", so it can be a program name with args.
10816 set dummy pkg-config; ac_word=$2
10817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10819 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822 case $PKG_CONFIG in
10823 [\\/]* | ?:[\\/]*)
10824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10834 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 break 2
10838 done
10839 done
10840 IFS=$as_save_IFS
10842 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10844 esac
10846 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10847 if test -n "$PKG_CONFIG"; then
10848 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10849 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10850 else
10851 { echo "$as_me:$LINENO: result: no" >&5
10852 echo "${ECHO_T}no" >&6; }
10857 if test "$PKG_CONFIG" = "no" ; then
10859 else
10860 PKG_CONFIG_MIN_VERSION=0.9.0
10861 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10862 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10863 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10865 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10866 { echo "$as_me:$LINENO: result: yes" >&5
10867 echo "${ECHO_T}yes" >&6; }
10868 succeeded=yes
10870 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10871 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10872 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10873 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10874 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10876 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10877 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10878 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10879 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10880 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10881 else
10882 { echo "$as_me:$LINENO: result: no" >&5
10883 echo "${ECHO_T}no" >&6; }
10884 RSVG_CFLAGS=""
10885 RSVG_LIBS=""
10886 ## If we have a custom action on failure, don't print errors, but
10887 ## do set a variable so people can do so.
10888 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10894 else
10895 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10896 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10900 if test $succeeded = yes; then
10902 else
10909 if test ".${RSVG_CFLAGS}" != "."; then
10910 HAVE_RSVG=yes
10912 cat >>confdefs.h <<\_ACEOF
10913 #define HAVE_RSVG 1
10914 _ACEOF
10916 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10917 LIBS="$RSVG_LIBS $LIBS"
10923 HAVE_GTK=no
10924 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10925 GLIB_REQUIRED=2.6
10926 GTK_REQUIRED=2.6
10927 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10930 succeeded=no
10932 # Extract the first word of "pkg-config", so it can be a program name with args.
10933 set dummy pkg-config; ac_word=$2
10934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10936 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 case $PKG_CONFIG in
10940 [\\/]* | ?:[\\/]*)
10941 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10955 done
10956 done
10957 IFS=$as_save_IFS
10959 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10961 esac
10963 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10964 if test -n "$PKG_CONFIG"; then
10965 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10966 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10967 else
10968 { echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6; }
10974 if test "$PKG_CONFIG" = "no" ; then
10975 pkg_check_gtk=no
10976 else
10977 PKG_CONFIG_MIN_VERSION=0.9.0
10978 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10979 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10980 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10982 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10983 { echo "$as_me:$LINENO: result: yes" >&5
10984 echo "${ECHO_T}yes" >&6; }
10985 succeeded=yes
10987 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10988 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10989 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10990 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10991 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10993 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10994 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10995 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10996 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10997 echo "${ECHO_T}$GTK_LIBS" >&6; }
10998 else
10999 { echo "$as_me:$LINENO: result: no" >&5
11000 echo "${ECHO_T}no" >&6; }
11001 GTK_CFLAGS=""
11002 GTK_LIBS=""
11003 ## If we have a custom action on failure, don't print errors, but
11004 ## do set a variable so people can do so.
11005 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11011 else
11012 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11013 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11017 if test $succeeded = yes; then
11018 pkg_check_gtk=yes
11019 else
11020 pkg_check_gtk=no
11023 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11024 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11025 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11026 { (exit 1); exit 1; }; }
11031 if test x"$pkg_check_gtk" = xyes; then
11035 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11036 CFLAGS="$CFLAGS $GTK_CFLAGS"
11037 LIBS="$GTK_LIBS $LIBS"
11038 GTK_COMPILES=no
11040 for ac_func in gtk_main
11042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11056 #define $ac_func innocuous_$ac_func
11058 /* System header to define __stub macros and hopefully few prototypes,
11059 which can conflict with char $ac_func (); below.
11060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11061 <limits.h> exists even on freestanding compilers. */
11063 #ifdef __STDC__
11064 # include <limits.h>
11065 #else
11066 # include <assert.h>
11067 #endif
11069 #undef $ac_func
11071 /* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 char $ac_func ();
11078 /* The GNU C library defines this for functions which it implements
11079 to always fail with ENOSYS. Some functions are actually named
11080 something starting with __ and the normal name is an alias. */
11081 #if defined __stub_$ac_func || defined __stub___$ac_func
11082 choke me
11083 #endif
11086 main ()
11088 return $ac_func ();
11090 return 0;
11092 _ACEOF
11093 rm -f conftest.$ac_objext conftest$ac_exeext
11094 if { (ac_try="$ac_link"
11095 case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_link") 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && {
11107 test -z "$ac_c_werror_flag" ||
11108 test ! -s conftest.err
11109 } && test -s conftest$ac_exeext &&
11110 $as_test_x conftest$ac_exeext; then
11111 eval "$as_ac_var=yes"
11112 else
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11116 eval "$as_ac_var=no"
11119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11120 conftest$ac_exeext conftest.$ac_ext
11122 ac_res=`eval echo '${'$as_ac_var'}'`
11123 { echo "$as_me:$LINENO: result: $ac_res" >&5
11124 echo "${ECHO_T}$ac_res" >&6; }
11125 if test `eval echo '${'$as_ac_var'}'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11128 _ACEOF
11129 GTK_COMPILES=yes
11131 done
11133 if test "${GTK_COMPILES}" != "yes"; then
11134 if test "$USE_X_TOOLKIT" != "maybe"; then
11135 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11136 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11137 { (exit 1); exit 1; }; };
11139 else
11140 HAVE_GTK=yes
11142 cat >>confdefs.h <<\_ACEOF
11143 #define USE_GTK 1
11144 _ACEOF
11146 USE_X_TOOLKIT=none
11147 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11149 else
11150 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11151 closing open displays. This is no problem if you just use
11152 one display, but if you use more than one and close one of them
11153 Emacs may crash." >&5
11154 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11155 closing open displays. This is no problem if you just use
11156 one display, but if you use more than one and close one of them
11157 Emacs may crash." >&2;}
11158 sleep 3
11165 if test "${HAVE_GTK}" = "yes"; then
11167 if test "$with_toolkit_scroll_bars" != no; then
11168 with_toolkit_scroll_bars=yes
11171 HAVE_GTK_MULTIDISPLAY=no
11173 for ac_func in gdk_display_open
11175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181 cat >conftest.$ac_ext <<_ACEOF
11182 /* confdefs.h. */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11189 #define $ac_func innocuous_$ac_func
11191 /* System header to define __stub macros and hopefully few prototypes,
11192 which can conflict with char $ac_func (); below.
11193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11194 <limits.h> exists even on freestanding compilers. */
11196 #ifdef __STDC__
11197 # include <limits.h>
11198 #else
11199 # include <assert.h>
11200 #endif
11202 #undef $ac_func
11204 /* Override any GCC internal prototype to avoid an error.
11205 Use char because int might match the return type of a GCC
11206 builtin and then its argument prototype would still apply. */
11207 #ifdef __cplusplus
11208 extern "C"
11209 #endif
11210 char $ac_func ();
11211 /* The GNU C library defines this for functions which it implements
11212 to always fail with ENOSYS. Some functions are actually named
11213 something starting with __ and the normal name is an alias. */
11214 #if defined __stub_$ac_func || defined __stub___$ac_func
11215 choke me
11216 #endif
11219 main ()
11221 return $ac_func ();
11223 return 0;
11225 _ACEOF
11226 rm -f conftest.$ac_objext conftest$ac_exeext
11227 if { (ac_try="$ac_link"
11228 case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_link") 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } && {
11240 test -z "$ac_c_werror_flag" ||
11241 test ! -s conftest.err
11242 } && test -s conftest$ac_exeext &&
11243 $as_test_x conftest$ac_exeext; then
11244 eval "$as_ac_var=yes"
11245 else
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11249 eval "$as_ac_var=no"
11252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11253 conftest$ac_exeext conftest.$ac_ext
11255 ac_res=`eval echo '${'$as_ac_var'}'`
11256 { echo "$as_me:$LINENO: result: $ac_res" >&5
11257 echo "${ECHO_T}$ac_res" >&6; }
11258 if test `eval echo '${'$as_ac_var'}'` = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11261 _ACEOF
11262 HAVE_GTK_MULTIDISPLAY=yes
11264 done
11266 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11268 cat >>confdefs.h <<\_ACEOF
11269 #define HAVE_GTK_MULTIDISPLAY 1
11270 _ACEOF
11274 HAVE_GTK_FILE_SELECTION=no
11276 for ac_func in gtk_file_selection_new
11278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h. */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11292 #define $ac_func innocuous_$ac_func
11294 /* System header to define __stub macros and hopefully few prototypes,
11295 which can conflict with char $ac_func (); below.
11296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11297 <limits.h> exists even on freestanding compilers. */
11299 #ifdef __STDC__
11300 # include <limits.h>
11301 #else
11302 # include <assert.h>
11303 #endif
11305 #undef $ac_func
11307 /* Override any GCC internal prototype to avoid an error.
11308 Use char because int might match the return type of a GCC
11309 builtin and then its argument prototype would still apply. */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 char $ac_func ();
11314 /* The GNU C library defines this for functions which it implements
11315 to always fail with ENOSYS. Some functions are actually named
11316 something starting with __ and the normal name is an alias. */
11317 #if defined __stub_$ac_func || defined __stub___$ac_func
11318 choke me
11319 #endif
11322 main ()
11324 return $ac_func ();
11326 return 0;
11328 _ACEOF
11329 rm -f conftest.$ac_objext conftest$ac_exeext
11330 if { (ac_try="$ac_link"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_link") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest$ac_exeext &&
11346 $as_test_x conftest$ac_exeext; then
11347 eval "$as_ac_var=yes"
11348 else
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11352 eval "$as_ac_var=no"
11355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11356 conftest$ac_exeext conftest.$ac_ext
11358 ac_res=`eval echo '${'$as_ac_var'}'`
11359 { echo "$as_me:$LINENO: result: $ac_res" >&5
11360 echo "${ECHO_T}$ac_res" >&6; }
11361 if test `eval echo '${'$as_ac_var'}'` = yes; then
11362 cat >>confdefs.h <<_ACEOF
11363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11364 _ACEOF
11365 HAVE_GTK_FILE_SELECTION=yes
11367 done
11370 HAVE_GTK_FILE_CHOOSER=no
11372 for ac_func in gtk_file_chooser_dialog_new
11374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11388 #define $ac_func innocuous_$ac_func
11390 /* System header to define __stub macros and hopefully few prototypes,
11391 which can conflict with char $ac_func (); below.
11392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11393 <limits.h> exists even on freestanding compilers. */
11395 #ifdef __STDC__
11396 # include <limits.h>
11397 #else
11398 # include <assert.h>
11399 #endif
11401 #undef $ac_func
11403 /* Override any GCC internal prototype to avoid an error.
11404 Use char because int might match the return type of a GCC
11405 builtin and then its argument prototype would still apply. */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 char $ac_func ();
11410 /* The GNU C library defines this for functions which it implements
11411 to always fail with ENOSYS. Some functions are actually named
11412 something starting with __ and the normal name is an alias. */
11413 #if defined __stub_$ac_func || defined __stub___$ac_func
11414 choke me
11415 #endif
11418 main ()
11420 return $ac_func ();
11422 return 0;
11424 _ACEOF
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (ac_try="$ac_link"
11427 case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430 esac
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_link") 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } && {
11439 test -z "$ac_c_werror_flag" ||
11440 test ! -s conftest.err
11441 } && test -s conftest$ac_exeext &&
11442 $as_test_x conftest$ac_exeext; then
11443 eval "$as_ac_var=yes"
11444 else
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11448 eval "$as_ac_var=no"
11451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11452 conftest$ac_exeext conftest.$ac_ext
11454 ac_res=`eval echo '${'$as_ac_var'}'`
11455 { echo "$as_me:$LINENO: result: $ac_res" >&5
11456 echo "${ECHO_T}$ac_res" >&6; }
11457 if test `eval echo '${'$as_ac_var'}'` = yes; then
11458 cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11460 _ACEOF
11461 HAVE_GTK_FILE_CHOOSER=yes
11463 done
11466 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11467 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11469 cat >>confdefs.h <<\_ACEOF
11470 #define HAVE_GTK_FILE_BOTH 1
11471 _ACEOF
11475 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11476 HAVE_GTK_AND_PTHREAD=no
11478 for ac_header in pthread.h
11480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11482 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 ac_res=`eval echo '${'$as_ac_Header'}'`
11488 { echo "$as_me:$LINENO: result: $ac_res" >&5
11489 echo "${ECHO_T}$ac_res" >&6; }
11490 else
11491 # Is the header compilable?
11492 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11494 cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h. */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500 $ac_includes_default
11501 #include <$ac_header>
11502 _ACEOF
11503 rm -f conftest.$ac_objext
11504 if { (ac_try="$ac_compile"
11505 case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_compile") 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && {
11517 test -z "$ac_c_werror_flag" ||
11518 test ! -s conftest.err
11519 } && test -s conftest.$ac_objext; then
11520 ac_header_compiler=yes
11521 else
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 ac_header_compiler=no
11528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11530 echo "${ECHO_T}$ac_header_compiler" >&6; }
11532 # Is the header present?
11533 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11535 cat >conftest.$ac_ext <<_ACEOF
11536 /* confdefs.h. */
11537 _ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11541 #include <$ac_header>
11542 _ACEOF
11543 if { (ac_try="$ac_cpp conftest.$ac_ext"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } >/dev/null && {
11556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 }; then
11559 ac_header_preproc=yes
11560 else
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11564 ac_header_preproc=no
11567 rm -f conftest.err conftest.$ac_ext
11568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11569 echo "${ECHO_T}$ac_header_preproc" >&6; }
11571 # So? What about this header?
11572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11573 yes:no: )
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11578 ac_header_preproc=yes
11580 no:yes:* )
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11595 esac
11596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601 eval "$as_ac_Header=\$ac_header_preproc"
11603 ac_res=`eval echo '${'$as_ac_Header'}'`
11604 { echo "$as_me:$LINENO: result: $ac_res" >&5
11605 echo "${ECHO_T}$ac_res" >&6; }
11608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11609 cat >>confdefs.h <<_ACEOF
11610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11611 _ACEOF
11615 done
11617 if test "$ac_cv_header_pthread_h"; then
11618 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11619 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11620 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623 ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-lpthread $LIBS"
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h. */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635 #ifdef __cplusplus
11636 extern "C"
11637 #endif
11638 char pthread_self ();
11640 main ()
11642 return pthread_self ();
11644 return 0;
11646 _ACEOF
11647 rm -f conftest.$ac_objext conftest$ac_exeext
11648 if { (ac_try="$ac_link"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_link") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest$ac_exeext &&
11664 $as_test_x conftest$ac_exeext; then
11665 ac_cv_lib_pthread_pthread_self=yes
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 ac_cv_lib_pthread_pthread_self=no
11673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11674 conftest$ac_exeext conftest.$ac_ext
11675 LIBS=$ac_check_lib_save_LIBS
11677 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11678 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11679 if test $ac_cv_lib_pthread_pthread_self = yes; then
11680 HAVE_GTK_AND_PTHREAD=yes
11684 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11685 case "${canonical}" in
11686 *-hpux*) ;;
11687 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11688 esac
11690 cat >>confdefs.h <<\_ACEOF
11691 #define HAVE_GTK_AND_PTHREAD 1
11692 _ACEOF
11698 HAVE_DBUS=no
11699 if test "${with_dbus}" = "yes"; then
11701 succeeded=no
11703 # Extract the first word of "pkg-config", so it can be a program name with args.
11704 set dummy pkg-config; ac_word=$2
11705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11707 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710 case $PKG_CONFIG in
11711 [\\/]* | ?:[\\/]*)
11712 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11722 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11726 done
11727 done
11728 IFS=$as_save_IFS
11730 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11732 esac
11734 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11735 if test -n "$PKG_CONFIG"; then
11736 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11737 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11738 else
11739 { echo "$as_me:$LINENO: result: no" >&5
11740 echo "${ECHO_T}no" >&6; }
11745 if test "$PKG_CONFIG" = "no" ; then
11746 HAVE_DBUS=no
11747 else
11748 PKG_CONFIG_MIN_VERSION=0.9.0
11749 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11750 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11751 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11753 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11754 { echo "$as_me:$LINENO: result: yes" >&5
11755 echo "${ECHO_T}yes" >&6; }
11756 succeeded=yes
11758 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11759 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11760 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11761 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11762 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11764 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11765 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11766 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11767 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11768 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11769 else
11770 { echo "$as_me:$LINENO: result: no" >&5
11771 echo "${ECHO_T}no" >&6; }
11772 DBUS_CFLAGS=""
11773 DBUS_LIBS=""
11774 ## If we have a custom action on failure, don't print errors, but
11775 ## do set a variable so people can do so.
11776 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11782 else
11783 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11784 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11788 if test $succeeded = yes; then
11789 HAVE_DBUS=yes
11790 else
11791 HAVE_DBUS=no
11794 if test "$HAVE_DBUS" = yes; then
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_DBUS 1
11798 _ACEOF
11803 HAVE_XAW3D=no
11804 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11805 if test "$with_xaw3d" != no; then
11806 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11807 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11808 if test "${emacs_cv_xaw3d+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811 cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h. */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11818 #include <X11/Intrinsic.h>
11819 #include <X11/Xaw3d/Simple.h>
11821 main ()
11825 return 0;
11827 _ACEOF
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (ac_try="$ac_link"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_link") 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest$ac_exeext &&
11845 $as_test_x conftest$ac_exeext; then
11846 emacs_cv_xaw3d=yes
11847 else
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11851 emacs_cv_xaw3d=no
11854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11855 conftest$ac_exeext conftest.$ac_ext
11858 else
11859 emacs_cv_xaw3d=no
11861 if test $emacs_cv_xaw3d = yes; then
11862 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11863 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11864 USE_X_TOOLKIT=LUCID
11865 HAVE_XAW3D=yes
11867 cat >>confdefs.h <<\_ACEOF
11868 #define HAVE_XAW3D 1
11869 _ACEOF
11871 else
11872 { echo "$as_me:$LINENO: result: no" >&5
11873 echo "${ECHO_T}no" >&6; }
11874 { echo "$as_me:$LINENO: checking for libXaw" >&5
11875 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11876 if test "${emacs_cv_xaw+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879 cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h. */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11886 #include <X11/Intrinsic.h>
11887 #include <X11/Xaw/Simple.h>
11889 main ()
11893 return 0;
11895 _ACEOF
11896 rm -f conftest.$ac_objext conftest$ac_exeext
11897 if { (ac_try="$ac_link"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901 esac
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_link") 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } && {
11910 test -z "$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 } && test -s conftest$ac_exeext &&
11913 $as_test_x conftest$ac_exeext; then
11914 emacs_cv_xaw=yes
11915 else
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 emacs_cv_xaw=no
11922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11923 conftest$ac_exeext conftest.$ac_ext
11926 if test $emacs_cv_xaw = yes; then
11927 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11928 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11929 USE_X_TOOLKIT=LUCID
11930 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11931 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11932 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11933 { (exit 1); exit 1; }; }
11934 else
11935 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11936 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11937 USE_X_TOOLKIT=none
11942 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11944 if test "${USE_X_TOOLKIT}" != "none"; then
11945 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11946 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11947 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950 cat >conftest.$ac_ext <<_ACEOF
11951 /* confdefs.h. */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 #include <X11/Intrinsic.h>
11958 main ()
11960 #if XtSpecificationRelease < 6
11961 fail;
11962 #endif
11965 return 0;
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (ac_try="$ac_link"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973 esac
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_link") 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } && {
11982 test -z "$ac_c_werror_flag" ||
11983 test ! -s conftest.err
11984 } && test -s conftest$ac_exeext &&
11985 $as_test_x conftest$ac_exeext; then
11986 emacs_cv_x11_toolkit_version_6=yes
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 emacs_cv_x11_toolkit_version_6=no
11994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11995 conftest$ac_exeext conftest.$ac_ext
11998 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11999 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12000 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12001 echo "${ECHO_T}6 or newer" >&6; }
12003 cat >>confdefs.h <<\_ACEOF
12004 #define HAVE_X11XTR6 1
12005 _ACEOF
12007 else
12008 { echo "$as_me:$LINENO: result: before 6" >&5
12009 echo "${ECHO_T}before 6" >&6; }
12012 OLDLIBS="$LIBS"
12013 if test x$HAVE_X11XTR6 = xyes; then
12014 LIBS="-lXt -lSM -lICE $LIBS"
12015 else
12016 LIBS="-lXt $LIBS"
12019 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12020 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12021 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024 ac_check_lib_save_LIBS=$LIBS
12025 LIBS="-lXmu $LIBS"
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h. */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12033 /* Override any GCC internal prototype to avoid an error.
12034 Use char because int might match the return type of a GCC
12035 builtin and then its argument prototype would still apply. */
12036 #ifdef __cplusplus
12037 extern "C"
12038 #endif
12039 char XmuConvertStandardSelection ();
12041 main ()
12043 return XmuConvertStandardSelection ();
12045 return 0;
12047 _ACEOF
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (ac_try="$ac_link"
12050 case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053 esac
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_link") 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest$ac_exeext &&
12065 $as_test_x conftest$ac_exeext; then
12066 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12067 else
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12078 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12079 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12080 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12081 cat >>confdefs.h <<_ACEOF
12082 #define HAVE_LIBXMU 1
12083 _ACEOF
12085 LIBS="-lXmu $LIBS"
12089 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12092 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12093 if test "${HAVE_X11}" = "yes"; then
12094 if test "${USE_X_TOOLKIT}" != "none"; then
12096 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12097 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12098 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101 ac_check_lib_save_LIBS=$LIBS
12102 LIBS="-lXext $LIBS"
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h. */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char XShapeQueryExtension ();
12118 main ()
12120 return XShapeQueryExtension ();
12122 return 0;
12124 _ACEOF
12125 rm -f conftest.$ac_objext conftest$ac_exeext
12126 if { (ac_try="$ac_link"
12127 case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_link") 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } && {
12139 test -z "$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest$ac_exeext &&
12142 $as_test_x conftest$ac_exeext; then
12143 ac_cv_lib_Xext_XShapeQueryExtension=yes
12144 else
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 ac_cv_lib_Xext_XShapeQueryExtension=no
12151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12152 conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12155 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12156 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12157 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12158 cat >>confdefs.h <<_ACEOF
12159 #define HAVE_LIBXEXT 1
12160 _ACEOF
12162 LIBS="-lXext $LIBS"
12169 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12170 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12171 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12172 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175 cat >conftest.$ac_ext <<_ACEOF
12176 /* confdefs.h. */
12177 _ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12181 #include <Xm/Xm.h>
12183 main ()
12185 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12186 int x = 5;
12187 #else
12188 Motif version prior to 2.1.
12189 #endif
12191 return 0;
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (ac_try="$ac_compile"
12196 case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12199 esac
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_compile") 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } && {
12208 test -z "$ac_c_werror_flag" ||
12209 test ! -s conftest.err
12210 } && test -s conftest.$ac_objext; then
12211 emacs_cv_motif_version_2_1=yes
12212 else
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 emacs_cv_motif_version_2_1=no
12219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12222 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12223 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12224 if test $emacs_cv_motif_version_2_1 = yes; then
12225 HAVE_LIBXP=no
12227 cat >>confdefs.h <<\_ACEOF
12228 #define HAVE_MOTIF_2_1 1
12229 _ACEOF
12231 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12232 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12233 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236 ac_check_lib_save_LIBS=$LIBS
12237 LIBS="-lXp $LIBS"
12238 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h. */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12245 /* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
12248 #ifdef __cplusplus
12249 extern "C"
12250 #endif
12251 char XpCreateContext ();
12253 main ()
12255 return XpCreateContext ();
12257 return 0;
12259 _ACEOF
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (ac_try="$ac_link"
12262 case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12265 esac
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_link") 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } && {
12274 test -z "$ac_c_werror_flag" ||
12275 test ! -s conftest.err
12276 } && test -s conftest$ac_exeext &&
12277 $as_test_x conftest$ac_exeext; then
12278 ac_cv_lib_Xp_XpCreateContext=yes
12279 else
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 ac_cv_lib_Xp_XpCreateContext=no
12286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12287 conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12290 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12291 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12292 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12293 HAVE_LIBXP=yes
12296 if test ${HAVE_LIBXP} = yes; then
12298 cat >>confdefs.h <<\_ACEOF
12299 #define HAVE_LIBXP 1
12300 _ACEOF
12303 else
12304 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12305 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12306 if test "${emacs_cv_lesstif+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309 # We put this in CFLAGS temporarily to precede other -I options
12310 # that might be in CFLAGS temporarily.
12311 # We put this in CPPFLAGS where it precedes the other -I options.
12312 OLD_CPPFLAGS=$CPPFLAGS
12313 OLD_CFLAGS=$CFLAGS
12314 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12315 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12324 main ()
12326 int x = 5;
12328 return 0;
12330 _ACEOF
12331 rm -f conftest.$ac_objext
12332 if { (ac_try="$ac_compile"
12333 case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_compile") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest.$ac_objext; then
12348 emacs_cv_lesstif=yes
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 emacs_cv_lesstif=no
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12359 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12360 if test $emacs_cv_lesstif = yes; then
12361 # Make sure this -I option remains in CPPFLAGS after it is set
12362 # back to REAL_CPPFLAGS.
12363 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12364 # have those other -I options anyway. Ultimately, having this
12365 # directory ultimately in CPPFLAGS will be enough.
12366 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12367 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12368 else
12369 CFLAGS=$OLD_CFLAGS
12370 CPPFLAGS=$OLD_CPPFLAGS
12377 USE_TOOLKIT_SCROLL_BARS=no
12378 if test "${with_toolkit_scroll_bars}" != "no"; then
12379 if test "${USE_X_TOOLKIT}" != "none"; then
12380 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12381 cat >>confdefs.h <<\_ACEOF
12382 #define USE_TOOLKIT_SCROLL_BARS 1
12383 _ACEOF
12385 HAVE_XAW3D=no
12386 USE_TOOLKIT_SCROLL_BARS=yes
12387 elif test "${HAVE_XAW3D}" = "yes"; then
12388 cat >>confdefs.h <<\_ACEOF
12389 #define USE_TOOLKIT_SCROLL_BARS 1
12390 _ACEOF
12392 USE_TOOLKIT_SCROLL_BARS=yes
12394 elif test "${HAVE_GTK}" = "yes"; then
12395 cat >>confdefs.h <<\_ACEOF
12396 #define USE_TOOLKIT_SCROLL_BARS 1
12397 _ACEOF
12399 USE_TOOLKIT_SCROLL_BARS=yes
12400 elif test "${HAVE_NS}" = "yes"; then
12401 cat >>confdefs.h <<\_ACEOF
12402 #define USE_TOOLKIT_SCROLL_BARS 1
12403 _ACEOF
12405 USE_TOOLKIT_SCROLL_BARS=yes
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12416 #include <X11/Xlib.h>
12417 #include <X11/Xresource.h>
12419 main ()
12421 XIMProc callback;
12423 return 0;
12425 _ACEOF
12426 rm -f conftest.$ac_objext
12427 if { (ac_try="$ac_compile"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_compile") 2>conftest.er1
12434 ac_status=$?
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest.$ac_objext; then
12443 HAVE_XIM=yes
12445 cat >>confdefs.h <<\_ACEOF
12446 #define HAVE_XIM 1
12447 _ACEOF
12449 else
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12453 HAVE_XIM=no
12456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459 if test "${with_xim}" != "no"; then
12461 cat >>confdefs.h <<\_ACEOF
12462 #define USE_XIM 1
12463 _ACEOF
12468 if test "${HAVE_XIM}" != "no"; then
12469 late_CFLAGS=$CFLAGS
12470 if test "$GCC" = yes; then
12471 CFLAGS="$CFLAGS --pedantic-errors"
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12480 #include <X11/Xlib.h>
12481 #include <X11/Xresource.h>
12483 main ()
12485 Display *display;
12486 XrmDatabase db;
12487 char *res_name;
12488 char *res_class;
12489 XIMProc callback;
12490 XPointer *client_data;
12491 #ifndef __GNUC__
12492 /* If we're not using GCC, it's probably not XFree86, and this is
12493 probably right, but we can't use something like --pedantic-errors. */
12494 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12495 char*, XIMProc, XPointer*);
12496 #endif
12497 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12498 client_data);
12500 return 0;
12502 _ACEOF
12503 rm -f conftest.$ac_objext
12504 if { (ac_try="$ac_compile"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_compile") 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest.$ac_objext; then
12520 emacs_cv_arg6_star=yes
12521 else
12522 echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530 if test "$emacs_cv_arg6_star" = yes; then
12531 cat >>confdefs.h <<\_ACEOF
12532 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12533 _ACEOF
12535 else
12536 cat >>confdefs.h <<\_ACEOF
12537 #define XRegisterIMInstantiateCallback_arg6 XPointer
12538 _ACEOF
12541 CFLAGS=$late_CFLAGS
12544 ### Start of font-backend section.
12546 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12547 HAVE_XFT=maybe
12548 if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then
12549 with_xft="no";
12551 if test "x${with_xft}" != "xno"; then
12554 succeeded=no
12556 # Extract the first word of "pkg-config", so it can be a program name with args.
12557 set dummy pkg-config; ac_word=$2
12558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12560 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 else
12563 case $PKG_CONFIG in
12564 [\\/]* | ?:[\\/]*)
12565 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $PATH
12571 IFS=$as_save_IFS
12572 test -z "$as_dir" && as_dir=.
12573 for ac_exec_ext in '' $ac_executable_extensions; do
12574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12575 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12577 break 2
12579 done
12580 done
12581 IFS=$as_save_IFS
12583 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12585 esac
12587 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12588 if test -n "$PKG_CONFIG"; then
12589 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12590 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12591 else
12592 { echo "$as_me:$LINENO: result: no" >&5
12593 echo "${ECHO_T}no" >&6; }
12598 if test "$PKG_CONFIG" = "no" ; then
12599 HAVE_XFT=no
12600 else
12601 PKG_CONFIG_MIN_VERSION=0.9.0
12602 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12603 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12604 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12606 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12607 { echo "$as_me:$LINENO: result: yes" >&5
12608 echo "${ECHO_T}yes" >&6; }
12609 succeeded=yes
12611 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12612 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12613 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12614 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12615 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12617 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12618 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12619 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12620 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12621 echo "${ECHO_T}$XFT_LIBS" >&6; }
12622 else
12623 { echo "$as_me:$LINENO: result: no" >&5
12624 echo "${ECHO_T}no" >&6; }
12625 XFT_CFLAGS=""
12626 XFT_LIBS=""
12627 ## If we have a custom action on failure, don't print errors, but
12628 ## do set a variable so people can do so.
12629 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12635 else
12636 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12637 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12641 if test $succeeded = yes; then
12643 else
12644 HAVE_XFT=no
12647 if test "$HAVE_XFT" != no; then
12648 OLD_CPPFLAGS="$CPPFLAGS"
12649 OLD_CFLAGS="$CFLAGS"
12650 OLD_LIBS="$LIBS"
12651 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12652 CFLAGS="$CFLAGS $XFT_CFLAGS"
12653 LIBS="$XFT_LIBS $LIBS"
12654 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12655 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12656 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12657 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12661 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12662 else
12663 # Is the header compilable?
12664 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12665 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12666 cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h. */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12672 $ac_includes_default
12673 #include <X11/Xft/Xft.h>
12674 _ACEOF
12675 rm -f conftest.$ac_objext
12676 if { (ac_try="$ac_compile"
12677 case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12680 esac
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_compile") 2>conftest.er1
12683 ac_status=$?
12684 grep -v '^ *+' conftest.er1 >conftest.err
12685 rm -f conftest.er1
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } && {
12689 test -z "$ac_c_werror_flag" ||
12690 test ! -s conftest.err
12691 } && test -s conftest.$ac_objext; then
12692 ac_header_compiler=yes
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 ac_header_compiler=no
12700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12702 echo "${ECHO_T}$ac_header_compiler" >&6; }
12704 # Is the header present?
12705 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12706 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12707 cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h. */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 #include <X11/Xft/Xft.h>
12714 _ACEOF
12715 if { (ac_try="$ac_cpp conftest.$ac_ext"
12716 case "(($ac_try" in
12717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718 *) ac_try_echo=$ac_try;;
12719 esac
12720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12722 ac_status=$?
12723 grep -v '^ *+' conftest.er1 >conftest.err
12724 rm -f conftest.er1
12725 cat conftest.err >&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } >/dev/null && {
12728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12729 test ! -s conftest.err
12730 }; then
12731 ac_header_preproc=yes
12732 else
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12736 ac_header_preproc=no
12739 rm -f conftest.err conftest.$ac_ext
12740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12741 echo "${ECHO_T}$ac_header_preproc" >&6; }
12743 # So? What about this header?
12744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12745 yes:no: )
12746 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12747 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12749 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12750 ac_header_preproc=yes
12752 no:yes:* )
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12760 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12762 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12763 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12764 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12767 esac
12768 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12769 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12770 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12775 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12776 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12779 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12780 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12781 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12782 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785 ac_check_lib_save_LIBS=$LIBS
12786 LIBS="-lXft $XFT_LIBS $LIBS"
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12794 /* Override any GCC internal prototype to avoid an error.
12795 Use char because int might match the return type of a GCC
12796 builtin and then its argument prototype would still apply. */
12797 #ifdef __cplusplus
12798 extern "C"
12799 #endif
12800 char XftFontOpen ();
12802 main ()
12804 return XftFontOpen ();
12806 return 0;
12808 _ACEOF
12809 rm -f conftest.$ac_objext conftest$ac_exeext
12810 if { (ac_try="$ac_link"
12811 case "(($ac_try" in
12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813 *) ac_try_echo=$ac_try;;
12814 esac
12815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12816 (eval "$ac_link") 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } && {
12823 test -z "$ac_c_werror_flag" ||
12824 test ! -s conftest.err
12825 } && test -s conftest$ac_exeext &&
12826 $as_test_x conftest$ac_exeext; then
12827 ac_cv_lib_Xft_XftFontOpen=yes
12828 else
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12832 ac_cv_lib_Xft_XftFontOpen=no
12835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12836 conftest$ac_exeext conftest.$ac_ext
12837 LIBS=$ac_check_lib_save_LIBS
12839 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12840 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12841 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12842 HAVE_XFT=yes
12849 if test "${HAVE_XFT}" = "yes"; then
12851 cat >>confdefs.h <<\_ACEOF
12852 #define HAVE_XFT 1
12853 _ACEOF
12856 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12857 else
12858 CPPFLAGS="$OLD_CPPFLAGS"
12859 CFLAGS="$OLD_CFLAGS"
12860 LIBS="$OLD_LIBS"
12861 fi # "${HAVE_XFT}" = "yes"
12862 fi # "$HAVE_XFT" != no
12863 fi # "x${with_xft}" != "xno"
12865 if test "$HAVE_XFT" != "yes"; then
12866 HAVE_XFT=no
12870 HAVE_FREETYPE=no
12871 ### Use -lfreetype if available, unless `--with-freetype=no'.
12872 if test "${HAVE_XFT}" = "yes"; then
12873 HAVE_FREETYPE=yes
12874 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
12877 succeeded=no
12879 # Extract the first word of "pkg-config", so it can be a program name with args.
12880 set dummy pkg-config; ac_word=$2
12881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886 case $PKG_CONFIG in
12887 [\\/]* | ?:[\\/]*)
12888 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12894 IFS=$as_save_IFS
12895 test -z "$as_dir" && as_dir=.
12896 for ac_exec_ext in '' $ac_executable_extensions; do
12897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12898 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12900 break 2
12902 done
12903 done
12904 IFS=$as_save_IFS
12906 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12908 esac
12910 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12911 if test -n "$PKG_CONFIG"; then
12912 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12913 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12914 else
12915 { echo "$as_me:$LINENO: result: no" >&5
12916 echo "${ECHO_T}no" >&6; }
12921 if test "$PKG_CONFIG" = "no" ; then
12922 HAVE_FREETYPE=no
12923 else
12924 PKG_CONFIG_MIN_VERSION=0.9.0
12925 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12926 { echo "$as_me:$LINENO: checking for freetype2" >&5
12927 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12929 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12930 { echo "$as_me:$LINENO: result: yes" >&5
12931 echo "${ECHO_T}yes" >&6; }
12932 succeeded=yes
12934 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12935 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12936 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12937 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12938 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12940 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12941 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12942 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12943 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12944 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12945 else
12946 { echo "$as_me:$LINENO: result: no" >&5
12947 echo "${ECHO_T}no" >&6; }
12948 FREETYPE_CFLAGS=""
12949 FREETYPE_LIBS=""
12950 ## If we have a custom action on failure, don't print errors, but
12951 ## do set a variable so people can do so.
12952 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12958 else
12959 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12960 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12964 if test $succeeded = yes; then
12965 HAVE_FREETYPE=yes
12966 else
12967 HAVE_FREETYPE=no
12970 if test "${HAVE_FREETYPE}" = "yes"; then
12972 succeeded=no
12974 # Extract the first word of "pkg-config", so it can be a program name with args.
12975 set dummy pkg-config; ac_word=$2
12976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12978 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 case $PKG_CONFIG in
12982 [\\/]* | ?:[\\/]*)
12983 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $PATH
12989 IFS=$as_save_IFS
12990 test -z "$as_dir" && as_dir=.
12991 for ac_exec_ext in '' $ac_executable_extensions; do
12992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12993 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 break 2
12997 done
12998 done
12999 IFS=$as_save_IFS
13001 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13003 esac
13005 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13006 if test -n "$PKG_CONFIG"; then
13007 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13008 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13009 else
13010 { echo "$as_me:$LINENO: result: no" >&5
13011 echo "${ECHO_T}no" >&6; }
13016 if test "$PKG_CONFIG" = "no" ; then
13017 HAVE_FC=no
13018 else
13019 PKG_CONFIG_MIN_VERSION=0.9.0
13020 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13021 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13022 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13024 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13025 { echo "$as_me:$LINENO: result: yes" >&5
13026 echo "${ECHO_T}yes" >&6; }
13027 succeeded=yes
13029 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13030 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13031 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13032 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13033 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13035 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13036 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13037 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13038 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13039 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13040 else
13041 { echo "$as_me:$LINENO: result: no" >&5
13042 echo "${ECHO_T}no" >&6; }
13043 FONTCONFIG_CFLAGS=""
13044 FONTCONFIG_LIBS=""
13045 ## If we have a custom action on failure, don't print errors, but
13046 ## do set a variable so people can do so.
13047 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13053 else
13054 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13055 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13059 if test $succeeded = yes; then
13060 HAVE_FC=yes
13061 else
13062 HAVE_FC=no
13065 if test "${HAVE_FC}" = "no"; then
13066 HAVE_FREETYPE=no
13071 HAVE_LIBOTF=no
13072 if test "${HAVE_FREETYPE}" = "yes"; then
13074 cat >>confdefs.h <<\_ACEOF
13075 #define HAVE_FREETYPE 1
13076 _ACEOF
13078 if test "${with_libotf}" != "no"; then
13080 succeeded=no
13082 # Extract the first word of "pkg-config", so it can be a program name with args.
13083 set dummy pkg-config; ac_word=$2
13084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13086 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089 case $PKG_CONFIG in
13090 [\\/]* | ?:[\\/]*)
13091 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13105 done
13106 done
13107 IFS=$as_save_IFS
13109 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13111 esac
13113 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13114 if test -n "$PKG_CONFIG"; then
13115 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13116 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13117 else
13118 { echo "$as_me:$LINENO: result: no" >&5
13119 echo "${ECHO_T}no" >&6; }
13124 if test "$PKG_CONFIG" = "no" ; then
13125 HAVE_LIBOTF=no
13126 else
13127 PKG_CONFIG_MIN_VERSION=0.9.0
13128 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13129 { echo "$as_me:$LINENO: checking for libotf" >&5
13130 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13132 if $PKG_CONFIG --exists "libotf" 2>&5; then
13133 { echo "$as_me:$LINENO: result: yes" >&5
13134 echo "${ECHO_T}yes" >&6; }
13135 succeeded=yes
13137 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13138 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13139 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13140 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13141 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13143 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13144 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13145 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13146 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13147 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13148 else
13149 { echo "$as_me:$LINENO: result: no" >&5
13150 echo "${ECHO_T}no" >&6; }
13151 LIBOTF_CFLAGS=""
13152 LIBOTF_LIBS=""
13153 ## If we have a custom action on failure, don't print errors, but
13154 ## do set a variable so people can do so.
13155 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13161 else
13162 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13163 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13167 if test $succeeded = yes; then
13168 HAVE_LIBOTF=yes
13169 else
13170 HAVE_LIBOTF=no
13173 if test "$HAVE_LIBOTF" = "yes"; then
13175 cat >>confdefs.h <<\_ACEOF
13176 #define HAVE_LIBOTF 1
13177 _ACEOF
13183 HAVE_M17N_FLT=no
13184 if test "${HAVE_LIBOTF}" = yes; then
13185 if test "${with_m17n_flt}" != "no"; then
13187 succeeded=no
13189 # Extract the first word of "pkg-config", so it can be a program name with args.
13190 set dummy pkg-config; ac_word=$2
13191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13193 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196 case $PKG_CONFIG in
13197 [\\/]* | ?:[\\/]*)
13198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13204 IFS=$as_save_IFS
13205 test -z "$as_dir" && as_dir=.
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13208 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13210 break 2
13212 done
13213 done
13214 IFS=$as_save_IFS
13216 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13218 esac
13220 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13221 if test -n "$PKG_CONFIG"; then
13222 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13223 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13224 else
13225 { echo "$as_me:$LINENO: result: no" >&5
13226 echo "${ECHO_T}no" >&6; }
13231 if test "$PKG_CONFIG" = "no" ; then
13232 HAVE_M17N_FLT=no
13233 else
13234 PKG_CONFIG_MIN_VERSION=0.9.0
13235 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13236 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13237 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13239 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13240 { echo "$as_me:$LINENO: result: yes" >&5
13241 echo "${ECHO_T}yes" >&6; }
13242 succeeded=yes
13244 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13245 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13246 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13247 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13248 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13250 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13251 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13252 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13253 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13254 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13255 else
13256 { echo "$as_me:$LINENO: result: no" >&5
13257 echo "${ECHO_T}no" >&6; }
13258 M17N_FLT_CFLAGS=""
13259 M17N_FLT_LIBS=""
13260 ## If we have a custom action on failure, don't print errors, but
13261 ## do set a variable so people can do so.
13262 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13268 else
13269 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13270 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13274 if test $succeeded = yes; then
13275 HAVE_M17N_FLT=yes
13276 else
13277 HAVE_M17N_FLT=no
13280 if test "$HAVE_M17N_FLT" = "yes"; then
13282 cat >>confdefs.h <<\_ACEOF
13283 #define HAVE_M17N_FLT 1
13284 _ACEOF
13299 ### End of font-backend section.
13301 ### Use -lXpm if available, unless `--with-xpm=no'.
13302 HAVE_XPM=no
13303 if test "${HAVE_X11}" = "yes"; then
13304 if test "${with_xpm}" != "no"; then
13305 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13306 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13307 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13308 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13312 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13313 else
13314 # Is the header compilable?
13315 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13316 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13317 cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h. */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 $ac_includes_default
13324 #include <X11/xpm.h>
13325 _ACEOF
13326 rm -f conftest.$ac_objext
13327 if { (ac_try="$ac_compile"
13328 case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_compile") 2>conftest.er1
13334 ac_status=$?
13335 grep -v '^ *+' conftest.er1 >conftest.err
13336 rm -f conftest.er1
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } && {
13340 test -z "$ac_c_werror_flag" ||
13341 test ! -s conftest.err
13342 } && test -s conftest.$ac_objext; then
13343 ac_header_compiler=yes
13344 else
13345 echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13348 ac_header_compiler=no
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13353 echo "${ECHO_T}$ac_header_compiler" >&6; }
13355 # Is the header present?
13356 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13357 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13358 cat >conftest.$ac_ext <<_ACEOF
13359 /* confdefs.h. */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13364 #include <X11/xpm.h>
13365 _ACEOF
13366 if { (ac_try="$ac_cpp conftest.$ac_ext"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13370 esac
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13373 ac_status=$?
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } >/dev/null && {
13379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13380 test ! -s conftest.err
13381 }; then
13382 ac_header_preproc=yes
13383 else
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 ac_header_preproc=no
13390 rm -f conftest.err conftest.$ac_ext
13391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13392 echo "${ECHO_T}$ac_header_preproc" >&6; }
13394 # So? What about this header?
13395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13396 yes:no: )
13397 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13398 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13399 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13400 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13401 ac_header_preproc=yes
13403 no:yes:* )
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13407 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13409 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13411 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13413 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13414 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13415 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13418 esac
13419 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13420 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13421 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 else
13424 ac_cv_header_X11_xpm_h=$ac_header_preproc
13426 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13427 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13430 if test $ac_cv_header_X11_xpm_h = yes; then
13431 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13432 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13433 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 else
13436 ac_check_lib_save_LIBS=$LIBS
13437 LIBS="-lXpm -lX11 $LIBS"
13438 cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h. */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13445 /* Override any GCC internal prototype to avoid an error.
13446 Use char because int might match the return type of a GCC
13447 builtin and then its argument prototype would still apply. */
13448 #ifdef __cplusplus
13449 extern "C"
13450 #endif
13451 char XpmReadFileToPixmap ();
13453 main ()
13455 return XpmReadFileToPixmap ();
13457 return 0;
13459 _ACEOF
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (ac_try="$ac_link"
13462 case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_link") 2>conftest.er1
13468 ac_status=$?
13469 grep -v '^ *+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && {
13474 test -z "$ac_c_werror_flag" ||
13475 test ! -s conftest.err
13476 } && test -s conftest$ac_exeext &&
13477 $as_test_x conftest$ac_exeext; then
13478 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13479 else
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13487 conftest$ac_exeext conftest.$ac_ext
13488 LIBS=$ac_check_lib_save_LIBS
13490 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13491 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13492 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13493 HAVE_XPM=yes
13499 if test "${HAVE_XPM}" = "yes"; then
13500 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13501 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13502 cat >conftest.$ac_ext <<_ACEOF
13503 /* confdefs.h. */
13504 _ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13508 #include "X11/xpm.h"
13509 #ifndef XpmReturnAllocPixels
13510 no_return_alloc_pixels
13511 #endif
13513 _ACEOF
13514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13515 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13516 HAVE_XPM=no
13517 else
13518 HAVE_XPM=yes
13520 rm -f conftest*
13523 if test "${HAVE_XPM}" = "yes"; then
13524 { echo "$as_me:$LINENO: result: yes" >&5
13525 echo "${ECHO_T}yes" >&6; }
13526 else
13527 { echo "$as_me:$LINENO: result: no" >&5
13528 echo "${ECHO_T}no" >&6; }
13533 if test "${HAVE_XPM}" = "yes"; then
13535 cat >>confdefs.h <<\_ACEOF
13536 #define HAVE_XPM 1
13537 _ACEOF
13542 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13543 HAVE_JPEG=no
13544 if test "${HAVE_X11}" = "yes"; then
13545 if test "${with_jpeg}" != "no"; then
13546 if test "${ac_cv_header_jerror_h+set}" = set; then
13547 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13548 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13549 if test "${ac_cv_header_jerror_h+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13553 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13554 else
13555 # Is the header compilable?
13556 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13557 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h. */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564 $ac_includes_default
13565 #include <jerror.h>
13566 _ACEOF
13567 rm -f conftest.$ac_objext
13568 if { (ac_try="$ac_compile"
13569 case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13572 esac
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_compile") 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } && {
13581 test -z "$ac_c_werror_flag" ||
13582 test ! -s conftest.err
13583 } && test -s conftest.$ac_objext; then
13584 ac_header_compiler=yes
13585 else
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_header_compiler=no
13592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13594 echo "${ECHO_T}$ac_header_compiler" >&6; }
13596 # Is the header present?
13597 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13598 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13599 cat >conftest.$ac_ext <<_ACEOF
13600 /* confdefs.h. */
13601 _ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13605 #include <jerror.h>
13606 _ACEOF
13607 if { (ac_try="$ac_cpp conftest.$ac_ext"
13608 case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13611 esac
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } >/dev/null && {
13620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13622 }; then
13623 ac_header_preproc=yes
13624 else
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_header_preproc=no
13631 rm -f conftest.err conftest.$ac_ext
13632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13633 echo "${ECHO_T}$ac_header_preproc" >&6; }
13635 # So? What about this header?
13636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13637 yes:no: )
13638 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13639 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13640 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13641 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13642 ac_header_preproc=yes
13644 no:yes:* )
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13646 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13648 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13650 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13652 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13654 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13656 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13659 esac
13660 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13661 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13662 if test "${ac_cv_header_jerror_h+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 ac_cv_header_jerror_h=$ac_header_preproc
13667 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13668 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13671 if test $ac_cv_header_jerror_h = yes; then
13672 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13673 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13674 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 else
13677 ac_check_lib_save_LIBS=$LIBS
13678 LIBS="-ljpeg $LIBS"
13679 cat >conftest.$ac_ext <<_ACEOF
13680 /* confdefs.h. */
13681 _ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13686 /* Override any GCC internal prototype to avoid an error.
13687 Use char because int might match the return type of a GCC
13688 builtin and then its argument prototype would still apply. */
13689 #ifdef __cplusplus
13690 extern "C"
13691 #endif
13692 char jpeg_destroy_compress ();
13694 main ()
13696 return jpeg_destroy_compress ();
13698 return 0;
13700 _ACEOF
13701 rm -f conftest.$ac_objext conftest$ac_exeext
13702 if { (ac_try="$ac_link"
13703 case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13706 esac
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_link") 2>conftest.er1
13709 ac_status=$?
13710 grep -v '^ *+' conftest.er1 >conftest.err
13711 rm -f conftest.er1
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } && {
13715 test -z "$ac_c_werror_flag" ||
13716 test ! -s conftest.err
13717 } && test -s conftest$ac_exeext &&
13718 $as_test_x conftest$ac_exeext; then
13719 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13720 else
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13728 conftest$ac_exeext conftest.$ac_ext
13729 LIBS=$ac_check_lib_save_LIBS
13731 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13732 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13733 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13734 HAVE_JPEG=yes
13743 if test "${HAVE_JPEG}" = "yes"; then
13744 cat >>confdefs.h <<\_ACEOF
13745 #define HAVE_JPEG 1
13746 _ACEOF
13748 cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h. */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13754 #include <jpeglib.h>
13755 version=JPEG_LIB_VERSION
13757 _ACEOF
13758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13759 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13760 cat >>confdefs.h <<\_ACEOF
13761 #define HAVE_JPEG 1
13762 _ACEOF
13764 else
13765 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13766 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13767 HAVE_JPEG=no
13769 rm -f conftest*
13774 ### Use -lpng if available, unless `--with-png=no'.
13775 HAVE_PNG=no
13776 if test "${HAVE_X11}" = "yes"; then
13777 if test "${with_png}" != "no"; then
13778 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13779 # in /usr/include/libpng.
13782 for ac_header in png.h libpng/png.h
13784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13791 ac_res=`eval echo '${'$as_ac_Header'}'`
13792 { echo "$as_me:$LINENO: result: $ac_res" >&5
13793 echo "${ECHO_T}$ac_res" >&6; }
13794 else
13795 # Is the header compilable?
13796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13798 cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h. */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13804 $ac_includes_default
13805 #include <$ac_header>
13806 _ACEOF
13807 rm -f conftest.$ac_objext
13808 if { (ac_try="$ac_compile"
13809 case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812 esac
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_compile") 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } && {
13821 test -z "$ac_c_werror_flag" ||
13822 test ! -s conftest.err
13823 } && test -s conftest.$ac_objext; then
13824 ac_header_compiler=yes
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_header_compiler=no
13832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13834 echo "${ECHO_T}$ac_header_compiler" >&6; }
13836 # Is the header present?
13837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13839 cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h. */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13845 #include <$ac_header>
13846 _ACEOF
13847 if { (ac_try="$ac_cpp conftest.$ac_ext"
13848 case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13851 esac
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13854 ac_status=$?
13855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } >/dev/null && {
13860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13861 test ! -s conftest.err
13862 }; then
13863 ac_header_preproc=yes
13864 else
13865 echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13868 ac_header_preproc=no
13871 rm -f conftest.err conftest.$ac_ext
13872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13873 echo "${ECHO_T}$ac_header_preproc" >&6; }
13875 # So? What about this header?
13876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13877 yes:no: )
13878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13882 ac_header_preproc=yes
13884 no:yes:* )
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13899 esac
13900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905 eval "$as_ac_Header=\$ac_header_preproc"
13907 ac_res=`eval echo '${'$as_ac_Header'}'`
13908 { echo "$as_me:$LINENO: result: $ac_res" >&5
13909 echo "${ECHO_T}$ac_res" >&6; }
13912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13913 cat >>confdefs.h <<_ACEOF
13914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13915 _ACEOF
13919 done
13921 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13922 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13923 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13924 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927 ac_check_lib_save_LIBS=$LIBS
13928 LIBS="-lpng -lz -lm $LIBS"
13929 cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13936 /* Override any GCC internal prototype to avoid an error.
13937 Use char because int might match the return type of a GCC
13938 builtin and then its argument prototype would still apply. */
13939 #ifdef __cplusplus
13940 extern "C"
13941 #endif
13942 char png_get_channels ();
13944 main ()
13946 return png_get_channels ();
13948 return 0;
13950 _ACEOF
13951 rm -f conftest.$ac_objext conftest$ac_exeext
13952 if { (ac_try="$ac_link"
13953 case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13956 esac
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_link") 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && {
13965 test -z "$ac_c_werror_flag" ||
13966 test ! -s conftest.err
13967 } && test -s conftest$ac_exeext &&
13968 $as_test_x conftest$ac_exeext; then
13969 ac_cv_lib_png_png_get_channels=yes
13970 else
13971 echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13974 ac_cv_lib_png_png_get_channels=no
13977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13978 conftest$ac_exeext conftest.$ac_ext
13979 LIBS=$ac_check_lib_save_LIBS
13981 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13982 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13983 if test $ac_cv_lib_png_png_get_channels = yes; then
13984 HAVE_PNG=yes
13990 if test "${HAVE_PNG}" = "yes"; then
13992 cat >>confdefs.h <<\_ACEOF
13993 #define HAVE_PNG 1
13994 _ACEOF
13999 ### Use -ltiff if available, unless `--with-tiff=no'.
14000 HAVE_TIFF=no
14001 if test "${HAVE_X11}" = "yes"; then
14002 if test "${with_tiff}" != "no"; then
14003 if test "${ac_cv_header_tiffio_h+set}" = set; then
14004 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14005 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14006 if test "${ac_cv_header_tiffio_h+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14010 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14011 else
14012 # Is the header compilable?
14013 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14014 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h. */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 $ac_includes_default
14022 #include <tiffio.h>
14023 _ACEOF
14024 rm -f conftest.$ac_objext
14025 if { (ac_try="$ac_compile"
14026 case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14029 esac
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_compile") 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } && {
14038 test -z "$ac_c_werror_flag" ||
14039 test ! -s conftest.err
14040 } && test -s conftest.$ac_objext; then
14041 ac_header_compiler=yes
14042 else
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_header_compiler=no
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14051 echo "${ECHO_T}$ac_header_compiler" >&6; }
14053 # Is the header present?
14054 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14055 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14056 cat >conftest.$ac_ext <<_ACEOF
14057 /* confdefs.h. */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14062 #include <tiffio.h>
14063 _ACEOF
14064 if { (ac_try="$ac_cpp conftest.$ac_ext"
14065 case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14068 esac
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } >/dev/null && {
14077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14078 test ! -s conftest.err
14079 }; then
14080 ac_header_preproc=yes
14081 else
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 ac_header_preproc=no
14088 rm -f conftest.err conftest.$ac_ext
14089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14090 echo "${ECHO_T}$ac_header_preproc" >&6; }
14092 # So? What about this header?
14093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14094 yes:no: )
14095 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14096 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14098 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14099 ac_header_preproc=yes
14101 no:yes:* )
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14103 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14105 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14107 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14109 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14111 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14113 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14116 esac
14117 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14118 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14119 if test "${ac_cv_header_tiffio_h+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 else
14122 ac_cv_header_tiffio_h=$ac_header_preproc
14124 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14125 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14128 if test $ac_cv_header_tiffio_h = yes; then
14129 tifflibs="-lz -lm"
14130 # At least one tiff package requires the jpeg library.
14131 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14132 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14133 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14134 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137 ac_check_lib_save_LIBS=$LIBS
14138 LIBS="-ltiff $tifflibs $LIBS"
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14149 #ifdef __cplusplus
14150 extern "C"
14151 #endif
14152 char TIFFGetVersion ();
14154 main ()
14156 return TIFFGetVersion ();
14158 return 0;
14160 _ACEOF
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (ac_try="$ac_link"
14163 case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166 esac
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_link") 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } && {
14175 test -z "$ac_c_werror_flag" ||
14176 test ! -s conftest.err
14177 } && test -s conftest$ac_exeext &&
14178 $as_test_x conftest$ac_exeext; then
14179 ac_cv_lib_tiff_TIFFGetVersion=yes
14180 else
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 ac_cv_lib_tiff_TIFFGetVersion=no
14187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14188 conftest$ac_exeext conftest.$ac_ext
14189 LIBS=$ac_check_lib_save_LIBS
14191 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14192 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14193 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14194 HAVE_TIFF=yes
14202 if test "${HAVE_TIFF}" = "yes"; then
14204 cat >>confdefs.h <<\_ACEOF
14205 #define HAVE_TIFF 1
14206 _ACEOF
14211 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14212 HAVE_GIF=no
14213 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14214 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14215 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14216 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14217 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14221 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14222 else
14223 # Is the header compilable?
14224 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14225 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h. */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14233 #include <gif_lib.h>
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_compile") 2>conftest.er1
14243 ac_status=$?
14244 grep -v '^ *+' conftest.er1 >conftest.err
14245 rm -f conftest.er1
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } && {
14249 test -z "$ac_c_werror_flag" ||
14250 test ! -s conftest.err
14251 } && test -s conftest.$ac_objext; then
14252 ac_header_compiler=yes
14253 else
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ac_header_compiler=no
14260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14262 echo "${ECHO_T}$ac_header_compiler" >&6; }
14264 # Is the header present?
14265 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14266 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14267 cat >conftest.$ac_ext <<_ACEOF
14268 /* confdefs.h. */
14269 _ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 #include <gif_lib.h>
14274 _ACEOF
14275 if { (ac_try="$ac_cpp conftest.$ac_ext"
14276 case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14279 esac
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } >/dev/null && {
14288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14289 test ! -s conftest.err
14290 }; then
14291 ac_header_preproc=yes
14292 else
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14296 ac_header_preproc=no
14299 rm -f conftest.err conftest.$ac_ext
14300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14301 echo "${ECHO_T}$ac_header_preproc" >&6; }
14303 # So? What about this header?
14304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14305 yes:no: )
14306 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14307 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14308 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14309 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14310 ac_header_preproc=yes
14312 no:yes:* )
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14314 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14316 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14318 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14320 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14322 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14324 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14327 esac
14328 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14329 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14330 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333 ac_cv_header_gif_lib_h=$ac_header_preproc
14335 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14336 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14339 if test $ac_cv_header_gif_lib_h = yes; then
14340 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14341 # Earlier versions can crash Emacs.
14342 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14343 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14344 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347 ac_check_lib_save_LIBS=$LIBS
14348 LIBS="-lgif $LIBS"
14349 cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h. */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14356 /* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14359 #ifdef __cplusplus
14360 extern "C"
14361 #endif
14362 char EGifPutExtensionLast ();
14364 main ()
14366 return EGifPutExtensionLast ();
14368 return 0;
14370 _ACEOF
14371 rm -f conftest.$ac_objext conftest$ac_exeext
14372 if { (ac_try="$ac_link"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_link") 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest$ac_exeext &&
14388 $as_test_x conftest$ac_exeext; then
14389 ac_cv_lib_gif_EGifPutExtensionLast=yes
14390 else
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_cv_lib_gif_EGifPutExtensionLast=no
14397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14398 conftest$ac_exeext conftest.$ac_ext
14399 LIBS=$ac_check_lib_save_LIBS
14401 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14402 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14403 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14404 HAVE_GIF=yes
14405 else
14406 try_libungif=yes
14413 if test "$HAVE_GIF" = yes; then
14414 ac_gif_lib_name="-lgif"
14417 # If gif_lib.h but no libgif, try libungif.
14418 if test x"$try_libungif" = xyes; then
14419 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14420 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14421 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424 ac_check_lib_save_LIBS=$LIBS
14425 LIBS="-lungif $LIBS"
14426 cat >conftest.$ac_ext <<_ACEOF
14427 /* confdefs.h. */
14428 _ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14433 /* Override any GCC internal prototype to avoid an error.
14434 Use char because int might match the return type of a GCC
14435 builtin and then its argument prototype would still apply. */
14436 #ifdef __cplusplus
14437 extern "C"
14438 #endif
14439 char EGifPutExtensionLast ();
14441 main ()
14443 return EGifPutExtensionLast ();
14445 return 0;
14447 _ACEOF
14448 rm -f conftest.$ac_objext conftest$ac_exeext
14449 if { (ac_try="$ac_link"
14450 case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14453 esac
14454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455 (eval "$ac_link") 2>conftest.er1
14456 ac_status=$?
14457 grep -v '^ *+' conftest.er1 >conftest.err
14458 rm -f conftest.er1
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } && {
14462 test -z "$ac_c_werror_flag" ||
14463 test ! -s conftest.err
14464 } && test -s conftest$ac_exeext &&
14465 $as_test_x conftest$ac_exeext; then
14466 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14467 else
14468 echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14471 ac_cv_lib_ungif_EGifPutExtensionLast=no
14474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14475 conftest$ac_exeext conftest.$ac_ext
14476 LIBS=$ac_check_lib_save_LIBS
14478 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14479 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14480 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14481 HAVE_GIF=yes
14485 if test "$HAVE_GIF" = yes; then
14487 cat >>confdefs.h <<\_ACEOF
14488 #define LIBGIF -lungif
14489 _ACEOF
14491 ac_gif_lib_name="-lungif"
14495 if test "${HAVE_GIF}" = "yes"; then
14497 cat >>confdefs.h <<\_ACEOF
14498 #define HAVE_GIF 1
14499 _ACEOF
14504 if test "${HAVE_X11}" = "yes"; then
14505 MISSING=""
14506 WITH_NO=""
14507 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14508 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14509 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14510 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14511 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14512 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14513 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14514 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14515 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14516 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14518 if test "X${MISSING}" != X; then
14519 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14520 $MISSING
14521 Maybe some development libraries/packages are missing?
14522 If you don't want to link with them give
14523 $WITH_NO
14524 as options to configure" >&5
14525 echo "$as_me: error: The following required libraries were not found:
14526 $MISSING
14527 Maybe some development libraries/packages are missing?
14528 If you don't want to link with them give
14529 $WITH_NO
14530 as options to configure" >&2;}
14531 { (exit 1); exit 1; }; }
14535 ### Use -lgpm if available, unless `--with-gpm=no'.
14536 HAVE_GPM=no
14537 if test "${with_gpm}" != "no"; then
14538 if test "${ac_cv_header_gpm_h+set}" = set; then
14539 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14540 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14541 if test "${ac_cv_header_gpm_h+set}" = set; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14544 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14545 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14546 else
14547 # Is the header compilable?
14548 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14549 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h. */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 $ac_includes_default
14557 #include <gpm.h>
14558 _ACEOF
14559 rm -f conftest.$ac_objext
14560 if { (ac_try="$ac_compile"
14561 case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_compile") 2>conftest.er1
14567 ac_status=$?
14568 grep -v '^ *+' conftest.er1 >conftest.err
14569 rm -f conftest.er1
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } && {
14573 test -z "$ac_c_werror_flag" ||
14574 test ! -s conftest.err
14575 } && test -s conftest.$ac_objext; then
14576 ac_header_compiler=yes
14577 else
14578 echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14581 ac_header_compiler=no
14584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14586 echo "${ECHO_T}$ac_header_compiler" >&6; }
14588 # Is the header present?
14589 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14590 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14591 cat >conftest.$ac_ext <<_ACEOF
14592 /* confdefs.h. */
14593 _ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 #include <gpm.h>
14598 _ACEOF
14599 if { (ac_try="$ac_cpp conftest.$ac_ext"
14600 case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14603 esac
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14606 ac_status=$?
14607 grep -v '^ *+' conftest.er1 >conftest.err
14608 rm -f conftest.er1
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } >/dev/null && {
14612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14613 test ! -s conftest.err
14614 }; then
14615 ac_header_preproc=yes
14616 else
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14620 ac_header_preproc=no
14623 rm -f conftest.err conftest.$ac_ext
14624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14625 echo "${ECHO_T}$ac_header_preproc" >&6; }
14627 # So? What about this header?
14628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14629 yes:no: )
14630 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14631 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14633 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14634 ac_header_preproc=yes
14636 no:yes:* )
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14638 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14640 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14642 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14644 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14646 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14647 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14648 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14651 esac
14652 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14653 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14654 if test "${ac_cv_header_gpm_h+set}" = set; then
14655 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 else
14657 ac_cv_header_gpm_h=$ac_header_preproc
14659 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14660 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14663 if test $ac_cv_header_gpm_h = yes; then
14664 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14665 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14666 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 else
14669 ac_check_lib_save_LIBS=$LIBS
14670 LIBS="-lgpm $LIBS"
14671 cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h. */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14678 /* Override any GCC internal prototype to avoid an error.
14679 Use char because int might match the return type of a GCC
14680 builtin and then its argument prototype would still apply. */
14681 #ifdef __cplusplus
14682 extern "C"
14683 #endif
14684 char Gpm_Open ();
14686 main ()
14688 return Gpm_Open ();
14690 return 0;
14692 _ACEOF
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_link") 2>conftest.er1
14701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest$ac_exeext &&
14710 $as_test_x conftest$ac_exeext; then
14711 ac_cv_lib_gpm_Gpm_Open=yes
14712 else
14713 echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14716 ac_cv_lib_gpm_Gpm_Open=no
14719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14720 conftest$ac_exeext conftest.$ac_ext
14721 LIBS=$ac_check_lib_save_LIBS
14723 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14724 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14725 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14726 HAVE_GPM=yes
14734 if test "${HAVE_GPM}" = "yes"; then
14736 cat >>confdefs.h <<\_ACEOF
14737 #define HAVE_GPM 1
14738 _ACEOF
14742 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14743 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14744 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14745 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14749 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14750 else
14751 # Is the header compilable?
14752 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14753 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14754 cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h. */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14760 $ac_includes_default
14761 #include <malloc/malloc.h>
14762 _ACEOF
14763 rm -f conftest.$ac_objext
14764 if { (ac_try="$ac_compile"
14765 case "(($ac_try" in
14766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14768 esac
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770 (eval "$ac_compile") 2>conftest.er1
14771 ac_status=$?
14772 grep -v '^ *+' conftest.er1 >conftest.err
14773 rm -f conftest.er1
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } && {
14777 test -z "$ac_c_werror_flag" ||
14778 test ! -s conftest.err
14779 } && test -s conftest.$ac_objext; then
14780 ac_header_compiler=yes
14781 else
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14785 ac_header_compiler=no
14788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14790 echo "${ECHO_T}$ac_header_compiler" >&6; }
14792 # Is the header present?
14793 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14794 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14795 cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h. */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 #include <malloc/malloc.h>
14802 _ACEOF
14803 if { (ac_try="$ac_cpp conftest.$ac_ext"
14804 case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14810 ac_status=$?
14811 grep -v '^ *+' conftest.er1 >conftest.err
14812 rm -f conftest.er1
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } >/dev/null && {
14816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14817 test ! -s conftest.err
14818 }; then
14819 ac_header_preproc=yes
14820 else
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_header_preproc=no
14827 rm -f conftest.err conftest.$ac_ext
14828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14829 echo "${ECHO_T}$ac_header_preproc" >&6; }
14831 # So? What about this header?
14832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14833 yes:no: )
14834 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14835 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14837 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14838 ac_header_preproc=yes
14840 no:yes:* )
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14844 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14846 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14847 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14848 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14850 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14852 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14855 esac
14856 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14857 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14858 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 else
14861 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14863 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14864 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14867 if test $ac_cv_header_malloc_malloc_h = yes; then
14869 cat >>confdefs.h <<\_ACEOF
14870 #define HAVE_MALLOC_MALLOC_H 1
14871 _ACEOF
14877 ### Use NeXTstep API to implement GUI.
14878 if test "${HAVE_NS}" = "yes"; then
14880 cat >>confdefs.h <<\_ACEOF
14881 #define HAVE_NS 1
14882 _ACEOF
14884 if test "${NS_IMPL_COCOA}" = "yes"; then
14886 cat >>confdefs.h <<\_ACEOF
14887 #define NS_IMPL_COCOA 1
14888 _ACEOF
14890 GNU_OBJC_CFLAGS=
14891 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14893 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14895 cat >>confdefs.h <<\_ACEOF
14896 #define COCOA_EXPERIMENTAL_CTRL_G 1
14897 _ACEOF
14900 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14902 cat >>confdefs.h <<\_ACEOF
14903 #define NS_IMPL_GNUSTEP 1
14904 _ACEOF
14906 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14908 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14910 cat >>confdefs.h <<\_ACEOF
14911 #define NS_HAVE_NSINTEGER 1
14912 _ACEOF
14915 # We also have mouse menus.
14916 HAVE_MENUS=yes
14920 ### Use session management (-lSM -lICE) if available
14921 HAVE_X_SM=no
14922 if test "${HAVE_X11}" = "yes"; then
14923 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14924 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14925 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14926 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14930 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14931 else
14932 # Is the header compilable?
14933 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14934 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14935 cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h. */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 $ac_includes_default
14942 #include <X11/SM/SMlib.h>
14943 _ACEOF
14944 rm -f conftest.$ac_objext
14945 if { (ac_try="$ac_compile"
14946 case "(($ac_try" in
14947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948 *) ac_try_echo=$ac_try;;
14949 esac
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951 (eval "$ac_compile") 2>conftest.er1
14952 ac_status=$?
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } && {
14958 test -z "$ac_c_werror_flag" ||
14959 test ! -s conftest.err
14960 } && test -s conftest.$ac_objext; then
14961 ac_header_compiler=yes
14962 else
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ac_header_compiler=no
14969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14971 echo "${ECHO_T}$ac_header_compiler" >&6; }
14973 # Is the header present?
14974 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14975 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14976 cat >conftest.$ac_ext <<_ACEOF
14977 /* confdefs.h. */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14982 #include <X11/SM/SMlib.h>
14983 _ACEOF
14984 if { (ac_try="$ac_cpp conftest.$ac_ext"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } >/dev/null && {
14997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14998 test ! -s conftest.err
14999 }; then
15000 ac_header_preproc=yes
15001 else
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15005 ac_header_preproc=no
15008 rm -f conftest.err conftest.$ac_ext
15009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15010 echo "${ECHO_T}$ac_header_preproc" >&6; }
15012 # So? What about this header?
15013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15014 yes:no: )
15015 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15016 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15018 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15019 ac_header_preproc=yes
15021 no:yes:* )
15022 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15023 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15024 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15025 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15027 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15028 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15029 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15030 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15031 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15033 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15036 esac
15037 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15038 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15039 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 else
15042 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15044 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15045 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15048 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15049 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15050 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15051 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15053 else
15054 ac_check_lib_save_LIBS=$LIBS
15055 LIBS="-lSM -lICE $LIBS"
15056 cat >conftest.$ac_ext <<_ACEOF
15057 /* confdefs.h. */
15058 _ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15063 /* Override any GCC internal prototype to avoid an error.
15064 Use char because int might match the return type of a GCC
15065 builtin and then its argument prototype would still apply. */
15066 #ifdef __cplusplus
15067 extern "C"
15068 #endif
15069 char SmcOpenConnection ();
15071 main ()
15073 return SmcOpenConnection ();
15075 return 0;
15077 _ACEOF
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (ac_try="$ac_link"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_link") 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } && {
15092 test -z "$ac_c_werror_flag" ||
15093 test ! -s conftest.err
15094 } && test -s conftest$ac_exeext &&
15095 $as_test_x conftest$ac_exeext; then
15096 ac_cv_lib_SM_SmcOpenConnection=yes
15097 else
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15101 ac_cv_lib_SM_SmcOpenConnection=no
15104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15105 conftest$ac_exeext conftest.$ac_ext
15106 LIBS=$ac_check_lib_save_LIBS
15108 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15109 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15110 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15111 HAVE_X_SM=yes
15118 if test "${HAVE_X_SM}" = "yes"; then
15120 cat >>confdefs.h <<\_ACEOF
15121 #define HAVE_X_SM 1
15122 _ACEOF
15124 case "$LIBS" in
15125 *-lSM*) ;;
15126 *) LIBS="-lSM -lICE $LIBS" ;;
15127 esac
15131 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15132 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15133 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15134 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137 cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h. */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 #include <netdb.h>
15145 main ()
15147 return h_errno;
15149 return 0;
15151 _ACEOF
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (ac_try="$ac_link"
15154 case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15157 esac
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_link") 2>conftest.er1
15160 ac_status=$?
15161 grep -v '^ *+' conftest.er1 >conftest.err
15162 rm -f conftest.er1
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } && {
15166 test -z "$ac_c_werror_flag" ||
15167 test ! -s conftest.err
15168 } && test -s conftest$ac_exeext &&
15169 $as_test_x conftest$ac_exeext; then
15170 emacs_cv_netdb_declares_h_errno=yes
15171 else
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 emacs_cv_netdb_declares_h_errno=no
15178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15179 conftest$ac_exeext conftest.$ac_ext
15181 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15182 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15183 if test $emacs_cv_netdb_declares_h_errno = yes; then
15185 cat >>confdefs.h <<\_ACEOF
15186 #define HAVE_H_ERRNO 1
15187 _ACEOF
15191 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15192 # for constant arguments. Useless!
15193 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15194 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15195 if test "${ac_cv_working_alloca_h+set}" = set; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 else
15198 cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h. */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15204 #include <alloca.h>
15206 main ()
15208 char *p = (char *) alloca (2 * sizeof (int));
15209 if (p) return 0;
15211 return 0;
15213 _ACEOF
15214 rm -f conftest.$ac_objext conftest$ac_exeext
15215 if { (ac_try="$ac_link"
15216 case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219 esac
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_link") 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_c_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest$ac_exeext &&
15231 $as_test_x conftest$ac_exeext; then
15232 ac_cv_working_alloca_h=yes
15233 else
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ac_cv_working_alloca_h=no
15240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15241 conftest$ac_exeext conftest.$ac_ext
15243 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15244 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15245 if test $ac_cv_working_alloca_h = yes; then
15247 cat >>confdefs.h <<\_ACEOF
15248 #define HAVE_ALLOCA_H 1
15249 _ACEOF
15253 { echo "$as_me:$LINENO: checking for alloca" >&5
15254 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15255 if test "${ac_cv_func_alloca_works+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15258 cat >conftest.$ac_ext <<_ACEOF
15259 /* confdefs.h. */
15260 _ACEOF
15261 cat confdefs.h >>conftest.$ac_ext
15262 cat >>conftest.$ac_ext <<_ACEOF
15263 /* end confdefs.h. */
15264 #ifdef __GNUC__
15265 # define alloca __builtin_alloca
15266 #else
15267 # ifdef _MSC_VER
15268 # include <malloc.h>
15269 # define alloca _alloca
15270 # else
15271 # ifdef HAVE_ALLOCA_H
15272 # include <alloca.h>
15273 # else
15274 # ifdef _AIX
15275 #pragma alloca
15276 # else
15277 # ifndef alloca /* predefined by HP cc +Olibcalls */
15278 char *alloca ();
15279 # endif
15280 # endif
15281 # endif
15282 # endif
15283 #endif
15286 main ()
15288 char *p = (char *) alloca (1);
15289 if (p) return 0;
15291 return 0;
15293 _ACEOF
15294 rm -f conftest.$ac_objext conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15299 esac
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_link") 2>conftest.er1
15302 ac_status=$?
15303 grep -v '^ *+' conftest.er1 >conftest.err
15304 rm -f conftest.er1
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } && {
15308 test -z "$ac_c_werror_flag" ||
15309 test ! -s conftest.err
15310 } && test -s conftest$ac_exeext &&
15311 $as_test_x conftest$ac_exeext; then
15312 ac_cv_func_alloca_works=yes
15313 else
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 ac_cv_func_alloca_works=no
15320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15321 conftest$ac_exeext conftest.$ac_ext
15323 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15324 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15326 if test $ac_cv_func_alloca_works = yes; then
15328 cat >>confdefs.h <<\_ACEOF
15329 #define HAVE_ALLOCA 1
15330 _ACEOF
15332 else
15333 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15334 # that cause trouble. Some versions do not even contain alloca or
15335 # contain a buggy version. If you still want to use their alloca,
15336 # use ar to extract alloca.o from them instead of compiling alloca.c.
15338 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15340 cat >>confdefs.h <<\_ACEOF
15341 #define C_ALLOCA 1
15342 _ACEOF
15345 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15346 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15347 if test "${ac_cv_os_cray+set}" = set; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 else
15350 cat >conftest.$ac_ext <<_ACEOF
15351 /* confdefs.h. */
15352 _ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15356 #if defined CRAY && ! defined CRAY2
15357 webecray
15358 #else
15359 wenotbecray
15360 #endif
15362 _ACEOF
15363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15364 $EGREP "webecray" >/dev/null 2>&1; then
15365 ac_cv_os_cray=yes
15366 else
15367 ac_cv_os_cray=no
15369 rm -f conftest*
15372 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15373 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15374 if test $ac_cv_os_cray = yes; then
15375 for ac_func in _getb67 GETB67 getb67; do
15376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382 cat >conftest.$ac_ext <<_ACEOF
15383 /* confdefs.h. */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15390 #define $ac_func innocuous_$ac_func
15392 /* System header to define __stub macros and hopefully few prototypes,
15393 which can conflict with char $ac_func (); below.
15394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15395 <limits.h> exists even on freestanding compilers. */
15397 #ifdef __STDC__
15398 # include <limits.h>
15399 #else
15400 # include <assert.h>
15401 #endif
15403 #undef $ac_func
15405 /* Override any GCC internal prototype to avoid an error.
15406 Use char because int might match the return type of a GCC
15407 builtin and then its argument prototype would still apply. */
15408 #ifdef __cplusplus
15409 extern "C"
15410 #endif
15411 char $ac_func ();
15412 /* The GNU C library defines this for functions which it implements
15413 to always fail with ENOSYS. Some functions are actually named
15414 something starting with __ and the normal name is an alias. */
15415 #if defined __stub_$ac_func || defined __stub___$ac_func
15416 choke me
15417 #endif
15420 main ()
15422 return $ac_func ();
15424 return 0;
15426 _ACEOF
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (ac_try="$ac_link"
15429 case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_link") 2>conftest.er1
15435 ac_status=$?
15436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } && {
15441 test -z "$ac_c_werror_flag" ||
15442 test ! -s conftest.err
15443 } && test -s conftest$ac_exeext &&
15444 $as_test_x conftest$ac_exeext; then
15445 eval "$as_ac_var=yes"
15446 else
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15450 eval "$as_ac_var=no"
15453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15454 conftest$ac_exeext conftest.$ac_ext
15456 ac_res=`eval echo '${'$as_ac_var'}'`
15457 { echo "$as_me:$LINENO: result: $ac_res" >&5
15458 echo "${ECHO_T}$ac_res" >&6; }
15459 if test `eval echo '${'$as_ac_var'}'` = yes; then
15461 cat >>confdefs.h <<_ACEOF
15462 #define CRAY_STACKSEG_END $ac_func
15463 _ACEOF
15465 break
15468 done
15471 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15472 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15473 if test "${ac_cv_c_stack_direction+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476 if test "$cross_compiling" = yes; then
15477 ac_cv_c_stack_direction=0
15478 else
15479 cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h. */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15485 $ac_includes_default
15487 find_stack_direction ()
15489 static char *addr = 0;
15490 auto char dummy;
15491 if (addr == 0)
15493 addr = &dummy;
15494 return find_stack_direction ();
15496 else
15497 return (&dummy > addr) ? 1 : -1;
15501 main ()
15503 return find_stack_direction () < 0;
15505 _ACEOF
15506 rm -f conftest$ac_exeext
15507 if { (ac_try="$ac_link"
15508 case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15511 esac
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_link") 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15517 { (case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15520 esac
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_try") 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_cv_c_stack_direction=1
15527 else
15528 echo "$as_me: program exited with status $ac_status" >&5
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ( exit $ac_status )
15533 ac_cv_c_stack_direction=-1
15535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15540 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15541 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15543 cat >>confdefs.h <<_ACEOF
15544 #define STACK_DIRECTION $ac_cv_c_stack_direction
15545 _ACEOF
15551 if test x"$ac_cv_func_alloca_works" != xyes; then
15552 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15553 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15554 { (exit 1); exit 1; }; }
15557 # fmod, logb, and frexp are found in -lm on most systems.
15558 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15560 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15561 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15562 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 else
15565 ac_check_lib_save_LIBS=$LIBS
15566 LIBS="-lm $LIBS"
15567 cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h. */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15574 /* Override any GCC internal prototype to avoid an error.
15575 Use char because int might match the return type of a GCC
15576 builtin and then its argument prototype would still apply. */
15577 #ifdef __cplusplus
15578 extern "C"
15579 #endif
15580 char sqrt ();
15582 main ()
15584 return sqrt ();
15586 return 0;
15588 _ACEOF
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_link") 2>conftest.er1
15597 ac_status=$?
15598 grep -v '^ *+' conftest.er1 >conftest.err
15599 rm -f conftest.er1
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && {
15603 test -z "$ac_c_werror_flag" ||
15604 test ! -s conftest.err
15605 } && test -s conftest$ac_exeext &&
15606 $as_test_x conftest$ac_exeext; then
15607 ac_cv_lib_m_sqrt=yes
15608 else
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15612 ac_cv_lib_m_sqrt=no
15615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616 conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15619 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15620 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15621 if test $ac_cv_lib_m_sqrt = yes; then
15622 cat >>confdefs.h <<_ACEOF
15623 #define HAVE_LIBM 1
15624 _ACEOF
15626 LIBS="-lm $LIBS"
15631 # Check for mail-locking functions in a "mail" library. Probably this should
15632 # have the same check as for liblockfile below.
15634 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15635 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15636 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639 ac_check_lib_save_LIBS=$LIBS
15640 LIBS="-lmail $LIBS"
15641 cat >conftest.$ac_ext <<_ACEOF
15642 /* confdefs.h. */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15648 /* Override any GCC internal prototype to avoid an error.
15649 Use char because int might match the return type of a GCC
15650 builtin and then its argument prototype would still apply. */
15651 #ifdef __cplusplus
15652 extern "C"
15653 #endif
15654 char maillock ();
15656 main ()
15658 return maillock ();
15660 return 0;
15662 _ACEOF
15663 rm -f conftest.$ac_objext conftest$ac_exeext
15664 if { (ac_try="$ac_link"
15665 case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15668 esac
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_link") 2>conftest.er1
15671 ac_status=$?
15672 grep -v '^ *+' conftest.er1 >conftest.err
15673 rm -f conftest.er1
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } && {
15677 test -z "$ac_c_werror_flag" ||
15678 test ! -s conftest.err
15679 } && test -s conftest$ac_exeext &&
15680 $as_test_x conftest$ac_exeext; then
15681 ac_cv_lib_mail_maillock=yes
15682 else
15683 echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15686 ac_cv_lib_mail_maillock=no
15689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15690 conftest$ac_exeext conftest.$ac_ext
15691 LIBS=$ac_check_lib_save_LIBS
15693 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15694 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15695 if test $ac_cv_lib_mail_maillock = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define HAVE_LIBMAIL 1
15698 _ACEOF
15700 LIBS="-lmail $LIBS"
15705 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15706 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15707 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710 ac_check_lib_save_LIBS=$LIBS
15711 LIBS="-llockfile $LIBS"
15712 cat >conftest.$ac_ext <<_ACEOF
15713 /* confdefs.h. */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15719 /* Override any GCC internal prototype to avoid an error.
15720 Use char because int might match the return type of a GCC
15721 builtin and then its argument prototype would still apply. */
15722 #ifdef __cplusplus
15723 extern "C"
15724 #endif
15725 char maillock ();
15727 main ()
15729 return maillock ();
15731 return 0;
15733 _ACEOF
15734 rm -f conftest.$ac_objext conftest$ac_exeext
15735 if { (ac_try="$ac_link"
15736 case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15739 esac
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_link") 2>conftest.er1
15742 ac_status=$?
15743 grep -v '^ *+' conftest.er1 >conftest.err
15744 rm -f conftest.er1
15745 cat conftest.err >&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } && {
15748 test -z "$ac_c_werror_flag" ||
15749 test ! -s conftest.err
15750 } && test -s conftest$ac_exeext &&
15751 $as_test_x conftest$ac_exeext; then
15752 ac_cv_lib_lockfile_maillock=yes
15753 else
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15757 ac_cv_lib_lockfile_maillock=no
15760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15761 conftest$ac_exeext conftest.$ac_ext
15762 LIBS=$ac_check_lib_save_LIBS
15764 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15765 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15766 if test $ac_cv_lib_lockfile_maillock = yes; then
15767 cat >>confdefs.h <<_ACEOF
15768 #define HAVE_LIBLOCKFILE 1
15769 _ACEOF
15771 LIBS="-llockfile $LIBS"
15775 # If we have the shared liblockfile, assume we must use it for mail
15776 # locking (e.g. Debian). If we couldn't link against liblockfile
15777 # (no liblockfile.a installed), ensure that we don't need to.
15778 if test "$ac_cv_lib_lockfile_maillock" = no; then
15779 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15780 set dummy liblockfile.so; ac_word=$2
15781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15783 if test "${ac_cv_prog_liblockfile+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786 if test -n "$liblockfile"; then
15787 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15788 else
15789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15790 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15791 for as_dir in $as_dummy
15793 IFS=$as_save_IFS
15794 test -z "$as_dir" && as_dir=.
15795 for ac_exec_ext in '' $ac_executable_extensions; do
15796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15797 ac_cv_prog_liblockfile="yes"
15798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15799 break 2
15801 done
15802 done
15803 IFS=$as_save_IFS
15805 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15808 liblockfile=$ac_cv_prog_liblockfile
15809 if test -n "$liblockfile"; then
15810 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15811 echo "${ECHO_T}$liblockfile" >&6; }
15812 else
15813 { echo "$as_me:$LINENO: result: no" >&5
15814 echo "${ECHO_T}no" >&6; }
15818 if test $ac_cv_prog_liblockfile = yes; then
15819 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15820 This probably means that movemail could lose mail.
15821 There may be a \`development' package to install containing liblockfile." >&5
15822 echo "$as_me: error: Shared liblockfile found but can't link against it.
15823 This probably means that movemail could lose mail.
15824 There may be a \`development' package to install containing liblockfile." >&2;}
15825 { (exit 1); exit 1; }; }
15826 else :
15830 for ac_func in touchlock
15832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 else
15838 cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h. */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15846 #define $ac_func innocuous_$ac_func
15848 /* System header to define __stub macros and hopefully few prototypes,
15849 which can conflict with char $ac_func (); below.
15850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15851 <limits.h> exists even on freestanding compilers. */
15853 #ifdef __STDC__
15854 # include <limits.h>
15855 #else
15856 # include <assert.h>
15857 #endif
15859 #undef $ac_func
15861 /* Override any GCC internal prototype to avoid an error.
15862 Use char because int might match the return type of a GCC
15863 builtin and then its argument prototype would still apply. */
15864 #ifdef __cplusplus
15865 extern "C"
15866 #endif
15867 char $ac_func ();
15868 /* The GNU C library defines this for functions which it implements
15869 to always fail with ENOSYS. Some functions are actually named
15870 something starting with __ and the normal name is an alias. */
15871 #if defined __stub_$ac_func || defined __stub___$ac_func
15872 choke me
15873 #endif
15876 main ()
15878 return $ac_func ();
15880 return 0;
15882 _ACEOF
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (ac_try="$ac_link"
15885 case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_link") 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } && {
15897 test -z "$ac_c_werror_flag" ||
15898 test ! -s conftest.err
15899 } && test -s conftest$ac_exeext &&
15900 $as_test_x conftest$ac_exeext; then
15901 eval "$as_ac_var=yes"
15902 else
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 eval "$as_ac_var=no"
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910 conftest$ac_exeext conftest.$ac_ext
15912 ac_res=`eval echo '${'$as_ac_var'}'`
15913 { echo "$as_me:$LINENO: result: $ac_res" >&5
15914 echo "${ECHO_T}$ac_res" >&6; }
15915 if test `eval echo '${'$as_ac_var'}'` = yes; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15918 _ACEOF
15921 done
15924 for ac_header in maillock.h
15926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 ac_res=`eval echo '${'$as_ac_Header'}'`
15934 { echo "$as_me:$LINENO: result: $ac_res" >&5
15935 echo "${ECHO_T}$ac_res" >&6; }
15936 else
15937 # Is the header compilable?
15938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15940 cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h. */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15946 $ac_includes_default
15947 #include <$ac_header>
15948 _ACEOF
15949 rm -f conftest.$ac_objext
15950 if { (ac_try="$ac_compile"
15951 case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15954 esac
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_compile") 2>conftest.er1
15957 ac_status=$?
15958 grep -v '^ *+' conftest.er1 >conftest.err
15959 rm -f conftest.er1
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && {
15963 test -z "$ac_c_werror_flag" ||
15964 test ! -s conftest.err
15965 } && test -s conftest.$ac_objext; then
15966 ac_header_compiler=yes
15967 else
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 ac_header_compiler=no
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15976 echo "${ECHO_T}$ac_header_compiler" >&6; }
15978 # Is the header present?
15979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15981 cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h. */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15987 #include <$ac_header>
15988 _ACEOF
15989 if { (ac_try="$ac_cpp conftest.$ac_ext"
15990 case "(($ac_try" in
15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15993 esac
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15996 ac_status=$?
15997 grep -v '^ *+' conftest.er1 >conftest.err
15998 rm -f conftest.er1
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } >/dev/null && {
16002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16003 test ! -s conftest.err
16004 }; then
16005 ac_header_preproc=yes
16006 else
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ac_header_preproc=no
16013 rm -f conftest.err conftest.$ac_ext
16014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16015 echo "${ECHO_T}$ac_header_preproc" >&6; }
16017 # So? What about this header?
16018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16019 yes:no: )
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16024 ac_header_preproc=yes
16026 no:yes:* )
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16041 esac
16042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047 eval "$as_ac_Header=\$ac_header_preproc"
16049 ac_res=`eval echo '${'$as_ac_Header'}'`
16050 { echo "$as_me:$LINENO: result: $ac_res" >&5
16051 echo "${ECHO_T}$ac_res" >&6; }
16054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16055 cat >>confdefs.h <<_ACEOF
16056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16057 _ACEOF
16061 done
16135 for ac_func in gethostname getdomainname dup2 \
16136 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16137 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16138 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16139 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16140 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16141 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16142 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16143 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16144 cfmakeraw cfsetspeed
16146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 else
16152 cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h. */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16160 #define $ac_func innocuous_$ac_func
16162 /* System header to define __stub macros and hopefully few prototypes,
16163 which can conflict with char $ac_func (); below.
16164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16165 <limits.h> exists even on freestanding compilers. */
16167 #ifdef __STDC__
16168 # include <limits.h>
16169 #else
16170 # include <assert.h>
16171 #endif
16173 #undef $ac_func
16175 /* Override any GCC internal prototype to avoid an error.
16176 Use char because int might match the return type of a GCC
16177 builtin and then its argument prototype would still apply. */
16178 #ifdef __cplusplus
16179 extern "C"
16180 #endif
16181 char $ac_func ();
16182 /* The GNU C library defines this for functions which it implements
16183 to always fail with ENOSYS. Some functions are actually named
16184 something starting with __ and the normal name is an alias. */
16185 #if defined __stub_$ac_func || defined __stub___$ac_func
16186 choke me
16187 #endif
16190 main ()
16192 return $ac_func ();
16194 return 0;
16196 _ACEOF
16197 rm -f conftest.$ac_objext conftest$ac_exeext
16198 if { (ac_try="$ac_link"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_link") 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && {
16211 test -z "$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 } && test -s conftest$ac_exeext &&
16214 $as_test_x conftest$ac_exeext; then
16215 eval "$as_ac_var=yes"
16216 else
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 eval "$as_ac_var=no"
16223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16224 conftest$ac_exeext conftest.$ac_ext
16226 ac_res=`eval echo '${'$as_ac_var'}'`
16227 { echo "$as_me:$LINENO: result: $ac_res" >&5
16228 echo "${ECHO_T}$ac_res" >&6; }
16229 if test `eval echo '${'$as_ac_var'}'` = yes; then
16230 cat >>confdefs.h <<_ACEOF
16231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16232 _ACEOF
16235 done
16239 for ac_header in sys/un.h
16241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 ac_res=`eval echo '${'$as_ac_Header'}'`
16249 { echo "$as_me:$LINENO: result: $ac_res" >&5
16250 echo "${ECHO_T}$ac_res" >&6; }
16251 else
16252 # Is the header compilable?
16253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16255 cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h. */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261 $ac_includes_default
16262 #include <$ac_header>
16263 _ACEOF
16264 rm -f conftest.$ac_objext
16265 if { (ac_try="$ac_compile"
16266 case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_compile") 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } && {
16278 test -z "$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16280 } && test -s conftest.$ac_objext; then
16281 ac_header_compiler=yes
16282 else
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 ac_header_compiler=no
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16291 echo "${ECHO_T}$ac_header_compiler" >&6; }
16293 # Is the header present?
16294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16296 cat >conftest.$ac_ext <<_ACEOF
16297 /* confdefs.h. */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 #include <$ac_header>
16303 _ACEOF
16304 if { (ac_try="$ac_cpp conftest.$ac_ext"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } >/dev/null && {
16317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 }; then
16320 ac_header_preproc=yes
16321 else
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ac_header_preproc=no
16328 rm -f conftest.err conftest.$ac_ext
16329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16330 echo "${ECHO_T}$ac_header_preproc" >&6; }
16332 # So? What about this header?
16333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16334 yes:no: )
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16339 ac_header_preproc=yes
16341 no:yes:* )
16342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16356 esac
16357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 else
16362 eval "$as_ac_Header=\$ac_header_preproc"
16364 ac_res=`eval echo '${'$as_ac_Header'}'`
16365 { echo "$as_me:$LINENO: result: $ac_res" >&5
16366 echo "${ECHO_T}$ac_res" >&6; }
16369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16370 cat >>confdefs.h <<_ACEOF
16371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16372 _ACEOF
16376 done
16383 for ac_header in $ac_header_list
16385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 ac_res=`eval echo '${'$as_ac_Header'}'`
16393 { echo "$as_me:$LINENO: result: $ac_res" >&5
16394 echo "${ECHO_T}$ac_res" >&6; }
16395 else
16396 # Is the header compilable?
16397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16399 cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h. */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h. */
16405 $ac_includes_default
16406 #include <$ac_header>
16407 _ACEOF
16408 rm -f conftest.$ac_objext
16409 if { (ac_try="$ac_compile"
16410 case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_compile") 2>conftest.er1
16416 ac_status=$?
16417 grep -v '^ *+' conftest.er1 >conftest.err
16418 rm -f conftest.er1
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } && {
16422 test -z "$ac_c_werror_flag" ||
16423 test ! -s conftest.err
16424 } && test -s conftest.$ac_objext; then
16425 ac_header_compiler=yes
16426 else
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_header_compiler=no
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16435 echo "${ECHO_T}$ac_header_compiler" >&6; }
16437 # Is the header present?
16438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16440 cat >conftest.$ac_ext <<_ACEOF
16441 /* confdefs.h. */
16442 _ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16446 #include <$ac_header>
16447 _ACEOF
16448 if { (ac_try="$ac_cpp conftest.$ac_ext"
16449 case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16452 esac
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16455 ac_status=$?
16456 grep -v '^ *+' conftest.er1 >conftest.err
16457 rm -f conftest.er1
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } >/dev/null && {
16461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16462 test ! -s conftest.err
16463 }; then
16464 ac_header_preproc=yes
16465 else
16466 echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16469 ac_header_preproc=no
16472 rm -f conftest.err conftest.$ac_ext
16473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16474 echo "${ECHO_T}$ac_header_preproc" >&6; }
16476 # So? What about this header?
16477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16478 yes:no: )
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16483 ac_header_preproc=yes
16485 no:yes:* )
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16500 esac
16501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16504 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 else
16506 eval "$as_ac_Header=\$ac_header_preproc"
16508 ac_res=`eval echo '${'$as_ac_Header'}'`
16509 { echo "$as_me:$LINENO: result: $ac_res" >&5
16510 echo "${ECHO_T}$ac_res" >&6; }
16513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16514 cat >>confdefs.h <<_ACEOF
16515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16516 _ACEOF
16520 done
16530 for ac_func in $ac_func_list
16532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538 cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h. */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16546 #define $ac_func innocuous_$ac_func
16548 /* System header to define __stub macros and hopefully few prototypes,
16549 which can conflict with char $ac_func (); below.
16550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16551 <limits.h> exists even on freestanding compilers. */
16553 #ifdef __STDC__
16554 # include <limits.h>
16555 #else
16556 # include <assert.h>
16557 #endif
16559 #undef $ac_func
16561 /* Override any GCC internal prototype to avoid an error.
16562 Use char because int might match the return type of a GCC
16563 builtin and then its argument prototype would still apply. */
16564 #ifdef __cplusplus
16565 extern "C"
16566 #endif
16567 char $ac_func ();
16568 /* The GNU C library defines this for functions which it implements
16569 to always fail with ENOSYS. Some functions are actually named
16570 something starting with __ and the normal name is an alias. */
16571 #if defined __stub_$ac_func || defined __stub___$ac_func
16572 choke me
16573 #endif
16576 main ()
16578 return $ac_func ();
16580 return 0;
16582 _ACEOF
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (ac_try="$ac_link"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_link") 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } && {
16597 test -z "$ac_c_werror_flag" ||
16598 test ! -s conftest.err
16599 } && test -s conftest$ac_exeext &&
16600 $as_test_x conftest$ac_exeext; then
16601 eval "$as_ac_var=yes"
16602 else
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 eval "$as_ac_var=no"
16609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16610 conftest$ac_exeext conftest.$ac_ext
16612 ac_res=`eval echo '${'$as_ac_var'}'`
16613 { echo "$as_me:$LINENO: result: $ac_res" >&5
16614 echo "${ECHO_T}$ac_res" >&6; }
16615 if test `eval echo '${'$as_ac_var'}'` = yes; then
16616 cat >>confdefs.h <<_ACEOF
16617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16618 _ACEOF
16621 done
16639 { echo "$as_me:$LINENO: checking for working mktime" >&5
16640 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16641 if test "${ac_cv_func_working_mktime+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644 if test "$cross_compiling" = yes; then
16645 ac_cv_func_working_mktime=no
16646 else
16647 cat >conftest.$ac_ext <<_ACEOF
16648 /* confdefs.h. */
16649 _ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16653 /* Test program from Paul Eggert and Tony Leneis. */
16654 #ifdef TIME_WITH_SYS_TIME
16655 # include <sys/time.h>
16656 # include <time.h>
16657 #else
16658 # ifdef HAVE_SYS_TIME_H
16659 # include <sys/time.h>
16660 # else
16661 # include <time.h>
16662 # endif
16663 #endif
16665 #include <limits.h>
16666 #include <stdlib.h>
16668 #ifdef HAVE_UNISTD_H
16669 # include <unistd.h>
16670 #endif
16672 #ifndef HAVE_ALARM
16673 # define alarm(X) /* empty */
16674 #endif
16676 /* Work around redefinition to rpl_putenv by other config tests. */
16677 #undef putenv
16679 static time_t time_t_max;
16680 static time_t time_t_min;
16682 /* Values we'll use to set the TZ environment variable. */
16683 static char *tz_strings[] = {
16684 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16685 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16687 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16689 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16690 Based on a problem report from Andreas Jaeger. */
16691 static int
16692 spring_forward_gap ()
16694 /* glibc (up to about 1998-10-07) failed this test. */
16695 struct tm tm;
16697 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16698 instead of "TZ=America/Vancouver" in order to detect the bug even
16699 on systems that don't support the Olson extension, or don't have the
16700 full zoneinfo tables installed. */
16701 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16703 tm.tm_year = 98;
16704 tm.tm_mon = 3;
16705 tm.tm_mday = 5;
16706 tm.tm_hour = 2;
16707 tm.tm_min = 0;
16708 tm.tm_sec = 0;
16709 tm.tm_isdst = -1;
16710 return mktime (&tm) != (time_t) -1;
16713 static int
16714 mktime_test1 (now)
16715 time_t now;
16717 struct tm *lt;
16718 return ! (lt = localtime (&now)) || mktime (lt) == now;
16721 static int
16722 mktime_test (now)
16723 time_t now;
16725 return (mktime_test1 (now)
16726 && mktime_test1 ((time_t) (time_t_max - now))
16727 && mktime_test1 ((time_t) (time_t_min + now)));
16730 static int
16731 irix_6_4_bug ()
16733 /* Based on code from Ariel Faigon. */
16734 struct tm tm;
16735 tm.tm_year = 96;
16736 tm.tm_mon = 3;
16737 tm.tm_mday = 0;
16738 tm.tm_hour = 0;
16739 tm.tm_min = 0;
16740 tm.tm_sec = 0;
16741 tm.tm_isdst = -1;
16742 mktime (&tm);
16743 return tm.tm_mon == 2 && tm.tm_mday == 31;
16746 static int
16747 bigtime_test (j)
16748 int j;
16750 struct tm tm;
16751 time_t now;
16752 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16753 now = mktime (&tm);
16754 if (now != (time_t) -1)
16756 struct tm *lt = localtime (&now);
16757 if (! (lt
16758 && lt->tm_year == tm.tm_year
16759 && lt->tm_mon == tm.tm_mon
16760 && lt->tm_mday == tm.tm_mday
16761 && lt->tm_hour == tm.tm_hour
16762 && lt->tm_min == tm.tm_min
16763 && lt->tm_sec == tm.tm_sec
16764 && lt->tm_yday == tm.tm_yday
16765 && lt->tm_wday == tm.tm_wday
16766 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16767 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16768 return 0;
16770 return 1;
16773 static int
16774 year_2050_test ()
16776 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16777 ignoring leap seconds. */
16778 unsigned long int answer = 2527315200UL;
16780 struct tm tm;
16781 time_t t;
16782 tm.tm_year = 2050 - 1900;
16783 tm.tm_mon = 2 - 1;
16784 tm.tm_mday = 1;
16785 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16786 tm.tm_isdst = -1;
16788 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16789 instead of "TZ=America/Vancouver" in order to detect the bug even
16790 on systems that don't support the Olson extension, or don't have the
16791 full zoneinfo tables installed. */
16792 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16794 t = mktime (&tm);
16796 /* Check that the result is either a failure, or close enough
16797 to the correct answer that we can assume the discrepancy is
16798 due to leap seconds. */
16799 return (t == (time_t) -1
16800 || (0 < t && answer - 120 <= t && t <= answer + 120));
16804 main ()
16806 time_t t, delta;
16807 int i, j;
16809 /* This test makes some buggy mktime implementations loop.
16810 Give up after 60 seconds; a mktime slower than that
16811 isn't worth using anyway. */
16812 alarm (60);
16814 for (;;)
16816 t = (time_t_max << 1) + 1;
16817 if (t <= time_t_max)
16818 break;
16819 time_t_max = t;
16821 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16823 delta = time_t_max / 997; /* a suitable prime number */
16824 for (i = 0; i < N_STRINGS; i++)
16826 if (tz_strings[i])
16827 putenv (tz_strings[i]);
16829 for (t = 0; t <= time_t_max - delta; t += delta)
16830 if (! mktime_test (t))
16831 return 1;
16832 if (! (mktime_test ((time_t) 1)
16833 && mktime_test ((time_t) (60 * 60))
16834 && mktime_test ((time_t) (60 * 60 * 24))))
16835 return 1;
16837 for (j = 1; ; j <<= 1)
16838 if (! bigtime_test (j))
16839 return 1;
16840 else if (INT_MAX / 2 < j)
16841 break;
16842 if (! bigtime_test (INT_MAX))
16843 return 1;
16845 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16847 _ACEOF
16848 rm -f conftest$ac_exeext
16849 if { (ac_try="$ac_link"
16850 case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16853 esac
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_link") 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16859 { (case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862 esac
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_try") 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_func_working_mktime=yes
16869 else
16870 echo "$as_me: program exited with status $ac_status" >&5
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16874 ( exit $ac_status )
16875 ac_cv_func_working_mktime=no
16877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16882 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16883 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16884 if test $ac_cv_func_working_mktime = no; then
16885 case " $LIBOBJS " in
16886 *" mktime.$ac_objext "* ) ;;
16887 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16889 esac
16893 if test "$ac_cv_func_working_mktime" = no; then
16895 cat >>confdefs.h <<\_ACEOF
16896 #define BROKEN_MKTIME 1
16897 _ACEOF
16901 ac_have_func=no # yes means we've found a way to get the load average.
16903 # Make sure getloadavg.c is where it belongs, at configure-time.
16904 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16905 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16906 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16907 { (exit 1); exit 1; }; }
16909 ac_save_LIBS=$LIBS
16911 # Check for getloadavg, but be sure not to touch the cache variable.
16912 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16913 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16914 if test "${ac_cv_func_getloadavg+set}" = set; then
16915 echo $ECHO_N "(cached) $ECHO_C" >&6
16916 else
16917 cat >conftest.$ac_ext <<_ACEOF
16918 /* confdefs.h. */
16919 _ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16923 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16925 #define getloadavg innocuous_getloadavg
16927 /* System header to define __stub macros and hopefully few prototypes,
16928 which can conflict with char getloadavg (); below.
16929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16930 <limits.h> exists even on freestanding compilers. */
16932 #ifdef __STDC__
16933 # include <limits.h>
16934 #else
16935 # include <assert.h>
16936 #endif
16938 #undef getloadavg
16940 /* Override any GCC internal prototype to avoid an error.
16941 Use char because int might match the return type of a GCC
16942 builtin and then its argument prototype would still apply. */
16943 #ifdef __cplusplus
16944 extern "C"
16945 #endif
16946 char getloadavg ();
16947 /* The GNU C library defines this for functions which it implements
16948 to always fail with ENOSYS. Some functions are actually named
16949 something starting with __ and the normal name is an alias. */
16950 #if defined __stub_getloadavg || defined __stub___getloadavg
16951 choke me
16952 #endif
16955 main ()
16957 return getloadavg ();
16959 return 0;
16961 _ACEOF
16962 rm -f conftest.$ac_objext conftest$ac_exeext
16963 if { (ac_try="$ac_link"
16964 case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_link") 2>conftest.er1
16970 ac_status=$?
16971 grep -v '^ *+' conftest.er1 >conftest.err
16972 rm -f conftest.er1
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } && {
16976 test -z "$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16978 } && test -s conftest$ac_exeext &&
16979 $as_test_x conftest$ac_exeext; then
16980 ac_cv_func_getloadavg=yes
16981 else
16982 echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 ac_cv_func_getloadavg=no
16988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16989 conftest$ac_exeext conftest.$ac_ext
16991 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16992 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16993 if test $ac_cv_func_getloadavg = yes; then
16994 exit 0
16995 else
16996 exit 1
16998 ) && ac_have_func=yes
17000 # On HPUX9, an unprivileged user can get load averages through this function.
17002 for ac_func in pstat_getdynamic
17004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17018 #define $ac_func innocuous_$ac_func
17020 /* System header to define __stub macros and hopefully few prototypes,
17021 which can conflict with char $ac_func (); below.
17022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17023 <limits.h> exists even on freestanding compilers. */
17025 #ifdef __STDC__
17026 # include <limits.h>
17027 #else
17028 # include <assert.h>
17029 #endif
17031 #undef $ac_func
17033 /* Override any GCC internal prototype to avoid an error.
17034 Use char because int might match the return type of a GCC
17035 builtin and then its argument prototype would still apply. */
17036 #ifdef __cplusplus
17037 extern "C"
17038 #endif
17039 char $ac_func ();
17040 /* The GNU C library defines this for functions which it implements
17041 to always fail with ENOSYS. Some functions are actually named
17042 something starting with __ and the normal name is an alias. */
17043 #if defined __stub_$ac_func || defined __stub___$ac_func
17044 choke me
17045 #endif
17048 main ()
17050 return $ac_func ();
17052 return 0;
17054 _ACEOF
17055 rm -f conftest.$ac_objext conftest$ac_exeext
17056 if { (ac_try="$ac_link"
17057 case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060 esac
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_link") 2>conftest.er1
17063 ac_status=$?
17064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } && {
17069 test -z "$ac_c_werror_flag" ||
17070 test ! -s conftest.err
17071 } && test -s conftest$ac_exeext &&
17072 $as_test_x conftest$ac_exeext; then
17073 eval "$as_ac_var=yes"
17074 else
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 eval "$as_ac_var=no"
17081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17082 conftest$ac_exeext conftest.$ac_ext
17084 ac_res=`eval echo '${'$as_ac_var'}'`
17085 { echo "$as_me:$LINENO: result: $ac_res" >&5
17086 echo "${ECHO_T}$ac_res" >&6; }
17087 if test `eval echo '${'$as_ac_var'}'` = yes; then
17088 cat >>confdefs.h <<_ACEOF
17089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17090 _ACEOF
17093 done
17096 # Solaris has libkstat which does not require root.
17098 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17099 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17100 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 else
17103 ac_check_lib_save_LIBS=$LIBS
17104 LIBS="-lkstat $LIBS"
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h. */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17112 /* Override any GCC internal prototype to avoid an error.
17113 Use char because int might match the return type of a GCC
17114 builtin and then its argument prototype would still apply. */
17115 #ifdef __cplusplus
17116 extern "C"
17117 #endif
17118 char kstat_open ();
17120 main ()
17122 return kstat_open ();
17124 return 0;
17126 _ACEOF
17127 rm -f conftest.$ac_objext conftest$ac_exeext
17128 if { (ac_try="$ac_link"
17129 case "(($ac_try" in
17130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131 *) ac_try_echo=$ac_try;;
17132 esac
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134 (eval "$ac_link") 2>conftest.er1
17135 ac_status=$?
17136 grep -v '^ *+' conftest.er1 >conftest.err
17137 rm -f conftest.er1
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } && {
17141 test -z "$ac_c_werror_flag" ||
17142 test ! -s conftest.err
17143 } && test -s conftest$ac_exeext &&
17144 $as_test_x conftest$ac_exeext; then
17145 ac_cv_lib_kstat_kstat_open=yes
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17150 ac_cv_lib_kstat_kstat_open=no
17153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17154 conftest$ac_exeext conftest.$ac_ext
17155 LIBS=$ac_check_lib_save_LIBS
17157 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17158 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17159 if test $ac_cv_lib_kstat_kstat_open = yes; then
17160 cat >>confdefs.h <<_ACEOF
17161 #define HAVE_LIBKSTAT 1
17162 _ACEOF
17164 LIBS="-lkstat $LIBS"
17168 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17170 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17171 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17172 # to get the right answer into the cache.
17173 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17174 if test $ac_have_func = no; then
17175 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17176 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17177 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 else
17180 ac_check_lib_save_LIBS=$LIBS
17181 LIBS="-lelf $LIBS"
17182 cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h. */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17189 /* Override any GCC internal prototype to avoid an error.
17190 Use char because int might match the return type of a GCC
17191 builtin and then its argument prototype would still apply. */
17192 #ifdef __cplusplus
17193 extern "C"
17194 #endif
17195 char elf_begin ();
17197 main ()
17199 return elf_begin ();
17201 return 0;
17203 _ACEOF
17204 rm -f conftest.$ac_objext conftest$ac_exeext
17205 if { (ac_try="$ac_link"
17206 case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_link") 2>conftest.er1
17212 ac_status=$?
17213 grep -v '^ *+' conftest.er1 >conftest.err
17214 rm -f conftest.er1
17215 cat conftest.err >&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } && {
17218 test -z "$ac_c_werror_flag" ||
17219 test ! -s conftest.err
17220 } && test -s conftest$ac_exeext &&
17221 $as_test_x conftest$ac_exeext; then
17222 ac_cv_lib_elf_elf_begin=yes
17223 else
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 ac_cv_lib_elf_elf_begin=no
17230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17231 conftest$ac_exeext conftest.$ac_ext
17232 LIBS=$ac_check_lib_save_LIBS
17234 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17235 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17236 if test $ac_cv_lib_elf_elf_begin = yes; then
17237 LIBS="-lelf $LIBS"
17241 if test $ac_have_func = no; then
17242 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17243 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17244 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17246 else
17247 ac_check_lib_save_LIBS=$LIBS
17248 LIBS="-lkvm $LIBS"
17249 cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h. */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17256 /* Override any GCC internal prototype to avoid an error.
17257 Use char because int might match the return type of a GCC
17258 builtin and then its argument prototype would still apply. */
17259 #ifdef __cplusplus
17260 extern "C"
17261 #endif
17262 char kvm_open ();
17264 main ()
17266 return kvm_open ();
17268 return 0;
17270 _ACEOF
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest$ac_exeext &&
17288 $as_test_x conftest$ac_exeext; then
17289 ac_cv_lib_kvm_kvm_open=yes
17290 else
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 ac_cv_lib_kvm_kvm_open=no
17297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17298 conftest$ac_exeext conftest.$ac_ext
17299 LIBS=$ac_check_lib_save_LIBS
17301 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17302 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17303 if test $ac_cv_lib_kvm_kvm_open = yes; then
17304 LIBS="-lkvm $LIBS"
17307 # Check for the 4.4BSD definition of getloadavg.
17308 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17309 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17310 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313 ac_check_lib_save_LIBS=$LIBS
17314 LIBS="-lutil $LIBS"
17315 cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h. */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17322 /* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17325 #ifdef __cplusplus
17326 extern "C"
17327 #endif
17328 char getloadavg ();
17330 main ()
17332 return getloadavg ();
17334 return 0;
17336 _ACEOF
17337 rm -f conftest.$ac_objext conftest$ac_exeext
17338 if { (ac_try="$ac_link"
17339 case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17342 esac
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_link") 2>conftest.er1
17345 ac_status=$?
17346 grep -v '^ *+' conftest.er1 >conftest.err
17347 rm -f conftest.er1
17348 cat conftest.err >&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } && {
17351 test -z "$ac_c_werror_flag" ||
17352 test ! -s conftest.err
17353 } && test -s conftest$ac_exeext &&
17354 $as_test_x conftest$ac_exeext; then
17355 ac_cv_lib_util_getloadavg=yes
17356 else
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 ac_cv_lib_util_getloadavg=no
17363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17364 conftest$ac_exeext conftest.$ac_ext
17365 LIBS=$ac_check_lib_save_LIBS
17367 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17368 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17369 if test $ac_cv_lib_util_getloadavg = yes; then
17370 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17375 if test $ac_have_func = no; then
17376 # There is a commonly available library for RS/6000 AIX.
17377 # Since it is not a standard part of AIX, it might be installed locally.
17378 ac_getloadavg_LIBS=$LIBS
17379 LIBS="-L/usr/local/lib $LIBS"
17380 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17381 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17382 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385 ac_check_lib_save_LIBS=$LIBS
17386 LIBS="-lgetloadavg $LIBS"
17387 cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h. */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17394 /* Override any GCC internal prototype to avoid an error.
17395 Use char because int might match the return type of a GCC
17396 builtin and then its argument prototype would still apply. */
17397 #ifdef __cplusplus
17398 extern "C"
17399 #endif
17400 char getloadavg ();
17402 main ()
17404 return getloadavg ();
17406 return 0;
17408 _ACEOF
17409 rm -f conftest.$ac_objext conftest$ac_exeext
17410 if { (ac_try="$ac_link"
17411 case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17414 esac
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_link") 2>conftest.er1
17417 ac_status=$?
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && {
17423 test -z "$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17425 } && test -s conftest$ac_exeext &&
17426 $as_test_x conftest$ac_exeext; then
17427 ac_cv_lib_getloadavg_getloadavg=yes
17428 else
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 ac_cv_lib_getloadavg_getloadavg=no
17435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17436 conftest$ac_exeext conftest.$ac_ext
17437 LIBS=$ac_check_lib_save_LIBS
17439 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17440 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17441 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17442 LIBS="-lgetloadavg $LIBS"
17443 else
17444 LIBS=$ac_getloadavg_LIBS
17449 # Make sure it is really in the library, if we think we found it,
17450 # otherwise set up the replacement function.
17452 for ac_func in getloadavg
17454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 else
17460 cat >conftest.$ac_ext <<_ACEOF
17461 /* confdefs.h. */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17468 #define $ac_func innocuous_$ac_func
17470 /* System header to define __stub macros and hopefully few prototypes,
17471 which can conflict with char $ac_func (); below.
17472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473 <limits.h> exists even on freestanding compilers. */
17475 #ifdef __STDC__
17476 # include <limits.h>
17477 #else
17478 # include <assert.h>
17479 #endif
17481 #undef $ac_func
17483 /* Override any GCC internal prototype to avoid an error.
17484 Use char because int might match the return type of a GCC
17485 builtin and then its argument prototype would still apply. */
17486 #ifdef __cplusplus
17487 extern "C"
17488 #endif
17489 char $ac_func ();
17490 /* The GNU C library defines this for functions which it implements
17491 to always fail with ENOSYS. Some functions are actually named
17492 something starting with __ and the normal name is an alias. */
17493 #if defined __stub_$ac_func || defined __stub___$ac_func
17494 choke me
17495 #endif
17498 main ()
17500 return $ac_func ();
17502 return 0;
17504 _ACEOF
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } && {
17519 test -z "$ac_c_werror_flag" ||
17520 test ! -s conftest.err
17521 } && test -s conftest$ac_exeext &&
17522 $as_test_x conftest$ac_exeext; then
17523 eval "$as_ac_var=yes"
17524 else
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17528 eval "$as_ac_var=no"
17531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17532 conftest$ac_exeext conftest.$ac_ext
17534 ac_res=`eval echo '${'$as_ac_var'}'`
17535 { echo "$as_me:$LINENO: result: $ac_res" >&5
17536 echo "${ECHO_T}$ac_res" >&6; }
17537 if test `eval echo '${'$as_ac_var'}'` = yes; then
17538 cat >>confdefs.h <<_ACEOF
17539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17540 _ACEOF
17542 else
17543 case " $LIBOBJS " in
17544 *" getloadavg.$ac_objext "* ) ;;
17545 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17547 esac
17550 cat >>confdefs.h <<\_ACEOF
17551 #define C_GETLOADAVG 1
17552 _ACEOF
17554 # Figure out what our getloadavg.c needs.
17555 ac_have_func=no
17556 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17557 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17558 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17559 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17563 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17564 else
17565 # Is the header compilable?
17566 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17567 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17568 cat >conftest.$ac_ext <<_ACEOF
17569 /* confdefs.h. */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 $ac_includes_default
17575 #include <sys/dg_sys_info.h>
17576 _ACEOF
17577 rm -f conftest.$ac_objext
17578 if { (ac_try="$ac_compile"
17579 case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_compile") 2>conftest.er1
17585 ac_status=$?
17586 grep -v '^ *+' conftest.er1 >conftest.err
17587 rm -f conftest.er1
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } && {
17591 test -z "$ac_c_werror_flag" ||
17592 test ! -s conftest.err
17593 } && test -s conftest.$ac_objext; then
17594 ac_header_compiler=yes
17595 else
17596 echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17599 ac_header_compiler=no
17602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17604 echo "${ECHO_T}$ac_header_compiler" >&6; }
17606 # Is the header present?
17607 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17608 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17609 cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h. */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17615 #include <sys/dg_sys_info.h>
17616 _ACEOF
17617 if { (ac_try="$ac_cpp conftest.$ac_ext"
17618 case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17621 esac
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17624 ac_status=$?
17625 grep -v '^ *+' conftest.er1 >conftest.err
17626 rm -f conftest.er1
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } >/dev/null && {
17630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17631 test ! -s conftest.err
17632 }; then
17633 ac_header_preproc=yes
17634 else
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 ac_header_preproc=no
17641 rm -f conftest.err conftest.$ac_ext
17642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17643 echo "${ECHO_T}$ac_header_preproc" >&6; }
17645 # So? What about this header?
17646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17647 yes:no: )
17648 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17649 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17650 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17651 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17652 ac_header_preproc=yes
17654 no:yes:* )
17655 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17656 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17657 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17658 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17659 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17660 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17661 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17662 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17663 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17664 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17665 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17666 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17669 esac
17670 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17671 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17672 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17674 else
17675 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17677 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17678 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17681 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17682 ac_have_func=yes
17684 cat >>confdefs.h <<\_ACEOF
17685 #define DGUX 1
17686 _ACEOF
17689 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17690 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17691 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 else
17694 ac_check_lib_save_LIBS=$LIBS
17695 LIBS="-ldgc $LIBS"
17696 cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h. */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17703 /* Override any GCC internal prototype to avoid an error.
17704 Use char because int might match the return type of a GCC
17705 builtin and then its argument prototype would still apply. */
17706 #ifdef __cplusplus
17707 extern "C"
17708 #endif
17709 char dg_sys_info ();
17711 main ()
17713 return dg_sys_info ();
17715 return 0;
17717 _ACEOF
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (ac_try="$ac_link"
17720 case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_link") 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } && {
17732 test -z "$ac_c_werror_flag" ||
17733 test ! -s conftest.err
17734 } && test -s conftest$ac_exeext &&
17735 $as_test_x conftest$ac_exeext; then
17736 ac_cv_lib_dgc_dg_sys_info=yes
17737 else
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 ac_cv_lib_dgc_dg_sys_info=no
17744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17745 conftest$ac_exeext conftest.$ac_ext
17746 LIBS=$ac_check_lib_save_LIBS
17748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17749 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17750 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17751 cat >>confdefs.h <<_ACEOF
17752 #define HAVE_LIBDGC 1
17753 _ACEOF
17755 LIBS="-ldgc $LIBS"
17763 if test "${ac_cv_header_locale_h+set}" = set; then
17764 { echo "$as_me:$LINENO: checking for locale.h" >&5
17765 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17766 if test "${ac_cv_header_locale_h+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17770 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17771 else
17772 # Is the header compilable?
17773 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17774 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17775 cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h. */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781 $ac_includes_default
17782 #include <locale.h>
17783 _ACEOF
17784 rm -f conftest.$ac_objext
17785 if { (ac_try="$ac_compile"
17786 case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17789 esac
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791 (eval "$ac_compile") 2>conftest.er1
17792 ac_status=$?
17793 grep -v '^ *+' conftest.er1 >conftest.err
17794 rm -f conftest.er1
17795 cat conftest.err >&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } && {
17798 test -z "$ac_c_werror_flag" ||
17799 test ! -s conftest.err
17800 } && test -s conftest.$ac_objext; then
17801 ac_header_compiler=yes
17802 else
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17806 ac_header_compiler=no
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17811 echo "${ECHO_T}$ac_header_compiler" >&6; }
17813 # Is the header present?
17814 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17815 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17816 cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h. */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17822 #include <locale.h>
17823 _ACEOF
17824 if { (ac_try="$ac_cpp conftest.$ac_ext"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17831 ac_status=$?
17832 grep -v '^ *+' conftest.er1 >conftest.err
17833 rm -f conftest.er1
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } >/dev/null && {
17837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 }; then
17840 ac_header_preproc=yes
17841 else
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 ac_header_preproc=no
17848 rm -f conftest.err conftest.$ac_ext
17849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17850 echo "${ECHO_T}$ac_header_preproc" >&6; }
17852 # So? What about this header?
17853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17854 yes:no: )
17855 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17856 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17857 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17858 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17859 ac_header_preproc=yes
17861 no:yes:* )
17862 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17863 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17864 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17865 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17866 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17867 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17868 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17869 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17870 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17871 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17872 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17873 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17876 esac
17877 { echo "$as_me:$LINENO: checking for locale.h" >&5
17878 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17879 if test "${ac_cv_header_locale_h+set}" = set; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 else
17882 ac_cv_header_locale_h=$ac_header_preproc
17884 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17885 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17891 for ac_func in setlocale
17893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17897 echo $ECHO_N "(cached) $ECHO_C" >&6
17898 else
17899 cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h. */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17907 #define $ac_func innocuous_$ac_func
17909 /* System header to define __stub macros and hopefully few prototypes,
17910 which can conflict with char $ac_func (); below.
17911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17912 <limits.h> exists even on freestanding compilers. */
17914 #ifdef __STDC__
17915 # include <limits.h>
17916 #else
17917 # include <assert.h>
17918 #endif
17920 #undef $ac_func
17922 /* Override any GCC internal prototype to avoid an error.
17923 Use char because int might match the return type of a GCC
17924 builtin and then its argument prototype would still apply. */
17925 #ifdef __cplusplus
17926 extern "C"
17927 #endif
17928 char $ac_func ();
17929 /* The GNU C library defines this for functions which it implements
17930 to always fail with ENOSYS. Some functions are actually named
17931 something starting with __ and the normal name is an alias. */
17932 #if defined __stub_$ac_func || defined __stub___$ac_func
17933 choke me
17934 #endif
17937 main ()
17939 return $ac_func ();
17941 return 0;
17943 _ACEOF
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (ac_try="$ac_link"
17946 case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17949 esac
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_link") 2>conftest.er1
17952 ac_status=$?
17953 grep -v '^ *+' conftest.er1 >conftest.err
17954 rm -f conftest.er1
17955 cat conftest.err >&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } && {
17958 test -z "$ac_c_werror_flag" ||
17959 test ! -s conftest.err
17960 } && test -s conftest$ac_exeext &&
17961 $as_test_x conftest$ac_exeext; then
17962 eval "$as_ac_var=yes"
17963 else
17964 echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17967 eval "$as_ac_var=no"
17970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17971 conftest$ac_exeext conftest.$ac_ext
17973 ac_res=`eval echo '${'$as_ac_var'}'`
17974 { echo "$as_me:$LINENO: result: $ac_res" >&5
17975 echo "${ECHO_T}$ac_res" >&6; }
17976 if test `eval echo '${'$as_ac_var'}'` = yes; then
17977 cat >>confdefs.h <<_ACEOF
17978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17979 _ACEOF
17982 done
17985 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17986 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17987 # Irix 4.0.5F has the header but not the library.
17988 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17989 ac_have_func=yes
17991 cat >>confdefs.h <<\_ACEOF
17992 #define SVR4 1
17993 _ACEOF
17997 if test $ac_have_func = no; then
17998 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17999 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18000 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18001 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18005 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18006 else
18007 # Is the header compilable?
18008 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18009 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18010 cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h. */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h. */
18016 $ac_includes_default
18017 #include <inq_stats/cpustats.h>
18018 _ACEOF
18019 rm -f conftest.$ac_objext
18020 if { (ac_try="$ac_compile"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_compile") 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } && {
18033 test -z "$ac_c_werror_flag" ||
18034 test ! -s conftest.err
18035 } && test -s conftest.$ac_objext; then
18036 ac_header_compiler=yes
18037 else
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18041 ac_header_compiler=no
18044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18046 echo "${ECHO_T}$ac_header_compiler" >&6; }
18048 # Is the header present?
18049 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18050 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18051 cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h. */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057 #include <inq_stats/cpustats.h>
18058 _ACEOF
18059 if { (ac_try="$ac_cpp conftest.$ac_ext"
18060 case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18063 esac
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18066 ac_status=$?
18067 grep -v '^ *+' conftest.er1 >conftest.err
18068 rm -f conftest.er1
18069 cat conftest.err >&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); } >/dev/null && {
18072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18073 test ! -s conftest.err
18074 }; then
18075 ac_header_preproc=yes
18076 else
18077 echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18080 ac_header_preproc=no
18083 rm -f conftest.err conftest.$ac_ext
18084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18085 echo "${ECHO_T}$ac_header_preproc" >&6; }
18087 # So? What about this header?
18088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18089 yes:no: )
18090 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18091 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18092 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18093 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18094 ac_header_preproc=yes
18096 no:yes:* )
18097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18098 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18099 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18100 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18101 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18102 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18103 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18104 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18105 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18106 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18107 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18108 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18111 esac
18112 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18113 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18114 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18119 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18120 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18123 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18124 ac_have_func=yes
18126 cat >>confdefs.h <<\_ACEOF
18127 #define UMAX 1
18128 _ACEOF
18131 cat >>confdefs.h <<\_ACEOF
18132 #define UMAX4_3 1
18133 _ACEOF
18140 if test $ac_have_func = no; then
18141 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18142 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18143 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18144 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18148 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18149 else
18150 # Is the header compilable?
18151 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18152 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18153 cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h. */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 $ac_includes_default
18160 #include <sys/cpustats.h>
18161 _ACEOF
18162 rm -f conftest.$ac_objext
18163 if { (ac_try="$ac_compile"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_compile") 2>conftest.er1
18170 ac_status=$?
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } && {
18176 test -z "$ac_c_werror_flag" ||
18177 test ! -s conftest.err
18178 } && test -s conftest.$ac_objext; then
18179 ac_header_compiler=yes
18180 else
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ac_header_compiler=no
18187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18189 echo "${ECHO_T}$ac_header_compiler" >&6; }
18191 # Is the header present?
18192 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18193 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18194 cat >conftest.$ac_ext <<_ACEOF
18195 /* confdefs.h. */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 #include <sys/cpustats.h>
18201 _ACEOF
18202 if { (ac_try="$ac_cpp conftest.$ac_ext"
18203 case "(($ac_try" in
18204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205 *) ac_try_echo=$ac_try;;
18206 esac
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18209 ac_status=$?
18210 grep -v '^ *+' conftest.er1 >conftest.err
18211 rm -f conftest.er1
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } >/dev/null && {
18215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18216 test ! -s conftest.err
18217 }; then
18218 ac_header_preproc=yes
18219 else
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18223 ac_header_preproc=no
18226 rm -f conftest.err conftest.$ac_ext
18227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18228 echo "${ECHO_T}$ac_header_preproc" >&6; }
18230 # So? What about this header?
18231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18232 yes:no: )
18233 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18234 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18235 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18236 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18237 ac_header_preproc=yes
18239 no:yes:* )
18240 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18241 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18242 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18243 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18244 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18245 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18246 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18247 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18248 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18249 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18250 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18251 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18254 esac
18255 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18256 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18257 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18262 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18263 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18266 if test $ac_cv_header_sys_cpustats_h = yes; then
18267 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18268 #define UMAX 1
18269 _ACEOF
18276 if test $ac_have_func = no; then
18278 for ac_header in mach/mach.h
18280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18287 ac_res=`eval echo '${'$as_ac_Header'}'`
18288 { echo "$as_me:$LINENO: result: $ac_res" >&5
18289 echo "${ECHO_T}$ac_res" >&6; }
18290 else
18291 # Is the header compilable?
18292 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18294 cat >conftest.$ac_ext <<_ACEOF
18295 /* confdefs.h. */
18296 _ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18300 $ac_includes_default
18301 #include <$ac_header>
18302 _ACEOF
18303 rm -f conftest.$ac_objext
18304 if { (ac_try="$ac_compile"
18305 case "(($ac_try" in
18306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18308 esac
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_compile") 2>conftest.er1
18311 ac_status=$?
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } && {
18317 test -z "$ac_c_werror_flag" ||
18318 test ! -s conftest.err
18319 } && test -s conftest.$ac_objext; then
18320 ac_header_compiler=yes
18321 else
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18325 ac_header_compiler=no
18328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18330 echo "${ECHO_T}$ac_header_compiler" >&6; }
18332 # Is the header present?
18333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18335 cat >conftest.$ac_ext <<_ACEOF
18336 /* confdefs.h. */
18337 _ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h. */
18341 #include <$ac_header>
18342 _ACEOF
18343 if { (ac_try="$ac_cpp conftest.$ac_ext"
18344 case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18347 esac
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18350 ac_status=$?
18351 grep -v '^ *+' conftest.er1 >conftest.err
18352 rm -f conftest.er1
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } >/dev/null && {
18356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18357 test ! -s conftest.err
18358 }; then
18359 ac_header_preproc=yes
18360 else
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18364 ac_header_preproc=no
18367 rm -f conftest.err conftest.$ac_ext
18368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18369 echo "${ECHO_T}$ac_header_preproc" >&6; }
18371 # So? What about this header?
18372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18373 yes:no: )
18374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18378 ac_header_preproc=yes
18380 no:yes:* )
18381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18395 esac
18396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18400 else
18401 eval "$as_ac_Header=\$ac_header_preproc"
18403 ac_res=`eval echo '${'$as_ac_Header'}'`
18404 { echo "$as_me:$LINENO: result: $ac_res" >&5
18405 echo "${ECHO_T}$ac_res" >&6; }
18408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18409 cat >>confdefs.h <<_ACEOF
18410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18411 _ACEOF
18415 done
18420 for ac_header in nlist.h
18422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 ac_res=`eval echo '${'$as_ac_Header'}'`
18430 { echo "$as_me:$LINENO: result: $ac_res" >&5
18431 echo "${ECHO_T}$ac_res" >&6; }
18432 else
18433 # Is the header compilable?
18434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18436 cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h. */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 $ac_includes_default
18443 #include <$ac_header>
18444 _ACEOF
18445 rm -f conftest.$ac_objext
18446 if { (ac_try="$ac_compile"
18447 case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_compile") 2>conftest.er1
18453 ac_status=$?
18454 grep -v '^ *+' conftest.er1 >conftest.err
18455 rm -f conftest.er1
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } && {
18459 test -z "$ac_c_werror_flag" ||
18460 test ! -s conftest.err
18461 } && test -s conftest.$ac_objext; then
18462 ac_header_compiler=yes
18463 else
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18467 ac_header_compiler=no
18470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18472 echo "${ECHO_T}$ac_header_compiler" >&6; }
18474 # Is the header present?
18475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18477 cat >conftest.$ac_ext <<_ACEOF
18478 /* confdefs.h. */
18479 _ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18483 #include <$ac_header>
18484 _ACEOF
18485 if { (ac_try="$ac_cpp conftest.$ac_ext"
18486 case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18489 esac
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18492 ac_status=$?
18493 grep -v '^ *+' conftest.er1 >conftest.err
18494 rm -f conftest.er1
18495 cat conftest.err >&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } >/dev/null && {
18498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18499 test ! -s conftest.err
18500 }; then
18501 ac_header_preproc=yes
18502 else
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18506 ac_header_preproc=no
18509 rm -f conftest.err conftest.$ac_ext
18510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18511 echo "${ECHO_T}$ac_header_preproc" >&6; }
18513 # So? What about this header?
18514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18515 yes:no: )
18516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18520 ac_header_preproc=yes
18522 no:yes:* )
18523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18537 esac
18538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18542 else
18543 eval "$as_ac_Header=\$ac_header_preproc"
18545 ac_res=`eval echo '${'$as_ac_Header'}'`
18546 { echo "$as_me:$LINENO: result: $ac_res" >&5
18547 echo "${ECHO_T}$ac_res" >&6; }
18550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18551 cat >>confdefs.h <<_ACEOF
18552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18553 _ACEOF
18554 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18555 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18556 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 else
18559 cat >conftest.$ac_ext <<_ACEOF
18560 /* confdefs.h. */
18561 _ACEOF
18562 cat confdefs.h >>conftest.$ac_ext
18563 cat >>conftest.$ac_ext <<_ACEOF
18564 /* end confdefs.h. */
18565 #include <nlist.h>
18568 main ()
18570 static struct nlist ac_aggr;
18571 if (ac_aggr.n_un.n_name)
18572 return 0;
18574 return 0;
18576 _ACEOF
18577 rm -f conftest.$ac_objext
18578 if { (ac_try="$ac_compile"
18579 case "(($ac_try" in
18580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18581 *) ac_try_echo=$ac_try;;
18582 esac
18583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18584 (eval "$ac_compile") 2>conftest.er1
18585 ac_status=$?
18586 grep -v '^ *+' conftest.er1 >conftest.err
18587 rm -f conftest.er1
18588 cat conftest.err >&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } && {
18591 test -z "$ac_c_werror_flag" ||
18592 test ! -s conftest.err
18593 } && test -s conftest.$ac_objext; then
18594 ac_cv_member_struct_nlist_n_un_n_name=yes
18595 else
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18599 cat >conftest.$ac_ext <<_ACEOF
18600 /* confdefs.h. */
18601 _ACEOF
18602 cat confdefs.h >>conftest.$ac_ext
18603 cat >>conftest.$ac_ext <<_ACEOF
18604 /* end confdefs.h. */
18605 #include <nlist.h>
18608 main ()
18610 static struct nlist ac_aggr;
18611 if (sizeof ac_aggr.n_un.n_name)
18612 return 0;
18614 return 0;
18616 _ACEOF
18617 rm -f conftest.$ac_objext
18618 if { (ac_try="$ac_compile"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18622 esac
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_compile") 2>conftest.er1
18625 ac_status=$?
18626 grep -v '^ *+' conftest.er1 >conftest.err
18627 rm -f conftest.er1
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } && {
18631 test -z "$ac_c_werror_flag" ||
18632 test ! -s conftest.err
18633 } && test -s conftest.$ac_objext; then
18634 ac_cv_member_struct_nlist_n_un_n_name=yes
18635 else
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18639 ac_cv_member_struct_nlist_n_un_n_name=no
18642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18647 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18648 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18649 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18651 cat >>confdefs.h <<_ACEOF
18652 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18653 _ACEOF
18656 cat >>confdefs.h <<\_ACEOF
18657 #define NLIST_NAME_UNION 1
18658 _ACEOF
18665 done
18668 done
18671 # Some definitions of getloadavg require that the program be installed setgid.
18672 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18673 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18674 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677 cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h. */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18684 #ifdef LDAV_PRIVILEGED
18685 Yowza Am I SETGID yet
18686 #endif
18687 _ACEOF
18688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18689 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18690 ac_cv_func_getloadavg_setgid=yes
18691 else
18692 ac_cv_func_getloadavg_setgid=no
18694 rm -f conftest*
18697 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18698 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18699 if test $ac_cv_func_getloadavg_setgid = yes; then
18700 NEED_SETGID=true
18702 cat >>confdefs.h <<\_ACEOF
18703 #define GETLOADAVG_PRIVILEGED 1
18704 _ACEOF
18706 else
18707 NEED_SETGID=false
18710 if test $ac_cv_func_getloadavg_setgid = yes; then
18711 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18712 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18713 if test "${ac_cv_group_kmem+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18717 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18718 # If we got an error (system does not support symlinks), try without -L.
18719 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18720 ac_cv_group_kmem=`echo $ac_ls_output \
18721 | sed -ne 's/[ ][ ]*/ /g;
18722 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18723 / /s/.* //;p;'`
18726 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18727 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18728 KMEM_GROUP=$ac_cv_group_kmem
18730 if test "x$ac_save_LIBS" = x; then
18731 GETLOADAVG_LIBS=$LIBS
18732 else
18733 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18735 LIBS=$ac_save_LIBS
18739 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18740 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18741 if test "${ac_cv_sys_largefile_source+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744 while :; do
18745 cat >conftest.$ac_ext <<_ACEOF
18746 /* confdefs.h. */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18751 #include <stdio.h>
18753 main ()
18755 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18757 return 0;
18759 _ACEOF
18760 rm -f conftest.$ac_objext conftest$ac_exeext
18761 if { (ac_try="$ac_link"
18762 case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_link") 2>conftest.er1
18768 ac_status=$?
18769 grep -v '^ *+' conftest.er1 >conftest.err
18770 rm -f conftest.er1
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } && {
18774 test -z "$ac_c_werror_flag" ||
18775 test ! -s conftest.err
18776 } && test -s conftest$ac_exeext &&
18777 $as_test_x conftest$ac_exeext; then
18778 ac_cv_sys_largefile_source=no; break
18779 else
18780 echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18787 conftest$ac_exeext conftest.$ac_ext
18788 cat >conftest.$ac_ext <<_ACEOF
18789 /* confdefs.h. */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 #define _LARGEFILE_SOURCE 1
18795 #include <stdio.h>
18797 main ()
18799 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18801 return 0;
18803 _ACEOF
18804 rm -f conftest.$ac_objext conftest$ac_exeext
18805 if { (ac_try="$ac_link"
18806 case "(($ac_try" in
18807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18808 *) ac_try_echo=$ac_try;;
18809 esac
18810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18811 (eval "$ac_link") 2>conftest.er1
18812 ac_status=$?
18813 grep -v '^ *+' conftest.er1 >conftest.err
18814 rm -f conftest.er1
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } && {
18818 test -z "$ac_c_werror_flag" ||
18819 test ! -s conftest.err
18820 } && test -s conftest$ac_exeext &&
18821 $as_test_x conftest$ac_exeext; then
18822 ac_cv_sys_largefile_source=1; break
18823 else
18824 echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18831 conftest$ac_exeext conftest.$ac_ext
18832 ac_cv_sys_largefile_source=unknown
18833 break
18834 done
18836 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18837 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18838 case $ac_cv_sys_largefile_source in #(
18839 no | unknown) ;;
18841 cat >>confdefs.h <<_ACEOF
18842 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18843 _ACEOF
18845 esac
18846 rm -f conftest*
18848 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18849 # in glibc 2.1.3, but that breaks too many other things.
18850 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18851 if test $ac_cv_sys_largefile_source != unknown; then
18853 cat >>confdefs.h <<\_ACEOF
18854 #define HAVE_FSEEKO 1
18855 _ACEOF
18860 # Configure getopt.
18861 # getopt.m4 serial 10
18863 # The getopt module assume you want GNU getopt, with getopt_long etc,
18864 # rather than vanilla POSIX getopt. This means your your code should
18865 # always include <getopt.h> for the getopt prototypes.
18877 # Prerequisites of lib/getopt*.
18882 GETOPT_H=
18884 for ac_header in getopt.h
18886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 ac_res=`eval echo '${'$as_ac_Header'}'`
18894 { echo "$as_me:$LINENO: result: $ac_res" >&5
18895 echo "${ECHO_T}$ac_res" >&6; }
18896 else
18897 # Is the header compilable?
18898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18900 cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h. */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18906 $ac_includes_default
18907 #include <$ac_header>
18908 _ACEOF
18909 rm -f conftest.$ac_objext
18910 if { (ac_try="$ac_compile"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18914 esac
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_compile") 2>conftest.er1
18917 ac_status=$?
18918 grep -v '^ *+' conftest.er1 >conftest.err
18919 rm -f conftest.er1
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest.$ac_objext; then
18926 ac_header_compiler=yes
18927 else
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18931 ac_header_compiler=no
18934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18936 echo "${ECHO_T}$ac_header_compiler" >&6; }
18938 # Is the header present?
18939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h. */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 #include <$ac_header>
18948 _ACEOF
18949 if { (ac_try="$ac_cpp conftest.$ac_ext"
18950 case "(($ac_try" in
18951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952 *) ac_try_echo=$ac_try;;
18953 esac
18954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18956 ac_status=$?
18957 grep -v '^ *+' conftest.er1 >conftest.err
18958 rm -f conftest.er1
18959 cat conftest.err >&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); } >/dev/null && {
18962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18963 test ! -s conftest.err
18964 }; then
18965 ac_header_preproc=yes
18966 else
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 ac_header_preproc=no
18973 rm -f conftest.err conftest.$ac_ext
18974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18975 echo "${ECHO_T}$ac_header_preproc" >&6; }
18977 # So? What about this header?
18978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18979 yes:no: )
18980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18984 ac_header_preproc=yes
18986 no:yes:* )
18987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19001 esac
19002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19005 echo $ECHO_N "(cached) $ECHO_C" >&6
19006 else
19007 eval "$as_ac_Header=\$ac_header_preproc"
19009 ac_res=`eval echo '${'$as_ac_Header'}'`
19010 { echo "$as_me:$LINENO: result: $ac_res" >&5
19011 echo "${ECHO_T}$ac_res" >&6; }
19014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19015 cat >>confdefs.h <<_ACEOF
19016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19017 _ACEOF
19019 else
19020 GETOPT_H=getopt.h
19023 done
19025 if test -z "$GETOPT_H"; then
19027 for ac_func in getopt_long_only
19029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035 cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h. */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19043 #define $ac_func innocuous_$ac_func
19045 /* System header to define __stub macros and hopefully few prototypes,
19046 which can conflict with char $ac_func (); below.
19047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19048 <limits.h> exists even on freestanding compilers. */
19050 #ifdef __STDC__
19051 # include <limits.h>
19052 #else
19053 # include <assert.h>
19054 #endif
19056 #undef $ac_func
19058 /* Override any GCC internal prototype to avoid an error.
19059 Use char because int might match the return type of a GCC
19060 builtin and then its argument prototype would still apply. */
19061 #ifdef __cplusplus
19062 extern "C"
19063 #endif
19064 char $ac_func ();
19065 /* The GNU C library defines this for functions which it implements
19066 to always fail with ENOSYS. Some functions are actually named
19067 something starting with __ and the normal name is an alias. */
19068 #if defined __stub_$ac_func || defined __stub___$ac_func
19069 choke me
19070 #endif
19073 main ()
19075 return $ac_func ();
19077 return 0;
19079 _ACEOF
19080 rm -f conftest.$ac_objext conftest$ac_exeext
19081 if { (ac_try="$ac_link"
19082 case "(($ac_try" in
19083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084 *) ac_try_echo=$ac_try;;
19085 esac
19086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19087 (eval "$ac_link") 2>conftest.er1
19088 ac_status=$?
19089 grep -v '^ *+' conftest.er1 >conftest.err
19090 rm -f conftest.er1
19091 cat conftest.err >&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } && {
19094 test -z "$ac_c_werror_flag" ||
19095 test ! -s conftest.err
19096 } && test -s conftest$ac_exeext &&
19097 $as_test_x conftest$ac_exeext; then
19098 eval "$as_ac_var=yes"
19099 else
19100 echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19103 eval "$as_ac_var=no"
19106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19107 conftest$ac_exeext conftest.$ac_ext
19109 ac_res=`eval echo '${'$as_ac_var'}'`
19110 { echo "$as_me:$LINENO: result: $ac_res" >&5
19111 echo "${ECHO_T}$ac_res" >&6; }
19112 if test `eval echo '${'$as_ac_var'}'` = yes; then
19113 cat >>confdefs.h <<_ACEOF
19114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19115 _ACEOF
19117 else
19118 GETOPT_H=getopt.h
19120 done
19124 if test -z "$GETOPT_H"; then
19125 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19126 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19127 if test "${ac_cv_have_decl_optreset+set}" = set; then
19128 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 else
19130 cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h. */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 #include <getopt.h>
19139 main ()
19141 #ifndef optreset
19142 (void) optreset;
19143 #endif
19146 return 0;
19148 _ACEOF
19149 rm -f conftest.$ac_objext
19150 if { (ac_try="$ac_compile"
19151 case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19154 esac
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_compile") 2>conftest.er1
19157 ac_status=$?
19158 grep -v '^ *+' conftest.er1 >conftest.err
19159 rm -f conftest.er1
19160 cat conftest.err >&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } && {
19163 test -z "$ac_c_werror_flag" ||
19164 test ! -s conftest.err
19165 } && test -s conftest.$ac_objext; then
19166 ac_cv_have_decl_optreset=yes
19167 else
19168 echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19171 ac_cv_have_decl_optreset=no
19174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19177 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19178 if test $ac_cv_have_decl_optreset = yes; then
19179 GETOPT_H=getopt.h
19184 if test -z "$GETOPT_H"; then
19185 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19186 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19187 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190 if test "$cross_compiling" = yes; then
19191 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19192 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19193 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196 cat >conftest.$ac_ext <<_ACEOF
19197 /* confdefs.h. */
19198 _ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h. */
19202 #include <getopt.h>
19205 main ()
19207 #ifndef getopt_clip
19208 (void) getopt_clip;
19209 #endif
19212 return 0;
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (ac_try="$ac_compile"
19217 case "(($ac_try" in
19218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219 *) ac_try_echo=$ac_try;;
19220 esac
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_compile") 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } && {
19229 test -z "$ac_c_werror_flag" ||
19230 test ! -s conftest.err
19231 } && test -s conftest.$ac_objext; then
19232 ac_cv_have_decl_getopt_clip=yes
19233 else
19234 echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19237 ac_cv_have_decl_getopt_clip=no
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19242 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19243 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19244 if test $ac_cv_have_decl_getopt_clip = yes; then
19245 gl_cv_func_gnu_getopt=no
19246 else
19247 gl_cv_func_gnu_getopt=yes
19250 else
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h. */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 #include <getopt.h>
19259 main ()
19262 char *myargv[3];
19263 myargv[0] = "conftest";
19264 myargv[1] = "-+";
19265 myargv[2] = 0;
19266 return getopt (2, myargv, "+a") != '?';
19269 return 0;
19271 _ACEOF
19272 rm -f conftest$ac_exeext
19273 if { (ac_try="$ac_link"
19274 case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19277 esac
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_link") 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19283 { (case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19286 esac
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_try") 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; }; then
19292 gl_cv_func_gnu_getopt=yes
19293 else
19294 echo "$as_me: program exited with status $ac_status" >&5
19295 echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19298 ( exit $ac_status )
19299 gl_cv_func_gnu_getopt=no
19301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19306 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19307 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19308 if test "$gl_cv_func_gnu_getopt" = "no"; then
19309 GETOPT_H=getopt.h
19315 if test -n "$GETOPT_H"; then
19318 GETOPT_H=getopt.h
19320 cat >>confdefs.h <<\_ACEOF
19321 #define __GETOPT_PREFIX rpl_
19322 _ACEOF
19327 GETOPTOBJS='getopt.o getopt1.o'
19334 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19335 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19336 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 else
19339 # Use it with a single arg.
19340 cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h. */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19346 $ac_includes_default
19348 main ()
19350 getpgrp (0);
19352 return 0;
19354 _ACEOF
19355 rm -f conftest.$ac_objext
19356 if { (ac_try="$ac_compile"
19357 case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_compile") 2>conftest.er1
19363 ac_status=$?
19364 grep -v '^ *+' conftest.er1 >conftest.err
19365 rm -f conftest.er1
19366 cat conftest.err >&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } && {
19369 test -z "$ac_c_werror_flag" ||
19370 test ! -s conftest.err
19371 } && test -s conftest.$ac_objext; then
19372 ac_cv_func_getpgrp_void=no
19373 else
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_func_getpgrp_void=yes
19380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19384 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19385 if test $ac_cv_func_getpgrp_void = yes; then
19387 cat >>confdefs.h <<\_ACEOF
19388 #define GETPGRP_VOID 1
19389 _ACEOF
19395 for ac_func in strftime
19397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 else
19403 cat >conftest.$ac_ext <<_ACEOF
19404 /* confdefs.h. */
19405 _ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19411 #define $ac_func innocuous_$ac_func
19413 /* System header to define __stub macros and hopefully few prototypes,
19414 which can conflict with char $ac_func (); below.
19415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19416 <limits.h> exists even on freestanding compilers. */
19418 #ifdef __STDC__
19419 # include <limits.h>
19420 #else
19421 # include <assert.h>
19422 #endif
19424 #undef $ac_func
19426 /* Override any GCC internal prototype to avoid an error.
19427 Use char because int might match the return type of a GCC
19428 builtin and then its argument prototype would still apply. */
19429 #ifdef __cplusplus
19430 extern "C"
19431 #endif
19432 char $ac_func ();
19433 /* The GNU C library defines this for functions which it implements
19434 to always fail with ENOSYS. Some functions are actually named
19435 something starting with __ and the normal name is an alias. */
19436 #if defined __stub_$ac_func || defined __stub___$ac_func
19437 choke me
19438 #endif
19441 main ()
19443 return $ac_func ();
19445 return 0;
19447 _ACEOF
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19453 esac
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_link") 2>conftest.er1
19456 ac_status=$?
19457 grep -v '^ *+' conftest.er1 >conftest.err
19458 rm -f conftest.er1
19459 cat conftest.err >&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } && {
19462 test -z "$ac_c_werror_flag" ||
19463 test ! -s conftest.err
19464 } && test -s conftest$ac_exeext &&
19465 $as_test_x conftest$ac_exeext; then
19466 eval "$as_ac_var=yes"
19467 else
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19471 eval "$as_ac_var=no"
19474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19475 conftest$ac_exeext conftest.$ac_ext
19477 ac_res=`eval echo '${'$as_ac_var'}'`
19478 { echo "$as_me:$LINENO: result: $ac_res" >&5
19479 echo "${ECHO_T}$ac_res" >&6; }
19480 if test `eval echo '${'$as_ac_var'}'` = yes; then
19481 cat >>confdefs.h <<_ACEOF
19482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19483 _ACEOF
19485 else
19486 # strftime is in -lintl on SCO UNIX.
19487 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19488 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19489 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 else
19492 ac_check_lib_save_LIBS=$LIBS
19493 LIBS="-lintl $LIBS"
19494 cat >conftest.$ac_ext <<_ACEOF
19495 /* confdefs.h. */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19501 /* Override any GCC internal prototype to avoid an error.
19502 Use char because int might match the return type of a GCC
19503 builtin and then its argument prototype would still apply. */
19504 #ifdef __cplusplus
19505 extern "C"
19506 #endif
19507 char strftime ();
19509 main ()
19511 return strftime ();
19513 return 0;
19515 _ACEOF
19516 rm -f conftest.$ac_objext conftest$ac_exeext
19517 if { (ac_try="$ac_link"
19518 case "(($ac_try" in
19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 *) ac_try_echo=$ac_try;;
19521 esac
19522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523 (eval "$ac_link") 2>conftest.er1
19524 ac_status=$?
19525 grep -v '^ *+' conftest.er1 >conftest.err
19526 rm -f conftest.er1
19527 cat conftest.err >&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } && {
19530 test -z "$ac_c_werror_flag" ||
19531 test ! -s conftest.err
19532 } && test -s conftest$ac_exeext &&
19533 $as_test_x conftest$ac_exeext; then
19534 ac_cv_lib_intl_strftime=yes
19535 else
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 ac_cv_lib_intl_strftime=no
19542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19543 conftest$ac_exeext conftest.$ac_ext
19544 LIBS=$ac_check_lib_save_LIBS
19546 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19547 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19548 if test $ac_cv_lib_intl_strftime = yes; then
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE_STRFTIME 1
19551 _ACEOF
19553 LIBS="-lintl $LIBS"
19557 done
19560 # UNIX98 PTYs.
19562 for ac_func in grantpt
19564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19569 else
19570 cat >conftest.$ac_ext <<_ACEOF
19571 /* confdefs.h. */
19572 _ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19578 #define $ac_func innocuous_$ac_func
19580 /* System header to define __stub macros and hopefully few prototypes,
19581 which can conflict with char $ac_func (); below.
19582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19583 <limits.h> exists even on freestanding compilers. */
19585 #ifdef __STDC__
19586 # include <limits.h>
19587 #else
19588 # include <assert.h>
19589 #endif
19591 #undef $ac_func
19593 /* Override any GCC internal prototype to avoid an error.
19594 Use char because int might match the return type of a GCC
19595 builtin and then its argument prototype would still apply. */
19596 #ifdef __cplusplus
19597 extern "C"
19598 #endif
19599 char $ac_func ();
19600 /* The GNU C library defines this for functions which it implements
19601 to always fail with ENOSYS. Some functions are actually named
19602 something starting with __ and the normal name is an alias. */
19603 #if defined __stub_$ac_func || defined __stub___$ac_func
19604 choke me
19605 #endif
19608 main ()
19610 return $ac_func ();
19612 return 0;
19614 _ACEOF
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_link") 2>conftest.er1
19623 ac_status=$?
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } && {
19629 test -z "$ac_c_werror_flag" ||
19630 test ! -s conftest.err
19631 } && test -s conftest$ac_exeext &&
19632 $as_test_x conftest$ac_exeext; then
19633 eval "$as_ac_var=yes"
19634 else
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 eval "$as_ac_var=no"
19641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19642 conftest$ac_exeext conftest.$ac_ext
19644 ac_res=`eval echo '${'$as_ac_var'}'`
19645 { echo "$as_me:$LINENO: result: $ac_res" >&5
19646 echo "${ECHO_T}$ac_res" >&6; }
19647 if test `eval echo '${'$as_ac_var'}'` = yes; then
19648 cat >>confdefs.h <<_ACEOF
19649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19650 _ACEOF
19653 done
19656 # PTY-related GNU extensions.
19658 for ac_func in getpt
19660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666 cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h. */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19674 #define $ac_func innocuous_$ac_func
19676 /* System header to define __stub macros and hopefully few prototypes,
19677 which can conflict with char $ac_func (); below.
19678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19679 <limits.h> exists even on freestanding compilers. */
19681 #ifdef __STDC__
19682 # include <limits.h>
19683 #else
19684 # include <assert.h>
19685 #endif
19687 #undef $ac_func
19689 /* Override any GCC internal prototype to avoid an error.
19690 Use char because int might match the return type of a GCC
19691 builtin and then its argument prototype would still apply. */
19692 #ifdef __cplusplus
19693 extern "C"
19694 #endif
19695 char $ac_func ();
19696 /* The GNU C library defines this for functions which it implements
19697 to always fail with ENOSYS. Some functions are actually named
19698 something starting with __ and the normal name is an alias. */
19699 #if defined __stub_$ac_func || defined __stub___$ac_func
19700 choke me
19701 #endif
19704 main ()
19706 return $ac_func ();
19708 return 0;
19710 _ACEOF
19711 rm -f conftest.$ac_objext conftest$ac_exeext
19712 if { (ac_try="$ac_link"
19713 case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19716 esac
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_link") 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } && {
19725 test -z "$ac_c_werror_flag" ||
19726 test ! -s conftest.err
19727 } && test -s conftest$ac_exeext &&
19728 $as_test_x conftest$ac_exeext; then
19729 eval "$as_ac_var=yes"
19730 else
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19734 eval "$as_ac_var=no"
19737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19738 conftest$ac_exeext conftest.$ac_ext
19740 ac_res=`eval echo '${'$as_ac_var'}'`
19741 { echo "$as_me:$LINENO: result: $ac_res" >&5
19742 echo "${ECHO_T}$ac_res" >&6; }
19743 if test `eval echo '${'$as_ac_var'}'` = yes; then
19744 cat >>confdefs.h <<_ACEOF
19745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19746 _ACEOF
19749 done
19752 # Check this now, so that we will NOT find the above functions in ncurses.
19753 # That is because we have not set up to link ncurses in lib-src.
19754 # It's better to believe a function is not available
19755 # than to expect to find it in ncurses.
19757 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19758 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19759 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19762 ac_check_lib_save_LIBS=$LIBS
19763 LIBS="-lncurses $LIBS"
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h. */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19771 /* Override any GCC internal prototype to avoid an error.
19772 Use char because int might match the return type of a GCC
19773 builtin and then its argument prototype would still apply. */
19774 #ifdef __cplusplus
19775 extern "C"
19776 #endif
19777 char tparm ();
19779 main ()
19781 return tparm ();
19783 return 0;
19785 _ACEOF
19786 rm -f conftest.$ac_objext conftest$ac_exeext
19787 if { (ac_try="$ac_link"
19788 case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_link") 2>conftest.er1
19794 ac_status=$?
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } && {
19800 test -z "$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19802 } && test -s conftest$ac_exeext &&
19803 $as_test_x conftest$ac_exeext; then
19804 ac_cv_lib_ncurses_tparm=yes
19805 else
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19809 ac_cv_lib_ncurses_tparm=no
19812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19813 conftest$ac_exeext conftest.$ac_ext
19814 LIBS=$ac_check_lib_save_LIBS
19816 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19817 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19818 if test $ac_cv_lib_ncurses_tparm = yes; then
19819 cat >>confdefs.h <<_ACEOF
19820 #define HAVE_LIBNCURSES 1
19821 _ACEOF
19823 LIBS="-lncurses $LIBS"
19828 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19830 resolv=no
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h. */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 #include <netinet/in.h>
19838 #include <arpa/nameser.h>
19839 #include <resolv.h>
19841 main ()
19843 return res_init();
19845 return 0;
19847 _ACEOF
19848 rm -f conftest.$ac_objext conftest$ac_exeext
19849 if { (ac_try="$ac_link"
19850 case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19853 esac
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_link") 2>conftest.er1
19856 ac_status=$?
19857 grep -v '^ *+' conftest.er1 >conftest.err
19858 rm -f conftest.er1
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } && {
19862 test -z "$ac_c_werror_flag" ||
19863 test ! -s conftest.err
19864 } && test -s conftest$ac_exeext &&
19865 $as_test_x conftest$ac_exeext; then
19866 have_res_init=yes
19867 else
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19871 have_res_init=no
19874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19875 conftest$ac_exeext conftest.$ac_ext
19876 if test "$have_res_init" = no; then
19877 OLIBS="$LIBS"
19878 LIBS="$LIBS -lresolv"
19879 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19880 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19881 cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h. */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 #include <netinet/in.h>
19888 #include <arpa/nameser.h>
19889 #include <resolv.h>
19891 main ()
19893 return res_init();
19895 return 0;
19897 _ACEOF
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (ac_try="$ac_link"
19900 case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19903 esac
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_link") 2>conftest.er1
19906 ac_status=$?
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } && {
19912 test -z "$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19914 } && test -s conftest$ac_exeext &&
19915 $as_test_x conftest$ac_exeext; then
19916 have_res_init=yes
19917 else
19918 echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 have_res_init=no
19924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19925 conftest$ac_exeext conftest.$ac_ext
19926 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19927 echo "${ECHO_T}$have_res_init" >&6; }
19928 if test "$have_res_init" = yes ; then
19929 resolv=yes
19931 LIBS="$OLIBS"
19934 if test "$have_res_init" = yes; then
19936 cat >>confdefs.h <<\_ACEOF
19937 #define HAVE_RES_INIT 1
19938 _ACEOF
19942 # Do we need the Hesiod library to provide the support routines?
19943 if test "$with_hesiod" != no ; then
19944 # Don't set $LIBS here -- see comments above.
19945 { echo "$as_me:$LINENO: checking for res_send" >&5
19946 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19947 if test "${ac_cv_func_res_send+set}" = set; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 else
19950 cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h. */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19956 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19958 #define res_send innocuous_res_send
19960 /* System header to define __stub macros and hopefully few prototypes,
19961 which can conflict with char res_send (); below.
19962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19963 <limits.h> exists even on freestanding compilers. */
19965 #ifdef __STDC__
19966 # include <limits.h>
19967 #else
19968 # include <assert.h>
19969 #endif
19971 #undef res_send
19973 /* Override any GCC internal prototype to avoid an error.
19974 Use char because int might match the return type of a GCC
19975 builtin and then its argument prototype would still apply. */
19976 #ifdef __cplusplus
19977 extern "C"
19978 #endif
19979 char res_send ();
19980 /* The GNU C library defines this for functions which it implements
19981 to always fail with ENOSYS. Some functions are actually named
19982 something starting with __ and the normal name is an alias. */
19983 #if defined __stub_res_send || defined __stub___res_send
19984 choke me
19985 #endif
19988 main ()
19990 return res_send ();
19992 return 0;
19994 _ACEOF
19995 rm -f conftest.$ac_objext conftest$ac_exeext
19996 if { (ac_try="$ac_link"
19997 case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_link") 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } && {
20009 test -z "$ac_c_werror_flag" ||
20010 test ! -s conftest.err
20011 } && test -s conftest$ac_exeext &&
20012 $as_test_x conftest$ac_exeext; then
20013 ac_cv_func_res_send=yes
20014 else
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 ac_cv_func_res_send=no
20021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20022 conftest$ac_exeext conftest.$ac_ext
20024 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20025 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20026 if test $ac_cv_func_res_send = yes; then
20028 else
20029 { echo "$as_me:$LINENO: checking for __res_send" >&5
20030 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20031 if test "${ac_cv_func___res_send+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20033 else
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h. */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20042 #define __res_send innocuous___res_send
20044 /* System header to define __stub macros and hopefully few prototypes,
20045 which can conflict with char __res_send (); below.
20046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20047 <limits.h> exists even on freestanding compilers. */
20049 #ifdef __STDC__
20050 # include <limits.h>
20051 #else
20052 # include <assert.h>
20053 #endif
20055 #undef __res_send
20057 /* Override any GCC internal prototype to avoid an error.
20058 Use char because int might match the return type of a GCC
20059 builtin and then its argument prototype would still apply. */
20060 #ifdef __cplusplus
20061 extern "C"
20062 #endif
20063 char __res_send ();
20064 /* The GNU C library defines this for functions which it implements
20065 to always fail with ENOSYS. Some functions are actually named
20066 something starting with __ and the normal name is an alias. */
20067 #if defined __stub___res_send || defined __stub_____res_send
20068 choke me
20069 #endif
20072 main ()
20074 return __res_send ();
20076 return 0;
20078 _ACEOF
20079 rm -f conftest.$ac_objext conftest$ac_exeext
20080 if { (ac_try="$ac_link"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_link") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest$ac_exeext &&
20096 $as_test_x conftest$ac_exeext; then
20097 ac_cv_func___res_send=yes
20098 else
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20102 ac_cv_func___res_send=no
20105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20106 conftest$ac_exeext conftest.$ac_ext
20108 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20109 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20110 if test $ac_cv_func___res_send = yes; then
20112 else
20113 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20114 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20115 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118 ac_check_lib_save_LIBS=$LIBS
20119 LIBS="-lresolv $LIBS"
20120 cat >conftest.$ac_ext <<_ACEOF
20121 /* confdefs.h. */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h. */
20127 /* Override any GCC internal prototype to avoid an error.
20128 Use char because int might match the return type of a GCC
20129 builtin and then its argument prototype would still apply. */
20130 #ifdef __cplusplus
20131 extern "C"
20132 #endif
20133 char res_send ();
20135 main ()
20137 return res_send ();
20139 return 0;
20141 _ACEOF
20142 rm -f conftest.$ac_objext conftest$ac_exeext
20143 if { (ac_try="$ac_link"
20144 case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20147 esac
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_link") 2>conftest.er1
20150 ac_status=$?
20151 grep -v '^ *+' conftest.er1 >conftest.err
20152 rm -f conftest.er1
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } && {
20156 test -z "$ac_c_werror_flag" ||
20157 test ! -s conftest.err
20158 } && test -s conftest$ac_exeext &&
20159 $as_test_x conftest$ac_exeext; then
20160 ac_cv_lib_resolv_res_send=yes
20161 else
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ac_cv_lib_resolv_res_send=no
20168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20169 conftest$ac_exeext conftest.$ac_ext
20170 LIBS=$ac_check_lib_save_LIBS
20172 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20173 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20174 if test $ac_cv_lib_resolv_res_send = yes; then
20175 resolv=yes
20176 else
20177 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20178 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20179 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182 ac_check_lib_save_LIBS=$LIBS
20183 LIBS="-lresolv $LIBS"
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h. */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20191 /* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
20194 #ifdef __cplusplus
20195 extern "C"
20196 #endif
20197 char __res_send ();
20199 main ()
20201 return __res_send ();
20203 return 0;
20205 _ACEOF
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (ac_try="$ac_link"
20208 case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_link") 2>conftest.er1
20214 ac_status=$?
20215 grep -v '^ *+' conftest.er1 >conftest.err
20216 rm -f conftest.er1
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } && {
20220 test -z "$ac_c_werror_flag" ||
20221 test ! -s conftest.err
20222 } && test -s conftest$ac_exeext &&
20223 $as_test_x conftest$ac_exeext; then
20224 ac_cv_lib_resolv___res_send=yes
20225 else
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20229 ac_cv_lib_resolv___res_send=no
20232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20233 conftest$ac_exeext conftest.$ac_ext
20234 LIBS=$ac_check_lib_save_LIBS
20236 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20237 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20238 if test $ac_cv_lib_resolv___res_send = yes; then
20239 resolv=yes
20248 if test "$resolv" = yes ; then
20249 RESOLVLIB=-lresolv
20250 else
20251 RESOLVLIB=
20253 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20254 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20255 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257 else
20258 cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h. */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20266 #define hes_getmailhost innocuous_hes_getmailhost
20268 /* System header to define __stub macros and hopefully few prototypes,
20269 which can conflict with char hes_getmailhost (); below.
20270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20271 <limits.h> exists even on freestanding compilers. */
20273 #ifdef __STDC__
20274 # include <limits.h>
20275 #else
20276 # include <assert.h>
20277 #endif
20279 #undef hes_getmailhost
20281 /* Override any GCC internal prototype to avoid an error.
20282 Use char because int might match the return type of a GCC
20283 builtin and then its argument prototype would still apply. */
20284 #ifdef __cplusplus
20285 extern "C"
20286 #endif
20287 char hes_getmailhost ();
20288 /* The GNU C library defines this for functions which it implements
20289 to always fail with ENOSYS. Some functions are actually named
20290 something starting with __ and the normal name is an alias. */
20291 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20292 choke me
20293 #endif
20296 main ()
20298 return hes_getmailhost ();
20300 return 0;
20302 _ACEOF
20303 rm -f conftest.$ac_objext conftest$ac_exeext
20304 if { (ac_try="$ac_link"
20305 case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20308 esac
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_link") 2>conftest.er1
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } && {
20317 test -z "$ac_c_werror_flag" ||
20318 test ! -s conftest.err
20319 } && test -s conftest$ac_exeext &&
20320 $as_test_x conftest$ac_exeext; then
20321 ac_cv_func_hes_getmailhost=yes
20322 else
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20326 ac_cv_func_hes_getmailhost=no
20329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20330 conftest$ac_exeext conftest.$ac_ext
20332 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20333 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20334 if test $ac_cv_func_hes_getmailhost = yes; then
20336 else
20337 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20338 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20339 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 else
20342 ac_check_lib_save_LIBS=$LIBS
20343 LIBS="-lhesiod $RESOLVLIB $LIBS"
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h. */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20351 /* Override any GCC internal prototype to avoid an error.
20352 Use char because int might match the return type of a GCC
20353 builtin and then its argument prototype would still apply. */
20354 #ifdef __cplusplus
20355 extern "C"
20356 #endif
20357 char hes_getmailhost ();
20359 main ()
20361 return hes_getmailhost ();
20363 return 0;
20365 _ACEOF
20366 rm -f conftest.$ac_objext conftest$ac_exeext
20367 if { (ac_try="$ac_link"
20368 case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20371 esac
20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_link") 2>conftest.er1
20374 ac_status=$?
20375 grep -v '^ *+' conftest.er1 >conftest.err
20376 rm -f conftest.er1
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } && {
20380 test -z "$ac_c_werror_flag" ||
20381 test ! -s conftest.err
20382 } && test -s conftest$ac_exeext &&
20383 $as_test_x conftest$ac_exeext; then
20384 ac_cv_lib_hesiod_hes_getmailhost=yes
20385 else
20386 echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20389 ac_cv_lib_hesiod_hes_getmailhost=no
20392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20393 conftest$ac_exeext conftest.$ac_ext
20394 LIBS=$ac_check_lib_save_LIBS
20396 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20397 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20398 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20400 cat >>confdefs.h <<\_ACEOF
20401 #define HAVE_LIBHESIOD 1
20402 _ACEOF
20404 else
20412 # Do we need libresolv (due to res_init or Hesiod)?
20413 if test "$resolv" = yes ; then
20415 cat >>confdefs.h <<\_ACEOF
20416 #define HAVE_LIBRESOLV 1
20417 _ACEOF
20421 # These tell us which Kerberos-related libraries to use.
20422 if test "${with_kerberos}" != no; then
20424 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20425 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20426 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 else
20429 ac_check_lib_save_LIBS=$LIBS
20430 LIBS="-lcom_err $LIBS"
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h. */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20438 /* Override any GCC internal prototype to avoid an error.
20439 Use char because int might match the return type of a GCC
20440 builtin and then its argument prototype would still apply. */
20441 #ifdef __cplusplus
20442 extern "C"
20443 #endif
20444 char com_err ();
20446 main ()
20448 return com_err ();
20450 return 0;
20452 _ACEOF
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_link") 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest$ac_exeext &&
20470 $as_test_x conftest$ac_exeext; then
20471 ac_cv_lib_com_err_com_err=yes
20472 else
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_cv_lib_com_err_com_err=no
20479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480 conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20483 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20484 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20485 if test $ac_cv_lib_com_err_com_err = yes; then
20486 cat >>confdefs.h <<_ACEOF
20487 #define HAVE_LIBCOM_ERR 1
20488 _ACEOF
20490 LIBS="-lcom_err $LIBS"
20495 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20496 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20497 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
20499 else
20500 ac_check_lib_save_LIBS=$LIBS
20501 LIBS="-lk5crypto $LIBS"
20502 cat >conftest.$ac_ext <<_ACEOF
20503 /* confdefs.h. */
20504 _ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h. */
20509 /* Override any GCC internal prototype to avoid an error.
20510 Use char because int might match the return type of a GCC
20511 builtin and then its argument prototype would still apply. */
20512 #ifdef __cplusplus
20513 extern "C"
20514 #endif
20515 char mit_des_cbc_encrypt ();
20517 main ()
20519 return mit_des_cbc_encrypt ();
20521 return 0;
20523 _ACEOF
20524 rm -f conftest.$ac_objext conftest$ac_exeext
20525 if { (ac_try="$ac_link"
20526 case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20529 esac
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_link") 2>conftest.er1
20532 ac_status=$?
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } && {
20538 test -z "$ac_c_werror_flag" ||
20539 test ! -s conftest.err
20540 } && test -s conftest$ac_exeext &&
20541 $as_test_x conftest$ac_exeext; then
20542 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20543 else
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20547 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20551 conftest$ac_exeext conftest.$ac_ext
20552 LIBS=$ac_check_lib_save_LIBS
20554 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20555 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20556 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20557 cat >>confdefs.h <<_ACEOF
20558 #define HAVE_LIBK5CRYPTO 1
20559 _ACEOF
20561 LIBS="-lk5crypto $LIBS"
20566 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20567 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20568 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 else
20571 ac_check_lib_save_LIBS=$LIBS
20572 LIBS="-lcrypto $LIBS"
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h. */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20580 /* Override any GCC internal prototype to avoid an error.
20581 Use char because int might match the return type of a GCC
20582 builtin and then its argument prototype would still apply. */
20583 #ifdef __cplusplus
20584 extern "C"
20585 #endif
20586 char mit_des_cbc_encrypt ();
20588 main ()
20590 return mit_des_cbc_encrypt ();
20592 return 0;
20594 _ACEOF
20595 rm -f conftest.$ac_objext conftest$ac_exeext
20596 if { (ac_try="$ac_link"
20597 case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20600 esac
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_link") 2>conftest.er1
20603 ac_status=$?
20604 grep -v '^ *+' conftest.er1 >conftest.err
20605 rm -f conftest.er1
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } && {
20609 test -z "$ac_c_werror_flag" ||
20610 test ! -s conftest.err
20611 } && test -s conftest$ac_exeext &&
20612 $as_test_x conftest$ac_exeext; then
20613 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20614 else
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20622 conftest$ac_exeext conftest.$ac_ext
20623 LIBS=$ac_check_lib_save_LIBS
20625 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20626 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20627 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20628 cat >>confdefs.h <<_ACEOF
20629 #define HAVE_LIBCRYPTO 1
20630 _ACEOF
20632 LIBS="-lcrypto $LIBS"
20637 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20638 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20639 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20641 else
20642 ac_check_lib_save_LIBS=$LIBS
20643 LIBS="-lkrb5 $LIBS"
20644 cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h. */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20651 /* Override any GCC internal prototype to avoid an error.
20652 Use char because int might match the return type of a GCC
20653 builtin and then its argument prototype would still apply. */
20654 #ifdef __cplusplus
20655 extern "C"
20656 #endif
20657 char krb5_init_context ();
20659 main ()
20661 return krb5_init_context ();
20663 return 0;
20665 _ACEOF
20666 rm -f conftest.$ac_objext conftest$ac_exeext
20667 if { (ac_try="$ac_link"
20668 case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_link") 2>conftest.er1
20674 ac_status=$?
20675 grep -v '^ *+' conftest.er1 >conftest.err
20676 rm -f conftest.er1
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } && {
20680 test -z "$ac_c_werror_flag" ||
20681 test ! -s conftest.err
20682 } && test -s conftest$ac_exeext &&
20683 $as_test_x conftest$ac_exeext; then
20684 ac_cv_lib_krb5_krb5_init_context=yes
20685 else
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20689 ac_cv_lib_krb5_krb5_init_context=no
20692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20693 conftest$ac_exeext conftest.$ac_ext
20694 LIBS=$ac_check_lib_save_LIBS
20696 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20697 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20698 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20699 cat >>confdefs.h <<_ACEOF
20700 #define HAVE_LIBKRB5 1
20701 _ACEOF
20703 LIBS="-lkrb5 $LIBS"
20707 if test "${with_kerberos5}" = no; then
20709 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20710 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20711 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714 ac_check_lib_save_LIBS=$LIBS
20715 LIBS="-ldes425 $LIBS"
20716 cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h. */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20723 /* Override any GCC internal prototype to avoid an error.
20724 Use char because int might match the return type of a GCC
20725 builtin and then its argument prototype would still apply. */
20726 #ifdef __cplusplus
20727 extern "C"
20728 #endif
20729 char des_cbc_encrypt ();
20731 main ()
20733 return des_cbc_encrypt ();
20735 return 0;
20737 _ACEOF
20738 rm -f conftest.$ac_objext conftest$ac_exeext
20739 if { (ac_try="$ac_link"
20740 case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20743 esac
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_link") 2>conftest.er1
20746 ac_status=$?
20747 grep -v '^ *+' conftest.er1 >conftest.err
20748 rm -f conftest.er1
20749 cat conftest.err >&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } && {
20752 test -z "$ac_c_werror_flag" ||
20753 test ! -s conftest.err
20754 } && test -s conftest$ac_exeext &&
20755 $as_test_x conftest$ac_exeext; then
20756 ac_cv_lib_des425_des_cbc_encrypt=yes
20757 else
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 ac_cv_lib_des425_des_cbc_encrypt=no
20764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20765 conftest$ac_exeext conftest.$ac_ext
20766 LIBS=$ac_check_lib_save_LIBS
20768 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20769 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20770 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20771 cat >>confdefs.h <<_ACEOF
20772 #define HAVE_LIBDES425 1
20773 _ACEOF
20775 LIBS="-ldes425 $LIBS"
20777 else
20779 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20780 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20781 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20783 else
20784 ac_check_lib_save_LIBS=$LIBS
20785 LIBS="-ldes $LIBS"
20786 cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h. */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20793 /* Override any GCC internal prototype to avoid an error.
20794 Use char because int might match the return type of a GCC
20795 builtin and then its argument prototype would still apply. */
20796 #ifdef __cplusplus
20797 extern "C"
20798 #endif
20799 char des_cbc_encrypt ();
20801 main ()
20803 return des_cbc_encrypt ();
20805 return 0;
20807 _ACEOF
20808 rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (ac_try="$ac_link"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_link") 2>conftest.er1
20816 ac_status=$?
20817 grep -v '^ *+' conftest.er1 >conftest.err
20818 rm -f conftest.er1
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } && {
20822 test -z "$ac_c_werror_flag" ||
20823 test ! -s conftest.err
20824 } && test -s conftest$ac_exeext &&
20825 $as_test_x conftest$ac_exeext; then
20826 ac_cv_lib_des_des_cbc_encrypt=yes
20827 else
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 ac_cv_lib_des_des_cbc_encrypt=no
20834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20835 conftest$ac_exeext conftest.$ac_ext
20836 LIBS=$ac_check_lib_save_LIBS
20838 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20839 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20840 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20841 cat >>confdefs.h <<_ACEOF
20842 #define HAVE_LIBDES 1
20843 _ACEOF
20845 LIBS="-ldes $LIBS"
20852 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20853 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20854 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 else
20857 ac_check_lib_save_LIBS=$LIBS
20858 LIBS="-lkrb4 $LIBS"
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h. */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20866 /* Override any GCC internal prototype to avoid an error.
20867 Use char because int might match the return type of a GCC
20868 builtin and then its argument prototype would still apply. */
20869 #ifdef __cplusplus
20870 extern "C"
20871 #endif
20872 char krb_get_cred ();
20874 main ()
20876 return krb_get_cred ();
20878 return 0;
20880 _ACEOF
20881 rm -f conftest.$ac_objext conftest$ac_exeext
20882 if { (ac_try="$ac_link"
20883 case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20886 esac
20887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_link") 2>conftest.er1
20889 ac_status=$?
20890 grep -v '^ *+' conftest.er1 >conftest.err
20891 rm -f conftest.er1
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } && {
20895 test -z "$ac_c_werror_flag" ||
20896 test ! -s conftest.err
20897 } && test -s conftest$ac_exeext &&
20898 $as_test_x conftest$ac_exeext; then
20899 ac_cv_lib_krb4_krb_get_cred=yes
20900 else
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 ac_cv_lib_krb4_krb_get_cred=no
20907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20908 conftest$ac_exeext conftest.$ac_ext
20909 LIBS=$ac_check_lib_save_LIBS
20911 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20912 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20913 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20914 cat >>confdefs.h <<_ACEOF
20915 #define HAVE_LIBKRB4 1
20916 _ACEOF
20918 LIBS="-lkrb4 $LIBS"
20920 else
20922 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20923 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20924 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926 else
20927 ac_check_lib_save_LIBS=$LIBS
20928 LIBS="-lkrb $LIBS"
20929 cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h. */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20936 /* Override any GCC internal prototype to avoid an error.
20937 Use char because int might match the return type of a GCC
20938 builtin and then its argument prototype would still apply. */
20939 #ifdef __cplusplus
20940 extern "C"
20941 #endif
20942 char krb_get_cred ();
20944 main ()
20946 return krb_get_cred ();
20948 return 0;
20950 _ACEOF
20951 rm -f conftest.$ac_objext conftest$ac_exeext
20952 if { (ac_try="$ac_link"
20953 case "(($ac_try" in
20954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955 *) ac_try_echo=$ac_try;;
20956 esac
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958 (eval "$ac_link") 2>conftest.er1
20959 ac_status=$?
20960 grep -v '^ *+' conftest.er1 >conftest.err
20961 rm -f conftest.er1
20962 cat conftest.err >&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } && {
20965 test -z "$ac_c_werror_flag" ||
20966 test ! -s conftest.err
20967 } && test -s conftest$ac_exeext &&
20968 $as_test_x conftest$ac_exeext; then
20969 ac_cv_lib_krb_krb_get_cred=yes
20970 else
20971 echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20974 ac_cv_lib_krb_krb_get_cred=no
20977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20978 conftest$ac_exeext conftest.$ac_ext
20979 LIBS=$ac_check_lib_save_LIBS
20981 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20982 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20983 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20984 cat >>confdefs.h <<_ACEOF
20985 #define HAVE_LIBKRB 1
20986 _ACEOF
20988 LIBS="-lkrb $LIBS"
20996 if test "${with_kerberos5}" != no; then
20998 for ac_header in krb5.h
21000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21005 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 ac_res=`eval echo '${'$as_ac_Header'}'`
21008 { echo "$as_me:$LINENO: result: $ac_res" >&5
21009 echo "${ECHO_T}$ac_res" >&6; }
21010 else
21011 # Is the header compilable?
21012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21014 cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h. */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 $ac_includes_default
21021 #include <$ac_header>
21022 _ACEOF
21023 rm -f conftest.$ac_objext
21024 if { (ac_try="$ac_compile"
21025 case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21028 esac
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_compile") 2>conftest.er1
21031 ac_status=$?
21032 grep -v '^ *+' conftest.er1 >conftest.err
21033 rm -f conftest.er1
21034 cat conftest.err >&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest.$ac_objext; then
21040 ac_header_compiler=yes
21041 else
21042 echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21045 ac_header_compiler=no
21048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21050 echo "${ECHO_T}$ac_header_compiler" >&6; }
21052 # Is the header present?
21053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21055 cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h. */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21061 #include <$ac_header>
21062 _ACEOF
21063 if { (ac_try="$ac_cpp conftest.$ac_ext"
21064 case "(($ac_try" in
21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066 *) ac_try_echo=$ac_try;;
21067 esac
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } >/dev/null && {
21076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21077 test ! -s conftest.err
21078 }; then
21079 ac_header_preproc=yes
21080 else
21081 echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21084 ac_header_preproc=no
21087 rm -f conftest.err conftest.$ac_ext
21088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21089 echo "${ECHO_T}$ac_header_preproc" >&6; }
21091 # So? What about this header?
21092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21093 yes:no: )
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21098 ac_header_preproc=yes
21100 no:yes:* )
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21115 esac
21116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21119 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 else
21121 eval "$as_ac_Header=\$ac_header_preproc"
21123 ac_res=`eval echo '${'$as_ac_Header'}'`
21124 { echo "$as_me:$LINENO: result: $ac_res" >&5
21125 echo "${ECHO_T}$ac_res" >&6; }
21128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21129 cat >>confdefs.h <<_ACEOF
21130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21131 _ACEOF
21132 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21133 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21134 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21135 echo $ECHO_N "(cached) $ECHO_C" >&6
21136 else
21137 cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h. */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21143 #include <krb5.h>
21146 main ()
21148 static krb5_error ac_aggr;
21149 if (ac_aggr.text)
21150 return 0;
21152 return 0;
21154 _ACEOF
21155 rm -f conftest.$ac_objext
21156 if { (ac_try="$ac_compile"
21157 case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21160 esac
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_compile") 2>conftest.er1
21163 ac_status=$?
21164 grep -v '^ *+' conftest.er1 >conftest.err
21165 rm -f conftest.er1
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && {
21169 test -z "$ac_c_werror_flag" ||
21170 test ! -s conftest.err
21171 } && test -s conftest.$ac_objext; then
21172 ac_cv_member_krb5_error_text=yes
21173 else
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h. */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 #include <krb5.h>
21186 main ()
21188 static krb5_error ac_aggr;
21189 if (sizeof ac_aggr.text)
21190 return 0;
21192 return 0;
21194 _ACEOF
21195 rm -f conftest.$ac_objext
21196 if { (ac_try="$ac_compile"
21197 case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21200 esac
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_compile") 2>conftest.er1
21203 ac_status=$?
21204 grep -v '^ *+' conftest.er1 >conftest.err
21205 rm -f conftest.er1
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } && {
21209 test -z "$ac_c_werror_flag" ||
21210 test ! -s conftest.err
21211 } && test -s conftest.$ac_objext; then
21212 ac_cv_member_krb5_error_text=yes
21213 else
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 ac_cv_member_krb5_error_text=no
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21226 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21227 if test $ac_cv_member_krb5_error_text = yes; then
21229 cat >>confdefs.h <<_ACEOF
21230 #define HAVE_KRB5_ERROR_TEXT 1
21231 _ACEOF
21235 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21236 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21237 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21238 echo $ECHO_N "(cached) $ECHO_C" >&6
21239 else
21240 cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h. */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21246 #include <krb5.h>
21249 main ()
21251 static krb5_error ac_aggr;
21252 if (ac_aggr.e_text)
21253 return 0;
21255 return 0;
21257 _ACEOF
21258 rm -f conftest.$ac_objext
21259 if { (ac_try="$ac_compile"
21260 case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21263 esac
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265 (eval "$ac_compile") 2>conftest.er1
21266 ac_status=$?
21267 grep -v '^ *+' conftest.er1 >conftest.err
21268 rm -f conftest.er1
21269 cat conftest.err >&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } && {
21272 test -z "$ac_c_werror_flag" ||
21273 test ! -s conftest.err
21274 } && test -s conftest.$ac_objext; then
21275 ac_cv_member_krb5_error_e_text=yes
21276 else
21277 echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21280 cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h. */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286 #include <krb5.h>
21289 main ()
21291 static krb5_error ac_aggr;
21292 if (sizeof ac_aggr.e_text)
21293 return 0;
21295 return 0;
21297 _ACEOF
21298 rm -f conftest.$ac_objext
21299 if { (ac_try="$ac_compile"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest.$ac_objext; then
21315 ac_cv_member_krb5_error_e_text=yes
21316 else
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_cv_member_krb5_error_e_text=no
21323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21329 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21330 if test $ac_cv_member_krb5_error_e_text = yes; then
21332 cat >>confdefs.h <<_ACEOF
21333 #define HAVE_KRB5_ERROR_E_TEXT 1
21334 _ACEOF
21341 done
21343 else
21345 for ac_header in des.h
21347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 ac_res=`eval echo '${'$as_ac_Header'}'`
21355 { echo "$as_me:$LINENO: result: $ac_res" >&5
21356 echo "${ECHO_T}$ac_res" >&6; }
21357 else
21358 # Is the header compilable?
21359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21361 cat >conftest.$ac_ext <<_ACEOF
21362 /* confdefs.h. */
21363 _ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21367 $ac_includes_default
21368 #include <$ac_header>
21369 _ACEOF
21370 rm -f conftest.$ac_objext
21371 if { (ac_try="$ac_compile"
21372 case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_compile") 2>conftest.er1
21378 ac_status=$?
21379 grep -v '^ *+' conftest.er1 >conftest.err
21380 rm -f conftest.er1
21381 cat conftest.err >&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } && {
21384 test -z "$ac_c_werror_flag" ||
21385 test ! -s conftest.err
21386 } && test -s conftest.$ac_objext; then
21387 ac_header_compiler=yes
21388 else
21389 echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 ac_header_compiler=no
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21397 echo "${ECHO_T}$ac_header_compiler" >&6; }
21399 # Is the header present?
21400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21402 cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h. */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 #include <$ac_header>
21409 _ACEOF
21410 if { (ac_try="$ac_cpp conftest.$ac_ext"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } >/dev/null && {
21423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21424 test ! -s conftest.err
21425 }; then
21426 ac_header_preproc=yes
21427 else
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 ac_header_preproc=no
21434 rm -f conftest.err conftest.$ac_ext
21435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21436 echo "${ECHO_T}$ac_header_preproc" >&6; }
21438 # So? What about this header?
21439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21440 yes:no: )
21441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21445 ac_header_preproc=yes
21447 no:yes:* )
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21462 esac
21463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
21467 else
21468 eval "$as_ac_Header=\$ac_header_preproc"
21470 ac_res=`eval echo '${'$as_ac_Header'}'`
21471 { echo "$as_me:$LINENO: result: $ac_res" >&5
21472 echo "${ECHO_T}$ac_res" >&6; }
21475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21476 cat >>confdefs.h <<_ACEOF
21477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21478 _ACEOF
21480 else
21482 for ac_header in kerberosIV/des.h
21484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21489 echo $ECHO_N "(cached) $ECHO_C" >&6
21491 ac_res=`eval echo '${'$as_ac_Header'}'`
21492 { echo "$as_me:$LINENO: result: $ac_res" >&5
21493 echo "${ECHO_T}$ac_res" >&6; }
21494 else
21495 # Is the header compilable?
21496 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21498 cat >conftest.$ac_ext <<_ACEOF
21499 /* confdefs.h. */
21500 _ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h. */
21504 $ac_includes_default
21505 #include <$ac_header>
21506 _ACEOF
21507 rm -f conftest.$ac_objext
21508 if { (ac_try="$ac_compile"
21509 case "(($ac_try" in
21510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511 *) ac_try_echo=$ac_try;;
21512 esac
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514 (eval "$ac_compile") 2>conftest.er1
21515 ac_status=$?
21516 grep -v '^ *+' conftest.er1 >conftest.err
21517 rm -f conftest.er1
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } && {
21521 test -z "$ac_c_werror_flag" ||
21522 test ! -s conftest.err
21523 } && test -s conftest.$ac_objext; then
21524 ac_header_compiler=yes
21525 else
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 ac_header_compiler=no
21532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21534 echo "${ECHO_T}$ac_header_compiler" >&6; }
21536 # Is the header present?
21537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21539 cat >conftest.$ac_ext <<_ACEOF
21540 /* confdefs.h. */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 #include <$ac_header>
21546 _ACEOF
21547 if { (ac_try="$ac_cpp conftest.$ac_ext"
21548 case "(($ac_try" in
21549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550 *) ac_try_echo=$ac_try;;
21551 esac
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21554 ac_status=$?
21555 grep -v '^ *+' conftest.er1 >conftest.err
21556 rm -f conftest.er1
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } >/dev/null && {
21560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21561 test ! -s conftest.err
21562 }; then
21563 ac_header_preproc=yes
21564 else
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21568 ac_header_preproc=no
21571 rm -f conftest.err conftest.$ac_ext
21572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21573 echo "${ECHO_T}$ac_header_preproc" >&6; }
21575 # So? What about this header?
21576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21577 yes:no: )
21578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21582 ac_header_preproc=yes
21584 no:yes:* )
21585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21599 esac
21600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21604 else
21605 eval "$as_ac_Header=\$ac_header_preproc"
21607 ac_res=`eval echo '${'$as_ac_Header'}'`
21608 { echo "$as_me:$LINENO: result: $ac_res" >&5
21609 echo "${ECHO_T}$ac_res" >&6; }
21612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21613 cat >>confdefs.h <<_ACEOF
21614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21615 _ACEOF
21617 else
21619 for ac_header in kerberos/des.h
21621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21628 ac_res=`eval echo '${'$as_ac_Header'}'`
21629 { echo "$as_me:$LINENO: result: $ac_res" >&5
21630 echo "${ECHO_T}$ac_res" >&6; }
21631 else
21632 # Is the header compilable?
21633 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21635 cat >conftest.$ac_ext <<_ACEOF
21636 /* confdefs.h. */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 $ac_includes_default
21642 #include <$ac_header>
21643 _ACEOF
21644 rm -f conftest.$ac_objext
21645 if { (ac_try="$ac_compile"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_compile") 2>conftest.er1
21652 ac_status=$?
21653 grep -v '^ *+' conftest.er1 >conftest.err
21654 rm -f conftest.er1
21655 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && {
21658 test -z "$ac_c_werror_flag" ||
21659 test ! -s conftest.err
21660 } && test -s conftest.$ac_objext; then
21661 ac_header_compiler=yes
21662 else
21663 echo "$as_me: failed program was:" >&5
21664 sed 's/^/| /' conftest.$ac_ext >&5
21666 ac_header_compiler=no
21669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21671 echo "${ECHO_T}$ac_header_compiler" >&6; }
21673 # Is the header present?
21674 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21676 cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h. */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 #include <$ac_header>
21683 _ACEOF
21684 if { (ac_try="$ac_cpp conftest.$ac_ext"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21691 ac_status=$?
21692 grep -v '^ *+' conftest.er1 >conftest.err
21693 rm -f conftest.er1
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } >/dev/null && {
21697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21698 test ! -s conftest.err
21699 }; then
21700 ac_header_preproc=yes
21701 else
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21705 ac_header_preproc=no
21708 rm -f conftest.err conftest.$ac_ext
21709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21710 echo "${ECHO_T}$ac_header_preproc" >&6; }
21712 # So? What about this header?
21713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21714 yes:no: )
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21719 ac_header_preproc=yes
21721 no:yes:* )
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21729 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21736 esac
21737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21741 else
21742 eval "$as_ac_Header=\$ac_header_preproc"
21744 ac_res=`eval echo '${'$as_ac_Header'}'`
21745 { echo "$as_me:$LINENO: result: $ac_res" >&5
21746 echo "${ECHO_T}$ac_res" >&6; }
21749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21750 cat >>confdefs.h <<_ACEOF
21751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21752 _ACEOF
21756 done
21760 done
21764 done
21767 for ac_header in krb.h
21769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 ac_res=`eval echo '${'$as_ac_Header'}'`
21777 { echo "$as_me:$LINENO: result: $ac_res" >&5
21778 echo "${ECHO_T}$ac_res" >&6; }
21779 else
21780 # Is the header compilable?
21781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21783 cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h. */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 $ac_includes_default
21790 #include <$ac_header>
21791 _ACEOF
21792 rm -f conftest.$ac_objext
21793 if { (ac_try="$ac_compile"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21797 esac
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_compile") 2>conftest.er1
21800 ac_status=$?
21801 grep -v '^ *+' conftest.er1 >conftest.err
21802 rm -f conftest.er1
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } && {
21806 test -z "$ac_c_werror_flag" ||
21807 test ! -s conftest.err
21808 } && test -s conftest.$ac_objext; then
21809 ac_header_compiler=yes
21810 else
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 ac_header_compiler=no
21817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21819 echo "${ECHO_T}$ac_header_compiler" >&6; }
21821 # Is the header present?
21822 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21824 cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h. */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830 #include <$ac_header>
21831 _ACEOF
21832 if { (ac_try="$ac_cpp conftest.$ac_ext"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21836 esac
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21839 ac_status=$?
21840 grep -v '^ *+' conftest.er1 >conftest.err
21841 rm -f conftest.er1
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } >/dev/null && {
21845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21846 test ! -s conftest.err
21847 }; then
21848 ac_header_preproc=yes
21849 else
21850 echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21853 ac_header_preproc=no
21856 rm -f conftest.err conftest.$ac_ext
21857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21858 echo "${ECHO_T}$ac_header_preproc" >&6; }
21860 # So? What about this header?
21861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21862 yes:no: )
21863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21867 ac_header_preproc=yes
21869 no:yes:* )
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21884 esac
21885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21888 echo $ECHO_N "(cached) $ECHO_C" >&6
21889 else
21890 eval "$as_ac_Header=\$ac_header_preproc"
21892 ac_res=`eval echo '${'$as_ac_Header'}'`
21893 { echo "$as_me:$LINENO: result: $ac_res" >&5
21894 echo "${ECHO_T}$ac_res" >&6; }
21897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21898 cat >>confdefs.h <<_ACEOF
21899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21900 _ACEOF
21902 else
21904 for ac_header in kerberosIV/krb.h
21906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21913 ac_res=`eval echo '${'$as_ac_Header'}'`
21914 { echo "$as_me:$LINENO: result: $ac_res" >&5
21915 echo "${ECHO_T}$ac_res" >&6; }
21916 else
21917 # Is the header compilable?
21918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21920 cat >conftest.$ac_ext <<_ACEOF
21921 /* confdefs.h. */
21922 _ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h. */
21926 $ac_includes_default
21927 #include <$ac_header>
21928 _ACEOF
21929 rm -f conftest.$ac_objext
21930 if { (ac_try="$ac_compile"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21934 esac
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_compile") 2>conftest.er1
21937 ac_status=$?
21938 grep -v '^ *+' conftest.er1 >conftest.err
21939 rm -f conftest.er1
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } && {
21943 test -z "$ac_c_werror_flag" ||
21944 test ! -s conftest.err
21945 } && test -s conftest.$ac_objext; then
21946 ac_header_compiler=yes
21947 else
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21951 ac_header_compiler=no
21954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21955 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21956 echo "${ECHO_T}$ac_header_compiler" >&6; }
21958 # Is the header present?
21959 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21961 cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h. */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 #include <$ac_header>
21968 _ACEOF
21969 if { (ac_try="$ac_cpp conftest.$ac_ext"
21970 case "(($ac_try" in
21971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972 *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21976 ac_status=$?
21977 grep -v '^ *+' conftest.er1 >conftest.err
21978 rm -f conftest.er1
21979 cat conftest.err >&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); } >/dev/null && {
21982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21983 test ! -s conftest.err
21984 }; then
21985 ac_header_preproc=yes
21986 else
21987 echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21990 ac_header_preproc=no
21993 rm -f conftest.err conftest.$ac_ext
21994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21995 echo "${ECHO_T}$ac_header_preproc" >&6; }
21997 # So? What about this header?
21998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21999 yes:no: )
22000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22004 ac_header_preproc=yes
22006 no:yes:* )
22007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22021 esac
22022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22026 else
22027 eval "$as_ac_Header=\$ac_header_preproc"
22029 ac_res=`eval echo '${'$as_ac_Header'}'`
22030 { echo "$as_me:$LINENO: result: $ac_res" >&5
22031 echo "${ECHO_T}$ac_res" >&6; }
22034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22035 cat >>confdefs.h <<_ACEOF
22036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22037 _ACEOF
22039 else
22041 for ac_header in kerberos/krb.h
22043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 ac_res=`eval echo '${'$as_ac_Header'}'`
22051 { echo "$as_me:$LINENO: result: $ac_res" >&5
22052 echo "${ECHO_T}$ac_res" >&6; }
22053 else
22054 # Is the header compilable?
22055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22057 cat >conftest.$ac_ext <<_ACEOF
22058 /* confdefs.h. */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22063 $ac_includes_default
22064 #include <$ac_header>
22065 _ACEOF
22066 rm -f conftest.$ac_objext
22067 if { (ac_try="$ac_compile"
22068 case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22071 esac
22072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_compile") 2>conftest.er1
22074 ac_status=$?
22075 grep -v '^ *+' conftest.er1 >conftest.err
22076 rm -f conftest.er1
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } && {
22080 test -z "$ac_c_werror_flag" ||
22081 test ! -s conftest.err
22082 } && test -s conftest.$ac_objext; then
22083 ac_header_compiler=yes
22084 else
22085 echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22088 ac_header_compiler=no
22091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22093 echo "${ECHO_T}$ac_header_compiler" >&6; }
22095 # Is the header present?
22096 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22098 cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h. */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22104 #include <$ac_header>
22105 _ACEOF
22106 if { (ac_try="$ac_cpp conftest.$ac_ext"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22110 esac
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22113 ac_status=$?
22114 grep -v '^ *+' conftest.er1 >conftest.err
22115 rm -f conftest.er1
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } >/dev/null && {
22119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22120 test ! -s conftest.err
22121 }; then
22122 ac_header_preproc=yes
22123 else
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 ac_header_preproc=no
22130 rm -f conftest.err conftest.$ac_ext
22131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22132 echo "${ECHO_T}$ac_header_preproc" >&6; }
22134 # So? What about this header?
22135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22136 yes:no: )
22137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22141 ac_header_preproc=yes
22143 no:yes:* )
22144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22158 esac
22159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22162 echo $ECHO_N "(cached) $ECHO_C" >&6
22163 else
22164 eval "$as_ac_Header=\$ac_header_preproc"
22166 ac_res=`eval echo '${'$as_ac_Header'}'`
22167 { echo "$as_me:$LINENO: result: $ac_res" >&5
22168 echo "${ECHO_T}$ac_res" >&6; }
22171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22172 cat >>confdefs.h <<_ACEOF
22173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22174 _ACEOF
22178 done
22182 done
22186 done
22190 for ac_header in com_err.h
22192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22199 ac_res=`eval echo '${'$as_ac_Header'}'`
22200 { echo "$as_me:$LINENO: result: $ac_res" >&5
22201 echo "${ECHO_T}$ac_res" >&6; }
22202 else
22203 # Is the header compilable?
22204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22206 cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h. */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22212 $ac_includes_default
22213 #include <$ac_header>
22214 _ACEOF
22215 rm -f conftest.$ac_objext
22216 if { (ac_try="$ac_compile"
22217 case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22220 esac
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_compile") 2>conftest.er1
22223 ac_status=$?
22224 grep -v '^ *+' conftest.er1 >conftest.err
22225 rm -f conftest.er1
22226 cat conftest.err >&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } && {
22229 test -z "$ac_c_werror_flag" ||
22230 test ! -s conftest.err
22231 } && test -s conftest.$ac_objext; then
22232 ac_header_compiler=yes
22233 else
22234 echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22237 ac_header_compiler=no
22240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22242 echo "${ECHO_T}$ac_header_compiler" >&6; }
22244 # Is the header present?
22245 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22247 cat >conftest.$ac_ext <<_ACEOF
22248 /* confdefs.h. */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22253 #include <$ac_header>
22254 _ACEOF
22255 if { (ac_try="$ac_cpp conftest.$ac_ext"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22259 esac
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22262 ac_status=$?
22263 grep -v '^ *+' conftest.er1 >conftest.err
22264 rm -f conftest.er1
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); } >/dev/null && {
22268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22269 test ! -s conftest.err
22270 }; then
22271 ac_header_preproc=yes
22272 else
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22276 ac_header_preproc=no
22279 rm -f conftest.err conftest.$ac_ext
22280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22281 echo "${ECHO_T}$ac_header_preproc" >&6; }
22283 # So? What about this header?
22284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22285 yes:no: )
22286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22290 ac_header_preproc=yes
22292 no:yes:* )
22293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22307 esac
22308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22311 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 else
22313 eval "$as_ac_Header=\$ac_header_preproc"
22315 ac_res=`eval echo '${'$as_ac_Header'}'`
22316 { echo "$as_me:$LINENO: result: $ac_res" >&5
22317 echo "${ECHO_T}$ac_res" >&6; }
22320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22321 cat >>confdefs.h <<_ACEOF
22322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22323 _ACEOF
22327 done
22331 # Solaris requires -lintl if you want strerror (which calls dgettext)
22332 # to return localized messages.
22334 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22335 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22336 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22337 echo $ECHO_N "(cached) $ECHO_C" >&6
22338 else
22339 ac_check_lib_save_LIBS=$LIBS
22340 LIBS="-lintl $LIBS"
22341 cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h. */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22348 /* Override any GCC internal prototype to avoid an error.
22349 Use char because int might match the return type of a GCC
22350 builtin and then its argument prototype would still apply. */
22351 #ifdef __cplusplus
22352 extern "C"
22353 #endif
22354 char dgettext ();
22356 main ()
22358 return dgettext ();
22360 return 0;
22362 _ACEOF
22363 rm -f conftest.$ac_objext conftest$ac_exeext
22364 if { (ac_try="$ac_link"
22365 case "(($ac_try" in
22366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367 *) ac_try_echo=$ac_try;;
22368 esac
22369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370 (eval "$ac_link") 2>conftest.er1
22371 ac_status=$?
22372 grep -v '^ *+' conftest.er1 >conftest.err
22373 rm -f conftest.er1
22374 cat conftest.err >&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } && {
22377 test -z "$ac_c_werror_flag" ||
22378 test ! -s conftest.err
22379 } && test -s conftest$ac_exeext &&
22380 $as_test_x conftest$ac_exeext; then
22381 ac_cv_lib_intl_dgettext=yes
22382 else
22383 echo "$as_me: failed program was:" >&5
22384 sed 's/^/| /' conftest.$ac_ext >&5
22386 ac_cv_lib_intl_dgettext=no
22389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22390 conftest$ac_exeext conftest.$ac_ext
22391 LIBS=$ac_check_lib_save_LIBS
22393 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22394 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22395 if test $ac_cv_lib_intl_dgettext = yes; then
22396 cat >>confdefs.h <<_ACEOF
22397 #define HAVE_LIBINTL 1
22398 _ACEOF
22400 LIBS="-lintl $LIBS"
22405 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22406 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22407 if test "${emacs_cv_localtime_cache+set}" = set; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 else
22410 if test x$ac_cv_func_tzset = xyes; then
22411 if test "$cross_compiling" = yes; then
22412 # If we have tzset, assume the worst when cross-compiling.
22413 emacs_cv_localtime_cache=yes
22414 else
22415 cat >conftest.$ac_ext <<_ACEOF
22416 /* confdefs.h. */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421 #include <time.h>
22422 extern char **environ;
22423 unset_TZ ()
22425 char **from, **to;
22426 for (to = from = environ; (*to = *from); from++)
22427 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22428 to++;
22430 char TZ_GMT0[] = "TZ=GMT0";
22431 char TZ_PST8[] = "TZ=PST8";
22432 main()
22434 time_t now = time ((time_t *) 0);
22435 int hour_GMT0, hour_unset;
22436 if (putenv (TZ_GMT0) != 0)
22437 exit (1);
22438 hour_GMT0 = localtime (&now)->tm_hour;
22439 unset_TZ ();
22440 hour_unset = localtime (&now)->tm_hour;
22441 if (putenv (TZ_PST8) != 0)
22442 exit (1);
22443 if (localtime (&now)->tm_hour == hour_GMT0)
22444 exit (1);
22445 unset_TZ ();
22446 if (localtime (&now)->tm_hour != hour_unset)
22447 exit (1);
22448 exit (0);
22450 _ACEOF
22451 rm -f conftest$ac_exeext
22452 if { (ac_try="$ac_link"
22453 case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22456 esac
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_link") 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22462 { (case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22465 esac
22466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22467 (eval "$ac_try") 2>&5
22468 ac_status=$?
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; }; then
22471 emacs_cv_localtime_cache=no
22472 else
22473 echo "$as_me: program exited with status $ac_status" >&5
22474 echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22477 ( exit $ac_status )
22478 emacs_cv_localtime_cache=yes
22480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22484 else
22485 # If we lack tzset, report that localtime does not cache TZ,
22486 # since we can't invalidate the cache if we don't have tzset.
22487 emacs_cv_localtime_cache=no
22490 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22491 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22492 if test $emacs_cv_localtime_cache = yes; then
22494 cat >>confdefs.h <<\_ACEOF
22495 #define LOCALTIME_CACHE 1
22496 _ACEOF
22500 if test "x$HAVE_TIMEVAL" = xyes; then
22502 for ac_func in gettimeofday
22504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22508 echo $ECHO_N "(cached) $ECHO_C" >&6
22509 else
22510 cat >conftest.$ac_ext <<_ACEOF
22511 /* confdefs.h. */
22512 _ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h. */
22516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22518 #define $ac_func innocuous_$ac_func
22520 /* System header to define __stub macros and hopefully few prototypes,
22521 which can conflict with char $ac_func (); below.
22522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22523 <limits.h> exists even on freestanding compilers. */
22525 #ifdef __STDC__
22526 # include <limits.h>
22527 #else
22528 # include <assert.h>
22529 #endif
22531 #undef $ac_func
22533 /* Override any GCC internal prototype to avoid an error.
22534 Use char because int might match the return type of a GCC
22535 builtin and then its argument prototype would still apply. */
22536 #ifdef __cplusplus
22537 extern "C"
22538 #endif
22539 char $ac_func ();
22540 /* The GNU C library defines this for functions which it implements
22541 to always fail with ENOSYS. Some functions are actually named
22542 something starting with __ and the normal name is an alias. */
22543 #if defined __stub_$ac_func || defined __stub___$ac_func
22544 choke me
22545 #endif
22548 main ()
22550 return $ac_func ();
22552 return 0;
22554 _ACEOF
22555 rm -f conftest.$ac_objext conftest$ac_exeext
22556 if { (ac_try="$ac_link"
22557 case "(($ac_try" in
22558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559 *) ac_try_echo=$ac_try;;
22560 esac
22561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22562 (eval "$ac_link") 2>conftest.er1
22563 ac_status=$?
22564 grep -v '^ *+' conftest.er1 >conftest.err
22565 rm -f conftest.er1
22566 cat conftest.err >&5
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); } && {
22569 test -z "$ac_c_werror_flag" ||
22570 test ! -s conftest.err
22571 } && test -s conftest$ac_exeext &&
22572 $as_test_x conftest$ac_exeext; then
22573 eval "$as_ac_var=yes"
22574 else
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 eval "$as_ac_var=no"
22581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22582 conftest$ac_exeext conftest.$ac_ext
22584 ac_res=`eval echo '${'$as_ac_var'}'`
22585 { echo "$as_me:$LINENO: result: $ac_res" >&5
22586 echo "${ECHO_T}$ac_res" >&6; }
22587 if test `eval echo '${'$as_ac_var'}'` = yes; then
22588 cat >>confdefs.h <<_ACEOF
22589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22590 _ACEOF
22593 done
22595 if test $ac_cv_func_gettimeofday = yes; then
22596 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22597 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22598 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22600 else
22601 cat >conftest.$ac_ext <<_ACEOF
22602 /* confdefs.h. */
22603 _ACEOF
22604 cat confdefs.h >>conftest.$ac_ext
22605 cat >>conftest.$ac_ext <<_ACEOF
22606 /* end confdefs.h. */
22608 #ifdef TIME_WITH_SYS_TIME
22609 #include <sys/time.h>
22610 #include <time.h>
22611 #else
22612 #ifdef HAVE_SYS_TIME_H
22613 #include <sys/time.h>
22614 #else
22615 #include <time.h>
22616 #endif
22617 #endif
22619 main ()
22621 struct timeval time;
22622 gettimeofday (&time, 0);
22624 return 0;
22626 _ACEOF
22627 rm -f conftest.$ac_objext
22628 if { (ac_try="$ac_compile"
22629 case "(($ac_try" in
22630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631 *) ac_try_echo=$ac_try;;
22632 esac
22633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634 (eval "$ac_compile") 2>conftest.er1
22635 ac_status=$?
22636 grep -v '^ *+' conftest.er1 >conftest.err
22637 rm -f conftest.er1
22638 cat conftest.err >&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); } && {
22641 test -z "$ac_c_werror_flag" ||
22642 test ! -s conftest.err
22643 } && test -s conftest.$ac_objext; then
22644 emacs_cv_gettimeofday_two_arguments=yes
22645 else
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22649 emacs_cv_gettimeofday_two_arguments=no
22652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22654 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22655 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22656 if test $emacs_cv_gettimeofday_two_arguments = no; then
22658 cat >>confdefs.h <<\_ACEOF
22659 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22660 _ACEOF
22666 ok_so_far=yes
22667 { echo "$as_me:$LINENO: checking for socket" >&5
22668 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22669 if test "${ac_cv_func_socket+set}" = set; then
22670 echo $ECHO_N "(cached) $ECHO_C" >&6
22671 else
22672 cat >conftest.$ac_ext <<_ACEOF
22673 /* confdefs.h. */
22674 _ACEOF
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h. */
22678 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22680 #define socket innocuous_socket
22682 /* System header to define __stub macros and hopefully few prototypes,
22683 which can conflict with char socket (); below.
22684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22685 <limits.h> exists even on freestanding compilers. */
22687 #ifdef __STDC__
22688 # include <limits.h>
22689 #else
22690 # include <assert.h>
22691 #endif
22693 #undef socket
22695 /* Override any GCC internal prototype to avoid an error.
22696 Use char because int might match the return type of a GCC
22697 builtin and then its argument prototype would still apply. */
22698 #ifdef __cplusplus
22699 extern "C"
22700 #endif
22701 char socket ();
22702 /* The GNU C library defines this for functions which it implements
22703 to always fail with ENOSYS. Some functions are actually named
22704 something starting with __ and the normal name is an alias. */
22705 #if defined __stub_socket || defined __stub___socket
22706 choke me
22707 #endif
22710 main ()
22712 return socket ();
22714 return 0;
22716 _ACEOF
22717 rm -f conftest.$ac_objext conftest$ac_exeext
22718 if { (ac_try="$ac_link"
22719 case "(($ac_try" in
22720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721 *) ac_try_echo=$ac_try;;
22722 esac
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724 (eval "$ac_link") 2>conftest.er1
22725 ac_status=$?
22726 grep -v '^ *+' conftest.er1 >conftest.err
22727 rm -f conftest.er1
22728 cat conftest.err >&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } && {
22731 test -z "$ac_c_werror_flag" ||
22732 test ! -s conftest.err
22733 } && test -s conftest$ac_exeext &&
22734 $as_test_x conftest$ac_exeext; then
22735 ac_cv_func_socket=yes
22736 else
22737 echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22740 ac_cv_func_socket=no
22743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22744 conftest$ac_exeext conftest.$ac_ext
22746 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22747 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22748 if test $ac_cv_func_socket = yes; then
22750 else
22751 ok_so_far=no
22754 if test $ok_so_far = yes; then
22755 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22756 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22757 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22758 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22759 echo $ECHO_N "(cached) $ECHO_C" >&6
22761 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22762 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22763 else
22764 # Is the header compilable?
22765 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22766 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22767 cat >conftest.$ac_ext <<_ACEOF
22768 /* confdefs.h. */
22769 _ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22773 $ac_includes_default
22774 #include <netinet/in.h>
22775 _ACEOF
22776 rm -f conftest.$ac_objext
22777 if { (ac_try="$ac_compile"
22778 case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22781 esac
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783 (eval "$ac_compile") 2>conftest.er1
22784 ac_status=$?
22785 grep -v '^ *+' conftest.er1 >conftest.err
22786 rm -f conftest.er1
22787 cat conftest.err >&5
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); } && {
22790 test -z "$ac_c_werror_flag" ||
22791 test ! -s conftest.err
22792 } && test -s conftest.$ac_objext; then
22793 ac_header_compiler=yes
22794 else
22795 echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22798 ac_header_compiler=no
22801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22803 echo "${ECHO_T}$ac_header_compiler" >&6; }
22805 # Is the header present?
22806 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22807 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22808 cat >conftest.$ac_ext <<_ACEOF
22809 /* confdefs.h. */
22810 _ACEOF
22811 cat confdefs.h >>conftest.$ac_ext
22812 cat >>conftest.$ac_ext <<_ACEOF
22813 /* end confdefs.h. */
22814 #include <netinet/in.h>
22815 _ACEOF
22816 if { (ac_try="$ac_cpp conftest.$ac_ext"
22817 case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22820 esac
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22823 ac_status=$?
22824 grep -v '^ *+' conftest.er1 >conftest.err
22825 rm -f conftest.er1
22826 cat conftest.err >&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } >/dev/null && {
22829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22830 test ! -s conftest.err
22831 }; then
22832 ac_header_preproc=yes
22833 else
22834 echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22837 ac_header_preproc=no
22840 rm -f conftest.err conftest.$ac_ext
22841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22842 echo "${ECHO_T}$ac_header_preproc" >&6; }
22844 # So? What about this header?
22845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22846 yes:no: )
22847 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22848 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22849 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22850 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22851 ac_header_preproc=yes
22853 no:yes:* )
22854 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22855 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22856 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22857 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22858 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22859 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22860 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22861 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22862 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22863 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22864 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22865 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22868 esac
22869 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22870 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22871 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 else
22874 ac_cv_header_netinet_in_h=$ac_header_preproc
22876 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22877 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22880 if test $ac_cv_header_netinet_in_h = yes; then
22882 else
22883 ok_so_far=no
22888 if test $ok_so_far = yes; then
22889 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22890 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22891 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22892 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22895 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22896 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22897 else
22898 # Is the header compilable?
22899 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22900 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22901 cat >conftest.$ac_ext <<_ACEOF
22902 /* confdefs.h. */
22903 _ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h. */
22907 $ac_includes_default
22908 #include <arpa/inet.h>
22909 _ACEOF
22910 rm -f conftest.$ac_objext
22911 if { (ac_try="$ac_compile"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22915 esac
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917 (eval "$ac_compile") 2>conftest.er1
22918 ac_status=$?
22919 grep -v '^ *+' conftest.er1 >conftest.err
22920 rm -f conftest.er1
22921 cat conftest.err >&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } && {
22924 test -z "$ac_c_werror_flag" ||
22925 test ! -s conftest.err
22926 } && test -s conftest.$ac_objext; then
22927 ac_header_compiler=yes
22928 else
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22932 ac_header_compiler=no
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22937 echo "${ECHO_T}$ac_header_compiler" >&6; }
22939 # Is the header present?
22940 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22941 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22942 cat >conftest.$ac_ext <<_ACEOF
22943 /* confdefs.h. */
22944 _ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22948 #include <arpa/inet.h>
22949 _ACEOF
22950 if { (ac_try="$ac_cpp conftest.$ac_ext"
22951 case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22954 esac
22955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22957 ac_status=$?
22958 grep -v '^ *+' conftest.er1 >conftest.err
22959 rm -f conftest.er1
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } >/dev/null && {
22963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22964 test ! -s conftest.err
22965 }; then
22966 ac_header_preproc=yes
22967 else
22968 echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22971 ac_header_preproc=no
22974 rm -f conftest.err conftest.$ac_ext
22975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22976 echo "${ECHO_T}$ac_header_preproc" >&6; }
22978 # So? What about this header?
22979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22980 yes:no: )
22981 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22982 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22983 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22984 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22985 ac_header_preproc=yes
22987 no:yes:* )
22988 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22989 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22990 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22991 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22992 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22993 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22994 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22995 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22996 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22997 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22998 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22999 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23002 esac
23003 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23004 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23005 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23006 echo $ECHO_N "(cached) $ECHO_C" >&6
23007 else
23008 ac_cv_header_arpa_inet_h=$ac_header_preproc
23010 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23011 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23014 if test $ac_cv_header_arpa_inet_h = yes; then
23016 else
23017 ok_so_far=no
23022 if test $ok_so_far = yes; then
23024 cat >>confdefs.h <<\_ACEOF
23025 #define HAVE_INET_SOCKETS 1
23026 _ACEOF
23031 for ac_header in sys/ioctl.h
23033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23038 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 ac_res=`eval echo '${'$as_ac_Header'}'`
23041 { echo "$as_me:$LINENO: result: $ac_res" >&5
23042 echo "${ECHO_T}$ac_res" >&6; }
23043 else
23044 # Is the header compilable?
23045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23047 cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h. */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23053 $ac_includes_default
23054 #include <$ac_header>
23055 _ACEOF
23056 rm -f conftest.$ac_objext
23057 if { (ac_try="$ac_compile"
23058 case "(($ac_try" in
23059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23060 *) ac_try_echo=$ac_try;;
23061 esac
23062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23063 (eval "$ac_compile") 2>conftest.er1
23064 ac_status=$?
23065 grep -v '^ *+' conftest.er1 >conftest.err
23066 rm -f conftest.er1
23067 cat conftest.err >&5
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } && {
23070 test -z "$ac_c_werror_flag" ||
23071 test ! -s conftest.err
23072 } && test -s conftest.$ac_objext; then
23073 ac_header_compiler=yes
23074 else
23075 echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23078 ac_header_compiler=no
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23083 echo "${ECHO_T}$ac_header_compiler" >&6; }
23085 # Is the header present?
23086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23088 cat >conftest.$ac_ext <<_ACEOF
23089 /* confdefs.h. */
23090 _ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h. */
23094 #include <$ac_header>
23095 _ACEOF
23096 if { (ac_try="$ac_cpp conftest.$ac_ext"
23097 case "(($ac_try" in
23098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099 *) ac_try_echo=$ac_try;;
23100 esac
23101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23103 ac_status=$?
23104 grep -v '^ *+' conftest.er1 >conftest.err
23105 rm -f conftest.er1
23106 cat conftest.err >&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } >/dev/null && {
23109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23110 test ! -s conftest.err
23111 }; then
23112 ac_header_preproc=yes
23113 else
23114 echo "$as_me: failed program was:" >&5
23115 sed 's/^/| /' conftest.$ac_ext >&5
23117 ac_header_preproc=no
23120 rm -f conftest.err conftest.$ac_ext
23121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23122 echo "${ECHO_T}$ac_header_preproc" >&6; }
23124 # So? What about this header?
23125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23126 yes:no: )
23127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23131 ac_header_preproc=yes
23133 no:yes:* )
23134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23148 esac
23149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23152 echo $ECHO_N "(cached) $ECHO_C" >&6
23153 else
23154 eval "$as_ac_Header=\$ac_header_preproc"
23156 ac_res=`eval echo '${'$as_ac_Header'}'`
23157 { echo "$as_me:$LINENO: result: $ac_res" >&5
23158 echo "${ECHO_T}$ac_res" >&6; }
23161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23162 cat >>confdefs.h <<_ACEOF
23163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23164 _ACEOF
23168 done
23171 if test -f /usr/lpp/X11/bin/smt.exp; then
23173 cat >>confdefs.h <<\_ACEOF
23174 #define HAVE_AIX_SMT_EXP 1
23175 _ACEOF
23179 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23180 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23181 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23182 { echo "$as_me:$LINENO: result: yes" >&5
23183 echo "${ECHO_T}yes" >&6; }
23185 cat >>confdefs.h <<\_ACEOF
23186 #define HAVE_DEV_PTMX 1
23187 _ACEOF
23189 else
23190 { echo "$as_me:$LINENO: result: no" >&5
23191 echo "${ECHO_T}no" >&6; }
23194 { echo "$as_me:$LINENO: checking for pid_t" >&5
23195 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23196 if test "${ac_cv_type_pid_t+set}" = set; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23198 else
23199 cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h. */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23205 $ac_includes_default
23206 typedef pid_t ac__type_new_;
23208 main ()
23210 if ((ac__type_new_ *) 0)
23211 return 0;
23212 if (sizeof (ac__type_new_))
23213 return 0;
23215 return 0;
23217 _ACEOF
23218 rm -f conftest.$ac_objext
23219 if { (ac_try="$ac_compile"
23220 case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225 (eval "$ac_compile") 2>conftest.er1
23226 ac_status=$?
23227 grep -v '^ *+' conftest.er1 >conftest.err
23228 rm -f conftest.er1
23229 cat conftest.err >&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); } && {
23232 test -z "$ac_c_werror_flag" ||
23233 test ! -s conftest.err
23234 } && test -s conftest.$ac_objext; then
23235 ac_cv_type_pid_t=yes
23236 else
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23240 ac_cv_type_pid_t=no
23243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23246 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23247 if test $ac_cv_type_pid_t = yes; then
23249 else
23251 cat >>confdefs.h <<_ACEOF
23252 #define pid_t int
23253 _ACEOF
23258 for ac_header in vfork.h
23260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23265 echo $ECHO_N "(cached) $ECHO_C" >&6
23267 ac_res=`eval echo '${'$as_ac_Header'}'`
23268 { echo "$as_me:$LINENO: result: $ac_res" >&5
23269 echo "${ECHO_T}$ac_res" >&6; }
23270 else
23271 # Is the header compilable?
23272 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23274 cat >conftest.$ac_ext <<_ACEOF
23275 /* confdefs.h. */
23276 _ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h. */
23280 $ac_includes_default
23281 #include <$ac_header>
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_compile") 2>conftest.er1
23291 ac_status=$?
23292 grep -v '^ *+' conftest.er1 >conftest.err
23293 rm -f conftest.er1
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } && {
23297 test -z "$ac_c_werror_flag" ||
23298 test ! -s conftest.err
23299 } && test -s conftest.$ac_objext; then
23300 ac_header_compiler=yes
23301 else
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 ac_header_compiler=no
23308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23310 echo "${ECHO_T}$ac_header_compiler" >&6; }
23312 # Is the header present?
23313 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23315 cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h. */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321 #include <$ac_header>
23322 _ACEOF
23323 if { (ac_try="$ac_cpp conftest.$ac_ext"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23327 esac
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23330 ac_status=$?
23331 grep -v '^ *+' conftest.er1 >conftest.err
23332 rm -f conftest.er1
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } >/dev/null && {
23336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 }; then
23339 ac_header_preproc=yes
23340 else
23341 echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23344 ac_header_preproc=no
23347 rm -f conftest.err conftest.$ac_ext
23348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23349 echo "${ECHO_T}$ac_header_preproc" >&6; }
23351 # So? What about this header?
23352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23353 yes:no: )
23354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23358 ac_header_preproc=yes
23360 no:yes:* )
23361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23375 esac
23376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
23380 else
23381 eval "$as_ac_Header=\$ac_header_preproc"
23383 ac_res=`eval echo '${'$as_ac_Header'}'`
23384 { echo "$as_me:$LINENO: result: $ac_res" >&5
23385 echo "${ECHO_T}$ac_res" >&6; }
23388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23389 cat >>confdefs.h <<_ACEOF
23390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23391 _ACEOF
23395 done
23399 for ac_func in fork vfork
23401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23405 echo $ECHO_N "(cached) $ECHO_C" >&6
23406 else
23407 cat >conftest.$ac_ext <<_ACEOF
23408 /* confdefs.h. */
23409 _ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h. */
23413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23415 #define $ac_func innocuous_$ac_func
23417 /* System header to define __stub macros and hopefully few prototypes,
23418 which can conflict with char $ac_func (); below.
23419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23420 <limits.h> exists even on freestanding compilers. */
23422 #ifdef __STDC__
23423 # include <limits.h>
23424 #else
23425 # include <assert.h>
23426 #endif
23428 #undef $ac_func
23430 /* Override any GCC internal prototype to avoid an error.
23431 Use char because int might match the return type of a GCC
23432 builtin and then its argument prototype would still apply. */
23433 #ifdef __cplusplus
23434 extern "C"
23435 #endif
23436 char $ac_func ();
23437 /* The GNU C library defines this for functions which it implements
23438 to always fail with ENOSYS. Some functions are actually named
23439 something starting with __ and the normal name is an alias. */
23440 #if defined __stub_$ac_func || defined __stub___$ac_func
23441 choke me
23442 #endif
23445 main ()
23447 return $ac_func ();
23449 return 0;
23451 _ACEOF
23452 rm -f conftest.$ac_objext conftest$ac_exeext
23453 if { (ac_try="$ac_link"
23454 case "(($ac_try" in
23455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456 *) ac_try_echo=$ac_try;;
23457 esac
23458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459 (eval "$ac_link") 2>conftest.er1
23460 ac_status=$?
23461 grep -v '^ *+' conftest.er1 >conftest.err
23462 rm -f conftest.er1
23463 cat conftest.err >&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); } && {
23466 test -z "$ac_c_werror_flag" ||
23467 test ! -s conftest.err
23468 } && test -s conftest$ac_exeext &&
23469 $as_test_x conftest$ac_exeext; then
23470 eval "$as_ac_var=yes"
23471 else
23472 echo "$as_me: failed program was:" >&5
23473 sed 's/^/| /' conftest.$ac_ext >&5
23475 eval "$as_ac_var=no"
23478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23479 conftest$ac_exeext conftest.$ac_ext
23481 ac_res=`eval echo '${'$as_ac_var'}'`
23482 { echo "$as_me:$LINENO: result: $ac_res" >&5
23483 echo "${ECHO_T}$ac_res" >&6; }
23484 if test `eval echo '${'$as_ac_var'}'` = yes; then
23485 cat >>confdefs.h <<_ACEOF
23486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23487 _ACEOF
23490 done
23492 if test "x$ac_cv_func_fork" = xyes; then
23493 { echo "$as_me:$LINENO: checking for working fork" >&5
23494 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23495 if test "${ac_cv_func_fork_works+set}" = set; then
23496 echo $ECHO_N "(cached) $ECHO_C" >&6
23497 else
23498 if test "$cross_compiling" = yes; then
23499 ac_cv_func_fork_works=cross
23500 else
23501 cat >conftest.$ac_ext <<_ACEOF
23502 /* confdefs.h. */
23503 _ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h. */
23507 $ac_includes_default
23509 main ()
23512 /* By Ruediger Kuhlmann. */
23513 return fork () < 0;
23516 return 0;
23518 _ACEOF
23519 rm -f conftest$ac_exeext
23520 if { (ac_try="$ac_link"
23521 case "(($ac_try" in
23522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523 *) ac_try_echo=$ac_try;;
23524 esac
23525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526 (eval "$ac_link") 2>&5
23527 ac_status=$?
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23530 { (case "(($ac_try" in
23531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532 *) ac_try_echo=$ac_try;;
23533 esac
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535 (eval "$ac_try") 2>&5
23536 ac_status=$?
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23539 ac_cv_func_fork_works=yes
23540 else
23541 echo "$as_me: program exited with status $ac_status" >&5
23542 echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23545 ( exit $ac_status )
23546 ac_cv_func_fork_works=no
23548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23553 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23554 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23556 else
23557 ac_cv_func_fork_works=$ac_cv_func_fork
23559 if test "x$ac_cv_func_fork_works" = xcross; then
23560 case $host in
23561 *-*-amigaos* | *-*-msdosdjgpp*)
23562 # Override, as these systems have only a dummy fork() stub
23563 ac_cv_func_fork_works=no
23566 ac_cv_func_fork_works=yes
23568 esac
23569 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23570 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23572 ac_cv_func_vfork_works=$ac_cv_func_vfork
23573 if test "x$ac_cv_func_vfork" = xyes; then
23574 { echo "$as_me:$LINENO: checking for working vfork" >&5
23575 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23576 if test "${ac_cv_func_vfork_works+set}" = set; then
23577 echo $ECHO_N "(cached) $ECHO_C" >&6
23578 else
23579 if test "$cross_compiling" = yes; then
23580 ac_cv_func_vfork_works=cross
23581 else
23582 cat >conftest.$ac_ext <<_ACEOF
23583 /* confdefs.h. */
23584 _ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23588 /* Thanks to Paul Eggert for this test. */
23589 $ac_includes_default
23590 #include <sys/wait.h>
23591 #ifdef HAVE_VFORK_H
23592 # include <vfork.h>
23593 #endif
23594 /* On some sparc systems, changes by the child to local and incoming
23595 argument registers are propagated back to the parent. The compiler
23596 is told about this with #include <vfork.h>, but some compilers
23597 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23598 static variable whose address is put into a register that is
23599 clobbered by the vfork. */
23600 static void
23601 #ifdef __cplusplus
23602 sparc_address_test (int arg)
23603 # else
23604 sparc_address_test (arg) int arg;
23605 #endif
23607 static pid_t child;
23608 if (!child) {
23609 child = vfork ();
23610 if (child < 0) {
23611 perror ("vfork");
23612 _exit(2);
23614 if (!child) {
23615 arg = getpid();
23616 write(-1, "", 0);
23617 _exit (arg);
23623 main ()
23625 pid_t parent = getpid ();
23626 pid_t child;
23628 sparc_address_test (0);
23630 child = vfork ();
23632 if (child == 0) {
23633 /* Here is another test for sparc vfork register problems. This
23634 test uses lots of local variables, at least as many local
23635 variables as main has allocated so far including compiler
23636 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23637 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23638 reuse the register of parent for one of the local variables,
23639 since it will think that parent can't possibly be used any more
23640 in this routine. Assigning to the local variable will thus
23641 munge parent in the parent process. */
23642 pid_t
23643 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23644 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23645 /* Convince the compiler that p..p7 are live; otherwise, it might
23646 use the same hardware register for all 8 local variables. */
23647 if (p != p1 || p != p2 || p != p3 || p != p4
23648 || p != p5 || p != p6 || p != p7)
23649 _exit(1);
23651 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23652 from child file descriptors. If the child closes a descriptor
23653 before it execs or exits, this munges the parent's descriptor
23654 as well. Test for this by closing stdout in the child. */
23655 _exit(close(fileno(stdout)) != 0);
23656 } else {
23657 int status;
23658 struct stat st;
23660 while (wait(&status) != child)
23662 return (
23663 /* Was there some problem with vforking? */
23664 child < 0
23666 /* Did the child fail? (This shouldn't happen.) */
23667 || status
23669 /* Did the vfork/compiler bug occur? */
23670 || parent != getpid()
23672 /* Did the file descriptor bug occur? */
23673 || fstat(fileno(stdout), &st) != 0
23677 _ACEOF
23678 rm -f conftest$ac_exeext
23679 if { (ac_try="$ac_link"
23680 case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23683 esac
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_link") 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23689 { (case "(($ac_try" in
23690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691 *) ac_try_echo=$ac_try;;
23692 esac
23693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23694 (eval "$ac_try") 2>&5
23695 ac_status=$?
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; }; then
23698 ac_cv_func_vfork_works=yes
23699 else
23700 echo "$as_me: program exited with status $ac_status" >&5
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 ( exit $ac_status )
23705 ac_cv_func_vfork_works=no
23707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23712 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23713 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23716 if test "x$ac_cv_func_fork_works" = xcross; then
23717 ac_cv_func_vfork_works=$ac_cv_func_vfork
23718 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23719 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23722 if test "x$ac_cv_func_vfork_works" = xyes; then
23724 cat >>confdefs.h <<\_ACEOF
23725 #define HAVE_WORKING_VFORK 1
23726 _ACEOF
23728 else
23730 cat >>confdefs.h <<\_ACEOF
23731 #define vfork fork
23732 _ACEOF
23735 if test "x$ac_cv_func_fork_works" = xyes; then
23737 cat >>confdefs.h <<\_ACEOF
23738 #define HAVE_WORKING_FORK 1
23739 _ACEOF
23744 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23745 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23746 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23747 echo $ECHO_N "(cached) $ECHO_C" >&6
23748 else
23749 cat >conftest.$ac_ext <<_ACEOF
23750 /* confdefs.h. */
23751 _ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h. */
23755 #include <langinfo.h>
23757 main ()
23759 char* cs = nl_langinfo(CODESET);
23761 return 0;
23763 _ACEOF
23764 rm -f conftest.$ac_objext conftest$ac_exeext
23765 if { (ac_try="$ac_link"
23766 case "(($ac_try" in
23767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23768 *) ac_try_echo=$ac_try;;
23769 esac
23770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23771 (eval "$ac_link") 2>conftest.er1
23772 ac_status=$?
23773 grep -v '^ *+' conftest.er1 >conftest.err
23774 rm -f conftest.er1
23775 cat conftest.err >&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } && {
23778 test -z "$ac_c_werror_flag" ||
23779 test ! -s conftest.err
23780 } && test -s conftest$ac_exeext &&
23781 $as_test_x conftest$ac_exeext; then
23782 emacs_cv_langinfo_codeset=yes
23783 else
23784 echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23787 emacs_cv_langinfo_codeset=no
23790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23791 conftest$ac_exeext conftest.$ac_ext
23794 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23795 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23796 if test $emacs_cv_langinfo_codeset = yes; then
23798 cat >>confdefs.h <<\_ACEOF
23799 #define HAVE_LANGINFO_CODESET 1
23800 _ACEOF
23804 { echo "$as_me:$LINENO: checking for size_t" >&5
23805 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23806 if test "${ac_cv_type_size_t+set}" = set; then
23807 echo $ECHO_N "(cached) $ECHO_C" >&6
23808 else
23809 cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h. */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23815 $ac_includes_default
23816 typedef size_t ac__type_new_;
23818 main ()
23820 if ((ac__type_new_ *) 0)
23821 return 0;
23822 if (sizeof (ac__type_new_))
23823 return 0;
23825 return 0;
23827 _ACEOF
23828 rm -f conftest.$ac_objext
23829 if { (ac_try="$ac_compile"
23830 case "(($ac_try" in
23831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832 *) ac_try_echo=$ac_try;;
23833 esac
23834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23835 (eval "$ac_compile") 2>conftest.er1
23836 ac_status=$?
23837 grep -v '^ *+' conftest.er1 >conftest.err
23838 rm -f conftest.er1
23839 cat conftest.err >&5
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } && {
23842 test -z "$ac_c_werror_flag" ||
23843 test ! -s conftest.err
23844 } && test -s conftest.$ac_objext; then
23845 ac_cv_type_size_t=yes
23846 else
23847 echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23850 ac_cv_type_size_t=no
23853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23856 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23857 if test $ac_cv_type_size_t = yes; then
23859 cat >>confdefs.h <<_ACEOF
23860 #define HAVE_SIZE_T 1
23861 _ACEOF
23867 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23868 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23869 if test "${ac_cv_type_mbstate_t+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 $ac_includes_default
23879 # include <wchar.h>
23881 main ()
23883 mbstate_t x; return sizeof x;
23885 return 0;
23887 _ACEOF
23888 rm -f conftest.$ac_objext
23889 if { (ac_try="$ac_compile"
23890 case "(($ac_try" in
23891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23892 *) ac_try_echo=$ac_try;;
23893 esac
23894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23895 (eval "$ac_compile") 2>conftest.er1
23896 ac_status=$?
23897 grep -v '^ *+' conftest.er1 >conftest.err
23898 rm -f conftest.er1
23899 cat conftest.err >&5
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); } && {
23902 test -z "$ac_c_werror_flag" ||
23903 test ! -s conftest.err
23904 } && test -s conftest.$ac_objext; then
23905 ac_cv_type_mbstate_t=yes
23906 else
23907 echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23910 ac_cv_type_mbstate_t=no
23913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23915 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23916 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23917 if test $ac_cv_type_mbstate_t = yes; then
23919 cat >>confdefs.h <<\_ACEOF
23920 #define HAVE_MBSTATE_T 1
23921 _ACEOF
23923 else
23925 cat >>confdefs.h <<\_ACEOF
23926 #define mbstate_t int
23927 _ACEOF
23931 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23932 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23933 if test "${emacs_cv_c_restrict+set}" = set; then
23934 echo $ECHO_N "(cached) $ECHO_C" >&6
23935 else
23936 cat >conftest.$ac_ext <<_ACEOF
23937 /* confdefs.h. */
23938 _ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h. */
23942 void fred (int *restrict x);
23944 main ()
23948 return 0;
23950 _ACEOF
23951 rm -f conftest.$ac_objext
23952 if { (ac_try="$ac_compile"
23953 case "(($ac_try" in
23954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23955 *) ac_try_echo=$ac_try;;
23956 esac
23957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23958 (eval "$ac_compile") 2>conftest.er1
23959 ac_status=$?
23960 grep -v '^ *+' conftest.er1 >conftest.err
23961 rm -f conftest.er1
23962 cat conftest.err >&5
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } && {
23965 test -z "$ac_c_werror_flag" ||
23966 test ! -s conftest.err
23967 } && test -s conftest.$ac_objext; then
23968 emacs_cv_c_restrict=yes
23969 else
23970 echo "$as_me: failed program was:" >&5
23971 sed 's/^/| /' conftest.$ac_ext >&5
23973 cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h. */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h. */
23979 void fred (int *__restrict x);
23981 main ()
23985 return 0;
23987 _ACEOF
23988 rm -f conftest.$ac_objext
23989 if { (ac_try="$ac_compile"
23990 case "(($ac_try" in
23991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992 *) ac_try_echo=$ac_try;;
23993 esac
23994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995 (eval "$ac_compile") 2>conftest.er1
23996 ac_status=$?
23997 grep -v '^ *+' conftest.er1 >conftest.err
23998 rm -f conftest.er1
23999 cat conftest.err >&5
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); } && {
24002 test -z "$ac_c_werror_flag" ||
24003 test ! -s conftest.err
24004 } && test -s conftest.$ac_objext; then
24005 emacs_cv_c_restrict=__restrict
24006 else
24007 echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.$ac_ext >&5
24010 emacs_cv_c_restrict=no
24013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24018 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24019 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24020 case "$emacs_cv_c_restrict" in
24021 yes) emacs_restrict=restrict;;
24022 no) emacs_restrict="";;
24023 *) emacs_restrict="$emacs_cv_c_restrict";;
24024 esac
24025 if test "$emacs_restrict" != __restrict; then
24027 cat >>confdefs.h <<_ACEOF
24028 #define __restrict $emacs_restrict
24029 _ACEOF
24033 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24034 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24035 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24037 else
24038 cat >conftest.$ac_ext <<_ACEOF
24039 /* confdefs.h. */
24040 _ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h. */
24044 void fred (int x[__restrict]);
24046 main ()
24050 return 0;
24052 _ACEOF
24053 rm -f conftest.$ac_objext
24054 if { (ac_try="$ac_compile"
24055 case "(($ac_try" in
24056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057 *) ac_try_echo=$ac_try;;
24058 esac
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060 (eval "$ac_compile") 2>conftest.er1
24061 ac_status=$?
24062 grep -v '^ *+' conftest.er1 >conftest.err
24063 rm -f conftest.er1
24064 cat conftest.err >&5
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } && {
24067 test -z "$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 } && test -s conftest.$ac_objext; then
24070 emacs_cv_c_restrict_arr=yes
24071 else
24072 echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24075 emacs_cv_c_restrict_arr=no
24078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24080 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24081 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24082 if test "$emacs_cv_c_restrict_arr" = yes; then
24084 cat >>confdefs.h <<\_ACEOF
24085 #define __restrict_arr __restrict
24086 _ACEOF
24092 # Set up the CFLAGS for real compilation, so we can substitute it.
24093 CFLAGS="$REAL_CFLAGS"
24094 CPPFLAGS="$REAL_CPPFLAGS"
24096 #### Find out which version of Emacs this is.
24097 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24098 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24099 if test x"${version}" = x; then
24100 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24101 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24102 { (exit 1); exit 1; }; }
24105 ### Specify what sort of things we'll be editing into Makefile and config.h.
24106 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24150 cat >>confdefs.h <<_ACEOF
24151 #define EMACS_CONFIGURATION "${canonical}"
24152 _ACEOF
24155 cat >>confdefs.h <<_ACEOF
24156 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24157 _ACEOF
24160 cat >>confdefs.h <<_ACEOF
24161 #define config_machfile "${machfile}"
24162 _ACEOF
24165 cat >>confdefs.h <<_ACEOF
24166 #define config_opsysfile "${opsysfile}"
24167 _ACEOF
24170 cat >>confdefs.h <<_ACEOF
24171 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24172 _ACEOF
24175 cat >>confdefs.h <<_ACEOF
24176 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24177 _ACEOF
24180 cat >>confdefs.h <<_ACEOF
24181 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24182 _ACEOF
24185 cat >>confdefs.h <<_ACEOF
24186 #define UNEXEC_SRC ${UNEXEC_SRC}
24187 _ACEOF
24190 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24192 cat >>confdefs.h <<\_ACEOF
24193 #define HAVE_X_WINDOWS 1
24194 _ACEOF
24197 if test "${USE_X_TOOLKIT}" != "none" ; then
24199 cat >>confdefs.h <<\_ACEOF
24200 #define USE_X_TOOLKIT 1
24201 _ACEOF
24203 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24205 cat >>confdefs.h <<\_ACEOF
24206 #define USE_LUCID 1
24207 _ACEOF
24209 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24211 cat >>confdefs.h <<\_ACEOF
24212 #define USE_MOTIF 1
24213 _ACEOF
24217 if test "${HAVE_X11}" = "yes" ; then
24219 cat >>confdefs.h <<\_ACEOF
24220 #define HAVE_X11 1
24221 _ACEOF
24224 if test "${HAVE_MENUS}" = "yes" ; then
24226 cat >>confdefs.h <<\_ACEOF
24227 #define HAVE_MENUS 1
24228 _ACEOF
24231 if test "${GNU_MALLOC}" = "yes" ; then
24233 cat >>confdefs.h <<\_ACEOF
24234 #define GNU_MALLOC 1
24235 _ACEOF
24238 if test "${REL_ALLOC}" = "yes" ; then
24240 cat >>confdefs.h <<\_ACEOF
24241 #define REL_ALLOC 1
24242 _ACEOF
24251 #### Report on what we decided to do.
24252 #### Report GTK as a toolkit, even if it doesn't use Xt.
24253 #### It makes printing result more understandable as using GTK sets
24254 #### toolkit_scroll_bars to yes by default.
24255 if test "${HAVE_GTK}" = "yes"; then
24256 USE_X_TOOLKIT=GTK
24259 echo "
24260 Configured for \`${canonical}'.
24262 Where should the build process find the source code? ${srcdir}
24263 What operating system and machine description files should Emacs use?
24264 \`${opsysfile}' and \`${machfile}'
24265 What compiler should emacs be built with? ${CC} ${CFLAGS}
24266 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24267 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24268 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24269 What window system should Emacs use? ${window_system}
24270 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24272 if test -n "${x_includes}"; then
24273 echo " Where do we find X Windows header files? ${x_includes}"
24274 else
24275 echo " Where do we find X Windows header files? Standard dirs"
24277 if test -n "${x_libraries}"; then
24278 echo " Where do we find X Windows libraries? ${x_libraries}"
24279 else
24280 echo " Where do we find X Windows libraries? Standard dirs"
24283 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24284 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24285 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24286 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24287 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24288 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24289 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24290 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24291 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24293 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24294 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24295 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24296 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24298 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24299 echo
24301 if test $USE_XASSERTS = yes; then
24302 echo " Compiling with asserts turned on."
24303 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24306 echo
24308 if test "$USE_X_TOOLKIT" = GTK; then
24309 case "$canonical" in
24310 *cygwin*)
24311 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24312 will probably get a crash on startup. If this happens, please use another
24313 toolkit for Emacs. See etc/PROBLEMS for more information."
24315 esac
24318 if test "$HAVE_NS" = "yes"; then
24319 echo
24320 echo "You must run \"make install\" in order to test the built application.
24321 The installed application will go to nextstep/Emacs.app and can be
24322 run or moved from there."
24323 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24324 echo "The application will be fully self-contained."
24325 else
24326 echo "The lisp resources for the application will be installed under ${prefix}.
24327 You may need to run \"make install\" with sudo. The application will fail
24328 to run if these resources are not installed."
24330 echo
24333 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24334 echo "D-Bus integration has been tested for GNU/Linux only."
24335 echo
24339 # Remove any trailing slashes in these variables.
24340 test "${prefix}" != NONE &&
24341 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24342 test "${exec_prefix}" != NONE &&
24343 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24345 # Now get this: Some word that is part of the ${srcdir} directory name
24346 # or the ${configuration} value might, just might, happen to be an
24347 # identifier like `sun4' or `i386' or something, and be predefined by
24348 # the C preprocessor to some helpful value like 1, or maybe the empty
24349 # string. Needless to say consequent macro substitutions are less
24350 # than conducive to the makefile finding the correct directory.
24351 cpp_undefs="`echo $srcdir $configuration $canonical |
24352 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24353 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24355 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24356 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24357 ## from Makefile.c can correctly provide the arg `-traditional' to the
24358 ## C preprocessor.
24360 cat >conftest.$ac_ext <<_ACEOF
24361 /* confdefs.h. */
24362 _ACEOF
24363 cat confdefs.h >>conftest.$ac_ext
24364 cat >>conftest.$ac_ext <<_ACEOF
24365 /* end confdefs.h. */
24366 yes..yes
24367 _ACEOF
24368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24369 $EGREP "yes..yes" >/dev/null 2>&1; then
24370 CPP_NEED_TRADITIONAL=no
24371 else
24372 CPP_NEED_TRADITIONAL=yes
24374 rm -f conftest*
24377 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"
24379 ac_config_commands="$ac_config_commands default"
24381 cat >confcache <<\_ACEOF
24382 # This file is a shell script that caches the results of configure
24383 # tests run on this system so they can be shared between configure
24384 # scripts and configure runs, see configure's option --config-cache.
24385 # It is not useful on other systems. If it contains results you don't
24386 # want to keep, you may remove or edit it.
24388 # config.status only pays attention to the cache file if you give it
24389 # the --recheck option to rerun configure.
24391 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24392 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24393 # following values.
24395 _ACEOF
24397 # The following way of writing the cache mishandles newlines in values,
24398 # but we know of no workaround that is simple, portable, and efficient.
24399 # So, we kill variables containing newlines.
24400 # Ultrix sh set writes to stderr and can't be redirected directly,
24401 # and sets the high bit in the cache file unless we assign to the vars.
24403 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24404 eval ac_val=\$$ac_var
24405 case $ac_val in #(
24406 *${as_nl}*)
24407 case $ac_var in #(
24408 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24409 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24410 esac
24411 case $ac_var in #(
24412 _ | IFS | as_nl) ;; #(
24413 *) $as_unset $ac_var ;;
24414 esac ;;
24415 esac
24416 done
24418 (set) 2>&1 |
24419 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24420 *${as_nl}ac_space=\ *)
24421 # `set' does not quote correctly, so add quotes (double-quote
24422 # substitution turns \\\\ into \\, and sed turns \\ into \).
24423 sed -n \
24424 "s/'/'\\\\''/g;
24425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24426 ;; #(
24428 # `set' quotes correctly as required by POSIX, so do not add quotes.
24429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24431 esac |
24432 sort
24434 sed '
24435 /^ac_cv_env_/b end
24436 t clear
24437 :clear
24438 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24439 t end
24440 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24441 :end' >>confcache
24442 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24443 if test -w "$cache_file"; then
24444 test "x$cache_file" != "x/dev/null" &&
24445 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24446 echo "$as_me: updating cache $cache_file" >&6;}
24447 cat confcache >$cache_file
24448 else
24449 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24450 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24453 rm -f confcache
24455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24456 # Let make expand exec_prefix.
24457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24459 DEFS=-DHAVE_CONFIG_H
24461 ac_libobjs=
24462 ac_ltlibobjs=
24463 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24464 # 1. Remove the extension, and $U if already installed.
24465 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24466 ac_i=`echo "$ac_i" | sed "$ac_script"`
24467 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24468 # will be set to the directory where LIBOBJS objects are built.
24469 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24470 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24471 done
24472 LIBOBJS=$ac_libobjs
24474 LTLIBOBJS=$ac_ltlibobjs
24478 : ${CONFIG_STATUS=./config.status}
24479 ac_clean_files_save=$ac_clean_files
24480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24481 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24482 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24483 cat >$CONFIG_STATUS <<_ACEOF
24484 #! $SHELL
24485 # Generated by $as_me.
24486 # Run this file to recreate the current configuration.
24487 # Compiler output produced by configure, useful for debugging
24488 # configure, is in config.log if it exists.
24490 debug=false
24491 ac_cs_recheck=false
24492 ac_cs_silent=false
24493 SHELL=\${CONFIG_SHELL-$SHELL}
24494 _ACEOF
24496 cat >>$CONFIG_STATUS <<\_ACEOF
24497 ## --------------------- ##
24498 ## M4sh Initialization. ##
24499 ## --------------------- ##
24501 # Be more Bourne compatible
24502 DUALCASE=1; export DUALCASE # for MKS sh
24503 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24504 emulate sh
24505 NULLCMD=:
24506 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24507 # is contrary to our usage. Disable this feature.
24508 alias -g '${1+"$@"}'='"$@"'
24509 setopt NO_GLOB_SUBST
24510 else
24511 case `(set -o) 2>/dev/null` in
24512 *posix*) set -o posix ;;
24513 esac
24520 # PATH needs CR
24521 # Avoid depending upon Character Ranges.
24522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24525 as_cr_digits='0123456789'
24526 as_cr_alnum=$as_cr_Letters$as_cr_digits
24528 # The user is always right.
24529 if test "${PATH_SEPARATOR+set}" != set; then
24530 echo "#! /bin/sh" >conf$$.sh
24531 echo "exit 0" >>conf$$.sh
24532 chmod +x conf$$.sh
24533 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24534 PATH_SEPARATOR=';'
24535 else
24536 PATH_SEPARATOR=:
24538 rm -f conf$$.sh
24541 # Support unset when possible.
24542 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24543 as_unset=unset
24544 else
24545 as_unset=false
24549 # IFS
24550 # We need space, tab and new line, in precisely that order. Quoting is
24551 # there to prevent editors from complaining about space-tab.
24552 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24553 # splitting by setting IFS to empty value.)
24554 as_nl='
24556 IFS=" "" $as_nl"
24558 # Find who we are. Look in the path if we contain no directory separator.
24559 case $0 in
24560 *[\\/]* ) as_myself=$0 ;;
24561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24562 for as_dir in $PATH
24564 IFS=$as_save_IFS
24565 test -z "$as_dir" && as_dir=.
24566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24567 done
24568 IFS=$as_save_IFS
24571 esac
24572 # We did not find ourselves, most probably we were run as `sh COMMAND'
24573 # in which case we are not to be found in the path.
24574 if test "x$as_myself" = x; then
24575 as_myself=$0
24577 if test ! -f "$as_myself"; then
24578 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24579 { (exit 1); exit 1; }
24582 # Work around bugs in pre-3.0 UWIN ksh.
24583 for as_var in ENV MAIL MAILPATH
24584 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24585 done
24586 PS1='$ '
24587 PS2='> '
24588 PS4='+ '
24590 # NLS nuisances.
24591 for as_var in \
24592 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24593 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24594 LC_TELEPHONE LC_TIME
24596 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24597 eval $as_var=C; export $as_var
24598 else
24599 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24601 done
24603 # Required to use basename.
24604 if expr a : '\(a\)' >/dev/null 2>&1 &&
24605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24606 as_expr=expr
24607 else
24608 as_expr=false
24611 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24612 as_basename=basename
24613 else
24614 as_basename=false
24618 # Name of the executable.
24619 as_me=`$as_basename -- "$0" ||
24620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24621 X"$0" : 'X\(//\)$' \| \
24622 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24623 echo X/"$0" |
24624 sed '/^.*\/\([^/][^/]*\)\/*$/{
24625 s//\1/
24628 /^X\/\(\/\/\)$/{
24629 s//\1/
24632 /^X\/\(\/\).*/{
24633 s//\1/
24636 s/.*/./; q'`
24638 # CDPATH.
24639 $as_unset CDPATH
24643 as_lineno_1=$LINENO
24644 as_lineno_2=$LINENO
24645 test "x$as_lineno_1" != "x$as_lineno_2" &&
24646 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24648 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24649 # uniformly replaced by the line number. The first 'sed' inserts a
24650 # line-number line after each line using $LINENO; the second 'sed'
24651 # does the real work. The second script uses 'N' to pair each
24652 # line-number line with the line containing $LINENO, and appends
24653 # trailing '-' during substitution so that $LINENO is not a special
24654 # case at line end.
24655 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24656 # scripts with optimization help from Paolo Bonzini. Blame Lee
24657 # E. McMahon (1931-1989) for sed's syntax. :-)
24658 sed -n '
24660 /[$]LINENO/=
24661 ' <$as_myself |
24662 sed '
24663 s/[$]LINENO.*/&-/
24664 t lineno
24666 :lineno
24668 :loop
24669 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24670 t loop
24671 s/-\n.*//
24672 ' >$as_me.lineno &&
24673 chmod +x "$as_me.lineno" ||
24674 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24675 { (exit 1); exit 1; }; }
24677 # Don't try to exec as it changes $[0], causing all sort of problems
24678 # (the dirname of $[0] is not the place where we might find the
24679 # original and so on. Autoconf is especially sensitive to this).
24680 . "./$as_me.lineno"
24681 # Exit status is that of the last command.
24682 exit
24686 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24687 as_dirname=dirname
24688 else
24689 as_dirname=false
24692 ECHO_C= ECHO_N= ECHO_T=
24693 case `echo -n x` in
24694 -n*)
24695 case `echo 'x\c'` in
24696 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24697 *) ECHO_C='\c';;
24698 esac;;
24700 ECHO_N='-n';;
24701 esac
24703 if expr a : '\(a\)' >/dev/null 2>&1 &&
24704 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24705 as_expr=expr
24706 else
24707 as_expr=false
24710 rm -f conf$$ conf$$.exe conf$$.file
24711 if test -d conf$$.dir; then
24712 rm -f conf$$.dir/conf$$.file
24713 else
24714 rm -f conf$$.dir
24715 mkdir conf$$.dir
24717 echo >conf$$.file
24718 if ln -s conf$$.file conf$$ 2>/dev/null; then
24719 as_ln_s='ln -s'
24720 # ... but there are two gotchas:
24721 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24722 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24723 # In both cases, we have to default to `cp -p'.
24724 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24725 as_ln_s='cp -p'
24726 elif ln conf$$.file conf$$ 2>/dev/null; then
24727 as_ln_s=ln
24728 else
24729 as_ln_s='cp -p'
24731 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24732 rmdir conf$$.dir 2>/dev/null
24734 if mkdir -p . 2>/dev/null; then
24735 as_mkdir_p=:
24736 else
24737 test -d ./-p && rmdir ./-p
24738 as_mkdir_p=false
24741 if test -x / >/dev/null 2>&1; then
24742 as_test_x='test -x'
24743 else
24744 if ls -dL / >/dev/null 2>&1; then
24745 as_ls_L_option=L
24746 else
24747 as_ls_L_option=
24749 as_test_x='
24750 eval sh -c '\''
24751 if test -d "$1"; then
24752 test -d "$1/.";
24753 else
24754 case $1 in
24755 -*)set "./$1";;
24756 esac;
24757 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24758 ???[sx]*):;;*)false;;esac;fi
24759 '\'' sh
24762 as_executable_p=$as_test_x
24764 # Sed expression to map a string onto a valid CPP name.
24765 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24767 # Sed expression to map a string onto a valid variable name.
24768 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24771 exec 6>&1
24773 # Save the log message, to keep $[0] and so on meaningful, and to
24774 # report actual input values of CONFIG_FILES etc. instead of their
24775 # values after options handling.
24776 ac_log="
24777 This file was extended by emacs $as_me 23.0.60, which was
24778 generated by GNU Autoconf 2.61. Invocation command line was
24780 CONFIG_FILES = $CONFIG_FILES
24781 CONFIG_HEADERS = $CONFIG_HEADERS
24782 CONFIG_LINKS = $CONFIG_LINKS
24783 CONFIG_COMMANDS = $CONFIG_COMMANDS
24784 $ $0 $@
24786 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24789 _ACEOF
24791 cat >>$CONFIG_STATUS <<_ACEOF
24792 # Files that config.status was made for.
24793 config_files="$ac_config_files"
24794 config_headers="$ac_config_headers"
24795 config_commands="$ac_config_commands"
24797 _ACEOF
24799 cat >>$CONFIG_STATUS <<\_ACEOF
24800 ac_cs_usage="\
24801 \`$as_me' instantiates files from templates according to the
24802 current configuration.
24804 Usage: $0 [OPTIONS] [FILE]...
24806 -h, --help print this help, then exit
24807 -V, --version print version number and configuration settings, then exit
24808 -q, --quiet do not print progress messages
24809 -d, --debug don't remove temporary files
24810 --recheck update $as_me by reconfiguring in the same conditions
24811 --file=FILE[:TEMPLATE]
24812 instantiate the configuration file FILE
24813 --header=FILE[:TEMPLATE]
24814 instantiate the configuration header FILE
24816 Configuration files:
24817 $config_files
24819 Configuration headers:
24820 $config_headers
24822 Configuration commands:
24823 $config_commands
24825 Report bugs to <bug-autoconf@gnu.org>."
24827 _ACEOF
24828 cat >>$CONFIG_STATUS <<_ACEOF
24829 ac_cs_version="\\
24830 emacs config.status 23.0.60
24831 configured by $0, generated by GNU Autoconf 2.61,
24832 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24834 Copyright (C) 2006 Free Software Foundation, Inc.
24835 This config.status script is free software; the Free Software Foundation
24836 gives unlimited permission to copy, distribute and modify it."
24838 ac_pwd='$ac_pwd'
24839 srcdir='$srcdir'
24840 INSTALL='$INSTALL'
24841 _ACEOF
24843 cat >>$CONFIG_STATUS <<\_ACEOF
24844 # If no file are specified by the user, then we need to provide default
24845 # value. By we need to know if files were specified by the user.
24846 ac_need_defaults=:
24847 while test $# != 0
24849 case $1 in
24850 --*=*)
24851 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24852 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24853 ac_shift=:
24856 ac_option=$1
24857 ac_optarg=$2
24858 ac_shift=shift
24860 esac
24862 case $ac_option in
24863 # Handling of the options.
24864 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24865 ac_cs_recheck=: ;;
24866 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24867 echo "$ac_cs_version"; exit ;;
24868 --debug | --debu | --deb | --de | --d | -d )
24869 debug=: ;;
24870 --file | --fil | --fi | --f )
24871 $ac_shift
24872 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24873 ac_need_defaults=false;;
24874 --header | --heade | --head | --hea )
24875 $ac_shift
24876 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24877 ac_need_defaults=false;;
24878 --he | --h)
24879 # Conflict between --help and --header
24880 { echo "$as_me: error: ambiguous option: $1
24881 Try \`$0 --help' for more information." >&2
24882 { (exit 1); exit 1; }; };;
24883 --help | --hel | -h )
24884 echo "$ac_cs_usage"; exit ;;
24885 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24886 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24887 ac_cs_silent=: ;;
24889 # This is an error.
24890 -*) { echo "$as_me: error: unrecognized option: $1
24891 Try \`$0 --help' for more information." >&2
24892 { (exit 1); exit 1; }; } ;;
24894 *) ac_config_targets="$ac_config_targets $1"
24895 ac_need_defaults=false ;;
24897 esac
24898 shift
24899 done
24901 ac_configure_extra_args=
24903 if $ac_cs_silent; then
24904 exec 6>/dev/null
24905 ac_configure_extra_args="$ac_configure_extra_args --silent"
24908 _ACEOF
24909 cat >>$CONFIG_STATUS <<_ACEOF
24910 if \$ac_cs_recheck; then
24911 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24912 CONFIG_SHELL=$SHELL
24913 export CONFIG_SHELL
24914 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24917 _ACEOF
24918 cat >>$CONFIG_STATUS <<\_ACEOF
24919 exec 5>>config.log
24921 echo
24922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24923 ## Running $as_me. ##
24924 _ASBOX
24925 echo "$ac_log"
24926 } >&5
24928 _ACEOF
24929 cat >>$CONFIG_STATUS <<_ACEOF
24931 # INIT-COMMANDS
24933 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24935 _ACEOF
24937 cat >>$CONFIG_STATUS <<\_ACEOF
24939 # Handling of arguments.
24940 for ac_config_target in $ac_config_targets
24942 case $ac_config_target in
24943 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24944 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24945 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24946 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24947 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24948 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24949 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24950 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24951 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24952 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24953 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24954 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24955 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24957 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24958 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24959 { (exit 1); exit 1; }; };;
24960 esac
24961 done
24964 # If the user did not use the arguments to specify the items to instantiate,
24965 # then the envvar interface is used. Set only those that are not.
24966 # We use the long form for the default assignment because of an extremely
24967 # bizarre bug on SunOS 4.1.3.
24968 if $ac_need_defaults; then
24969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24974 # Have a temporary directory for convenience. Make it in the build tree
24975 # simply because there is no reason against having it here, and in addition,
24976 # creating and moving files from /tmp can sometimes cause problems.
24977 # Hook for its removal unless debugging.
24978 # Note that there is a small window in which the directory will not be cleaned:
24979 # after its creation but before its name has been assigned to `$tmp'.
24980 $debug ||
24982 tmp=
24983 trap 'exit_status=$?
24984 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24986 trap '{ (exit 1); exit 1; }' 1 2 13 15
24988 # Create a (secure) tmp directory for tmp files.
24991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24992 test -n "$tmp" && test -d "$tmp"
24993 } ||
24995 tmp=./conf$$-$RANDOM
24996 (umask 077 && mkdir "$tmp")
24997 } ||
24999 echo "$me: cannot create a temporary directory in ." >&2
25000 { (exit 1); exit 1; }
25004 # Set up the sed scripts for CONFIG_FILES section.
25007 # No need to generate the scripts if there are no CONFIG_FILES.
25008 # This happens for instance when ./config.status config.h
25009 if test -n "$CONFIG_FILES"; then
25011 _ACEOF
25015 ac_delim='%!_!# '
25016 for ac_last_try in false false false false false :; do
25017 cat >conf$$subs.sed <<_ACEOF
25018 SHELL!$SHELL$ac_delim
25019 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25020 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25021 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25022 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25023 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25024 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25025 exec_prefix!$exec_prefix$ac_delim
25026 prefix!$prefix$ac_delim
25027 program_transform_name!$program_transform_name$ac_delim
25028 bindir!$bindir$ac_delim
25029 sbindir!$sbindir$ac_delim
25030 libexecdir!$libexecdir$ac_delim
25031 datarootdir!$datarootdir$ac_delim
25032 datadir!$datadir$ac_delim
25033 sysconfdir!$sysconfdir$ac_delim
25034 sharedstatedir!$sharedstatedir$ac_delim
25035 localstatedir!$localstatedir$ac_delim
25036 includedir!$includedir$ac_delim
25037 oldincludedir!$oldincludedir$ac_delim
25038 docdir!$docdir$ac_delim
25039 infodir!$infodir$ac_delim
25040 htmldir!$htmldir$ac_delim
25041 dvidir!$dvidir$ac_delim
25042 pdfdir!$pdfdir$ac_delim
25043 psdir!$psdir$ac_delim
25044 libdir!$libdir$ac_delim
25045 localedir!$localedir$ac_delim
25046 mandir!$mandir$ac_delim
25047 DEFS!$DEFS$ac_delim
25048 ECHO_C!$ECHO_C$ac_delim
25049 ECHO_N!$ECHO_N$ac_delim
25050 ECHO_T!$ECHO_T$ac_delim
25051 LIBS!$LIBS$ac_delim
25052 build_alias!$build_alias$ac_delim
25053 host_alias!$host_alias$ac_delim
25054 target_alias!$target_alias$ac_delim
25055 MAINT!$MAINT$ac_delim
25056 build!$build$ac_delim
25057 build_cpu!$build_cpu$ac_delim
25058 build_vendor!$build_vendor$ac_delim
25059 build_os!$build_os$ac_delim
25060 host!$host$ac_delim
25061 host_cpu!$host_cpu$ac_delim
25062 host_vendor!$host_vendor$ac_delim
25063 host_os!$host_os$ac_delim
25064 CC!$CC$ac_delim
25065 CFLAGS!$CFLAGS$ac_delim
25066 LDFLAGS!$LDFLAGS$ac_delim
25067 CPPFLAGS!$CPPFLAGS$ac_delim
25068 ac_ct_CC!$ac_ct_CC$ac_delim
25069 EXEEXT!$EXEEXT$ac_delim
25070 OBJEXT!$OBJEXT$ac_delim
25071 CPP!$CPP$ac_delim
25072 GREP!$GREP$ac_delim
25073 EGREP!$EGREP$ac_delim
25074 LN_S!$LN_S$ac_delim
25075 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25076 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25077 INSTALL_DATA!$INSTALL_DATA$ac_delim
25078 RANLIB!$RANLIB$ac_delim
25079 INSTALL_INFO!$INSTALL_INFO$ac_delim
25080 GZIP_PROG!$GZIP_PROG$ac_delim
25081 MAKEINFO!$MAKEINFO$ac_delim
25082 LIBSOUND!$LIBSOUND$ac_delim
25083 PKG_CONFIG!$PKG_CONFIG$ac_delim
25084 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25085 ALSA_LIBS!$ALSA_LIBS$ac_delim
25086 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25087 SET_MAKE!$SET_MAKE$ac_delim
25088 XMKMF!$XMKMF$ac_delim
25089 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25090 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25091 RSVG_LIBS!$RSVG_LIBS$ac_delim
25092 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25093 GTK_LIBS!$GTK_LIBS$ac_delim
25094 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25095 DBUS_LIBS!$DBUS_LIBS$ac_delim
25096 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25097 XFT_LIBS!$XFT_LIBS$ac_delim
25098 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25099 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25100 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25101 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25102 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25103 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25104 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25105 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25106 ALLOCA!$ALLOCA$ac_delim
25107 liblockfile!$liblockfile$ac_delim
25108 LIBOBJS!$LIBOBJS$ac_delim
25109 NEED_SETGID!$NEED_SETGID$ac_delim
25110 KMEM_GROUP!$KMEM_GROUP$ac_delim
25111 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25112 GETOPT_H!$GETOPT_H$ac_delim
25113 GETOPTOBJS!$GETOPTOBJS$ac_delim
25114 version!$version$ac_delim
25115 _ACEOF
25117 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25118 break
25119 elif $ac_last_try; then
25120 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25121 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25122 { (exit 1); exit 1; }; }
25123 else
25124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25126 done
25128 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25129 if test -n "$ac_eof"; then
25130 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25131 ac_eof=`expr $ac_eof + 1`
25134 cat >>$CONFIG_STATUS <<_ACEOF
25135 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25136 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25137 _ACEOF
25138 sed '
25139 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25140 s/^/s,@/; s/!/@,|#_!!_#|/
25143 s/'"$ac_delim"'$/,g/; t
25144 s/$/\\/; p
25145 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25146 ' >>$CONFIG_STATUS <conf$$subs.sed
25147 rm -f conf$$subs.sed
25148 cat >>$CONFIG_STATUS <<_ACEOF
25149 CEOF$ac_eof
25150 _ACEOF
25153 ac_delim='%!_!# '
25154 for ac_last_try in false false false false false :; do
25155 cat >conf$$subs.sed <<_ACEOF
25156 configuration!$configuration$ac_delim
25157 canonical!$canonical$ac_delim
25158 srcdir!$srcdir$ac_delim
25159 lispdir!$lispdir$ac_delim
25160 locallisppath!$locallisppath$ac_delim
25161 lisppath!$lisppath$ac_delim
25162 x_default_search_path!$x_default_search_path$ac_delim
25163 etcdir!$etcdir$ac_delim
25164 archlibdir!$archlibdir$ac_delim
25165 bitmapdir!$bitmapdir$ac_delim
25166 gamedir!$gamedir$ac_delim
25167 gameuser!$gameuser$ac_delim
25168 c_switch_system!$c_switch_system$ac_delim
25169 c_switch_machine!$c_switch_machine$ac_delim
25170 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25171 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25172 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25173 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25174 machfile!$machfile$ac_delim
25175 opsysfile!$opsysfile$ac_delim
25176 ns_appdir!$ns_appdir$ac_delim
25177 ns_appbindir!$ns_appbindir$ac_delim
25178 ns_appresdir!$ns_appresdir$ac_delim
25179 ns_appsrc!$ns_appsrc$ac_delim
25180 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25181 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25182 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25183 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25184 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25185 LTLIBOBJS!$LTLIBOBJS$ac_delim
25186 _ACEOF
25188 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25189 break
25190 elif $ac_last_try; then
25191 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25192 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25193 { (exit 1); exit 1; }; }
25194 else
25195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25197 done
25199 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25200 if test -n "$ac_eof"; then
25201 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25202 ac_eof=`expr $ac_eof + 1`
25205 cat >>$CONFIG_STATUS <<_ACEOF
25206 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25208 _ACEOF
25209 sed '
25210 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25211 s/^/s,@/; s/!/@,|#_!!_#|/
25214 s/'"$ac_delim"'$/,g/; t
25215 s/$/\\/; p
25216 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25217 ' >>$CONFIG_STATUS <conf$$subs.sed
25218 rm -f conf$$subs.sed
25219 cat >>$CONFIG_STATUS <<_ACEOF
25220 :end
25221 s/|#_!!_#|//g
25222 CEOF$ac_eof
25223 _ACEOF
25226 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25227 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25228 # trailing colons and then remove the whole line if VPATH becomes empty
25229 # (actually we leave an empty line to preserve line numbers).
25230 if test "x$srcdir" = x.; then
25231 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25232 s/:*\$(srcdir):*/:/
25233 s/:*\${srcdir}:*/:/
25234 s/:*@srcdir@:*/:/
25235 s/^\([^=]*=[ ]*\):*/\1/
25236 s/:*$//
25237 s/^[^=]*=[ ]*$//
25241 cat >>$CONFIG_STATUS <<\_ACEOF
25242 fi # test -n "$CONFIG_FILES"
25245 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25247 case $ac_tag in
25248 :[FHLC]) ac_mode=$ac_tag; continue;;
25249 esac
25250 case $ac_mode$ac_tag in
25251 :[FHL]*:*);;
25252 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25253 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25254 { (exit 1); exit 1; }; };;
25255 :[FH]-) ac_tag=-:-;;
25256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25257 esac
25258 ac_save_IFS=$IFS
25259 IFS=:
25260 set x $ac_tag
25261 IFS=$ac_save_IFS
25262 shift
25263 ac_file=$1
25264 shift
25266 case $ac_mode in
25267 :L) ac_source=$1;;
25268 :[FH])
25269 ac_file_inputs=
25270 for ac_f
25272 case $ac_f in
25273 -) ac_f="$tmp/stdin";;
25274 *) # Look for the file first in the build tree, then in the source tree
25275 # (if the path is not absolute). The absolute path cannot be DOS-style,
25276 # because $ac_f cannot contain `:'.
25277 test -f "$ac_f" ||
25278 case $ac_f in
25279 [\\/$]*) false;;
25280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25281 esac ||
25282 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25283 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25284 { (exit 1); exit 1; }; };;
25285 esac
25286 ac_file_inputs="$ac_file_inputs $ac_f"
25287 done
25289 # Let's still pretend it is `configure' which instantiates (i.e., don't
25290 # use $as_me), people would be surprised to read:
25291 # /* config.h. Generated by config.status. */
25292 configure_input="Generated from "`IFS=:
25293 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25294 if test x"$ac_file" != x-; then
25295 configure_input="$ac_file. $configure_input"
25296 { echo "$as_me:$LINENO: creating $ac_file" >&5
25297 echo "$as_me: creating $ac_file" >&6;}
25300 case $ac_tag in
25301 *:-:* | *:-) cat >"$tmp/stdin";;
25302 esac
25304 esac
25306 ac_dir=`$as_dirname -- "$ac_file" ||
25307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25308 X"$ac_file" : 'X\(//\)[^/]' \| \
25309 X"$ac_file" : 'X\(//\)$' \| \
25310 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25311 echo X"$ac_file" |
25312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25313 s//\1/
25316 /^X\(\/\/\)[^/].*/{
25317 s//\1/
25320 /^X\(\/\/\)$/{
25321 s//\1/
25324 /^X\(\/\).*/{
25325 s//\1/
25328 s/.*/./; q'`
25329 { as_dir="$ac_dir"
25330 case $as_dir in #(
25331 -*) as_dir=./$as_dir;;
25332 esac
25333 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25334 as_dirs=
25335 while :; do
25336 case $as_dir in #(
25337 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25338 *) as_qdir=$as_dir;;
25339 esac
25340 as_dirs="'$as_qdir' $as_dirs"
25341 as_dir=`$as_dirname -- "$as_dir" ||
25342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25343 X"$as_dir" : 'X\(//\)[^/]' \| \
25344 X"$as_dir" : 'X\(//\)$' \| \
25345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25346 echo X"$as_dir" |
25347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25348 s//\1/
25351 /^X\(\/\/\)[^/].*/{
25352 s//\1/
25355 /^X\(\/\/\)$/{
25356 s//\1/
25359 /^X\(\/\).*/{
25360 s//\1/
25363 s/.*/./; q'`
25364 test -d "$as_dir" && break
25365 done
25366 test -z "$as_dirs" || eval "mkdir $as_dirs"
25367 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25368 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25369 { (exit 1); exit 1; }; }; }
25370 ac_builddir=.
25372 case "$ac_dir" in
25373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25376 # A ".." for each directory in $ac_dir_suffix.
25377 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25378 case $ac_top_builddir_sub in
25379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25381 esac ;;
25382 esac
25383 ac_abs_top_builddir=$ac_pwd
25384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25385 # for backward compatibility:
25386 ac_top_builddir=$ac_top_build_prefix
25388 case $srcdir in
25389 .) # We are building in place.
25390 ac_srcdir=.
25391 ac_top_srcdir=$ac_top_builddir_sub
25392 ac_abs_top_srcdir=$ac_pwd ;;
25393 [\\/]* | ?:[\\/]* ) # Absolute name.
25394 ac_srcdir=$srcdir$ac_dir_suffix;
25395 ac_top_srcdir=$srcdir
25396 ac_abs_top_srcdir=$srcdir ;;
25397 *) # Relative name.
25398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25399 ac_top_srcdir=$ac_top_build_prefix$srcdir
25400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25401 esac
25402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25405 case $ac_mode in
25408 # CONFIG_FILE
25411 case $INSTALL in
25412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25413 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25414 esac
25415 _ACEOF
25417 cat >>$CONFIG_STATUS <<\_ACEOF
25418 # If the template does not know about datarootdir, expand it.
25419 # FIXME: This hack should be removed a few years after 2.60.
25420 ac_datarootdir_hack=; ac_datarootdir_seen=
25422 case `sed -n '/datarootdir/ {
25426 /@datadir@/p
25427 /@docdir@/p
25428 /@infodir@/p
25429 /@localedir@/p
25430 /@mandir@/p
25431 ' $ac_file_inputs` in
25432 *datarootdir*) ac_datarootdir_seen=yes;;
25433 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25434 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25435 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25436 _ACEOF
25437 cat >>$CONFIG_STATUS <<_ACEOF
25438 ac_datarootdir_hack='
25439 s&@datadir@&$datadir&g
25440 s&@docdir@&$docdir&g
25441 s&@infodir@&$infodir&g
25442 s&@localedir@&$localedir&g
25443 s&@mandir@&$mandir&g
25444 s&\\\${datarootdir}&$datarootdir&g' ;;
25445 esac
25446 _ACEOF
25448 # Neutralize VPATH when `$srcdir' = `.'.
25449 # Shell code in configure.ac might set extrasub.
25450 # FIXME: do we really want to maintain this feature?
25451 cat >>$CONFIG_STATUS <<_ACEOF
25452 sed "$ac_vpsub
25453 $extrasub
25454 _ACEOF
25455 cat >>$CONFIG_STATUS <<\_ACEOF
25457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25458 s&@configure_input@&$configure_input&;t t
25459 s&@top_builddir@&$ac_top_builddir_sub&;t t
25460 s&@srcdir@&$ac_srcdir&;t t
25461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25462 s&@top_srcdir@&$ac_top_srcdir&;t t
25463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25464 s&@builddir@&$ac_builddir&;t t
25465 s&@abs_builddir@&$ac_abs_builddir&;t t
25466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25467 s&@INSTALL@&$ac_INSTALL&;t t
25468 $ac_datarootdir_hack
25469 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25472 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25474 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25475 which seems to be undefined. Please make sure it is defined." >&5
25476 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25477 which seems to be undefined. Please make sure it is defined." >&2;}
25479 rm -f "$tmp/stdin"
25480 case $ac_file in
25481 -) cat "$tmp/out"; rm -f "$tmp/out";;
25482 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25483 esac
25487 # CONFIG_HEADER
25489 _ACEOF
25491 # Transform confdefs.h into a sed script `conftest.defines', that
25492 # substitutes the proper values into config.h.in to produce config.h.
25493 rm -f conftest.defines conftest.tail
25494 # First, append a space to every undef/define line, to ease matching.
25495 echo 's/$/ /' >conftest.defines
25496 # Then, protect against being on the right side of a sed subst, or in
25497 # an unquoted here document, in config.status. If some macros were
25498 # called several times there might be several #defines for the same
25499 # symbol, which is useless. But do not sort them, since the last
25500 # AC_DEFINE must be honored.
25501 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25502 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25503 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25504 # PARAMS is the parameter list in the macro definition--in most cases, it's
25505 # just an empty string.
25506 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25507 ac_dB='\\)[ (].*,\\1define\\2'
25508 ac_dC=' '
25509 ac_dD=' ,'
25511 uniq confdefs.h |
25512 sed -n '
25513 t rset
25514 :rset
25515 s/^[ ]*#[ ]*define[ ][ ]*//
25516 t ok
25519 s/[\\&,]/\\&/g
25520 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25521 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25522 ' >>conftest.defines
25524 # Remove the space that was appended to ease matching.
25525 # Then replace #undef with comments. This is necessary, for
25526 # example, in the case of _POSIX_SOURCE, which is predefined and required
25527 # on some systems where configure will not decide to define it.
25528 # (The regexp can be short, since the line contains either #define or #undef.)
25529 echo 's/ $//
25530 s,^[ #]*u.*,/* & */,' >>conftest.defines
25532 # Break up conftest.defines:
25533 ac_max_sed_lines=50
25535 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25536 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25537 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25538 # et cetera.
25539 ac_in='$ac_file_inputs'
25540 ac_out='"$tmp/out1"'
25541 ac_nxt='"$tmp/out2"'
25543 while :
25545 # Write a here document:
25546 cat >>$CONFIG_STATUS <<_ACEOF
25547 # First, check the format of the line:
25548 cat >"\$tmp/defines.sed" <<\\CEOF
25549 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25550 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25552 :def
25553 _ACEOF
25554 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25555 echo 'CEOF
25556 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25557 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25558 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25559 grep . conftest.tail >/dev/null || break
25560 rm -f conftest.defines
25561 mv conftest.tail conftest.defines
25562 done
25563 rm -f conftest.defines conftest.tail
25565 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25566 cat >>$CONFIG_STATUS <<\_ACEOF
25567 if test x"$ac_file" != x-; then
25568 echo "/* $configure_input */" >"$tmp/config.h"
25569 cat "$ac_result" >>"$tmp/config.h"
25570 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25571 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25572 echo "$as_me: $ac_file is unchanged" >&6;}
25573 else
25574 rm -f $ac_file
25575 mv "$tmp/config.h" $ac_file
25577 else
25578 echo "/* $configure_input */"
25579 cat "$ac_result"
25581 rm -f "$tmp/out12"
25584 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25585 echo "$as_me: executing $ac_file commands" >&6;}
25587 esac
25590 case $ac_file$ac_mode in
25591 "default":C)
25593 ### Make the necessary directories, if they don't exist.
25594 for dir in etc lisp ; do
25595 test -d ${dir} || mkdir ${dir}
25596 done
25598 # Build src/Makefile from ${srcdir}/src/Makefile.c
25599 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25600 # This must be done after src/config.h is built, since we rely on that file.
25602 echo creating src/epaths.h
25603 ${MAKE-make} epaths-force
25605 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25606 # `..' to `. .' unless invoked with -traditional
25608 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25609 CPPFLAGS="$CPPFLAGS -traditional"
25612 echo creating lib-src/Makefile
25613 ( cd lib-src
25614 rm -f junk.c junk1.c junk2.c
25615 sed -e '/start of cpp stuff/q' \
25616 < Makefile.c > junk1.c
25617 sed -e '1,/start of cpp stuff/d'\
25618 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25619 < Makefile.c > junk.c
25620 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25621 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25622 cat junk1.c junk2.c > Makefile.new
25623 rm -f junk.c junk1.c junk2.c
25624 chmod 444 Makefile.new
25625 mv -f Makefile.new Makefile
25628 echo creating src/Makefile
25629 ( cd src
25630 rm -f junk.c junk1.c junk2.c
25631 sed -e '/start of cpp stuff/q' \
25632 < Makefile.c > junk1.c
25633 sed -e '1,/start of cpp stuff/d'\
25634 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25635 < Makefile.c > junk.c
25636 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25637 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25638 cat junk1.c junk2.c > Makefile.new
25639 rm -f junk.c junk1.c junk2.c
25640 chmod 444 Makefile.new
25641 mv -f Makefile.new Makefile
25644 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25645 echo creating src/.gdbinit
25646 echo source $srcdir/src/.gdbinit > src/.gdbinit
25651 esac
25652 done # for ac_tag
25655 { (exit 0); exit 0; }
25656 _ACEOF
25657 chmod +x $CONFIG_STATUS
25658 ac_clean_files=$ac_clean_files_save
25661 # configure is writing to config.log, and then calls config.status.
25662 # config.status does its own redirection, appending to config.log.
25663 # Unfortunately, on DOS this fails, as config.log is still kept open
25664 # by configure, so config.status won't be able to write to it; its
25665 # output is simply discarded. So we exec the FD to /dev/null,
25666 # effectively closing config.log, so it can be properly (re)opened and
25667 # appended to by config.status. When coming back to configure, we
25668 # need to make the FD available again.
25669 if test "$no_create" != yes; then
25670 ac_cs_success=:
25671 ac_config_status_args=
25672 test "$silent" = yes &&
25673 ac_config_status_args="$ac_config_status_args --quiet"
25674 exec 5>/dev/null
25675 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25676 exec 5>>config.log
25677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25678 # would make configure fail if this is the last instruction.
25679 $ac_cs_success || { (exit 1); exit 1; }